gitea_hat/public/assets/js/monaco-ts.e46beaf7.worker.js

37008 lines
4.7 MiB

var Pft=Object.defineProperty,Fft=Object.defineProperties;var Bft=Object.getOwnPropertyDescriptors;var tW=Object.getOwnPropertySymbols;var URe=Object.prototype.hasOwnProperty,VRe=Object.prototype.propertyIsEnumerable;var gle=(dc,fc)=>{if(fc=Symbol[dc])return fc;throw Error("Symbol."+dc+" is not defined")},vle=Math.pow,yle=(dc,fc,Bu)=>fc in dc?Pft(dc,fc,{enumerable:!0,configurable:!0,writable:!0,value:Bu}):dc[fc]=Bu,Li=(dc,fc)=>{for(var Bu in fc||(fc={}))URe.call(fc,Bu)&&yle(dc,Bu,fc[Bu]);if(tW)for(var Bu of tW(fc))VRe.call(fc,Bu)&&yle(dc,Bu,fc[Bu]);return dc},so=(dc,fc)=>Fft(dc,Bft(fc));var nW=(dc,fc)=>{var Bu={};for(var h_ in dc)URe.call(dc,h_)&&fc.indexOf(h_)<0&&(Bu[h_]=dc[h_]);if(dc!=null&&tW)for(var h_ of tW(dc))fc.indexOf(h_)<0&&VRe.call(dc,h_)&&(Bu[h_]=dc[h_]);return Bu};var Sw=(dc,fc,Bu)=>(yle(dc,typeof fc!="symbol"?fc+"":fc,Bu),Bu);var lf=(dc,fc,Bu)=>new Promise((h_,Iv)=>{var X0=my=>{try{hb(Bu.next(my))}catch(xw){Iv(xw)}},mb=my=>{try{hb(Bu.throw(my))}catch(xw){Iv(xw)}},hb=my=>my.done?h_(my.value):Promise.resolve(my.value).then(X0,mb);hb((Bu=Bu.apply(dc,fc)).next())}),Gft=function(dc,fc){this[0]=dc,this[1]=fc};var ble=dc=>{var fc=dc[gle("asyncIterator")],Bu=!1,h_,Iv={};return fc==null?(fc=dc[gle("iterator")](),h_=X0=>Iv[X0]=mb=>fc[X0](mb)):(fc=fc.call(dc),h_=X0=>Iv[X0]=mb=>{if(Bu){if(Bu=!1,X0==="throw")throw mb;return mb}return Bu=!0,{done:!1,value:new Gft(new Promise(hb=>{var my=fc[X0](mb);if(!(my instanceof Object))throw TypeError("Object expected");hb(my)}),1)}}),Iv[gle("iterator")]=()=>Iv,h_("next"),"throw"in fc?h_("throw"):Iv.throw=X0=>{throw X0},"return"in fc&&h_("return"),Iv};(function(){"use strict";var dc={};(function(){dc.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(f){if(typeof window=="object")return window}}()})();var fc={};class Bu{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(p){setTimeout(()=>{throw p.stack?EI.isErrorNoTelemetry(p)?new EI(p.message+`
`+p.stack):new Error(p.message+`
`+p.stack):p},0)}}emit(p){this.listeners.forEach(b=>{b(p)})}onUnexpectedError(p){this.unexpectedErrorHandler(p),this.emit(p)}onUnexpectedExternalError(p){this.unexpectedErrorHandler(p)}}const h_=new Bu;function Iv(f){my(f)||h_.onUnexpectedError(f)}function X0(f){my(f)||h_.onUnexpectedExternalError(f)}function mb(f){if(f instanceof Error){const{name:p,message:b}=f,D=f.stacktrace||f.stack;return{$isError:!0,name:p,message:b,stack:D,noTelemetry:EI.isErrorNoTelemetry(f)}}return f}const hb="Canceled";function my(f){return f instanceof xw?!0:f instanceof Error&&f.name===hb&&f.message===hb}class xw extends Error{constructor(){super(hb),this.name=this.message}}function Uft(){const f=new Error(hb);return f.name=f.message,f}function Vft(f){return f?new Error(`Illegal argument: ${f}`):new Error("Illegal argument")}function jft(f){return f?new Error(`Illegal state: ${f}`):new Error("Illegal state")}class Wft extends null{constructor(p){super("NotSupported"),p&&(this.message=p)}}class EI extends Error{constructor(p){super(p),this.name="CodeExpectedError"}static fromError(p){if(p instanceof EI)return p;const b=new EI;return b.message=p.message,b.stack=p.stack,b}static isErrorNoTelemetry(p){return p.name==="CodeExpectedError"}}class Z2 extends Error{constructor(p){super(p||"An unexpected bug occurred."),Object.setPrototypeOf(this,Z2.prototype)}}function jRe(f){const p=this;let b=!1,D;return function(){return b||(b=!0,D=f.apply(p,arguments)),D}}var _7;(function(f){function p($t){return $t&&typeof $t=="object"&&typeof $t[Symbol.iterator]=="function"}f.is=p;const b=Object.freeze([]);function D(){return b}f.empty=D;function*B($t){yield $t}f.single=B;function $($t){return p($t)?$t:B($t)}f.wrap=$;function pe($t){return $t||b}f.from=pe;function*ke($t){for(let yi=$t.length-1;yi>=0;yi--)yield $t[yi]}f.reverse=ke;function qe($t){return!$t||$t[Symbol.iterator]().next().done===!0}f.isEmpty=qe;function ge($t){return $t[Symbol.iterator]().next().value}f.first=ge;function Ie($t,yi){for(const ii of $t)if(yi(ii))return!0;return!1}f.some=Ie;function xt($t,yi){for(const ii of $t)if(yi(ii))return ii}f.find=xt;function*qt($t,yi){for(const ii of $t)yi(ii)&&(yield ii)}f.filter=qt;function*Xn($t,yi){let ii=0;for(const va of $t)yield yi(va,ii++)}f.map=Xn;function*fr(...$t){for(const yi of $t)for(const ii of yi)yield ii}f.concat=fr;function zn($t,yi,ii){let va=ii;for(const Mo of $t)va=yi(va,Mo);return va}f.reduce=zn;function*sa($t,yi,ii=$t.length){for(yi<0&&(yi+=$t.length),ii<0?ii+=$t.length:ii>$t.length&&(ii=$t.length);yi<ii;yi++)yield $t[yi]}f.slice=sa;function Qn($t,yi=Number.POSITIVE_INFINITY){const ii=[];if(yi===0)return[ii,$t];const va=$t[Symbol.iterator]();for(let Mo=0;Mo<yi;Mo++){const Fr=va.next();if(Fr.done)return[ii,f.empty()];ii.push(Fr.value)}return[ii,{[Symbol.iterator](){return va}}]}f.consume=Qn})(_7||(_7={}));const WRe=!1;let Th=null;function HRe(f){Th=f}if(WRe){const f="__is_disposable_tracked__";HRe(new class{trackDisposable(p){const b=new Error("Potentially leaked disposable").stack;setTimeout(()=>{p[f]||console.log(b)},3e3)}setParent(p,b){if(p&&p!==OA.None)try{p[f]=!0}catch(D){}}markAsDisposed(p){if(p&&p!==OA.None)try{p[f]=!0}catch(b){}}markAsSingleton(p){}})}function Aw(f){return Th==null||Th.trackDisposable(f),f}function Cw(f){Th==null||Th.markAsDisposed(f)}function p7(f,p){Th==null||Th.setParent(f,p)}function zRe(f,p){if(Th)for(const b of f)Th.setParent(b,p)}function Hft(f){return Th==null||Th.markAsSingleton(f),f}function zft(f){return typeof f.dispose=="function"&&f.dispose.length===0}function rW(f){if(_7.is(f)){const p=[];for(const b of f)if(b)try{b.dispose()}catch(D){p.push(D)}if(p.length===1)throw p[0];if(p.length>1)throw new AggregateError(p,"Encountered errors while disposing of store");return Array.isArray(f)?[]:f}else if(f)return f.dispose(),f}function qRe(...f){const p=Lw(()=>rW(f));return zRe(f,p),p}function Lw(f){const p=Aw({dispose:jRe(()=>{Cw(p),f()})});return p}class TI{constructor(){this._toDispose=new Set,this._isDisposed=!1,Aw(this)}dispose(){this._isDisposed||(Cw(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{rW(this._toDispose)}finally{this._toDispose.clear()}}add(p){if(!p)return p;if(p===this)throw new Error("Cannot register a disposable on itself!");return p7(p,this),this._isDisposed?TI.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(p),p}deleteAndLeak(p){p&&this._toDispose.has(p)&&(this._toDispose.delete(p),p7(p,null))}}TI.DISABLE_DISPOSED_WARNING=!1;class OA{constructor(){this._store=new TI,Aw(this),p7(this._store,this)}dispose(){Cw(this),this._store.dispose()}_register(p){if(p===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(p)}}OA.None=Object.freeze({dispose(){}});class qft{constructor(){this._isDisposed=!1,Aw(this)}get value(){return this._isDisposed?void 0:this._value}set value(p){var b;this._isDisposed||p===this._value||((b=this._value)===null||b===void 0||b.dispose(),p&&p7(p,this),this._value=p)}clear(){this.value=void 0}dispose(){var p;this._isDisposed=!0,Cw(this),(p=this._value)===null||p===void 0||p.dispose(),this._value=void 0}}class Jft{constructor(p){this._disposable=p,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class Kft{constructor(p){this.object=p}dispose(){}}class Xft{constructor(){this._store=new Map,this._isDisposed=!1,Aw(this)}dispose(){Cw(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{rW(this._store.values())}finally{this._store.clear()}}get(p){return this._store.get(p)}set(p,b,D=!1){var B;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),D||(B=this._store.get(p))===null||B===void 0||B.dispose(),this._store.set(p,b)}deleteAndDispose(p){var b;(b=this._store.get(p))===null||b===void 0||b.dispose(),this._store.delete(p)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}class Gu{constructor(p){this.element=p,this.next=Gu.Undefined,this.prev=Gu.Undefined}}Gu.Undefined=new Gu(void 0);class JRe{constructor(){this._first=Gu.Undefined,this._last=Gu.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Gu.Undefined}clear(){let p=this._first;for(;p!==Gu.Undefined;){const b=p.next;p.prev=Gu.Undefined,p.next=Gu.Undefined,p=b}this._first=Gu.Undefined,this._last=Gu.Undefined,this._size=0}unshift(p){return this._insert(p,!1)}push(p){return this._insert(p,!0)}_insert(p,b){const D=new Gu(p);if(this._first===Gu.Undefined)this._first=D,this._last=D;else if(b){const $=this._last;this._last=D,D.prev=$,$.next=D}else{const $=this._first;this._first=D,D.next=$,$.prev=D}this._size+=1;let B=!1;return()=>{B||(B=!0,this._remove(D))}}shift(){if(this._first!==Gu.Undefined){const p=this._first.element;return this._remove(this._first),p}}pop(){if(this._last!==Gu.Undefined){const p=this._last.element;return this._remove(this._last),p}}_remove(p){if(p.prev!==Gu.Undefined&&p.next!==Gu.Undefined){const b=p.prev;b.next=p.next,p.next.prev=b}else p.prev===Gu.Undefined&&p.next===Gu.Undefined?(this._first=Gu.Undefined,this._last=Gu.Undefined):p.next===Gu.Undefined?(this._last=this._last.prev,this._last.next=Gu.Undefined):p.prev===Gu.Undefined&&(this._first=this._first.next,this._first.prev=Gu.Undefined);this._size-=1}*[Symbol.iterator](){let p=this._first;for(;p!==Gu.Undefined;)yield p.element,p=p.next}}const KRe=globalThis.performance&&typeof globalThis.performance.now=="function";class m7{static create(p){return new m7(p)}constructor(p){this._now=KRe&&p===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}const Ele=!1,XRe=!1;var h7;(function(f){f.None=()=>OA.None;function p(Ta){if(XRe){const{onDidAddListener:Pt}=Ta,Ua=Iw.create();let Ui=0;Ta.onDidAddListener=()=>{++Ui===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),Ua.print()),Pt==null||Pt()}}}function b(Ta,Pt){return qt(Ta,()=>{},0,void 0,!0,void 0,Pt)}f.defer=b;function D(Ta){return(Pt,Ua=null,Ui)=>{let Ha=!1,ji;return ji=Ta(bc=>{if(!Ha)return ji?ji.dispose():Ha=!0,Pt.call(Ua,bc)},null,Ui),Ha&&ji.dispose(),ji}}f.once=D;function B(Ta,Pt,Ua){return Ie((Ui,Ha=null,ji)=>Ta(bc=>Ui.call(Ha,Pt(bc)),null,ji),Ua)}f.map=B;function $(Ta,Pt,Ua){return Ie((Ui,Ha=null,ji)=>Ta(bc=>{Pt(bc),Ui.call(Ha,bc)},null,ji),Ua)}f.forEach=$;function pe(Ta,Pt,Ua){return Ie((Ui,Ha=null,ji)=>Ta(bc=>Pt(bc)&&Ui.call(Ha,bc),null,ji),Ua)}f.filter=pe;function ke(Ta){return Ta}f.signal=ke;function qe(...Ta){return(Pt,Ua=null,Ui)=>{const Ha=qRe(...Ta.map(ji=>ji(bc=>Pt.call(Ua,bc))));return xt(Ha,Ui)}}f.any=qe;function ge(Ta,Pt,Ua,Ui){let Ha=Ua;return B(Ta,ji=>(Ha=Pt(Ha,ji),Ha),Ui)}f.reduce=ge;function Ie(Ta,Pt){let Ua;const Ui={onWillAddFirstListener(){Ua=Ta(Ha.fire,Ha)},onDidRemoveLastListener(){Ua==null||Ua.dispose()}};Pt||p(Ui);const Ha=new hy(Ui);return Pt==null||Pt.add(Ha),Ha.event}function xt(Ta,Pt){return Pt instanceof Array?Pt.push(Ta):Pt&&Pt.add(Ta),Ta}function qt(Ta,Pt,Ua=100,Ui=!1,Ha=!1,ji,bc){let xp,U_,bb,ua=0,yy;const M7={leakWarningThreshold:ji,onWillAddFirstListener(){xp=Ta(wv=>{ua++,U_=Pt(U_,wv),Ui&&!bb&&(Eb.fire(U_),U_=void 0),yy=()=>{const KW=U_;U_=void 0,bb=void 0,(!Ui||ua>1)&&Eb.fire(KW),ua=0},typeof Ua=="number"?(clearTimeout(bb),bb=setTimeout(yy,Ua)):bb===void 0&&(bb=0,queueMicrotask(yy))})},onWillRemoveListener(){Ha&&ua>0&&(yy==null||yy())},onDidRemoveLastListener(){yy=void 0,xp.dispose()}};bc||p(M7);const Eb=new hy(M7);return bc==null||bc.add(Eb),Eb.event}f.debounce=qt;function Xn(Ta,Pt=0,Ua){return f.debounce(Ta,(Ui,Ha)=>Ui?(Ui.push(Ha),Ui):[Ha],Pt,void 0,!0,void 0,Ua)}f.accumulate=Xn;function fr(Ta,Pt=(Ui,Ha)=>Ui===Ha,Ua){let Ui=!0,Ha;return pe(Ta,ji=>{const bc=Ui||!Pt(ji,Ha);return Ui=!1,Ha=ji,bc},Ua)}f.latch=fr;function zn(Ta,Pt,Ua){return[f.filter(Ta,Pt,Ua),f.filter(Ta,Ui=>!Pt(Ui),Ua)]}f.split=zn;function sa(Ta,Pt=!1,Ua=[],Ui){let Ha=Ua.slice(),ji=Ta(U_=>{Ha?Ha.push(U_):xp.fire(U_)});Ui&&Ui.add(ji);const bc=()=>{Ha==null||Ha.forEach(U_=>xp.fire(U_)),Ha=null},xp=new hy({onWillAddFirstListener(){ji||(ji=Ta(U_=>xp.fire(U_)),Ui&&Ui.add(ji))},onDidAddFirstListener(){Ha&&(Pt?setTimeout(bc):bc())},onDidRemoveLastListener(){ji&&ji.dispose(),ji=null}});return Ui&&Ui.add(xp),xp.event}f.buffer=sa;function Qn(Ta,Pt){return(Ui,Ha,ji)=>{const bc=Pt(new yi);return Ta(function(xp){const U_=bc.evaluate(xp);U_!==$t&&Ui.call(Ha,U_)},void 0,ji)}}f.chain=Qn;const $t=Symbol("HaltChainable");class yi{constructor(){this.steps=[]}map(Pt){return this.steps.push(Pt),this}forEach(Pt){return this.steps.push(Ua=>(Pt(Ua),Ua)),this}filter(Pt){return this.steps.push(Ua=>Pt(Ua)?Ua:$t),this}reduce(Pt,Ua){let Ui=Ua;return this.steps.push(Ha=>(Ui=Pt(Ui,Ha),Ui)),this}latch(Pt=(Ua,Ui)=>Ua===Ui){let Ua=!0,Ui;return this.steps.push(Ha=>{const ji=Ua||!Pt(Ha,Ui);return Ua=!1,Ui=Ha,ji?Ha:$t}),this}evaluate(Pt){for(const Ua of this.steps)if(Pt=Ua(Pt),Pt===$t)break;return Pt}}function ii(Ta,Pt,Ua=Ui=>Ui){const Ui=(...xp)=>bc.fire(Ua(...xp)),Ha=()=>Ta.on(Pt,Ui),ji=()=>Ta.removeListener(Pt,Ui),bc=new hy({onWillAddFirstListener:Ha,onDidRemoveLastListener:ji});return bc.event}f.fromNodeEventEmitter=ii;function va(Ta,Pt,Ua=Ui=>Ui){const Ui=(...xp)=>bc.fire(Ua(...xp)),Ha=()=>Ta.addEventListener(Pt,Ui),ji=()=>Ta.removeEventListener(Pt,Ui),bc=new hy({onWillAddFirstListener:Ha,onDidRemoveLastListener:ji});return bc.event}f.fromDOMEventEmitter=va;function Mo(Ta){return new Promise(Pt=>D(Ta)(Pt))}f.toPromise=Mo;function Fr(Ta){const Pt=new hy;return Ta.then(Ua=>{Pt.fire(Ua)},()=>{Pt.fire(void 0)}).finally(()=>{Pt.dispose()}),Pt.event}f.fromPromise=Fr;function Jo(Ta,Pt){return Pt(void 0),Ta(Ua=>Pt(Ua))}f.runAndSubscribe=Jo;function Lc(Ta,Pt){let Ua=null;function Ui(ji){Ua==null||Ua.dispose(),Ua=new TI,Pt(ji,Ua)}Ui(void 0);const Ha=Ta(ji=>Ui(ji));return Lw(()=>{Ha.dispose(),Ua==null||Ua.dispose()})}f.runAndSubscribeWithStore=Lc;class Hc{constructor(Pt,Ua){this._observable=Pt,this._counter=0,this._hasChanged=!1;const Ui={onWillAddFirstListener:()=>{Pt.addObserver(this)},onDidRemoveLastListener:()=>{Pt.removeObserver(this)}};Ua||p(Ui),this.emitter=new hy(Ui),Ua&&Ua.add(this.emitter)}beginUpdate(Pt){this._counter++}handlePossibleChange(Pt){}handleChange(Pt,Ua){this._hasChanged=!0}endUpdate(Pt){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function ur(Ta,Pt){return new Hc(Ta,Pt).emitter.event}f.fromObservable=ur;function Ws(Ta){return Pt=>{let Ua=0,Ui=!1;const Ha={beginUpdate(){Ua++},endUpdate(){Ua--,Ua===0&&(Ta.reportChanges(),Ui&&(Ui=!1,Pt()))},handlePossibleChange(){},handleChange(){Ui=!0}};return Ta.addObserver(Ha),Ta.reportChanges(),{dispose(){Ta.removeObserver(Ha)}}}}f.fromObservableLight=Ws})(h7||(h7={}));class SI{constructor(p){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${p}_${SI._idPool++}`,SI.all.add(this)}start(p){this._stopWatch=new m7,this.listenerCount=p}stop(){if(this._stopWatch){const p=this._stopWatch.elapsed();this.durations.push(p),this.elapsedOverall+=p,this.invocationCount+=1,this._stopWatch=void 0}}}SI.all=new Set,SI._idPool=0;let Tle=-1;class YRe{constructor(p,b=Math.random().toString(18).slice(2,5)){this.threshold=p,this.name=b,this._warnCountdown=0}dispose(){var p;(p=this._stacks)===null||p===void 0||p.clear()}check(p,b){const D=this.threshold;if(D<=0||b<D)return;this._stacks||(this._stacks=new Map);const B=this._stacks.get(p.value)||0;if(this._stacks.set(p.value,B+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=D*.5;let $,pe=0;for(const[ke,qe]of this._stacks)(!$||pe<qe)&&($=ke,pe=qe);console.warn(`[${this.name}] potential listener LEAK detected, having ${b} listeners already. MOST frequent listener (${pe}):`),console.warn($)}return()=>{const $=this._stacks.get(p.value)||0;this._stacks.set(p.value,$-1)}}}class Iw{static create(){var p;return new Iw((p=new Error().stack)!==null&&p!==void 0?p:"")}constructor(p){this.value=p}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}class g7{constructor(p){this.value=p}}const $Re=2,QRe=(f,p)=>{if(f instanceof g7)p(f);else for(let b=0;b<f.length;b++){const D=f[b];D&&p(D)}};class hy{constructor(p){var b,D,B,$,pe;this._size=0,this._options=p,this._leakageMon=Tle>0||!((b=this._options)===null||b===void 0)&&b.leakWarningThreshold?new YRe((B=(D=this._options)===null||D===void 0?void 0:D.leakWarningThreshold)!==null&&B!==void 0?B:Tle):void 0,this._perfMon=!(($=this._options)===null||$===void 0)&&$._profName?new SI(this._options._profName):void 0,this._deliveryQueue=(pe=this._options)===null||pe===void 0?void 0:pe.deliveryQueue}dispose(){var p,b,D,B;if(!this._disposed){if(this._disposed=!0,((p=this._deliveryQueue)===null||p===void 0?void 0:p.current)===this&&this._deliveryQueue.reset(),this._listeners){if(Ele){const $=this._listeners;queueMicrotask(()=>{QRe($,pe=>{var ke;return(ke=pe.stack)===null||ke===void 0?void 0:ke.print()})})}this._listeners=void 0,this._size=0}(D=(b=this._options)===null||b===void 0?void 0:b.onDidRemoveLastListener)===null||D===void 0||D.call(b),(B=this._leakageMon)===null||B===void 0||B.dispose()}}get event(){var p;return(p=this._event)!==null&&p!==void 0||(this._event=(b,D,B)=>{var $,pe,ke,qe,ge;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),OA.None;if(this._disposed)return OA.None;D&&(b=b.bind(D));const Ie=new g7(b);let xt,qt;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(Ie.stack=Iw.create(),xt=this._leakageMon.check(Ie.stack,this._size+1)),Ele&&(Ie.stack=qt!=null?qt:Iw.create()),this._listeners?this._listeners instanceof g7?((ge=this._deliveryQueue)!==null&&ge!==void 0||(this._deliveryQueue=new Sle),this._listeners=[this._listeners,Ie]):this._listeners.push(Ie):((pe=($=this._options)===null||$===void 0?void 0:$.onWillAddFirstListener)===null||pe===void 0||pe.call($,this),this._listeners=Ie,(qe=(ke=this._options)===null||ke===void 0?void 0:ke.onDidAddFirstListener)===null||qe===void 0||qe.call(ke,this)),this._size++;const Xn=Lw(()=>{xt==null||xt(),this._removeListener(Ie)});return B instanceof TI?B.add(Xn):Array.isArray(B)&&B.push(Xn),Xn}),this._event}_removeListener(p){var b,D,B,$;if((D=(b=this._options)===null||b===void 0?void 0:b.onWillRemoveListener)===null||D===void 0||D.call(b,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,($=(B=this._options)===null||B===void 0?void 0:B.onDidRemoveLastListener)===null||$===void 0||$.call(B,this),this._size=0;return}const pe=this._listeners,ke=pe.indexOf(p);if(ke===-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--,pe[ke]=void 0;const qe=this._deliveryQueue.current===this;if(this._size*$Re<=pe.length){let ge=0;for(let Ie=0;Ie<pe.length;Ie++)pe[Ie]?pe[ge++]=pe[Ie]:qe&&(this._deliveryQueue.end--,ge<this._deliveryQueue.i&&this._deliveryQueue.i--);pe.length=ge}}_deliver(p,b){var D;if(!p)return;const B=((D=this._options)===null||D===void 0?void 0:D.onListenerError)||Iv;if(!B){p.value(b);return}try{p.value(b)}catch($){B($)}}_deliverQueue(p){const b=p.current._listeners;for(;p.i<p.end;)this._deliver(b[p.i++],p.value);p.reset()}fire(p){var b,D,B,$;if(!((b=this._deliveryQueue)===null||b===void 0)&&b.current&&(this._deliverQueue(this._deliveryQueue),(D=this._perfMon)===null||D===void 0||D.stop()),(B=this._perfMon)===null||B===void 0||B.start(this._size),this._listeners)if(this._listeners instanceof g7)this._deliver(this._listeners,p);else{const pe=this._deliveryQueue;pe.enqueue(this,p,this._listeners.length),this._deliverQueue(pe)}($=this._perfMon)===null||$===void 0||$.stop()}hasListeners(){return this._size>0}}const Yft=()=>new Sle;class Sle{constructor(){this.i=-1,this.end=0}enqueue(p,b,D){this.i=0,this.end=D,this.current=p,this.value=b}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class $ft extends null{constructor(p){super(p),this._isPaused=0,this._eventQueue=new LinkedList,this._mergeFn=p==null?void 0:p.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const p=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(p))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(p){this._size&&(this._isPaused!==0?this._eventQueue.push(p):super.fire(p))}}class Qft extends null{constructor(p){var b;super(p),this._delay=(b=p.delay)!==null&&b!==void 0?b:100}fire(p){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(p)}}class Zft extends null{constructor(p){super(p),this._queuedEvents=[],this._mergeFn=p==null?void 0:p.merge}fire(p){this.hasListeners()&&(this._queuedEvents.push(p),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(b=>super.fire(b)),this._queuedEvents=[]}))}}class e_t{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new hy({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(p){const b={event:p,listener:null};this.events.push(b),this.hasListeners&&this.hook(b);const D=()=>{this.hasListeners&&this.unhook(b);const B=this.events.indexOf(b);this.events.splice(B,1)};return toDisposable(createSingleCallFunction(D))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(p=>this.hook(p))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(p=>this.unhook(p))}hook(p){p.listener=p.event(b=>this.emitter.fire(b))}unhook(p){p.listener&&p.listener.dispose(),p.listener=null}dispose(){this.emitter.dispose()}}class t_t{constructor(){this.buffers=[]}wrapEvent(p){return(b,D,B)=>p($=>{const pe=this.buffers[this.buffers.length-1];pe?pe.push(()=>b.call(D,$)):b.call(D,$)},void 0,B)}bufferEvents(p){const b=[];this.buffers.push(b);const D=p();return this.buffers.pop(),b.forEach(B=>B()),D}}class n_t{constructor(){this.listening=!1,this.inputEvent=h7.None,this.inputEventListener=Disposable.None,this.emitter=new hy({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(p){this.inputEvent=p,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=p(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}function ZRe(f){if(!f||typeof f!="object"||f instanceof RegExp)return f;const p=Array.isArray(f)?[]:{};return Object.entries(f).forEach(([b,D])=>{p[b]=D&&typeof D=="object"?ZRe(D):D}),p}function r_t(f){if(!f||typeof f!="object")return f;const p=[f];for(;p.length>0;){const b=p.shift();Object.freeze(b);for(const D in b)if(xle.call(b,D)){const B=b[D];typeof B=="object"&&!Object.isFrozen(B)&&!isTypedArray(B)&&p.push(B)}}return f}const xle=Object.prototype.hasOwnProperty;function i_t(f,p){return iW(f,p,new Set)}function iW(f,p,b){if(isUndefinedOrNull(f))return f;const D=p(f);if(typeof D!="undefined")return D;if(Array.isArray(f)){const B=[];for(const $ of f)B.push(iW($,p,b));return B}if(isObject(f)){if(b.has(f))throw new Error("Cannot clone recursive data-structure");b.add(f);const B={};for(const $ in f)xle.call(f,$)&&(B[$]=iW(f[$],p,b));return b.delete(f),B}return f}function e6e(f,p,b=!0){return isObject(f)?(isObject(p)&&Object.keys(p).forEach(D=>{D in f?b&&(isObject(f[D])&&isObject(p[D])?e6e(f[D],p[D],b):f[D]=p[D]):f[D]=p[D]}),f):p}function aW(f,p){if(f===p)return!0;if(f==null||p===null||p===void 0||typeof f!=typeof p||typeof f!="object"||Array.isArray(f)!==Array.isArray(p))return!1;let b,D;if(Array.isArray(f)){if(f.length!==p.length)return!1;for(b=0;b<f.length;b++)if(!aW(f[b],p[b]))return!1}else{const B=[];for(D in f)B.push(D);B.sort();const $=[];for(D in p)$.push(D);if($.sort(),!aW(B,$))return!1;for(b=0;b<B.length;b++)if(!aW(f[B[b]],p[B[b]]))return!1}return!0}function t6e(f){let p=[];for(;Object.prototype!==f;)p=p.concat(Object.getOwnPropertyNames(f)),f=Object.getPrototypeOf(f);return p}function oW(f){const p=[];for(const b of t6e(f))typeof f[b]=="function"&&p.push(b);return p}function n6e(f,p){const b=B=>function(){const $=Array.prototype.slice.call(arguments,0);return p(B,$)},D={};for(const B of f)D[B]=b(B);return D}var Ale=function(f,p,b,D){function B($){return $ instanceof b?$:new b(function(pe){pe($)})}return new(b||(b=Promise))(function($,pe){function ke(Ie){try{ge(D.next(Ie))}catch(xt){pe(xt)}}function qe(Ie){try{ge(D.throw(Ie))}catch(xt){pe(xt)}}function ge(Ie){Ie.done?$(Ie.value):B(Ie.value).then(ke,qe)}ge((D=D.apply(f,p||[])).next())})};let Cle=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const r6e="i-default";function Lle(f,p){let b;return p.length===0?b=f:b=f.replace(/\{(\d+)\}/g,(D,B)=>{const $=B[0],pe=p[$];let ke=D;return typeof pe=="string"?ke=pe:(typeof pe=="number"||typeof pe=="boolean"||pe===void 0||pe===null)&&(ke=String(pe)),ke}),Cle&&(b="\uFF3B"+b.replace(/[aouei]/g,"$&$&")+"\uFF3D"),b}function i6e(f,p){let b=f[p];return b||(b=f["*"],b)?b:null}function sW(f){return f.charAt(f.length-1)==="/"?f:f+"/"}function Ile(f,p,b){return Ale(this,void 0,void 0,function*(){const D=sW(f)+sW(p)+"vscode/"+sW(b),B=yield fetch(D);if(B.ok)return yield B.json();throw new Error(`${B.status} - ${B.statusText}`)})}function lW(f){return function(p,b){const D=Array.prototype.slice.call(arguments,2);return Lle(f[p],D)}}function Uu(f,p,...b){return Lle(p,b)}function a_t(f){}function o_t(f){Cle=f}function s_t(f,p){var b;return{localize:lW(p[f]),getConfiguredDefaultLocale:(b=p.getConfiguredDefaultLocale)!==null&&b!==void 0?b:D=>{}}}function l_t(f,p,b,D){var B;const $=(B=D["vs/nls"])!==null&&B!==void 0?B:{};if(!f||f.length===0)return b({localize:Uu,getConfiguredDefaultLocale:()=>{var Ie;return(Ie=$.availableLanguages)===null||Ie===void 0?void 0:Ie["*"]}});const pe=$.availableLanguages?i6e($.availableLanguages,f):null,ke=pe===null||pe===r6e;let qe=".nls";ke||(qe=qe+"."+pe);const ge=Ie=>{Array.isArray(Ie)?Ie.localize=lW(Ie):Ie.localize=lW(Ie[f]),Ie.getConfiguredDefaultLocale=()=>{var xt;return(xt=$.availableLanguages)===null||xt===void 0?void 0:xt["*"]},b(Ie)};typeof $.loadBundle=="function"?$.loadBundle(f,pe,(Ie,xt)=>{Ie?p([f+".nls"],ge):ge(xt)}):$.translationServiceUrl&&!ke?Ale(this,void 0,void 0,function*(){var Ie;try{const xt=yield Ile($.translationServiceUrl,pe,f);return ge(xt)}catch(xt){if(!pe.includes("-"))return console.error(xt),p([f+".nls"],ge);try{const qt=pe.split("-")[0],Xn=yield Ile($.translationServiceUrl,qt,f);return(Ie=$.availableLanguages)!==null&&Ie!==void 0||($.availableLanguages={}),$.availableLanguages["*"]=qt,ge(Xn)}catch(qt){return console.error(qt),p([f+".nls"],ge)}}}):p([f+qe],ge,Ie=>{if(qe===".nls"){console.error("Failed trying to load default language strings",Ie);return}console.error(`Failed to load message bundle for language ${pe}. Falling back to the default language:`,Ie),p([f+".nls"],ge)})}var cW;const y7="en";let v7=!1,b7=!1,E7=!1,a6e=!1,o6e=!1,kle=!1,s6e=!1,l6e=!1,c6e=!1,u6e=!1,T7,uW=null,wle=null,d6e=null,Y0;const $0=typeof self=="object"?self:typeof dc.g=="object"?dc.g:{};let $p;typeof $0.vscode!="undefined"&&typeof $0.vscode.process!="undefined"?$p=$0.vscode.process:typeof process!="undefined"&&($p=process);const Dle=typeof((cW=$p==null?void 0:$p.versions)===null||cW===void 0?void 0:cW.electron)=="string",f6e=Dle&&($p==null?void 0:$p.type)==="renderer";if(typeof navigator=="object"&&!f6e)Y0=navigator.userAgent,v7=Y0.indexOf("Windows")>=0,b7=Y0.indexOf("Macintosh")>=0,l6e=(Y0.indexOf("Macintosh")>=0||Y0.indexOf("iPad")>=0||Y0.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,E7=Y0.indexOf("Linux")>=0,u6e=(Y0==null?void 0:Y0.indexOf("Mobi"))>=0,kle=!0,T7=(Uu({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||y7,uW=T7,wle=navigator.language;else if(typeof $p=="object"){v7=$p.platform==="win32",b7=$p.platform==="darwin",E7=$p.platform==="linux",a6e=E7&&!!$p.env.SNAP&&!!$p.env.SNAP_REVISION,s6e=Dle,c6e=!!$p.env.CI||!!$p.env.BUILD_ARTIFACTSTAGINGDIRECTORY,T7=y7,uW=y7;const f=$p.env.VSCODE_NLS_CONFIG;if(f)try{const p=JSON.parse(f),b=p.availableLanguages["*"];T7=p.locale,wle=p.osLocale,uW=b||y7,d6e=p._translationsConfigFile}catch(p){}o6e=!0}else console.error("Unable to resolve platform.");let dW=0;b7?dW=1:v7?dW=3:E7&&(dW=2);const kw=v7,_6e=b7,c_t=null,u_t=null,d_t=null,f_t=kle&&typeof $0.importScripts=="function",__t=null,p_t=null,gb=Y0,m_t=null,p6e=typeof $0.postMessage=="function"&&!$0.importScripts,h_t=(()=>{if(p6e){const f=[];$0.addEventListener("message",b=>{if(b.data&&b.data.vscodeScheduleAsyncWork)for(let D=0,B=f.length;D<B;D++){const $=f[D];if($.id===b.data.vscodeScheduleAsyncWork){f.splice(D,1),$.callback();return}}});let p=0;return b=>{const D=++p;f.push({id:D,callback:b}),$0.postMessage({vscodeScheduleAsyncWork:D},"*")}}return f=>setTimeout(f)})(),g_t=null;let Rle=!0,Nle=!1;function y_t(){if(!Nle){Nle=!0;const f=new Uint8Array(2);f[0]=1,f[1]=2,Rle=new Uint16Array(f.buffer)[0]===512+1}return Rle}const m6e=!!(gb&&gb.indexOf("Chrome")>=0),v_t=!!(gb&&gb.indexOf("Firefox")>=0),b_t=!!(!m6e&&gb&&gb.indexOf("Safari")>=0),E_t=!!(gb&&gb.indexOf("Edg/")>=0),T_t=!!(gb&&gb.indexOf("Android")>=0);class h6e{constructor(p){this.fn=p,this.lastCache=void 0,this.lastArgKey=void 0}get(p){const b=JSON.stringify(p);return this.lastArgKey!==b&&(this.lastArgKey=b,this.lastCache=this.fn(p)),this.lastCache}}class S_t{get cachedValues(){return this._map}constructor(p){this.fn=p,this._map=new Map}get(p){if(this._map.has(p))return this._map.get(p);const b=this.fn(p);return this._map.set(p,b),b}}class Ole{constructor(p){this.executor=p,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(p){this._error=p}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var xI;function x_t(f){return!f||typeof f!="string"?!0:f.trim().length===0}const g6e=/{(\d+)}/g;function A_t(f,...p){return p.length===0?f:f.replace(g6e,function(b,D){const B=parseInt(D,10);return isNaN(B)||B<0||B>=p.length?b:p[B]})}function C_t(f){return f.replace(/[<>&]/g,function(p){switch(p){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return p}})}function Mle(f){return f.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function L_t(f,p=" "){const b=y6e(f,p);return v6e(b,p)}function y6e(f,p){if(!f||!p)return f;const b=p.length;if(b===0||f.length===0)return f;let D=0;for(;f.indexOf(p,D)===D;)D=D+b;return f.substring(D)}function v6e(f,p){if(!f||!p)return f;const b=p.length,D=f.length;if(b===0||D===0)return f;let B=D,$=-1;for(;$=f.lastIndexOf(p,B-1),!($===-1||$+b!==B);){if($===0)return"";B=$}return f.substring(0,B)}function I_t(f){return f.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function k_t(f){return f.replace(/\*/g,"")}function w_t(f,p,b={}){if(!f)throw new Error("Cannot create regex from empty string");p||(f=Mle(f)),b.wholeWord&&(/\B/.test(f.charAt(0))||(f="\\b"+f),/\B/.test(f.charAt(f.length-1))||(f=f+"\\b"));let D="";return b.global&&(D+="g"),b.matchCase||(D+="i"),b.multiline&&(D+="m"),b.unicode&&(D+="u"),new RegExp(f,D)}function D_t(f){return f.source==="^"||f.source==="^$"||f.source==="$"||f.source==="^\\s*$"?!1:!!(f.exec("")&&f.lastIndex===0)}function b6e(f){return f.split(/\r\n|\r|\n/)}function E6e(f){for(let p=0,b=f.length;p<b;p++){const D=f.charCodeAt(p);if(D!==32&&D!==9)return p}return-1}function R_t(f,p=0,b=f.length){for(let D=p;D<b;D++){const B=f.charCodeAt(D);if(B!==32&&B!==9)return f.substring(p,D)}return f.substring(p,b)}function T6e(f,p=f.length-1){for(let b=p;b>=0;b--){const D=f.charCodeAt(b);if(D!==32&&D!==9)return b}return-1}function N_t(f,p){return f<p?-1:f>p?1:0}function S6e(f,p,b=0,D=f.length,B=0,$=p.length){for(;b<D&&B<$;b++,B++){const qe=f.charCodeAt(b),ge=p.charCodeAt(B);if(qe<ge)return-1;if(qe>ge)return 1}const pe=D-b,ke=$-B;return pe<ke?-1:pe>ke?1:0}function O_t(f,p){return fW(f,p,0,f.length,0,p.length)}function fW(f,p,b=0,D=f.length,B=0,$=p.length){for(;b<D&&B<$;b++,B++){let qe=f.charCodeAt(b),ge=p.charCodeAt(B);if(qe===ge)continue;if(qe>=128||ge>=128)return S6e(f.toLowerCase(),p.toLowerCase(),b,D,B,$);Ple(qe)&&(qe-=32),Ple(ge)&&(ge-=32);const Ie=qe-ge;if(Ie!==0)return Ie}const pe=D-b,ke=$-B;return pe<ke?-1:pe>ke?1:0}function M_t(f){return f>=48&&f<=57}function Ple(f){return f>=97&&f<=122}function Fle(f){return f>=65&&f<=90}function P_t(f,p){return f.length===p.length&&fW(f,p)===0}function F_t(f,p){const b=p.length;return p.length>f.length?!1:fW(f,p,0,b)===0}function B_t(f,p){const b=Math.min(f.length,p.length);let D;for(D=0;D<b;D++)if(f.charCodeAt(D)!==p.charCodeAt(D))return D;return b}function G_t(f,p){const b=Math.min(f.length,p.length);let D;const B=f.length-1,$=p.length-1;for(D=0;D<b;D++)if(f.charCodeAt(B-D)!==p.charCodeAt($-D))return D;return b}function ww(f){return 55296<=f&&f<=56319}function Dw(f){return 56320<=f&&f<=57343}function _W(f,p){return(f-55296<<10)+(p-56320)+65536}function Ble(f,p,b){const D=f.charCodeAt(b);if(ww(D)&&b+1<p){const B=f.charCodeAt(b+1);if(Dw(B))return _W(D,B)}return D}function x6e(f,p){const b=f.charCodeAt(p-1);if(Dw(b)&&p>1){const D=f.charCodeAt(p-2);if(ww(D))return _W(D,b)}return b}class pW{get offset(){return this._offset}constructor(p,b=0){this._str=p,this._len=p.length,this._offset=b}setOffset(p){this._offset=p}prevCodePoint(){const p=x6e(this._str,this._offset);return this._offset-=p>=65536?2:1,p}nextCodePoint(){const p=Ble(this._str,this._len,this._offset);return this._offset+=p>=65536?2:1,p}eol(){return this._offset>=this._len}}class Gle{get offset(){return this._iterator.offset}constructor(p,b=0){this._iterator=new pW(p,b)}nextGraphemeLength(){const p=eS.getInstance(),b=this._iterator,D=b.offset;let B=p.getGraphemeBreakType(b.nextCodePoint());for(;!b.eol();){const $=b.offset,pe=p.getGraphemeBreakType(b.nextCodePoint());if(Ule(B,pe)){b.setOffset($);break}B=pe}return b.offset-D}prevGraphemeLength(){const p=eS.getInstance(),b=this._iterator,D=b.offset;let B=p.getGraphemeBreakType(b.prevCodePoint());for(;b.offset>0;){const $=b.offset,pe=p.getGraphemeBreakType(b.prevCodePoint());if(Ule(pe,B)){b.setOffset($);break}B=pe}return D-b.offset}eol(){return this._iterator.eol()}}function A6e(f,p){return new Gle(f,p).nextGraphemeLength()}function C6e(f,p){return new Gle(f,p).prevGraphemeLength()}function U_t(f,p){p>0&&Dw(f.charCodeAt(p))&&p--;const b=p+A6e(f,p);return[b-C6e(f,b),b]}let mW=null;function L6e(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function V_t(f){return mW||(mW=L6e()),mW.test(f)}const I6e=/^[\t\n\r\x20-\x7E]*$/;function k6e(f){return I6e.test(f)}const w6e=/[\u2028\u2029]/;function j_t(f){return w6e.test(f)}function W_t(f){return f>=11904&&f<=55215||f>=63744&&f<=64255||f>=65281&&f<=65374}function D6e(f){return f>=127462&&f<=127487||f===8986||f===8987||f===9200||f===9203||f>=9728&&f<=10175||f===11088||f===11093||f>=127744&&f<=128591||f>=128640&&f<=128764||f>=128992&&f<=129008||f>=129280&&f<=129535||f>=129648&&f<=129782}const H_t=String.fromCharCode(65279);function z_t(f){return!!(f&&f.length>0&&f.charCodeAt(0)===65279)}function q_t(f,p=!1){return f?(p&&(f=f.replace(/\\./g,"")),f.toLowerCase()!==f):!1}function J_t(f){return f=f%(2*26),f<26?String.fromCharCode(97+f):String.fromCharCode(65+f-26)}function Ule(f,p){return f===0?p!==5&&p!==7:f===2&&p===3?!1:f===4||f===2||f===3||p===4||p===2||p===3?!0:!(f===8&&(p===8||p===9||p===11||p===12)||(f===11||f===9)&&(p===9||p===10)||(f===12||f===10)&&p===10||p===5||p===13||p===7||f===1||f===13&&p===14||f===6&&p===6)}class eS{static getInstance(){return eS._INSTANCE||(eS._INSTANCE=new eS),eS._INSTANCE}constructor(){this._data=R6e()}getGraphemeBreakType(p){if(p<32)return p===10?3:p===13?2:4;if(p<127)return 0;const b=this._data,D=b.length/3;let B=1;for(;B<=D;)if(p<b[3*B])B=2*B;else if(p>b[3*B+1])B=2*B+1;else return b[3*B+2];return 0}}eS._INSTANCE=null;function R6e(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function K_t(f,p){if(f===0)return 0;const b=N6e(f,p);if(b!==void 0)return b;const D=new pW(p,f);return D.prevCodePoint(),D.offset}function N6e(f,p){const b=new pW(p,f);let D=b.prevCodePoint();for(;O6e(D)||D===65039||D===8419;){if(b.offset===0)return;D=b.prevCodePoint()}if(!D6e(D))return;let B=b.offset;return B>0&&b.prevCodePoint()===8205&&(B=b.offset),B}function O6e(f){return 127995<=f&&f<=127999}const X_t="\xA0";class MA{static getInstance(p){return xI.cache.get(Array.from(p))}static getLocales(){return xI._locales.value}constructor(p){this.confusableDictionary=p}isAmbiguous(p){return this.confusableDictionary.has(p)}getPrimaryConfusable(p){return this.confusableDictionary.get(p)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}xI=MA,MA.ambiguousCharacterData=new Ole(()=>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]}')),MA.cache=new h6e(f=>{function p(ge){const Ie=new Map;for(let xt=0;xt<ge.length;xt+=2)Ie.set(ge[xt],ge[xt+1]);return Ie}function b(ge,Ie){const xt=new Map(ge);for(const[qt,Xn]of Ie)xt.set(qt,Xn);return xt}function D(ge,Ie){if(!ge)return Ie;const xt=new Map;for(const[qt,Xn]of ge)Ie.has(qt)&&xt.set(qt,Xn);return xt}const B=xI.ambiguousCharacterData.value;let $=f.filter(ge=>!ge.startsWith("_")&&ge in B);$.length===0&&($=["_default"]);let pe;for(const ge of $){const Ie=p(B[ge]);pe=D(pe,Ie)}const ke=p(B._common),qe=b(ke,pe);return new xI(qe)}),MA._locales=new Ole(()=>Object.keys(xI.ambiguousCharacterData.value).filter(f=>!f.startsWith("_")));class tS{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(tS.getRawData())),this._data}static isInvisibleCharacter(p){return tS.getData().has(p)}static get codePoints(){return tS.getData()}}tS._data=void 0;const Vle="$initialize";let jle=!1;function Y_t(f){isWeb&&(jle||(jle=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(f.message))}class M6e{constructor(p,b,D,B){this.vsWorker=p,this.req=b,this.method=D,this.args=B,this.type=0}}class Wle{constructor(p,b,D,B){this.vsWorker=p,this.seq=b,this.res=D,this.err=B,this.type=1}}class P6e{constructor(p,b,D,B){this.vsWorker=p,this.req=b,this.eventName=D,this.arg=B,this.type=2}}class F6e{constructor(p,b,D){this.vsWorker=p,this.req=b,this.event=D,this.type=3}}class B6e{constructor(p,b){this.vsWorker=p,this.req=b,this.type=4}}class Hle{constructor(p){this._workerId=-1,this._handler=p,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(p){this._workerId=p}sendMessage(p,b){const D=String(++this._lastSentReq);return new Promise((B,$)=>{this._pendingReplies[D]={resolve:B,reject:$},this._send(new M6e(this._workerId,D,p,b))})}listen(p,b){let D=null;const B=new hy({onWillAddFirstListener:()=>{D=String(++this._lastSentReq),this._pendingEmitters.set(D,B),this._send(new P6e(this._workerId,D,p,b))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(D),this._send(new B6e(this._workerId,D)),D=null}});return B.event}handleMessage(p){!p||!p.vsWorker||this._workerId!==-1&&p.vsWorker!==this._workerId||this._handleMessage(p)}_handleMessage(p){switch(p.type){case 1:return this._handleReplyMessage(p);case 0:return this._handleRequestMessage(p);case 2:return this._handleSubscribeEventMessage(p);case 3:return this._handleEventMessage(p);case 4:return this._handleUnsubscribeEventMessage(p)}}_handleReplyMessage(p){if(!this._pendingReplies[p.seq]){console.warn("Got reply to unknown seq");return}const b=this._pendingReplies[p.seq];if(delete this._pendingReplies[p.seq],p.err){let D=p.err;p.err.$isError&&(D=new Error,D.name=p.err.name,D.message=p.err.message,D.stack=p.err.stack),b.reject(D);return}b.resolve(p.res)}_handleRequestMessage(p){const b=p.req;this._handler.handleMessage(p.method,p.args).then(B=>{this._send(new Wle(this._workerId,b,B,void 0))},B=>{B.detail instanceof Error&&(B.detail=mb(B.detail)),this._send(new Wle(this._workerId,b,void 0,mb(B)))})}_handleSubscribeEventMessage(p){const b=p.req,D=this._handler.handleEvent(p.eventName,p.arg)(B=>{this._send(new F6e(this._workerId,b,B))});this._pendingEvents.set(b,D)}_handleEventMessage(p){if(!this._pendingEmitters.has(p.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(p.req).fire(p.event)}_handleUnsubscribeEventMessage(p){if(!this._pendingEvents.has(p.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(p.req).dispose(),this._pendingEvents.delete(p.req)}_send(p){const b=[];if(p.type===0)for(let D=0;D<p.args.length;D++)p.args[D]instanceof ArrayBuffer&&b.push(p.args[D]);else p.type===1&&p.res instanceof ArrayBuffer&&b.push(p.res);this._handler.sendMessage(p,b)}}class $_t extends null{constructor(p,b,D){super();let B=null;this._worker=this._register(p.create("vs/base/common/worker/simpleWorker",Ie=>{this._protocol.handleMessage(Ie)},Ie=>{B==null||B(Ie)})),this._protocol=new Hle({sendMessage:(Ie,xt)=>{this._worker.postMessage(Ie,xt)},handleMessage:(Ie,xt)=>{if(typeof D[Ie]!="function")return Promise.reject(new Error("Missing method "+Ie+" on main thread host."));try{return Promise.resolve(D[Ie].apply(D,xt))}catch(qt){return Promise.reject(qt)}},handleEvent:(Ie,xt)=>{if(gW(Ie)){const qt=D[Ie].call(D,xt);if(typeof qt!="function")throw new Error(`Missing dynamic event ${Ie} on main thread host.`);return qt}if(hW(Ie)){const qt=D[Ie];if(typeof qt!="function")throw new Error(`Missing event ${Ie} on main thread host.`);return qt}throw new Error(`Malformed event name ${Ie}`)}}),this._protocol.setWorkerId(this._worker.getId());let $=null;const pe=globalThis.require;typeof pe!="undefined"&&typeof pe.getConfig=="function"?$=pe.getConfig():typeof globalThis.requirejs!="undefined"&&($=globalThis.requirejs.s.contexts._.config);const ke=getAllMethodNames(D);this._onModuleLoaded=this._protocol.sendMessage(Vle,[this._worker.getId(),JSON.parse(JSON.stringify($)),b,ke]);const qe=(Ie,xt)=>this._request(Ie,xt),ge=(Ie,xt)=>this._protocol.listen(Ie,xt);this._lazyProxy=new Promise((Ie,xt)=>{B=xt,this._onModuleLoaded.then(qt=>{Ie(zle(qt,qe,ge))},qt=>{xt(qt),this._onError("Worker failed to load "+b,qt)})})}getProxyObject(){return this._lazyProxy}_request(p,b){return new Promise((D,B)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(p,b).then(D,B)},B)})}_onError(p,b){console.error(p),console.info(b)}}function hW(f){return f[0]==="o"&&f[1]==="n"&&Fle(f.charCodeAt(2))}function gW(f){return/^onDynamic/.test(f)&&Fle(f.charCodeAt(9))}function zle(f,p,b){const D=pe=>function(){const ke=Array.prototype.slice.call(arguments,0);return p(pe,ke)},B=pe=>function(ke){return b(pe,ke)},$={};for(const pe of f){if(gW(pe)){$[pe]=B(pe);continue}if(hW(pe)){$[pe]=b(pe,void 0);continue}$[pe]=D(pe)}return $}class qle{constructor(p,b){this._requestHandlerFactory=b,this._requestHandler=null,this._protocol=new Hle({sendMessage:(D,B)=>{p(D,B)},handleMessage:(D,B)=>this._handleMessage(D,B),handleEvent:(D,B)=>this._handleEvent(D,B)})}onmessage(p){this._protocol.handleMessage(p)}_handleMessage(p,b){if(p===Vle)return this.initialize(b[0],b[1],b[2],b[3]);if(!this._requestHandler||typeof this._requestHandler[p]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+p));try{return Promise.resolve(this._requestHandler[p].apply(this._requestHandler,b))}catch(D){return Promise.reject(D)}}_handleEvent(p,b){if(!this._requestHandler)throw new Error("Missing requestHandler");if(gW(p)){const D=this._requestHandler[p].call(this._requestHandler,b);if(typeof D!="function")throw new Error(`Missing dynamic event ${p} on request handler.`);return D}if(hW(p)){const D=this._requestHandler[p];if(typeof D!="function")throw new Error(`Missing event ${p} on request handler.`);return D}throw new Error(`Malformed event name ${p}`)}initialize(p,b,D,B){this._protocol.setWorkerId(p);const ke=zle(B,(qe,ge)=>this._protocol.sendMessage(qe,ge),(qe,ge)=>this._protocol.listen(qe,ge));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(ke),Promise.resolve(oW(this._requestHandler))):(b&&(typeof b.baseUrl!="undefined"&&delete b.baseUrl,typeof b.paths!="undefined"&&typeof b.paths.vs!="undefined"&&delete b.paths.vs,typeof b.trustedTypesPolicy!==void 0&&delete b.trustedTypesPolicy,b.catchError=!0,globalThis.require.config(b)),new Promise((qe,ge)=>{const Ie=globalThis.require;Ie([D],xt=>{if(this._requestHandler=xt.create(ke),!this._requestHandler){ge(new Error("No RequestHandler!"));return}qe(oW(this._requestHandler))},ge)}))}}function Q_t(f){return new qle(f,null)}class nS{constructor(p,b,D,B){this.originalStart=p,this.originalLength=b,this.modifiedStart=D,this.modifiedLength=B}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Z_t(f){return yW(f,0)}function yW(f,p){switch(typeof f){case"object":return f===null?_T(349,p):Array.isArray(f)?U6e(f,p):V6e(f,p);case"string":return vW(f,p);case"boolean":return G6e(f,p);case"number":return _T(f,p);case"undefined":return _T(937,p);default:return _T(617,p)}}function _T(f,p){return(p<<5)-p+f|0}function G6e(f,p){return _T(f?433:863,p)}function vW(f,p){p=_T(149417,p);for(let b=0,D=f.length;b<D;b++)p=_T(f.charCodeAt(b),p);return p}function U6e(f,p){return p=_T(104579,p),f.reduce((b,D)=>yW(D,b),p)}function V6e(f,p){return p=_T(181387,p),Object.keys(f).sort().reduce((b,D)=>(b=vW(D,b),yW(f[D],b)),p)}function bW(f,p,b=32){const D=b-p,B=~((1<<D)-1);return(f<<p|(B&f)>>>D)>>>0}function Jle(f,p=0,b=f.byteLength,D=0){for(let B=0;B<b;B++)f[p+B]=D}function j6e(f,p,b="0"){for(;f.length<p;)f=b+f;return f}function Rw(f,p=32){return f instanceof ArrayBuffer?Array.from(new Uint8Array(f)).map(b=>b.toString(16).padStart(2,"0")).join(""):j6e((f>>>0).toString(16),p/4)}class EW{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(p){const b=p.length;if(b===0)return;const D=this._buff;let B=this._buffLen,$=this._leftoverHighSurrogate,pe,ke;for($!==0?(pe=$,ke=-1,$=0):(pe=p.charCodeAt(0),ke=0);;){let qe=pe;if(ww(pe))if(ke+1<b){const ge=p.charCodeAt(ke+1);Dw(ge)?(ke++,qe=_W(pe,ge)):qe=65533}else{$=pe;break}else Dw(pe)&&(qe=65533);if(B=this._push(D,B,qe),ke++,ke<b)pe=p.charCodeAt(ke);else break}this._buffLen=B,this._leftoverHighSurrogate=$}_push(p,b,D){return D<128?p[b++]=D:D<2048?(p[b++]=192|(D&1984)>>>6,p[b++]=128|(D&63)>>>0):D<65536?(p[b++]=224|(D&61440)>>>12,p[b++]=128|(D&4032)>>>6,p[b++]=128|(D&63)>>>0):(p[b++]=240|(D&1835008)>>>18,p[b++]=128|(D&258048)>>>12,p[b++]=128|(D&4032)>>>6,p[b++]=128|(D&63)>>>0),b>=64&&(this._step(),b-=64,this._totalLen+=64,p[0]=p[64+0],p[1]=p[64+1],p[2]=p[64+2]),b}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()),Rw(this._h0)+Rw(this._h1)+Rw(this._h2)+Rw(this._h3)+Rw(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Jle(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Jle(this._buff));const p=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(p/4294967296),!1),this._buffDV.setUint32(60,p%4294967296,!1),this._step()}_step(){const p=EW._bigBlock32,b=this._buffDV;for(let xt=0;xt<64;xt+=4)p.setUint32(xt,b.getUint32(xt,!1),!1);for(let xt=64;xt<320;xt+=4)p.setUint32(xt,bW(p.getUint32(xt-12,!1)^p.getUint32(xt-32,!1)^p.getUint32(xt-56,!1)^p.getUint32(xt-64,!1),1),!1);let D=this._h0,B=this._h1,$=this._h2,pe=this._h3,ke=this._h4,qe,ge,Ie;for(let xt=0;xt<80;xt++)xt<20?(qe=B&$|~B&pe,ge=1518500249):xt<40?(qe=B^$^pe,ge=1859775393):xt<60?(qe=B&$|B&pe|$&pe,ge=2400959708):(qe=B^$^pe,ge=3395469782),Ie=bW(D,5)+qe+ke+ge+p.getUint32(xt*4,!1)&4294967295,ke=pe,pe=$,$=bW(B,30),B=D,D=Ie;this._h0=this._h0+D&4294967295,this._h1=this._h1+B&4294967295,this._h2=this._h2+$&4294967295,this._h3=this._h3+pe&4294967295,this._h4=this._h4+ke&4294967295}}EW._bigBlock32=new DataView(new ArrayBuffer(320));class Kle{constructor(p){this.source=p}getElements(){const p=this.source,b=new Int32Array(p.length);for(let D=0,B=p.length;D<B;D++)b[D]=p.charCodeAt(D);return b}}function W6e(f,p,b){return new rS(new Kle(f),new Kle(p)).ComputeDiff(b).changes}class AI{static Assert(p,b){if(!p)throw new Error(b)}}class CI{static Copy(p,b,D,B,$){for(let pe=0;pe<$;pe++)D[B+pe]=p[b+pe]}static Copy2(p,b,D,B,$){for(let pe=0;pe<$;pe++)D[B+pe]=p[b+pe]}}class Xle{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 nS(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(p,b){this.m_originalStart=Math.min(this.m_originalStart,p),this.m_modifiedStart=Math.min(this.m_modifiedStart,b),this.m_originalCount++}AddModifiedElement(p,b){this.m_originalStart=Math.min(this.m_originalStart,p),this.m_modifiedStart=Math.min(this.m_modifiedStart,b),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 rS{constructor(p,b,D=null){this.ContinueProcessingPredicate=D,this._originalSequence=p,this._modifiedSequence=b;const[B,$,pe]=rS._getElements(p),[ke,qe,ge]=rS._getElements(b);this._hasStrings=pe&&ge,this._originalStringElements=B,this._originalElementsOrHash=$,this._modifiedStringElements=ke,this._modifiedElementsOrHash=qe,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(p){return p.length>0&&typeof p[0]=="string"}static _getElements(p){const b=p.getElements();if(rS._isStringArray(b)){const D=new Int32Array(b.length);for(let B=0,$=b.length;B<$;B++)D[B]=vW(b[B],0);return[b,D,!0]}return b instanceof Int32Array?[[],b,!1]:[[],new Int32Array(b),!1]}ElementsAreEqual(p,b){return this._originalElementsOrHash[p]!==this._modifiedElementsOrHash[b]?!1:this._hasStrings?this._originalStringElements[p]===this._modifiedStringElements[b]:!0}ElementsAreStrictEqual(p,b){if(!this.ElementsAreEqual(p,b))return!1;const D=rS._getStrictElement(this._originalSequence,p),B=rS._getStrictElement(this._modifiedSequence,b);return D===B}static _getStrictElement(p,b){return typeof p.getStrictElement=="function"?p.getStrictElement(b):null}OriginalElementsAreEqual(p,b){return this._originalElementsOrHash[p]!==this._originalElementsOrHash[b]?!1:this._hasStrings?this._originalStringElements[p]===this._originalStringElements[b]:!0}ModifiedElementsAreEqual(p,b){return this._modifiedElementsOrHash[p]!==this._modifiedElementsOrHash[b]?!1:this._hasStrings?this._modifiedStringElements[p]===this._modifiedStringElements[b]:!0}ComputeDiff(p){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,p)}_ComputeDiff(p,b,D,B,$){const pe=[!1];let ke=this.ComputeDiffRecursive(p,b,D,B,pe);return $&&(ke=this.PrettifyChanges(ke)),{quitEarly:pe[0],changes:ke}}ComputeDiffRecursive(p,b,D,B,$){for($[0]=!1;p<=b&&D<=B&&this.ElementsAreEqual(p,D);)p++,D++;for(;b>=p&&B>=D&&this.ElementsAreEqual(b,B);)b--,B--;if(p>b||D>B){let xt;return D<=B?(AI.Assert(p===b+1,"originalStart should only be one more than originalEnd"),xt=[new nS(p,0,D,B-D+1)]):p<=b?(AI.Assert(D===B+1,"modifiedStart should only be one more than modifiedEnd"),xt=[new nS(p,b-p+1,D,0)]):(AI.Assert(p===b+1,"originalStart should only be one more than originalEnd"),AI.Assert(D===B+1,"modifiedStart should only be one more than modifiedEnd"),xt=[]),xt}const pe=[0],ke=[0],qe=this.ComputeRecursionPoint(p,b,D,B,pe,ke,$),ge=pe[0],Ie=ke[0];if(qe!==null)return qe;if(!$[0]){const xt=this.ComputeDiffRecursive(p,ge,D,Ie,$);let qt=[];return $[0]?qt=[new nS(ge+1,b-(ge+1)+1,Ie+1,B-(Ie+1)+1)]:qt=this.ComputeDiffRecursive(ge+1,b,Ie+1,B,$),this.ConcatenateChanges(xt,qt)}return[new nS(p,b-p+1,D,B-D+1)]}WALKTRACE(p,b,D,B,$,pe,ke,qe,ge,Ie,xt,qt,Xn,fr,zn,sa,Qn,$t){let yi=null,ii=null,va=new Xle,Mo=b,Fr=D,Jo=Xn[0]-sa[0]-B,Lc=-1073741824,Hc=this.m_forwardHistory.length-1;do{const ur=Jo+p;ur===Mo||ur<Fr&&ge[ur-1]<ge[ur+1]?(xt=ge[ur+1],fr=xt-Jo-B,xt<Lc&&va.MarkNextChange(),Lc=xt,va.AddModifiedElement(xt+1,fr),Jo=ur+1-p):(xt=ge[ur-1]+1,fr=xt-Jo-B,xt<Lc&&va.MarkNextChange(),Lc=xt-1,va.AddOriginalElement(xt,fr+1),Jo=ur-1-p),Hc>=0&&(ge=this.m_forwardHistory[Hc],p=ge[0],Mo=1,Fr=ge.length-1)}while(--Hc>=-1);if(yi=va.getReverseChanges(),$t[0]){let ur=Xn[0]+1,Ws=sa[0]+1;if(yi!==null&&yi.length>0){const Ta=yi[yi.length-1];ur=Math.max(ur,Ta.getOriginalEnd()),Ws=Math.max(Ws,Ta.getModifiedEnd())}ii=[new nS(ur,qt-ur+1,Ws,zn-Ws+1)]}else{va=new Xle,Mo=pe,Fr=ke,Jo=Xn[0]-sa[0]-qe,Lc=1073741824,Hc=Qn?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const ur=Jo+$;ur===Mo||ur<Fr&&Ie[ur-1]>=Ie[ur+1]?(xt=Ie[ur+1]-1,fr=xt-Jo-qe,xt>Lc&&va.MarkNextChange(),Lc=xt+1,va.AddOriginalElement(xt+1,fr+1),Jo=ur+1-$):(xt=Ie[ur-1],fr=xt-Jo-qe,xt>Lc&&va.MarkNextChange(),Lc=xt,va.AddModifiedElement(xt+1,fr+1),Jo=ur-1-$),Hc>=0&&(Ie=this.m_reverseHistory[Hc],$=Ie[0],Mo=1,Fr=Ie.length-1)}while(--Hc>=-1);ii=va.getChanges()}return this.ConcatenateChanges(yi,ii)}ComputeRecursionPoint(p,b,D,B,$,pe,ke){let qe=0,ge=0,Ie=0,xt=0,qt=0,Xn=0;p--,D--,$[0]=0,pe[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const fr=b-p+(B-D),zn=fr+1,sa=new Int32Array(zn),Qn=new Int32Array(zn),$t=B-D,yi=b-p,ii=p-D,va=b-B,Fr=(yi-$t)%2===0;sa[$t]=p,Qn[yi]=b,ke[0]=!1;for(let Jo=1;Jo<=fr/2+1;Jo++){let Lc=0,Hc=0;Ie=this.ClipDiagonalBound($t-Jo,Jo,$t,zn),xt=this.ClipDiagonalBound($t+Jo,Jo,$t,zn);for(let Ws=Ie;Ws<=xt;Ws+=2){Ws===Ie||Ws<xt&&sa[Ws-1]<sa[Ws+1]?qe=sa[Ws+1]:qe=sa[Ws-1]+1,ge=qe-(Ws-$t)-ii;const Ta=qe;for(;qe<b&&ge<B&&this.ElementsAreEqual(qe+1,ge+1);)qe++,ge++;if(sa[Ws]=qe,qe+ge>Lc+Hc&&(Lc=qe,Hc=ge),!Fr&&Math.abs(Ws-yi)<=Jo-1&&qe>=Qn[Ws])return $[0]=qe,pe[0]=ge,Ta<=Qn[Ws]&&1447>0&&Jo<=1447+1?this.WALKTRACE($t,Ie,xt,ii,yi,qt,Xn,va,sa,Qn,qe,b,$,ge,B,pe,Fr,ke):null}const ur=(Lc-p+(Hc-D)-Jo)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Lc,ur))return ke[0]=!0,$[0]=Lc,pe[0]=Hc,ur>0&&1447>0&&Jo<=1447+1?this.WALKTRACE($t,Ie,xt,ii,yi,qt,Xn,va,sa,Qn,qe,b,$,ge,B,pe,Fr,ke):(p++,D++,[new nS(p,b-p+1,D,B-D+1)]);qt=this.ClipDiagonalBound(yi-Jo,Jo,yi,zn),Xn=this.ClipDiagonalBound(yi+Jo,Jo,yi,zn);for(let Ws=qt;Ws<=Xn;Ws+=2){Ws===qt||Ws<Xn&&Qn[Ws-1]>=Qn[Ws+1]?qe=Qn[Ws+1]-1:qe=Qn[Ws-1],ge=qe-(Ws-yi)-va;const Ta=qe;for(;qe>p&&ge>D&&this.ElementsAreEqual(qe,ge);)qe--,ge--;if(Qn[Ws]=qe,Fr&&Math.abs(Ws-$t)<=Jo&&qe<=sa[Ws])return $[0]=qe,pe[0]=ge,Ta>=sa[Ws]&&1447>0&&Jo<=1447+1?this.WALKTRACE($t,Ie,xt,ii,yi,qt,Xn,va,sa,Qn,qe,b,$,ge,B,pe,Fr,ke):null}if(Jo<=1447){let Ws=new Int32Array(xt-Ie+2);Ws[0]=$t-Ie+1,CI.Copy2(sa,Ie,Ws,1,xt-Ie+1),this.m_forwardHistory.push(Ws),Ws=new Int32Array(Xn-qt+2),Ws[0]=yi-qt+1,CI.Copy2(Qn,qt,Ws,1,Xn-qt+1),this.m_reverseHistory.push(Ws)}}return this.WALKTRACE($t,Ie,xt,ii,yi,qt,Xn,va,sa,Qn,qe,b,$,ge,B,pe,Fr,ke)}PrettifyChanges(p){for(let b=0;b<p.length;b++){const D=p[b],B=b<p.length-1?p[b+1].originalStart:this._originalElementsOrHash.length,$=b<p.length-1?p[b+1].modifiedStart:this._modifiedElementsOrHash.length,pe=D.originalLength>0,ke=D.modifiedLength>0;for(;D.originalStart+D.originalLength<B&&D.modifiedStart+D.modifiedLength<$&&(!pe||this.OriginalElementsAreEqual(D.originalStart,D.originalStart+D.originalLength))&&(!ke||this.ModifiedElementsAreEqual(D.modifiedStart,D.modifiedStart+D.modifiedLength));){const ge=this.ElementsAreStrictEqual(D.originalStart,D.modifiedStart);if(this.ElementsAreStrictEqual(D.originalStart+D.originalLength,D.modifiedStart+D.modifiedLength)&&!ge)break;D.originalStart++,D.modifiedStart++}const qe=[null];if(b<p.length-1&&this.ChangesOverlap(p[b],p[b+1],qe)){p[b]=qe[0],p.splice(b+1,1),b--;continue}}for(let b=p.length-1;b>=0;b--){const D=p[b];let B=0,$=0;if(b>0){const xt=p[b-1];B=xt.originalStart+xt.originalLength,$=xt.modifiedStart+xt.modifiedLength}const pe=D.originalLength>0,ke=D.modifiedLength>0;let qe=0,ge=this._boundaryScore(D.originalStart,D.originalLength,D.modifiedStart,D.modifiedLength);for(let xt=1;;xt++){const qt=D.originalStart-xt,Xn=D.modifiedStart-xt;if(qt<B||Xn<$||pe&&!this.OriginalElementsAreEqual(qt,qt+D.originalLength)||ke&&!this.ModifiedElementsAreEqual(Xn,Xn+D.modifiedLength))break;const zn=(qt===B&&Xn===$?5:0)+this._boundaryScore(qt,D.originalLength,Xn,D.modifiedLength);zn>ge&&(ge=zn,qe=xt)}D.originalStart-=qe,D.modifiedStart-=qe;const Ie=[null];if(b>0&&this.ChangesOverlap(p[b-1],p[b],Ie)){p[b-1]=Ie[0],p.splice(b,1),b++;continue}}if(this._hasStrings)for(let b=1,D=p.length;b<D;b++){const B=p[b-1],$=p[b],pe=$.originalStart-B.originalStart-B.originalLength,ke=B.originalStart,qe=$.originalStart+$.originalLength,ge=qe-ke,Ie=B.modifiedStart,xt=$.modifiedStart+$.modifiedLength,qt=xt-Ie;if(pe<5&&ge<20&&qt<20){const Xn=this._findBetterContiguousSequence(ke,ge,Ie,qt,pe);if(Xn){const[fr,zn]=Xn;(fr!==B.originalStart+B.originalLength||zn!==B.modifiedStart+B.modifiedLength)&&(B.originalLength=fr-B.originalStart,B.modifiedLength=zn-B.modifiedStart,$.originalStart=fr+pe,$.modifiedStart=zn+pe,$.originalLength=qe-$.originalStart,$.modifiedLength=xt-$.modifiedStart)}}}return p}_findBetterContiguousSequence(p,b,D,B,$){if(b<$||B<$)return null;const pe=p+b-$+1,ke=D+B-$+1;let qe=0,ge=0,Ie=0;for(let xt=p;xt<pe;xt++)for(let qt=D;qt<ke;qt++){const Xn=this._contiguousSequenceScore(xt,qt,$);Xn>0&&Xn>qe&&(qe=Xn,ge=xt,Ie=qt)}return qe>0?[ge,Ie]:null}_contiguousSequenceScore(p,b,D){let B=0;for(let $=0;$<D;$++){if(!this.ElementsAreEqual(p+$,b+$))return 0;B+=this._originalStringElements[p+$].length}return B}_OriginalIsBoundary(p){return p<=0||p>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[p])}_OriginalRegionIsBoundary(p,b){if(this._OriginalIsBoundary(p)||this._OriginalIsBoundary(p-1))return!0;if(b>0){const D=p+b;if(this._OriginalIsBoundary(D-1)||this._OriginalIsBoundary(D))return!0}return!1}_ModifiedIsBoundary(p){return p<=0||p>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[p])}_ModifiedRegionIsBoundary(p,b){if(this._ModifiedIsBoundary(p)||this._ModifiedIsBoundary(p-1))return!0;if(b>0){const D=p+b;if(this._ModifiedIsBoundary(D-1)||this._ModifiedIsBoundary(D))return!0}return!1}_boundaryScore(p,b,D,B){const $=this._OriginalRegionIsBoundary(p,b)?1:0,pe=this._ModifiedRegionIsBoundary(D,B)?1:0;return $+pe}ConcatenateChanges(p,b){const D=[];if(p.length===0||b.length===0)return b.length>0?b:p;if(this.ChangesOverlap(p[p.length-1],b[0],D)){const B=new Array(p.length+b.length-1);return CI.Copy(p,0,B,0,p.length-1),B[p.length-1]=D[0],CI.Copy(b,1,B,p.length,b.length-1),B}else{const B=new Array(p.length+b.length);return CI.Copy(p,0,B,0,p.length),CI.Copy(b,0,B,p.length,b.length),B}}ChangesOverlap(p,b,D){if(AI.Assert(p.originalStart<=b.originalStart,"Left change is not less than or equal to right change"),AI.Assert(p.modifiedStart<=b.modifiedStart,"Left change is not less than or equal to right change"),p.originalStart+p.originalLength>=b.originalStart||p.modifiedStart+p.modifiedLength>=b.modifiedStart){const B=p.originalStart;let $=p.originalLength;const pe=p.modifiedStart;let ke=p.modifiedLength;return p.originalStart+p.originalLength>=b.originalStart&&($=b.originalStart+b.originalLength-p.originalStart),p.modifiedStart+p.modifiedLength>=b.modifiedStart&&(ke=b.modifiedStart+b.modifiedLength-p.modifiedStart),D[0]=new nS(B,$,pe,ke),!0}else return D[0]=null,!1}ClipDiagonalBound(p,b,D,B){if(p>=0&&p<B)return p;const $=D,pe=B-D-1,ke=b%2===0;if(p<0){const qe=$%2===0;return ke===qe?0:1}else{const qe=pe%2===0;return ke===qe?B-1:B-2}}}let LI;if(typeof $0.vscode!="undefined"&&typeof $0.vscode.process!="undefined"){const f=$0.vscode.process;LI={get platform(){return f.platform},get arch(){return f.arch},get env(){return f.env},cwd(){return f.cwd()}}}else typeof process!="undefined"?LI={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:LI={get platform(){return kw?"win32":_6e?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const S7=LI.cwd,H6e=LI.env,z6e=LI.platform,q6e=65,J6e=97,K6e=90,X6e=122,iS=46,Sp=47,ug=92,aS=58,Y6e=63;class Yle extends Error{constructor(p,b,D){let B;typeof b=="string"&&b.indexOf("not ")===0?(B="must not be",b=b.replace(/^not /,"")):B="must be";const $=p.indexOf(".")!==-1?"property":"argument";let pe=`The "${p}" ${$} ${B} of type ${b}`;pe+=`. Received type ${typeof D}`,super(pe),this.code="ERR_INVALID_ARG_TYPE"}}function $6e(f,p){if(f===null||typeof f!="object")throw new Yle(p,"Object",f)}function kf(f,p){if(typeof f!="string")throw new Yle(p,"string",f)}const oS=z6e==="win32";function xl(f){return f===Sp||f===ug}function TW(f){return f===Sp}function sS(f){return f>=q6e&&f<=K6e||f>=J6e&&f<=X6e}function x7(f,p,b,D){let B="",$=0,pe=-1,ke=0,qe=0;for(let ge=0;ge<=f.length;++ge){if(ge<f.length)qe=f.charCodeAt(ge);else{if(D(qe))break;qe=Sp}if(D(qe)){if(!(pe===ge-1||ke===1))if(ke===2){if(B.length<2||$!==2||B.charCodeAt(B.length-1)!==iS||B.charCodeAt(B.length-2)!==iS){if(B.length>2){const Ie=B.lastIndexOf(b);Ie===-1?(B="",$=0):(B=B.slice(0,Ie),$=B.length-1-B.lastIndexOf(b)),pe=ge,ke=0;continue}else if(B.length!==0){B="",$=0,pe=ge,ke=0;continue}}p&&(B+=B.length>0?`${b}..`:"..",$=2)}else B.length>0?B+=`${b}${f.slice(pe+1,ge)}`:B=f.slice(pe+1,ge),$=ge-pe-1;pe=ge,ke=0}else qe===iS&&ke!==-1?++ke:ke=-1}return B}function $le(f,p){$6e(p,"pathObject");const b=p.dir||p.root,D=p.base||`${p.name||""}${p.ext||""}`;return b?b===p.root?`${b}${D}`:`${b}${f}${D}`:D}const Sh={resolve(...f){let p="",b="",D=!1;for(let B=f.length-1;B>=-1;B--){let $;if(B>=0){if($=f[B],kf($,"path"),$.length===0)continue}else p.length===0?$=S7():($=H6e[`=${p}`]||S7(),($===void 0||$.slice(0,2).toLowerCase()!==p.toLowerCase()&&$.charCodeAt(2)===ug)&&($=`${p}\\`));const pe=$.length;let ke=0,qe="",ge=!1;const Ie=$.charCodeAt(0);if(pe===1)xl(Ie)&&(ke=1,ge=!0);else if(xl(Ie))if(ge=!0,xl($.charCodeAt(1))){let xt=2,qt=xt;for(;xt<pe&&!xl($.charCodeAt(xt));)xt++;if(xt<pe&&xt!==qt){const Xn=$.slice(qt,xt);for(qt=xt;xt<pe&&xl($.charCodeAt(xt));)xt++;if(xt<pe&&xt!==qt){for(qt=xt;xt<pe&&!xl($.charCodeAt(xt));)xt++;(xt===pe||xt!==qt)&&(qe=`\\\\${Xn}\\${$.slice(qt,xt)}`,ke=xt)}}}else ke=1;else sS(Ie)&&$.charCodeAt(1)===aS&&(qe=$.slice(0,2),ke=2,pe>2&&xl($.charCodeAt(2))&&(ge=!0,ke=3));if(qe.length>0)if(p.length>0){if(qe.toLowerCase()!==p.toLowerCase())continue}else p=qe;if(D){if(p.length>0)break}else if(b=`${$.slice(ke)}\\${b}`,D=ge,ge&&p.length>0)break}return b=x7(b,!D,"\\",xl),D?`${p}\\${b}`:`${p}${b}`||"."},normalize(f){kf(f,"path");const p=f.length;if(p===0)return".";let b=0,D,B=!1;const $=f.charCodeAt(0);if(p===1)return TW($)?"\\":f;if(xl($))if(B=!0,xl(f.charCodeAt(1))){let ke=2,qe=ke;for(;ke<p&&!xl(f.charCodeAt(ke));)ke++;if(ke<p&&ke!==qe){const ge=f.slice(qe,ke);for(qe=ke;ke<p&&xl(f.charCodeAt(ke));)ke++;if(ke<p&&ke!==qe){for(qe=ke;ke<p&&!xl(f.charCodeAt(ke));)ke++;if(ke===p)return`\\\\${ge}\\${f.slice(qe)}\\`;ke!==qe&&(D=`\\\\${ge}\\${f.slice(qe,ke)}`,b=ke)}}}else b=1;else sS($)&&f.charCodeAt(1)===aS&&(D=f.slice(0,2),b=2,p>2&&xl(f.charCodeAt(2))&&(B=!0,b=3));let pe=b<p?x7(f.slice(b),!B,"\\",xl):"";return pe.length===0&&!B&&(pe="."),pe.length>0&&xl(f.charCodeAt(p-1))&&(pe+="\\"),D===void 0?B?`\\${pe}`:pe:B?`${D}\\${pe}`:`${D}${pe}`},isAbsolute(f){kf(f,"path");const p=f.length;if(p===0)return!1;const b=f.charCodeAt(0);return xl(b)||p>2&&sS(b)&&f.charCodeAt(1)===aS&&xl(f.charCodeAt(2))},join(...f){if(f.length===0)return".";let p,b;for(let $=0;$<f.length;++$){const pe=f[$];kf(pe,"path"),pe.length>0&&(p===void 0?p=b=pe:p+=`\\${pe}`)}if(p===void 0)return".";let D=!0,B=0;if(typeof b=="string"&&xl(b.charCodeAt(0))){++B;const $=b.length;$>1&&xl(b.charCodeAt(1))&&(++B,$>2&&(xl(b.charCodeAt(2))?++B:D=!1))}if(D){for(;B<p.length&&xl(p.charCodeAt(B));)B++;B>=2&&(p=`\\${p.slice(B)}`)}return Sh.normalize(p)},relative(f,p){if(kf(f,"from"),kf(p,"to"),f===p)return"";const b=Sh.resolve(f),D=Sh.resolve(p);if(b===D||(f=b.toLowerCase(),p=D.toLowerCase(),f===p))return"";let B=0;for(;B<f.length&&f.charCodeAt(B)===ug;)B++;let $=f.length;for(;$-1>B&&f.charCodeAt($-1)===ug;)$--;const pe=$-B;let ke=0;for(;ke<p.length&&p.charCodeAt(ke)===ug;)ke++;let qe=p.length;for(;qe-1>ke&&p.charCodeAt(qe-1)===ug;)qe--;const ge=qe-ke,Ie=pe<ge?pe:ge;let xt=-1,qt=0;for(;qt<Ie;qt++){const fr=f.charCodeAt(B+qt);if(fr!==p.charCodeAt(ke+qt))break;fr===ug&&(xt=qt)}if(qt!==Ie){if(xt===-1)return D}else{if(ge>Ie){if(p.charCodeAt(ke+qt)===ug)return D.slice(ke+qt+1);if(qt===2)return D.slice(ke+qt)}pe>Ie&&(f.charCodeAt(B+qt)===ug?xt=qt:qt===2&&(xt=3)),xt===-1&&(xt=0)}let Xn="";for(qt=B+xt+1;qt<=$;++qt)(qt===$||f.charCodeAt(qt)===ug)&&(Xn+=Xn.length===0?"..":"\\..");return ke+=xt,Xn.length>0?`${Xn}${D.slice(ke,qe)}`:(D.charCodeAt(ke)===ug&&++ke,D.slice(ke,qe))},toNamespacedPath(f){if(typeof f!="string"||f.length===0)return f;const p=Sh.resolve(f);if(p.length<=2)return f;if(p.charCodeAt(0)===ug){if(p.charCodeAt(1)===ug){const b=p.charCodeAt(2);if(b!==Y6e&&b!==iS)return`\\\\?\\UNC\\${p.slice(2)}`}}else if(sS(p.charCodeAt(0))&&p.charCodeAt(1)===aS&&p.charCodeAt(2)===ug)return`\\\\?\\${p}`;return f},dirname(f){kf(f,"path");const p=f.length;if(p===0)return".";let b=-1,D=0;const B=f.charCodeAt(0);if(p===1)return xl(B)?f:".";if(xl(B)){if(b=D=1,xl(f.charCodeAt(1))){let ke=2,qe=ke;for(;ke<p&&!xl(f.charCodeAt(ke));)ke++;if(ke<p&&ke!==qe){for(qe=ke;ke<p&&xl(f.charCodeAt(ke));)ke++;if(ke<p&&ke!==qe){for(qe=ke;ke<p&&!xl(f.charCodeAt(ke));)ke++;if(ke===p)return f;ke!==qe&&(b=D=ke+1)}}}}else sS(B)&&f.charCodeAt(1)===aS&&(b=p>2&&xl(f.charCodeAt(2))?3:2,D=b);let $=-1,pe=!0;for(let ke=p-1;ke>=D;--ke)if(xl(f.charCodeAt(ke))){if(!pe){$=ke;break}}else pe=!1;if($===-1){if(b===-1)return".";$=b}return f.slice(0,$)},basename(f,p){p!==void 0&&kf(p,"ext"),kf(f,"path");let b=0,D=-1,B=!0,$;if(f.length>=2&&sS(f.charCodeAt(0))&&f.charCodeAt(1)===aS&&(b=2),p!==void 0&&p.length>0&&p.length<=f.length){if(p===f)return"";let pe=p.length-1,ke=-1;for($=f.length-1;$>=b;--$){const qe=f.charCodeAt($);if(xl(qe)){if(!B){b=$+1;break}}else ke===-1&&(B=!1,ke=$+1),pe>=0&&(qe===p.charCodeAt(pe)?--pe===-1&&(D=$):(pe=-1,D=ke))}return b===D?D=ke:D===-1&&(D=f.length),f.slice(b,D)}for($=f.length-1;$>=b;--$)if(xl(f.charCodeAt($))){if(!B){b=$+1;break}}else D===-1&&(B=!1,D=$+1);return D===-1?"":f.slice(b,D)},extname(f){kf(f,"path");let p=0,b=-1,D=0,B=-1,$=!0,pe=0;f.length>=2&&f.charCodeAt(1)===aS&&sS(f.charCodeAt(0))&&(p=D=2);for(let ke=f.length-1;ke>=p;--ke){const qe=f.charCodeAt(ke);if(xl(qe)){if(!$){D=ke+1;break}continue}B===-1&&($=!1,B=ke+1),qe===iS?b===-1?b=ke:pe!==1&&(pe=1):b!==-1&&(pe=-1)}return b===-1||B===-1||pe===0||pe===1&&b===B-1&&b===D+1?"":f.slice(b,B)},format:$le.bind(null,"\\"),parse(f){kf(f,"path");const p={root:"",dir:"",base:"",ext:"",name:""};if(f.length===0)return p;const b=f.length;let D=0,B=f.charCodeAt(0);if(b===1)return xl(B)?(p.root=p.dir=f,p):(p.base=p.name=f,p);if(xl(B)){if(D=1,xl(f.charCodeAt(1))){let xt=2,qt=xt;for(;xt<b&&!xl(f.charCodeAt(xt));)xt++;if(xt<b&&xt!==qt){for(qt=xt;xt<b&&xl(f.charCodeAt(xt));)xt++;if(xt<b&&xt!==qt){for(qt=xt;xt<b&&!xl(f.charCodeAt(xt));)xt++;xt===b?D=xt:xt!==qt&&(D=xt+1)}}}}else if(sS(B)&&f.charCodeAt(1)===aS){if(b<=2)return p.root=p.dir=f,p;if(D=2,xl(f.charCodeAt(2))){if(b===3)return p.root=p.dir=f,p;D=3}}D>0&&(p.root=f.slice(0,D));let $=-1,pe=D,ke=-1,qe=!0,ge=f.length-1,Ie=0;for(;ge>=D;--ge){if(B=f.charCodeAt(ge),xl(B)){if(!qe){pe=ge+1;break}continue}ke===-1&&(qe=!1,ke=ge+1),B===iS?$===-1?$=ge:Ie!==1&&(Ie=1):$!==-1&&(Ie=-1)}return ke!==-1&&($===-1||Ie===0||Ie===1&&$===ke-1&&$===pe+1?p.base=p.name=f.slice(pe,ke):(p.name=f.slice(pe,$),p.base=f.slice(pe,ke),p.ext=f.slice($,ke))),pe>0&&pe!==D?p.dir=f.slice(0,pe-1):p.dir=p.root,p},sep:"\\",delimiter:";",win32:null,posix:null},Q6e=(()=>{if(oS){const f=/\\/g;return()=>{const p=S7().replace(f,"/");return p.slice(p.indexOf("/"))}}return()=>S7()})(),dg={resolve(...f){let p="",b=!1;for(let D=f.length-1;D>=-1&&!b;D--){const B=D>=0?f[D]:Q6e();kf(B,"path"),B.length!==0&&(p=`${B}/${p}`,b=B.charCodeAt(0)===Sp)}return p=x7(p,!b,"/",TW),b?`/${p}`:p.length>0?p:"."},normalize(f){if(kf(f,"path"),f.length===0)return".";const p=f.charCodeAt(0)===Sp,b=f.charCodeAt(f.length-1)===Sp;return f=x7(f,!p,"/",TW),f.length===0?p?"/":b?"./":".":(b&&(f+="/"),p?`/${f}`:f)},isAbsolute(f){return kf(f,"path"),f.length>0&&f.charCodeAt(0)===Sp},join(...f){if(f.length===0)return".";let p;for(let b=0;b<f.length;++b){const D=f[b];kf(D,"path"),D.length>0&&(p===void 0?p=D:p+=`/${D}`)}return p===void 0?".":dg.normalize(p)},relative(f,p){if(kf(f,"from"),kf(p,"to"),f===p||(f=dg.resolve(f),p=dg.resolve(p),f===p))return"";const b=1,D=f.length,B=D-b,$=1,pe=p.length-$,ke=B<pe?B:pe;let qe=-1,ge=0;for(;ge<ke;ge++){const xt=f.charCodeAt(b+ge);if(xt!==p.charCodeAt($+ge))break;xt===Sp&&(qe=ge)}if(ge===ke)if(pe>ke){if(p.charCodeAt($+ge)===Sp)return p.slice($+ge+1);if(ge===0)return p.slice($+ge)}else B>ke&&(f.charCodeAt(b+ge)===Sp?qe=ge:ge===0&&(qe=0));let Ie="";for(ge=b+qe+1;ge<=D;++ge)(ge===D||f.charCodeAt(ge)===Sp)&&(Ie+=Ie.length===0?"..":"/..");return`${Ie}${p.slice($+qe)}`},toNamespacedPath(f){return f},dirname(f){if(kf(f,"path"),f.length===0)return".";const p=f.charCodeAt(0)===Sp;let b=-1,D=!0;for(let B=f.length-1;B>=1;--B)if(f.charCodeAt(B)===Sp){if(!D){b=B;break}}else D=!1;return b===-1?p?"/":".":p&&b===1?"//":f.slice(0,b)},basename(f,p){p!==void 0&&kf(p,"ext"),kf(f,"path");let b=0,D=-1,B=!0,$;if(p!==void 0&&p.length>0&&p.length<=f.length){if(p===f)return"";let pe=p.length-1,ke=-1;for($=f.length-1;$>=0;--$){const qe=f.charCodeAt($);if(qe===Sp){if(!B){b=$+1;break}}else ke===-1&&(B=!1,ke=$+1),pe>=0&&(qe===p.charCodeAt(pe)?--pe===-1&&(D=$):(pe=-1,D=ke))}return b===D?D=ke:D===-1&&(D=f.length),f.slice(b,D)}for($=f.length-1;$>=0;--$)if(f.charCodeAt($)===Sp){if(!B){b=$+1;break}}else D===-1&&(B=!1,D=$+1);return D===-1?"":f.slice(b,D)},extname(f){kf(f,"path");let p=-1,b=0,D=-1,B=!0,$=0;for(let pe=f.length-1;pe>=0;--pe){const ke=f.charCodeAt(pe);if(ke===Sp){if(!B){b=pe+1;break}continue}D===-1&&(B=!1,D=pe+1),ke===iS?p===-1?p=pe:$!==1&&($=1):p!==-1&&($=-1)}return p===-1||D===-1||$===0||$===1&&p===D-1&&p===b+1?"":f.slice(p,D)},format:$le.bind(null,"/"),parse(f){kf(f,"path");const p={root:"",dir:"",base:"",ext:"",name:""};if(f.length===0)return p;const b=f.charCodeAt(0)===Sp;let D;b?(p.root="/",D=1):D=0;let B=-1,$=0,pe=-1,ke=!0,qe=f.length-1,ge=0;for(;qe>=D;--qe){const Ie=f.charCodeAt(qe);if(Ie===Sp){if(!ke){$=qe+1;break}continue}pe===-1&&(ke=!1,pe=qe+1),Ie===iS?B===-1?B=qe:ge!==1&&(ge=1):B!==-1&&(ge=-1)}if(pe!==-1){const Ie=$===0&&b?1:$;B===-1||ge===0||ge===1&&B===pe-1&&B===$+1?p.base=p.name=f.slice(Ie,pe):(p.name=f.slice(Ie,B),p.base=f.slice(Ie,pe),p.ext=f.slice(B,pe))}return $>0?p.dir=f.slice(0,$-1):b&&(p.dir="/"),p},sep:"/",delimiter:":",win32:null,posix:null};dg.win32=Sh.win32=Sh,dg.posix=Sh.posix=dg;const ept=oS?Sh.normalize:dg.normalize,tpt=oS?Sh.resolve:dg.resolve,npt=oS?Sh.relative:dg.relative,rpt=oS?Sh.dirname:dg.dirname,ipt=oS?Sh.basename:dg.basename,apt=oS?Sh.extname:dg.extname,opt=oS?Sh.sep:dg.sep,Z6e=/^\w[\w\d+.-]*$/,eNe=/^\//,tNe=/^\/\//;function nNe(f,p){if(!f.scheme&&p)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${f.authority}", path: "${f.path}", query: "${f.query}", fragment: "${f.fragment}"}`);if(f.scheme&&!Z6e.test(f.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(f.path){if(f.authority){if(!eNe.test(f.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(tNe.test(f.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function rNe(f,p){return!f&&!p?"file":f}function iNe(f,p){switch(f){case"https":case"http":case"file":p?p[0]!==Q0&&(p=Q0+p):p=Q0;break}return p}const id="",Q0="/",aNe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class PA{static isUri(p){return p instanceof PA?!0:p?typeof p.authority=="string"&&typeof p.fragment=="string"&&typeof p.path=="string"&&typeof p.query=="string"&&typeof p.scheme=="string"&&typeof p.fsPath=="string"&&typeof p.with=="function"&&typeof p.toString=="function":!1}constructor(p,b,D,B,$,pe=!1){typeof p=="object"?(this.scheme=p.scheme||id,this.authority=p.authority||id,this.path=p.path||id,this.query=p.query||id,this.fragment=p.fragment||id):(this.scheme=rNe(p,pe),this.authority=b||id,this.path=iNe(this.scheme,D||id),this.query=B||id,this.fragment=$||id,nNe(this,pe))}get fsPath(){return SW(this,!1)}with(p){if(!p)return this;let{scheme:b,authority:D,path:B,query:$,fragment:pe}=p;return b===void 0?b=this.scheme:b===null&&(b=id),D===void 0?D=this.authority:D===null&&(D=id),B===void 0?B=this.path:B===null&&(B=id),$===void 0?$=this.query:$===null&&($=id),pe===void 0?pe=this.fragment:pe===null&&(pe=id),b===this.scheme&&D===this.authority&&B===this.path&&$===this.query&&pe===this.fragment?this:new II(b,D,B,$,pe)}static parse(p,b=!1){const D=aNe.exec(p);return D?new II(D[2]||id,A7(D[4]||id),A7(D[5]||id),A7(D[7]||id),A7(D[9]||id),b):new II(id,id,id,id,id)}static file(p){let b=id;if(kw&&(p=p.replace(/\\/g,Q0)),p[0]===Q0&&p[1]===Q0){const D=p.indexOf(Q0,2);D===-1?(b=p.substring(2),p=Q0):(b=p.substring(2,D),p=p.substring(D)||Q0)}return new II("file",b,p,id,id)}static from(p,b){return new II(p.scheme,p.authority,p.path,p.query,p.fragment,b)}static joinPath(p,...b){if(!p.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let D;return kw&&p.scheme==="file"?D=PA.file(Sh.join(SW(p,!0),...b)).path:D=dg.join(p.path,...b),p.with({path:D})}toString(p=!1){return xW(this,p)}toJSON(){return this}static revive(p){var b,D;if(p){if(p instanceof PA)return p;{const B=new II(p);return B._formatted=(b=p.external)!==null&&b!==void 0?b:null,B._fsPath=p._sep===Qle&&(D=p.fsPath)!==null&&D!==void 0?D:null,B}}else return p}}const Qle=kw?1:void 0;class II extends PA{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=SW(this,!1)),this._fsPath}toString(p=!1){return p?xW(this,!0):(this._formatted||(this._formatted=xW(this,!1)),this._formatted)}toJSON(){const p={$mid:1};return this._fsPath&&(p.fsPath=this._fsPath,p._sep=Qle),this._formatted&&(p.external=this._formatted),this.path&&(p.path=this.path),this.scheme&&(p.scheme=this.scheme),this.authority&&(p.authority=this.authority),this.query&&(p.query=this.query),this.fragment&&(p.fragment=this.fragment),p}}const Zle={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 ece(f,p,b){let D,B=-1;for(let $=0;$<f.length;$++){const pe=f.charCodeAt($);if(pe>=97&&pe<=122||pe>=65&&pe<=90||pe>=48&&pe<=57||pe===45||pe===46||pe===95||pe===126||p&&pe===47||b&&pe===91||b&&pe===93||b&&pe===58)B!==-1&&(D+=encodeURIComponent(f.substring(B,$)),B=-1),D!==void 0&&(D+=f.charAt($));else{D===void 0&&(D=f.substr(0,$));const ke=Zle[pe];ke!==void 0?(B!==-1&&(D+=encodeURIComponent(f.substring(B,$)),B=-1),D+=ke):B===-1&&(B=$)}}return B!==-1&&(D+=encodeURIComponent(f.substring(B))),D!==void 0?D:f}function oNe(f){let p;for(let b=0;b<f.length;b++){const D=f.charCodeAt(b);D===35||D===63?(p===void 0&&(p=f.substr(0,b)),p+=Zle[D]):p!==void 0&&(p+=f[b])}return p!==void 0?p:f}function SW(f,p){let b;return f.authority&&f.path.length>1&&f.scheme==="file"?b=`//${f.authority}${f.path}`:f.path.charCodeAt(0)===47&&(f.path.charCodeAt(1)>=65&&f.path.charCodeAt(1)<=90||f.path.charCodeAt(1)>=97&&f.path.charCodeAt(1)<=122)&&f.path.charCodeAt(2)===58?p?b=f.path.substr(1):b=f.path[1].toLowerCase()+f.path.substr(2):b=f.path,kw&&(b=b.replace(/\//g,"\\")),b}function xW(f,p){const b=p?oNe:ece;let D="",{scheme:B,authority:$,path:pe,query:ke,fragment:qe}=f;if(B&&(D+=B,D+=":"),($||B==="file")&&(D+=Q0,D+=Q0),$){let ge=$.indexOf("@");if(ge!==-1){const Ie=$.substr(0,ge);$=$.substr(ge+1),ge=Ie.lastIndexOf(":"),ge===-1?D+=b(Ie,!1,!1):(D+=b(Ie.substr(0,ge),!1,!1),D+=":",D+=b(Ie.substr(ge+1),!1,!0)),D+="@"}$=$.toLowerCase(),ge=$.lastIndexOf(":"),ge===-1?D+=b($,!1,!0):(D+=b($.substr(0,ge),!1,!0),D+=$.substr(ge))}if(pe){if(pe.length>=3&&pe.charCodeAt(0)===47&&pe.charCodeAt(2)===58){const ge=pe.charCodeAt(1);ge>=65&&ge<=90&&(pe=`/${String.fromCharCode(ge+32)}:${pe.substr(3)}`)}else if(pe.length>=2&&pe.charCodeAt(1)===58){const ge=pe.charCodeAt(0);ge>=65&&ge<=90&&(pe=`${String.fromCharCode(ge+32)}:${pe.substr(2)}`)}D+=b(pe,!0,!1)}return ke&&(D+="?",D+=b(ke,!1,!1)),qe&&(D+="#",D+=p?qe:ece(qe,!1,!1)),D}function tce(f){try{return decodeURIComponent(f)}catch(p){return f.length>3?f.substr(0,3)+tce(f.substr(3)):f}}const nce=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function A7(f){return f.match(nce)?f.replace(nce,p=>tce(p)):f}class Qp{constructor(p,b){this.lineNumber=p,this.column=b}with(p=this.lineNumber,b=this.column){return p===this.lineNumber&&b===this.column?this:new Qp(p,b)}delta(p=0,b=0){return this.with(this.lineNumber+p,this.column+b)}equals(p){return Qp.equals(this,p)}static equals(p,b){return!p&&!b?!0:!!p&&!!b&&p.lineNumber===b.lineNumber&&p.column===b.column}isBefore(p){return Qp.isBefore(this,p)}static isBefore(p,b){return p.lineNumber<b.lineNumber?!0:b.lineNumber<p.lineNumber?!1:p.column<b.column}isBeforeOrEqual(p){return Qp.isBeforeOrEqual(this,p)}static isBeforeOrEqual(p,b){return p.lineNumber<b.lineNumber?!0:b.lineNumber<p.lineNumber?!1:p.column<=b.column}static compare(p,b){const D=p.lineNumber|0,B=b.lineNumber|0;if(D===B){const $=p.column|0,pe=b.column|0;return $-pe}return D-B}clone(){return new Qp(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(p){return new Qp(p.lineNumber,p.column)}static isIPosition(p){return p&&typeof p.lineNumber=="number"&&typeof p.column=="number"}}class Bl{constructor(p,b,D,B){p>D||p===D&&b>B?(this.startLineNumber=D,this.startColumn=B,this.endLineNumber=p,this.endColumn=b):(this.startLineNumber=p,this.startColumn=b,this.endLineNumber=D,this.endColumn=B)}isEmpty(){return Bl.isEmpty(this)}static isEmpty(p){return p.startLineNumber===p.endLineNumber&&p.startColumn===p.endColumn}containsPosition(p){return Bl.containsPosition(this,p)}static containsPosition(p,b){return!(b.lineNumber<p.startLineNumber||b.lineNumber>p.endLineNumber||b.lineNumber===p.startLineNumber&&b.column<p.startColumn||b.lineNumber===p.endLineNumber&&b.column>p.endColumn)}static strictContainsPosition(p,b){return!(b.lineNumber<p.startLineNumber||b.lineNumber>p.endLineNumber||b.lineNumber===p.startLineNumber&&b.column<=p.startColumn||b.lineNumber===p.endLineNumber&&b.column>=p.endColumn)}containsRange(p){return Bl.containsRange(this,p)}static containsRange(p,b){return!(b.startLineNumber<p.startLineNumber||b.endLineNumber<p.startLineNumber||b.startLineNumber>p.endLineNumber||b.endLineNumber>p.endLineNumber||b.startLineNumber===p.startLineNumber&&b.startColumn<p.startColumn||b.endLineNumber===p.endLineNumber&&b.endColumn>p.endColumn)}strictContainsRange(p){return Bl.strictContainsRange(this,p)}static strictContainsRange(p,b){return!(b.startLineNumber<p.startLineNumber||b.endLineNumber<p.startLineNumber||b.startLineNumber>p.endLineNumber||b.endLineNumber>p.endLineNumber||b.startLineNumber===p.startLineNumber&&b.startColumn<=p.startColumn||b.endLineNumber===p.endLineNumber&&b.endColumn>=p.endColumn)}plusRange(p){return Bl.plusRange(this,p)}static plusRange(p,b){let D,B,$,pe;return b.startLineNumber<p.startLineNumber?(D=b.startLineNumber,B=b.startColumn):b.startLineNumber===p.startLineNumber?(D=b.startLineNumber,B=Math.min(b.startColumn,p.startColumn)):(D=p.startLineNumber,B=p.startColumn),b.endLineNumber>p.endLineNumber?($=b.endLineNumber,pe=b.endColumn):b.endLineNumber===p.endLineNumber?($=b.endLineNumber,pe=Math.max(b.endColumn,p.endColumn)):($=p.endLineNumber,pe=p.endColumn),new Bl(D,B,$,pe)}intersectRanges(p){return Bl.intersectRanges(this,p)}static intersectRanges(p,b){let D=p.startLineNumber,B=p.startColumn,$=p.endLineNumber,pe=p.endColumn;const ke=b.startLineNumber,qe=b.startColumn,ge=b.endLineNumber,Ie=b.endColumn;return D<ke?(D=ke,B=qe):D===ke&&(B=Math.max(B,qe)),$>ge?($=ge,pe=Ie):$===ge&&(pe=Math.min(pe,Ie)),D>$||D===$&&B>pe?null:new Bl(D,B,$,pe)}equalsRange(p){return Bl.equalsRange(this,p)}static equalsRange(p,b){return!p&&!b?!0:!!p&&!!b&&p.startLineNumber===b.startLineNumber&&p.startColumn===b.startColumn&&p.endLineNumber===b.endLineNumber&&p.endColumn===b.endColumn}getEndPosition(){return Bl.getEndPosition(this)}static getEndPosition(p){return new Qp(p.endLineNumber,p.endColumn)}getStartPosition(){return Bl.getStartPosition(this)}static getStartPosition(p){return new Qp(p.startLineNumber,p.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(p,b){return new Bl(this.startLineNumber,this.startColumn,p,b)}setStartPosition(p,b){return new Bl(p,b,this.endLineNumber,this.endColumn)}collapseToStart(){return Bl.collapseToStart(this)}static collapseToStart(p){return new Bl(p.startLineNumber,p.startColumn,p.startLineNumber,p.startColumn)}collapseToEnd(){return Bl.collapseToEnd(this)}static collapseToEnd(p){return new Bl(p.endLineNumber,p.endColumn,p.endLineNumber,p.endColumn)}delta(p){return new Bl(this.startLineNumber+p,this.startColumn,this.endLineNumber+p,this.endColumn)}static fromPositions(p,b=p){return new Bl(p.lineNumber,p.column,b.lineNumber,b.column)}static lift(p){return p?new Bl(p.startLineNumber,p.startColumn,p.endLineNumber,p.endColumn):null}static isIRange(p){return p&&typeof p.startLineNumber=="number"&&typeof p.startColumn=="number"&&typeof p.endLineNumber=="number"&&typeof p.endColumn=="number"}static areIntersectingOrTouching(p,b){return!(p.endLineNumber<b.startLineNumber||p.endLineNumber===b.startLineNumber&&p.endColumn<b.startColumn||b.endLineNumber<p.startLineNumber||b.endLineNumber===p.startLineNumber&&b.endColumn<p.startColumn)}static areIntersecting(p,b){return!(p.endLineNumber<b.startLineNumber||p.endLineNumber===b.startLineNumber&&p.endColumn<=b.startColumn||b.endLineNumber<p.startLineNumber||b.endLineNumber===p.startLineNumber&&b.endColumn<=p.startColumn)}static compareRangesUsingStarts(p,b){if(p&&b){const $=p.startLineNumber|0,pe=b.startLineNumber|0;if($===pe){const ke=p.startColumn|0,qe=b.startColumn|0;if(ke===qe){const ge=p.endLineNumber|0,Ie=b.endLineNumber|0;if(ge===Ie){const xt=p.endColumn|0,qt=b.endColumn|0;return xt-qt}return ge-Ie}return ke-qe}return $-pe}return(p?1:0)-(b?1:0)}static compareRangesUsingEnds(p,b){return p.endLineNumber===b.endLineNumber?p.endColumn===b.endColumn?p.startLineNumber===b.startLineNumber?p.startColumn-b.startColumn:p.startLineNumber-b.startLineNumber:p.endColumn-b.endColumn:p.endLineNumber-b.endLineNumber}static spansMultipleLines(p){return p.endLineNumber>p.startLineNumber}toJSON(){return this}}function spt(f,p=0){return f[f.length-(1+p)]}function lpt(f){if(f.length===0)throw new Error("Invalid tail call");return[f.slice(0,f.length-1),f[f.length-1]]}function sNe(f,p,b=(D,B)=>D===B){if(f===p)return!0;if(!f||!p||f.length!==p.length)return!1;for(let D=0,B=f.length;D<B;D++)if(!b(f[D],p[D]))return!1;return!0}function cpt(f,p){const b=f.length-1;p<b&&(f[p]=f[b]),f.pop()}function upt(f,p,b){return lNe(f.length,D=>b(f[D],p))}function lNe(f,p){let b=0,D=f-1;for(;b<=D;){const B=(b+D)/2|0,$=p(B);if($<0)b=B+1;else if($>0)D=B-1;else return B}return-(b+1)}function rce(f,p,b){if(f=f|0,f>=p.length)throw new TypeError("invalid index");const D=p[Math.floor(p.length*Math.random())],B=[],$=[],pe=[];for(const ke of p){const qe=b(ke,D);qe<0?B.push(ke):qe>0?$.push(ke):pe.push(ke)}return f<B.length?rce(f,B,b):f<B.length+pe.length?pe[0]:rce(f-(B.length+pe.length),$,b)}function dpt(f,p){const b=[];let D;for(const B of f.slice(0).sort(p))!D||p(D[0],B)!==0?(D=[B],b.push(D)):D.push(B);return b}function*cNe(f,p){let b,D;for(const B of f)D!==void 0&&p(D,B)?b.push(B):(b&&(yield b),b=[B]),D=B;b&&(yield b)}function uNe(f,p){for(let b=0;b<=f.length;b++)p(b===0?void 0:f[b-1],b===f.length?void 0:f[b])}function dNe(f,p){for(let b=0;b<f.length;b++)p(b===0?void 0:f[b-1],f[b],b+1===f.length?void 0:f[b+1])}function fpt(f){return f.filter(p=>!!p)}function _pt(f){let p=0;for(let b=0;b<f.length;b++)f[b]&&(f[p]=f[b],p+=1);f.length=p}function ppt(f){return!Array.isArray(f)||f.length===0}function mpt(f){return Array.isArray(f)&&f.length>0}function hpt(f,p=b=>b){const b=new Set;return f.filter(D=>{const B=p(D);return b.has(B)?!1:(b.add(B),!0)})}function gpt(f,p){return f.length>0?f[0]:p}function ypt(f,p){let b=typeof p=="number"?f:0;typeof p=="number"?b=f:(b=0,p=f);const D=[];if(b<=p)for(let B=b;B<p;B++)D.push(B);else for(let B=b;B>p;B--)D.push(B);return D}function vpt(f,p,b){const D=f.slice(0,p),B=f.slice(p);return D.concat(b,B)}function bpt(f,p){const b=f.indexOf(p);b>-1&&(f.splice(b,1),f.unshift(p))}function Ept(f,p){const b=f.indexOf(p);b>-1&&(f.splice(b,1),f.push(p))}function fNe(f,p){for(const b of p)f.push(b)}function Tpt(f){return Array.isArray(f)?f:[f]}function _Ne(f,p,b){const D=ice(f,p),B=f.length,$=b.length;f.length=B+$;for(let pe=B-1;pe>=D;pe--)f[pe+$]=f[pe];for(let pe=0;pe<$;pe++)f[pe+D]=b[pe]}function Spt(f,p,b,D){const B=ice(f,p);let $=f.splice(B,b);return $===void 0&&($=[]),_Ne(f,B,D),$}function ice(f,p){return p<0?Math.max(p+f.length,0):Math.min(p,f.length)}var Nw;(function(f){function p($){return $<0}f.isLessThan=p;function b($){return $<=0}f.isLessThanOrEqual=b;function D($){return $>0}f.isGreaterThan=D;function B($){return $===0}f.isNeitherLessOrGreaterThan=B,f.greaterThan=1,f.lessThan=-1,f.neitherLessOrGreaterThan=0})(Nw||(Nw={}));function C7(f,p){return(b,D)=>p(f(b),f(D))}function xpt(...f){return(p,b)=>{for(const D of f){const B=D(p,b);if(!Nw.isNeitherLessOrGreaterThan(B))return B}return Nw.neitherLessOrGreaterThan}}const Ow=(f,p)=>f-p,Apt=(f,p)=>Ow(f?1:0,p?1:0);function pNe(f){return(p,b)=>-f(p,b)}class Cpt{constructor(p){this.items=p,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(p){let b=this.firstIdx;for(;b<this.items.length&&p(this.items[b]);)b++;const D=b===this.firstIdx?null:this.items.slice(this.firstIdx,b);return this.firstIdx=b,D}takeFromEndWhile(p){let b=this.lastIdx;for(;b>=0&&p(this.items[b]);)b--;const D=b===this.lastIdx?null:this.items.slice(b+1,this.lastIdx+1);return this.lastIdx=b,D}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const p=this.items[this.firstIdx];return this.firstIdx++,p}takeCount(p){const b=this.items.slice(this.firstIdx,this.firstIdx+p);return this.firstIdx+=p,b}}class Mw{constructor(p){this.iterate=p}toArray(){const p=[];return this.iterate(b=>(p.push(b),!0)),p}filter(p){return new Mw(b=>this.iterate(D=>p(D)?b(D):!0))}map(p){return new Mw(b=>this.iterate(D=>b(p(D))))}findLast(p){let b;return this.iterate(D=>(p(D)&&(b=D),!0)),b}findLastMaxBy(p){let b,D=!0;return this.iterate(B=>((D||Nw.isGreaterThan(p(B,b)))&&(D=!1,b=B),!0)),b}}Mw.empty=new Mw(f=>{});function ace(f){return f<0?0:f>255?255:f|0}function kI(f){return f<0?0:f>4294967295?4294967295:f|0}class mNe{constructor(p){this.values=p,this.prefixSum=new Uint32Array(p.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(p,b){p=kI(p);const D=this.values,B=this.prefixSum,$=b.length;return $===0?!1:(this.values=new Uint32Array(D.length+$),this.values.set(D.subarray(0,p),0),this.values.set(D.subarray(p),p+$),this.values.set(b,p),p-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=p-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(B.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(p,b){return p=kI(p),b=kI(b),this.values[p]===b?!1:(this.values[p]=b,p-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=p-1),!0)}removeValues(p,b){p=kI(p),b=kI(b);const D=this.values,B=this.prefixSum;if(p>=D.length)return!1;const $=D.length-p;return b>=$&&(b=$),b===0?!1:(this.values=new Uint32Array(D.length-b),this.values.set(D.subarray(0,p),0),this.values.set(D.subarray(p+b),p),this.prefixSum=new Uint32Array(this.values.length),p-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=p-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(B.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(p){return p<0?0:(p=kI(p),this._getPrefixSum(p))}_getPrefixSum(p){if(p<=this.prefixSumValidIndex[0])return this.prefixSum[p];let b=this.prefixSumValidIndex[0]+1;b===0&&(this.prefixSum[0]=this.values[0],b++),p>=this.values.length&&(p=this.values.length-1);for(let D=b;D<=p;D++)this.prefixSum[D]=this.prefixSum[D-1]+this.values[D];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],p),this.prefixSum[p]}getIndexOf(p){p=Math.floor(p),this.getTotalSum();let b=0,D=this.values.length-1,B=0,$=0,pe=0;for(;b<=D;)if(B=b+(D-b)/2|0,$=this.prefixSum[B],pe=$-this.values[B],p<pe)D=B-1;else if(p>=$)b=B+1;else break;return new oce(B,p-pe)}}class Lpt{constructor(p){this._values=p,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(p){return this._ensureValid(),p===0?0:this._prefixSum[p-1]}getIndexOf(p){this._ensureValid();const b=this._indexBySum[p],D=b>0?this._prefixSum[b-1]:0;return new oce(b,p-D)}removeValues(p,b){this._values.splice(p,b),this._invalidate(p)}insertValues(p,b){this._values=arrayInsert(this._values,p,b),this._invalidate(p)}_invalidate(p){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,p-1)}_ensureValid(){if(!this._isValid){for(let p=this._validEndIndex+1,b=this._values.length;p<b;p++){const D=this._values[p],B=p>0?this._prefixSum[p-1]:0;this._prefixSum[p]=B+D;for(let $=0;$<D;$++)this._indexBySum[B+$]=p}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(p,b){this._values[p]!==b&&(this._values[p]=b,this._invalidate(p))}}class oce{constructor(p,b){this.index=p,this.remainder=b,this._prefixSumIndexOfResultBrand=void 0,this.index=p,this.remainder=b}}class hNe{constructor(p,b,D,B){this._uri=p,this._lines=b,this._eol=D,this._versionId=B,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(p){p.eol&&p.eol!==this._eol&&(this._eol=p.eol,this._lineStarts=null);const b=p.changes;for(const D of b)this._acceptDeleteRange(D.range),this._acceptInsertText(new Qp(D.range.startLineNumber,D.range.startColumn),D.text);this._versionId=p.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const p=this._eol.length,b=this._lines.length,D=new Uint32Array(b);for(let B=0;B<b;B++)D[B]=this._lines[B].length+p;this._lineStarts=new mNe(D)}}_setLineText(p,b){this._lines[p]=b,this._lineStarts&&this._lineStarts.setValue(p,this._lines[p].length+this._eol.length)}_acceptDeleteRange(p){if(p.startLineNumber===p.endLineNumber){if(p.startColumn===p.endColumn)return;this._setLineText(p.startLineNumber-1,this._lines[p.startLineNumber-1].substring(0,p.startColumn-1)+this._lines[p.startLineNumber-1].substring(p.endColumn-1));return}this._setLineText(p.startLineNumber-1,this._lines[p.startLineNumber-1].substring(0,p.startColumn-1)+this._lines[p.endLineNumber-1].substring(p.endColumn-1)),this._lines.splice(p.startLineNumber,p.endLineNumber-p.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(p.startLineNumber,p.endLineNumber-p.startLineNumber)}_acceptInsertText(p,b){if(b.length===0)return;const D=b6e(b);if(D.length===1){this._setLineText(p.lineNumber-1,this._lines[p.lineNumber-1].substring(0,p.column-1)+D[0]+this._lines[p.lineNumber-1].substring(p.column-1));return}D[D.length-1]+=this._lines[p.lineNumber-1].substring(p.column-1),this._setLineText(p.lineNumber-1,this._lines[p.lineNumber-1].substring(0,p.column-1)+D[0]);const B=new Uint32Array(D.length-1);for(let $=1;$<D.length;$++)this._lines.splice(p.lineNumber+$-1,0,D[$]),B[$-1]=D[$].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(p.lineNumber,B)}}const gNe="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function yNe(f=""){let p="(-?\\d*\\.\\d\\w*)|([^";for(const b of gNe)f.indexOf(b)>=0||(p+="\\"+b);return p+="\\s]+)",new RegExp(p,"g")}const sce=yNe();function vNe(f){let p=sce;if(f&&f instanceof RegExp)if(f.global)p=f;else{let b="g";f.ignoreCase&&(b+="i"),f.multiline&&(b+="m"),f.unicode&&(b+="u"),p=new RegExp(f.source,b)}return p.lastIndex=0,p}const lce=new JRe;lce.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function AW(f,p,b,D,B){if(B||(B=_7.first(lce)),b.length>B.maxLen){let ge=f-B.maxLen/2;return ge<0?ge=0:D+=ge,b=b.substring(ge,f+B.maxLen/2),AW(f,p,b,D,B)}const $=Date.now(),pe=f-1-D;let ke=-1,qe=null;for(let ge=1;!(Date.now()-$>=B.timeBudget);ge++){const Ie=pe-B.windowSize*ge;p.lastIndex=Math.max(0,Ie);const xt=bNe(p,b,pe,ke);if(!xt&&qe||(qe=xt,Ie<=0))break;ke=Ie}if(qe){const ge={word:qe[0],startColumn:D+1+qe.index,endColumn:D+1+qe.index+qe[0].length};return p.lastIndex=0,ge}return null}function bNe(f,p,b,D){let B;for(;B=f.exec(p);){const $=B.index||0;if($<=b&&f.lastIndex>=b)return B;if(D>0&&$>D)return null}return null}class Pw{constructor(p){const b=ace(p);this._defaultValue=b,this._asciiMap=Pw._createAsciiMap(b),this._map=new Map}static _createAsciiMap(p){const b=new Uint8Array(256);return b.fill(p),b}set(p,b){const D=ace(b);p>=0&&p<256?this._asciiMap[p]=D:this._map.set(p,D)}get(p){return p>=0&&p<256?this._asciiMap[p]:this._map.get(p)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Ipt{constructor(){this._actual=new Pw(0)}add(p){this._actual.set(p,1)}has(p){return this._actual.get(p)===1}clear(){return this._actual.clear()}}class ENe{constructor(p,b,D){const B=new Uint8Array(p*b);for(let $=0,pe=p*b;$<pe;$++)B[$]=D;this._data=B,this.rows=p,this.cols=b}get(p,b){return this._data[p*this.cols+b]}set(p,b,D){this._data[p*this.cols+b]=D}}class TNe{constructor(p){let b=0,D=0;for(let $=0,pe=p.length;$<pe;$++){const[ke,qe,ge]=p[$];qe>b&&(b=qe),ke>D&&(D=ke),ge>D&&(D=ge)}b++,D++;const B=new ENe(D,b,0);for(let $=0,pe=p.length;$<pe;$++){const[ke,qe,ge]=p[$];B.set(ke,qe,ge)}this._states=B,this._maxCharCode=b}nextState(p,b){return b<0||b>=this._maxCharCode?0:this._states.get(p,b)}}let CW=null;function SNe(){return CW===null&&(CW=new TNe([[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]])),CW}let Fw=null;function xNe(){if(Fw===null){Fw=new Pw(0);const f=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let b=0;b<f.length;b++)Fw.set(f.charCodeAt(b),1);const p=".,;:";for(let b=0;b<p.length;b++)Fw.set(p.charCodeAt(b),2)}return Fw}class L7{static _createLink(p,b,D,B,$){let pe=$-1;do{const ke=b.charCodeAt(pe);if(p.get(ke)!==2)break;pe--}while(pe>B);if(B>0){const ke=b.charCodeAt(B-1),qe=b.charCodeAt(pe);(ke===40&&qe===41||ke===91&&qe===93||ke===123&&qe===125)&&pe--}return{range:{startLineNumber:D,startColumn:B+1,endLineNumber:D,endColumn:pe+2},url:b.substring(B,pe+1)}}static computeLinks(p,b=SNe()){const D=xNe(),B=[];for(let $=1,pe=p.getLineCount();$<=pe;$++){const ke=p.getLineContent($),qe=ke.length;let ge=0,Ie=0,xt=0,qt=1,Xn=!1,fr=!1,zn=!1,sa=!1;for(;ge<qe;){let Qn=!1;const $t=ke.charCodeAt(ge);if(qt===13){let yi;switch($t){case 40:Xn=!0,yi=0;break;case 41:yi=Xn?0:1;break;case 91:zn=!0,fr=!0,yi=0;break;case 93:zn=!1,yi=fr?0:1;break;case 123:sa=!0,yi=0;break;case 125:yi=sa?0:1;break;case 39:case 34:case 96:xt===$t?yi=1:xt===39||xt===34||xt===96?yi=0:yi=1;break;case 42:yi=xt===42?1:0;break;case 124:yi=xt===124?1:0;break;case 32:yi=zn?0:1;break;default:yi=D.get($t)}yi===1&&(B.push(L7._createLink(D,ke,$,Ie,ge)),Qn=!0)}else if(qt===12){let yi;$t===91?(fr=!0,yi=0):yi=D.get($t),yi===1?Qn=!0:qt=13}else qt=b.nextState(qt,$t),qt===0&&(Qn=!0);Qn&&(qt=1,Xn=!1,fr=!1,sa=!1,Ie=ge+1,xt=$t),ge++}qt===13&&B.push(L7._createLink(D,ke,$,Ie,qe))}return B}}function ANe(f){return!f||typeof f.getLineCount!="function"||typeof f.getLineContent!="function"?[]:L7.computeLinks(f)}class LW{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(p,b,D,B,$){if(p&&b){const pe=this.doNavigateValueSet(b,$);if(pe)return{range:p,value:pe}}if(D&&B){const pe=this.doNavigateValueSet(B,$);if(pe)return{range:D,value:pe}}return null}doNavigateValueSet(p,b){const D=this.numberReplace(p,b);return D!==null?D:this.textReplace(p,b)}numberReplace(p,b){const D=Math.pow(10,p.length-(p.lastIndexOf(".")+1));let B=Number(p);const $=parseFloat(p);return!isNaN(B)&&!isNaN($)&&B===$?B===0&&!b?null:(B=Math.floor(B*D),B+=b?D:-D,String(B/D)):null}textReplace(p,b){return this.valueSetsReplace(this._defaultValueSet,p,b)}valueSetsReplace(p,b,D){let B=null;for(let $=0,pe=p.length;B===null&&$<pe;$++)B=this.valueSetReplace(p[$],b,D);return B}valueSetReplace(p,b,D){let B=p.indexOf(b);return B>=0?(B+=D?1:-1,B<0?B=p.length-1:B%=p.length,p[B]):null}}LW.INSTANCE=new LW;const cce=Object.freeze(function(f,p){const b=setTimeout(f.bind(p),0);return{dispose(){clearTimeout(b)}}});var I7;(function(f){function p(b){return b===f.None||b===f.Cancelled||b instanceof k7?!0:!b||typeof b!="object"?!1:typeof b.isCancellationRequested=="boolean"&&typeof b.onCancellationRequested=="function"}f.isCancellationToken=p,f.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:h7.None}),f.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:cce})})(I7||(I7={}));class k7{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?cce:(this._emitter||(this._emitter=new hy),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class CNe{constructor(p){this._token=void 0,this._parentListener=void 0,this._parentListener=p&&p.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new k7),this._token}cancel(){this._token?this._token instanceof k7&&this._token.cancel():this._token=I7.Cancelled}dispose(p=!1){var b;p&&this.cancel(),(b=this._parentListener)===null||b===void 0||b.dispose(),this._token?this._token instanceof k7&&this._token.dispose():this._token=I7.None}}class IW{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(p,b){this._keyCodeToStr[p]=b,this._strToKeyCode[b.toLowerCase()]=p}keyCodeToStr(p){return this._keyCodeToStr[p]}strToKeyCode(p){return this._strToKeyCode[p.toLowerCase()]||0}}const w7=new IW,kW=new IW,wW=new IW,LNe=new Array(230),INe={},kNe=[],wNe=Object.create(null),DNe=Object.create(null),uce=[],DW=[];for(let f=0;f<=193;f++)uce[f]=-1;for(let f=0;f<=132;f++)DW[f]=-1;(function(){const f="",p=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",f,f],[1,1,"Hyper",0,f,0,f,f,f],[1,2,"Super",0,f,0,f,f,f],[1,3,"Fn",0,f,0,f,f,f],[1,4,"FnLock",0,f,0,f,f,f],[1,5,"Suspend",0,f,0,f,f,f],[1,6,"Resume",0,f,0,f,f,f],[1,7,"Turbo",0,f,0,f,f,f],[1,8,"Sleep",0,f,0,"VK_SLEEP",f,f],[1,9,"WakeUp",0,f,0,f,f,f],[0,10,"KeyA",31,"A",65,"VK_A",f,f],[0,11,"KeyB",32,"B",66,"VK_B",f,f],[0,12,"KeyC",33,"C",67,"VK_C",f,f],[0,13,"KeyD",34,"D",68,"VK_D",f,f],[0,14,"KeyE",35,"E",69,"VK_E",f,f],[0,15,"KeyF",36,"F",70,"VK_F",f,f],[0,16,"KeyG",37,"G",71,"VK_G",f,f],[0,17,"KeyH",38,"H",72,"VK_H",f,f],[0,18,"KeyI",39,"I",73,"VK_I",f,f],[0,19,"KeyJ",40,"J",74,"VK_J",f,f],[0,20,"KeyK",41,"K",75,"VK_K",f,f],[0,21,"KeyL",42,"L",76,"VK_L",f,f],[0,22,"KeyM",43,"M",77,"VK_M",f,f],[0,23,"KeyN",44,"N",78,"VK_N",f,f],[0,24,"KeyO",45,"O",79,"VK_O",f,f],[0,25,"KeyP",46,"P",80,"VK_P",f,f],[0,26,"KeyQ",47,"Q",81,"VK_Q",f,f],[0,27,"KeyR",48,"R",82,"VK_R",f,f],[0,28,"KeyS",49,"S",83,"VK_S",f,f],[0,29,"KeyT",50,"T",84,"VK_T",f,f],[0,30,"KeyU",51,"U",85,"VK_U",f,f],[0,31,"KeyV",52,"V",86,"VK_V",f,f],[0,32,"KeyW",53,"W",87,"VK_W",f,f],[0,33,"KeyX",54,"X",88,"VK_X",f,f],[0,34,"KeyY",55,"Y",89,"VK_Y",f,f],[0,35,"KeyZ",56,"Z",90,"VK_Z",f,f],[0,36,"Digit1",22,"1",49,"VK_1",f,f],[0,37,"Digit2",23,"2",50,"VK_2",f,f],[0,38,"Digit3",24,"3",51,"VK_3",f,f],[0,39,"Digit4",25,"4",52,"VK_4",f,f],[0,40,"Digit5",26,"5",53,"VK_5",f,f],[0,41,"Digit6",27,"6",54,"VK_6",f,f],[0,42,"Digit7",28,"7",55,"VK_7",f,f],[0,43,"Digit8",29,"8",56,"VK_8",f,f],[0,44,"Digit9",30,"9",57,"VK_9",f,f],[0,45,"Digit0",21,"0",48,"VK_0",f,f],[1,46,"Enter",3,"Enter",13,"VK_RETURN",f,f],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",f,f],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",f,f],[1,49,"Tab",2,"Tab",9,"VK_TAB",f,f],[1,50,"Space",10,"Space",32,"VK_SPACE",f,f],[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,f,0,f,f,f],[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",f,f],[1,64,"F1",59,"F1",112,"VK_F1",f,f],[1,65,"F2",60,"F2",113,"VK_F2",f,f],[1,66,"F3",61,"F3",114,"VK_F3",f,f],[1,67,"F4",62,"F4",115,"VK_F4",f,f],[1,68,"F5",63,"F5",116,"VK_F5",f,f],[1,69,"F6",64,"F6",117,"VK_F6",f,f],[1,70,"F7",65,"F7",118,"VK_F7",f,f],[1,71,"F8",66,"F8",119,"VK_F8",f,f],[1,72,"F9",67,"F9",120,"VK_F9",f,f],[1,73,"F10",68,"F10",121,"VK_F10",f,f],[1,74,"F11",69,"F11",122,"VK_F11",f,f],[1,75,"F12",70,"F12",123,"VK_F12",f,f],[1,76,"PrintScreen",0,f,0,f,f,f],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",f,f],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",f,f],[1,79,"Insert",19,"Insert",45,"VK_INSERT",f,f],[1,80,"Home",14,"Home",36,"VK_HOME",f,f],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",f,f],[1,82,"Delete",20,"Delete",46,"VK_DELETE",f,f],[1,83,"End",13,"End",35,"VK_END",f,f],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",f,f],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",f],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",f],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",f],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",f],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",f,f],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",f,f],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",f,f],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",f,f],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",f,f],[1,94,"NumpadEnter",3,f,0,f,f,f],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",f,f],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",f,f],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",f,f],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",f,f],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",f,f],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",f,f],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",f,f],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",f,f],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",f,f],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",f,f],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",f,f],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",f,f],[1,107,"ContextMenu",58,"ContextMenu",93,f,f,f],[1,108,"Power",0,f,0,f,f,f],[1,109,"NumpadEqual",0,f,0,f,f,f],[1,110,"F13",71,"F13",124,"VK_F13",f,f],[1,111,"F14",72,"F14",125,"VK_F14",f,f],[1,112,"F15",73,"F15",126,"VK_F15",f,f],[1,113,"F16",74,"F16",127,"VK_F16",f,f],[1,114,"F17",75,"F17",128,"VK_F17",f,f],[1,115,"F18",76,"F18",129,"VK_F18",f,f],[1,116,"F19",77,"F19",130,"VK_F19",f,f],[1,117,"F20",78,"F20",131,"VK_F20",f,f],[1,118,"F21",79,"F21",132,"VK_F21",f,f],[1,119,"F22",80,"F22",133,"VK_F22",f,f],[1,120,"F23",81,"F23",134,"VK_F23",f,f],[1,121,"F24",82,"F24",135,"VK_F24",f,f],[1,122,"Open",0,f,0,f,f,f],[1,123,"Help",0,f,0,f,f,f],[1,124,"Select",0,f,0,f,f,f],[1,125,"Again",0,f,0,f,f,f],[1,126,"Undo",0,f,0,f,f,f],[1,127,"Cut",0,f,0,f,f,f],[1,128,"Copy",0,f,0,f,f,f],[1,129,"Paste",0,f,0,f,f,f],[1,130,"Find",0,f,0,f,f,f],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",f,f],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",f,f],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",f,f],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",f,f],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",f,f],[1,136,"KanaMode",0,f,0,f,f,f],[0,137,"IntlYen",0,f,0,f,f,f],[1,138,"Convert",0,f,0,f,f,f],[1,139,"NonConvert",0,f,0,f,f,f],[1,140,"Lang1",0,f,0,f,f,f],[1,141,"Lang2",0,f,0,f,f,f],[1,142,"Lang3",0,f,0,f,f,f],[1,143,"Lang4",0,f,0,f,f,f],[1,144,"Lang5",0,f,0,f,f,f],[1,145,"Abort",0,f,0,f,f,f],[1,146,"Props",0,f,0,f,f,f],[1,147,"NumpadParenLeft",0,f,0,f,f,f],[1,148,"NumpadParenRight",0,f,0,f,f,f],[1,149,"NumpadBackspace",0,f,0,f,f,f],[1,150,"NumpadMemoryStore",0,f,0,f,f,f],[1,151,"NumpadMemoryRecall",0,f,0,f,f,f],[1,152,"NumpadMemoryClear",0,f,0,f,f,f],[1,153,"NumpadMemoryAdd",0,f,0,f,f,f],[1,154,"NumpadMemorySubtract",0,f,0,f,f,f],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",f,f],[1,156,"NumpadClearEntry",0,f,0,f,f,f],[1,0,f,5,"Ctrl",17,"VK_CONTROL",f,f],[1,0,f,4,"Shift",16,"VK_SHIFT",f,f],[1,0,f,6,"Alt",18,"VK_MENU",f,f],[1,0,f,57,"Meta",91,"VK_COMMAND",f,f],[1,157,"ControlLeft",5,f,0,"VK_LCONTROL",f,f],[1,158,"ShiftLeft",4,f,0,"VK_LSHIFT",f,f],[1,159,"AltLeft",6,f,0,"VK_LMENU",f,f],[1,160,"MetaLeft",57,f,0,"VK_LWIN",f,f],[1,161,"ControlRight",5,f,0,"VK_RCONTROL",f,f],[1,162,"ShiftRight",4,f,0,"VK_RSHIFT",f,f],[1,163,"AltRight",6,f,0,"VK_RMENU",f,f],[1,164,"MetaRight",57,f,0,"VK_RWIN",f,f],[1,165,"BrightnessUp",0,f,0,f,f,f],[1,166,"BrightnessDown",0,f,0,f,f,f],[1,167,"MediaPlay",0,f,0,f,f,f],[1,168,"MediaRecord",0,f,0,f,f,f],[1,169,"MediaFastForward",0,f,0,f,f,f],[1,170,"MediaRewind",0,f,0,f,f,f],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",f,f],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",f,f],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",f,f],[1,174,"Eject",0,f,0,f,f,f],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",f,f],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",f,f],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",f,f],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",f,f],[1,179,"LaunchApp1",0,f,0,"VK_MEDIA_LAUNCH_APP1",f,f],[1,180,"SelectTask",0,f,0,f,f,f],[1,181,"LaunchScreenSaver",0,f,0,f,f,f],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",f,f],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",f,f],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",f,f],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",f,f],[1,186,"BrowserStop",0,f,0,"VK_BROWSER_STOP",f,f],[1,187,"BrowserRefresh",0,f,0,"VK_BROWSER_REFRESH",f,f],[1,188,"BrowserFavorites",0,f,0,"VK_BROWSER_FAVORITES",f,f],[1,189,"ZoomToggle",0,f,0,f,f,f],[1,190,"MailReply",0,f,0,f,f,f],[1,191,"MailForward",0,f,0,f,f,f],[1,192,"MailSend",0,f,0,f,f,f],[1,0,f,114,"KeyInComposition",229,f,f,f],[1,0,f,116,"ABNT_C2",194,"VK_ABNT_C2",f,f],[1,0,f,96,"OEM_8",223,"VK_OEM_8",f,f],[1,0,f,0,f,0,"VK_KANA",f,f],[1,0,f,0,f,0,"VK_HANGUL",f,f],[1,0,f,0,f,0,"VK_JUNJA",f,f],[1,0,f,0,f,0,"VK_FINAL",f,f],[1,0,f,0,f,0,"VK_HANJA",f,f],[1,0,f,0,f,0,"VK_KANJI",f,f],[1,0,f,0,f,0,"VK_CONVERT",f,f],[1,0,f,0,f,0,"VK_NONCONVERT",f,f],[1,0,f,0,f,0,"VK_ACCEPT",f,f],[1,0,f,0,f,0,"VK_MODECHANGE",f,f],[1,0,f,0,f,0,"VK_SELECT",f,f],[1,0,f,0,f,0,"VK_PRINT",f,f],[1,0,f,0,f,0,"VK_EXECUTE",f,f],[1,0,f,0,f,0,"VK_SNAPSHOT",f,f],[1,0,f,0,f,0,"VK_HELP",f,f],[1,0,f,0,f,0,"VK_APPS",f,f],[1,0,f,0,f,0,"VK_PROCESSKEY",f,f],[1,0,f,0,f,0,"VK_PACKET",f,f],[1,0,f,0,f,0,"VK_DBE_SBCSCHAR",f,f],[1,0,f,0,f,0,"VK_DBE_DBCSCHAR",f,f],[1,0,f,0,f,0,"VK_ATTN",f,f],[1,0,f,0,f,0,"VK_CRSEL",f,f],[1,0,f,0,f,0,"VK_EXSEL",f,f],[1,0,f,0,f,0,"VK_EREOF",f,f],[1,0,f,0,f,0,"VK_PLAY",f,f],[1,0,f,0,f,0,"VK_ZOOM",f,f],[1,0,f,0,f,0,"VK_NONAME",f,f],[1,0,f,0,f,0,"VK_PA1",f,f],[1,0,f,0,f,0,"VK_OEM_CLEAR",f,f]],b=[],D=[];for(const B of p){const[$,pe,ke,qe,ge,Ie,xt,qt,Xn]=B;if(D[pe]||(D[pe]=!0,kNe[pe]=ke,wNe[ke]=pe,DNe[ke.toLowerCase()]=pe,$&&(uce[pe]=qe,qe!==0&&qe!==3&&qe!==5&&qe!==4&&qe!==6&&qe!==57&&(DW[qe]=pe))),!b[qe]){if(b[qe]=!0,!ge)throw new Error(`String representation missing for key code ${qe} around scan code ${ke}`);w7.define(qe,ge),kW.define(qe,qt||ge),wW.define(qe,Xn||qt||ge)}Ie&&(LNe[Ie]=qe),xt&&(INe[xt]=qe)}DW[3]=46})();var dce;(function(f){function p(ke){return w7.keyCodeToStr(ke)}f.toString=p;function b(ke){return w7.strToKeyCode(ke)}f.fromString=b;function D(ke){return kW.keyCodeToStr(ke)}f.toUserSettingsUS=D;function B(ke){return wW.keyCodeToStr(ke)}f.toUserSettingsGeneral=B;function $(ke){return kW.strToKeyCode(ke)||wW.strToKeyCode(ke)}f.fromUserSettings=$;function pe(ke){if(ke>=98&&ke<=113)return null;switch(ke){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return w7.keyCodeToStr(ke)}f.toElectronAccelerator=pe})(dce||(dce={}));function RNe(f,p){const b=(p&65535)<<16>>>0;return(f|b)>>>0}class gy extends Bl{constructor(p,b,D,B){super(p,b,D,B),this.selectionStartLineNumber=p,this.selectionStartColumn=b,this.positionLineNumber=D,this.positionColumn=B}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(p){return gy.selectionsEqual(this,p)}static selectionsEqual(p,b){return p.selectionStartLineNumber===b.selectionStartLineNumber&&p.selectionStartColumn===b.selectionStartColumn&&p.positionLineNumber===b.positionLineNumber&&p.positionColumn===b.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(p,b){return this.getDirection()===0?new gy(this.startLineNumber,this.startColumn,p,b):new gy(p,b,this.startLineNumber,this.startColumn)}getPosition(){return new Qp(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Qp(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(p,b){return this.getDirection()===0?new gy(p,b,this.endLineNumber,this.endColumn):new gy(this.endLineNumber,this.endColumn,p,b)}static fromPositions(p,b=p){return new gy(p.lineNumber,p.column,b.lineNumber,b.column)}static fromRange(p,b){return b===0?new gy(p.startLineNumber,p.startColumn,p.endLineNumber,p.endColumn):new gy(p.endLineNumber,p.endColumn,p.startLineNumber,p.startColumn)}static liftSelection(p){return new gy(p.selectionStartLineNumber,p.selectionStartColumn,p.positionLineNumber,p.positionColumn)}static selectionsArrEqual(p,b){if(p&&!b||!p&&b)return!1;if(!p&&!b)return!0;if(p.length!==b.length)return!1;for(let D=0,B=p.length;D<B;D++)if(!this.selectionsEqual(p[D],b[D]))return!1;return!0}static isISelection(p){return p&&typeof p.selectionStartLineNumber=="number"&&typeof p.selectionStartColumn=="number"&&typeof p.positionLineNumber=="number"&&typeof p.positionColumn=="number"}static createWithDirection(p,b,D,B,$){return $===0?new gy(p,b,D,B):new gy(D,B,p,b)}}function fce(f){return typeof f=="string"}function kpt(f){return typeof f=="object"&&f!==null&&!Array.isArray(f)&&!(f instanceof RegExp)&&!(f instanceof Date)}function wpt(f){const p=Object.getPrototypeOf(Uint8Array);return typeof f=="object"&&f instanceof p}function Dpt(f){return typeof f=="number"&&!isNaN(f)}function Rpt(f){return!!f&&typeof f[Symbol.iterator]=="function"}function Npt(f){return f===!0||f===!1}function NNe(f){return typeof f=="undefined"}function Opt(f){return!RW(f)}function RW(f){return NNe(f)||f===null}function Mpt(f,p){if(!f)throw new Error(p?`Unexpected type, expected '${p}'`:"Unexpected type")}function Ppt(f){if(RW(f))throw new Error("Assertion Failed: argument is undefined or null");return f}function ONe(f){return typeof f=="function"}function Fpt(f,p){const b=Math.min(f.length,p.length);for(let D=0;D<b;D++)MNe(f[D],p[D])}function MNe(f,p){if(fce(p)){if(typeof f!==p)throw new Error(`argument does not match constraint: typeof ${p}`)}else if(ONe(p)){try{if(f instanceof p)return}catch(b){}if(!RW(f)&&f.constructor===p||p.length===1&&p.call(void 0,f)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}const NW=Object.create(null);function we(f,p){if(fce(p)){const b=NW[p];if(b===void 0)throw new Error(`${f} references an unknown codicon: ${p}`);p=b}return NW[f]=p,{id:f}}function Bpt(){return NW}const _s={add:we("add",6e4),plus:we("plus",6e4),gistNew:we("gist-new",6e4),repoCreate:we("repo-create",6e4),lightbulb:we("lightbulb",60001),lightBulb:we("light-bulb",60001),repo:we("repo",60002),repoDelete:we("repo-delete",60002),gistFork:we("gist-fork",60003),repoForked:we("repo-forked",60003),gitPullRequest:we("git-pull-request",60004),gitPullRequestAbandoned:we("git-pull-request-abandoned",60004),recordKeys:we("record-keys",60005),keyboard:we("keyboard",60005),tag:we("tag",60006),tagAdd:we("tag-add",60006),tagRemove:we("tag-remove",60006),gitPullRequestLabel:we("git-pull-request-label",60006),person:we("person",60007),personFollow:we("person-follow",60007),personOutline:we("person-outline",60007),personFilled:we("person-filled",60007),gitBranch:we("git-branch",60008),gitBranchCreate:we("git-branch-create",60008),gitBranchDelete:we("git-branch-delete",60008),sourceControl:we("source-control",60008),mirror:we("mirror",60009),mirrorPublic:we("mirror-public",60009),star:we("star",60010),starAdd:we("star-add",60010),starDelete:we("star-delete",60010),starEmpty:we("star-empty",60010),comment:we("comment",60011),commentAdd:we("comment-add",60011),alert:we("alert",60012),warning:we("warning",60012),search:we("search",60013),searchSave:we("search-save",60013),logOut:we("log-out",60014),signOut:we("sign-out",60014),logIn:we("log-in",60015),signIn:we("sign-in",60015),eye:we("eye",60016),eyeUnwatch:we("eye-unwatch",60016),eyeWatch:we("eye-watch",60016),circleFilled:we("circle-filled",60017),primitiveDot:we("primitive-dot",60017),closeDirty:we("close-dirty",60017),debugBreakpoint:we("debug-breakpoint",60017),debugBreakpointDisabled:we("debug-breakpoint-disabled",60017),debugHint:we("debug-hint",60017),primitiveSquare:we("primitive-square",60018),edit:we("edit",60019),pencil:we("pencil",60019),info:we("info",60020),issueOpened:we("issue-opened",60020),gistPrivate:we("gist-private",60021),gitForkPrivate:we("git-fork-private",60021),lock:we("lock",60021),mirrorPrivate:we("mirror-private",60021),close:we("close",60022),removeClose:we("remove-close",60022),x:we("x",60022),repoSync:we("repo-sync",60023),sync:we("sync",60023),clone:we("clone",60024),desktopDownload:we("desktop-download",60024),beaker:we("beaker",60025),microscope:we("microscope",60025),vm:we("vm",60026),deviceDesktop:we("device-desktop",60026),file:we("file",60027),fileText:we("file-text",60027),more:we("more",60028),ellipsis:we("ellipsis",60028),kebabHorizontal:we("kebab-horizontal",60028),mailReply:we("mail-reply",60029),reply:we("reply",60029),organization:we("organization",60030),organizationFilled:we("organization-filled",60030),organizationOutline:we("organization-outline",60030),newFile:we("new-file",60031),fileAdd:we("file-add",60031),newFolder:we("new-folder",60032),fileDirectoryCreate:we("file-directory-create",60032),trash:we("trash",60033),trashcan:we("trashcan",60033),history:we("history",60034),clock:we("clock",60034),folder:we("folder",60035),fileDirectory:we("file-directory",60035),symbolFolder:we("symbol-folder",60035),logoGithub:we("logo-github",60036),markGithub:we("mark-github",60036),github:we("github",60036),terminal:we("terminal",60037),console:we("console",60037),repl:we("repl",60037),zap:we("zap",60038),symbolEvent:we("symbol-event",60038),error:we("error",60039),stop:we("stop",60039),variable:we("variable",60040),symbolVariable:we("symbol-variable",60040),array:we("array",60042),symbolArray:we("symbol-array",60042),symbolModule:we("symbol-module",60043),symbolPackage:we("symbol-package",60043),symbolNamespace:we("symbol-namespace",60043),symbolObject:we("symbol-object",60043),symbolMethod:we("symbol-method",60044),symbolFunction:we("symbol-function",60044),symbolConstructor:we("symbol-constructor",60044),symbolBoolean:we("symbol-boolean",60047),symbolNull:we("symbol-null",60047),symbolNumeric:we("symbol-numeric",60048),symbolNumber:we("symbol-number",60048),symbolStructure:we("symbol-structure",60049),symbolStruct:we("symbol-struct",60049),symbolParameter:we("symbol-parameter",60050),symbolTypeParameter:we("symbol-type-parameter",60050),symbolKey:we("symbol-key",60051),symbolText:we("symbol-text",60051),symbolReference:we("symbol-reference",60052),goToFile:we("go-to-file",60052),symbolEnum:we("symbol-enum",60053),symbolValue:we("symbol-value",60053),symbolRuler:we("symbol-ruler",60054),symbolUnit:we("symbol-unit",60054),activateBreakpoints:we("activate-breakpoints",60055),archive:we("archive",60056),arrowBoth:we("arrow-both",60057),arrowDown:we("arrow-down",60058),arrowLeft:we("arrow-left",60059),arrowRight:we("arrow-right",60060),arrowSmallDown:we("arrow-small-down",60061),arrowSmallLeft:we("arrow-small-left",60062),arrowSmallRight:we("arrow-small-right",60063),arrowSmallUp:we("arrow-small-up",60064),arrowUp:we("arrow-up",60065),bell:we("bell",60066),bold:we("bold",60067),book:we("book",60068),bookmark:we("bookmark",60069),debugBreakpointConditionalUnverified:we("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:we("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:we("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:we("debug-breakpoint-data-unverified",60072),debugBreakpointData:we("debug-breakpoint-data",60073),debugBreakpointDataDisabled:we("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:we("debug-breakpoint-log-unverified",60074),debugBreakpointLog:we("debug-breakpoint-log",60075),debugBreakpointLogDisabled:we("debug-breakpoint-log-disabled",60075),briefcase:we("briefcase",60076),broadcast:we("broadcast",60077),browser:we("browser",60078),bug:we("bug",60079),calendar:we("calendar",60080),caseSensitive:we("case-sensitive",60081),check:we("check",60082),checklist:we("checklist",60083),chevronDown:we("chevron-down",60084),dropDownButton:we("drop-down-button",60084),chevronLeft:we("chevron-left",60085),chevronRight:we("chevron-right",60086),chevronUp:we("chevron-up",60087),chromeClose:we("chrome-close",60088),chromeMaximize:we("chrome-maximize",60089),chromeMinimize:we("chrome-minimize",60090),chromeRestore:we("chrome-restore",60091),circle:we("circle",60092),circleOutline:we("circle-outline",60092),debugBreakpointUnverified:we("debug-breakpoint-unverified",60092),circleSlash:we("circle-slash",60093),circuitBoard:we("circuit-board",60094),clearAll:we("clear-all",60095),clippy:we("clippy",60096),closeAll:we("close-all",60097),cloudDownload:we("cloud-download",60098),cloudUpload:we("cloud-upload",60099),code:we("code",60100),collapseAll:we("collapse-all",60101),colorMode:we("color-mode",60102),commentDiscussion:we("comment-discussion",60103),compareChanges:we("compare-changes",60157),creditCard:we("credit-card",60105),dash:we("dash",60108),dashboard:we("dashboard",60109),database:we("database",60110),debugContinue:we("debug-continue",60111),debugDisconnect:we("debug-disconnect",60112),debugPause:we("debug-pause",60113),debugRestart:we("debug-restart",60114),debugStart:we("debug-start",60115),debugStepInto:we("debug-step-into",60116),debugStepOut:we("debug-step-out",60117),debugStepOver:we("debug-step-over",60118),debugStop:we("debug-stop",60119),debug:we("debug",60120),deviceCameraVideo:we("device-camera-video",60121),deviceCamera:we("device-camera",60122),deviceMobile:we("device-mobile",60123),diffAdded:we("diff-added",60124),diffIgnored:we("diff-ignored",60125),diffModified:we("diff-modified",60126),diffRemoved:we("diff-removed",60127),diffRenamed:we("diff-renamed",60128),diff:we("diff",60129),discard:we("discard",60130),editorLayout:we("editor-layout",60131),emptyWindow:we("empty-window",60132),exclude:we("exclude",60133),extensions:we("extensions",60134),eyeClosed:we("eye-closed",60135),fileBinary:we("file-binary",60136),fileCode:we("file-code",60137),fileMedia:we("file-media",60138),filePdf:we("file-pdf",60139),fileSubmodule:we("file-submodule",60140),fileSymlinkDirectory:we("file-symlink-directory",60141),fileSymlinkFile:we("file-symlink-file",60142),fileZip:we("file-zip",60143),files:we("files",60144),filter:we("filter",60145),flame:we("flame",60146),foldDown:we("fold-down",60147),foldUp:we("fold-up",60148),fold:we("fold",60149),folderActive:we("folder-active",60150),folderOpened:we("folder-opened",60151),gear:we("gear",60152),gift:we("gift",60153),gistSecret:we("gist-secret",60154),gist:we("gist",60155),gitCommit:we("git-commit",60156),gitCompare:we("git-compare",60157),gitMerge:we("git-merge",60158),githubAction:we("github-action",60159),githubAlt:we("github-alt",60160),globe:we("globe",60161),grabber:we("grabber",60162),graph:we("graph",60163),gripper:we("gripper",60164),heart:we("heart",60165),home:we("home",60166),horizontalRule:we("horizontal-rule",60167),hubot:we("hubot",60168),inbox:we("inbox",60169),issueClosed:we("issue-closed",60324),issueReopened:we("issue-reopened",60171),issues:we("issues",60172),italic:we("italic",60173),jersey:we("jersey",60174),json:we("json",60175),bracket:we("bracket",60175),kebabVertical:we("kebab-vertical",60176),key:we("key",60177),law:we("law",60178),lightbulbAutofix:we("lightbulb-autofix",60179),linkExternal:we("link-external",60180),link:we("link",60181),listOrdered:we("list-ordered",60182),listUnordered:we("list-unordered",60183),liveShare:we("live-share",60184),loading:we("loading",60185),location:we("location",60186),mailRead:we("mail-read",60187),mail:we("mail",60188),markdown:we("markdown",60189),megaphone:we("megaphone",60190),mention:we("mention",60191),milestone:we("milestone",60192),gitPullRequestMilestone:we("git-pull-request-milestone",60192),mortarBoard:we("mortar-board",60193),move:we("move",60194),multipleWindows:we("multiple-windows",60195),mute:we("mute",60196),noNewline:we("no-newline",60197),note:we("note",60198),octoface:we("octoface",60199),openPreview:we("open-preview",60200),package:we("package",60201),paintcan:we("paintcan",60202),pin:we("pin",60203),play:we("play",60204),run:we("run",60204),plug:we("plug",60205),preserveCase:we("preserve-case",60206),preview:we("preview",60207),project:we("project",60208),pulse:we("pulse",60209),question:we("question",60210),quote:we("quote",60211),radioTower:we("radio-tower",60212),reactions:we("reactions",60213),references:we("references",60214),refresh:we("refresh",60215),regex:we("regex",60216),remoteExplorer:we("remote-explorer",60217),remote:we("remote",60218),remove:we("remove",60219),replaceAll:we("replace-all",60220),replace:we("replace",60221),repoClone:we("repo-clone",60222),repoForcePush:we("repo-force-push",60223),repoPull:we("repo-pull",60224),repoPush:we("repo-push",60225),report:we("report",60226),requestChanges:we("request-changes",60227),rocket:we("rocket",60228),rootFolderOpened:we("root-folder-opened",60229),rootFolder:we("root-folder",60230),rss:we("rss",60231),ruby:we("ruby",60232),saveAll:we("save-all",60233),saveAs:we("save-as",60234),save:we("save",60235),screenFull:we("screen-full",60236),screenNormal:we("screen-normal",60237),searchStop:we("search-stop",60238),server:we("server",60240),settingsGear:we("settings-gear",60241),settings:we("settings",60242),shield:we("shield",60243),smiley:we("smiley",60244),sortPrecedence:we("sort-precedence",60245),splitHorizontal:we("split-horizontal",60246),splitVertical:we("split-vertical",60247),squirrel:we("squirrel",60248),starFull:we("star-full",60249),starHalf:we("star-half",60250),symbolClass:we("symbol-class",60251),symbolColor:we("symbol-color",60252),symbolCustomColor:we("symbol-customcolor",60252),symbolConstant:we("symbol-constant",60253),symbolEnumMember:we("symbol-enum-member",60254),symbolField:we("symbol-field",60255),symbolFile:we("symbol-file",60256),symbolInterface:we("symbol-interface",60257),symbolKeyword:we("symbol-keyword",60258),symbolMisc:we("symbol-misc",60259),symbolOperator:we("symbol-operator",60260),symbolProperty:we("symbol-property",60261),wrench:we("wrench",60261),wrenchSubaction:we("wrench-subaction",60261),symbolSnippet:we("symbol-snippet",60262),tasklist:we("tasklist",60263),telescope:we("telescope",60264),textSize:we("text-size",60265),threeBars:we("three-bars",60266),thumbsdown:we("thumbsdown",60267),thumbsup:we("thumbsup",60268),tools:we("tools",60269),triangleDown:we("triangle-down",60270),triangleLeft:we("triangle-left",60271),triangleRight:we("triangle-right",60272),triangleUp:we("triangle-up",60273),twitter:we("twitter",60274),unfold:we("unfold",60275),unlock:we("unlock",60276),unmute:we("unmute",60277),unverified:we("unverified",60278),verified:we("verified",60279),versions:we("versions",60280),vmActive:we("vm-active",60281),vmOutline:we("vm-outline",60282),vmRunning:we("vm-running",60283),watch:we("watch",60284),whitespace:we("whitespace",60285),wholeWord:we("whole-word",60286),window:we("window",60287),wordWrap:we("word-wrap",60288),zoomIn:we("zoom-in",60289),zoomOut:we("zoom-out",60290),listFilter:we("list-filter",60291),listFlat:we("list-flat",60292),listSelection:we("list-selection",60293),selection:we("selection",60293),listTree:we("list-tree",60294),debugBreakpointFunctionUnverified:we("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:we("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:we("debug-breakpoint-function-disabled",60296),debugStackframeActive:we("debug-stackframe-active",60297),circleSmallFilled:we("circle-small-filled",60298),debugStackframeDot:we("debug-stackframe-dot",60298),debugStackframe:we("debug-stackframe",60299),debugStackframeFocused:we("debug-stackframe-focused",60299),debugBreakpointUnsupported:we("debug-breakpoint-unsupported",60300),symbolString:we("symbol-string",60301),debugReverseContinue:we("debug-reverse-continue",60302),debugStepBack:we("debug-step-back",60303),debugRestartFrame:we("debug-restart-frame",60304),callIncoming:we("call-incoming",60306),callOutgoing:we("call-outgoing",60307),menu:we("menu",60308),expandAll:we("expand-all",60309),feedback:we("feedback",60310),gitPullRequestReviewer:we("git-pull-request-reviewer",60310),groupByRefType:we("group-by-ref-type",60311),ungroupByRefType:we("ungroup-by-ref-type",60312),account:we("account",60313),gitPullRequestAssignee:we("git-pull-request-assignee",60313),bellDot:we("bell-dot",60314),debugConsole:we("debug-console",60315),library:we("library",60316),output:we("output",60317),runAll:we("run-all",60318),syncIgnored:we("sync-ignored",60319),pinned:we("pinned",60320),githubInverted:we("github-inverted",60321),debugAlt:we("debug-alt",60305),serverProcess:we("server-process",60322),serverEnvironment:we("server-environment",60323),pass:we("pass",60324),stopCircle:we("stop-circle",60325),playCircle:we("play-circle",60326),record:we("record",60327),debugAltSmall:we("debug-alt-small",60328),vmConnect:we("vm-connect",60329),cloud:we("cloud",60330),merge:we("merge",60331),exportIcon:we("export",60332),graphLeft:we("graph-left",60333),magnet:we("magnet",60334),notebook:we("notebook",60335),redo:we("redo",60336),checkAll:we("check-all",60337),pinnedDirty:we("pinned-dirty",60338),passFilled:we("pass-filled",60339),circleLargeFilled:we("circle-large-filled",60340),circleLarge:we("circle-large",60341),circleLargeOutline:we("circle-large-outline",60341),combine:we("combine",60342),gather:we("gather",60342),table:we("table",60343),variableGroup:we("variable-group",60344),typeHierarchy:we("type-hierarchy",60345),typeHierarchySub:we("type-hierarchy-sub",60346),typeHierarchySuper:we("type-hierarchy-super",60347),gitPullRequestCreate:we("git-pull-request-create",60348),runAbove:we("run-above",60349),runBelow:we("run-below",60350),notebookTemplate:we("notebook-template",60351),debugRerun:we("debug-rerun",60352),workspaceTrusted:we("workspace-trusted",60353),workspaceUntrusted:we("workspace-untrusted",60354),workspaceUnspecified:we("workspace-unspecified",60355),terminalCmd:we("terminal-cmd",60356),terminalDebian:we("terminal-debian",60357),terminalLinux:we("terminal-linux",60358),terminalPowershell:we("terminal-powershell",60359),terminalTmux:we("terminal-tmux",60360),terminalUbuntu:we("terminal-ubuntu",60361),terminalBash:we("terminal-bash",60362),arrowSwap:we("arrow-swap",60363),copy:we("copy",60364),personAdd:we("person-add",60365),filterFilled:we("filter-filled",60366),wand:we("wand",60367),debugLineByLine:we("debug-line-by-line",60368),inspect:we("inspect",60369),layers:we("layers",60370),layersDot:we("layers-dot",60371),layersActive:we("layers-active",60372),compass:we("compass",60373),compassDot:we("compass-dot",60374),compassActive:we("compass-active",60375),azure:we("azure",60376),issueDraft:we("issue-draft",60377),gitPullRequestClosed:we("git-pull-request-closed",60378),gitPullRequestDraft:we("git-pull-request-draft",60379),debugAll:we("debug-all",60380),debugCoverage:we("debug-coverage",60381),runErrors:we("run-errors",60382),folderLibrary:we("folder-library",60383),debugContinueSmall:we("debug-continue-small",60384),beakerStop:we("beaker-stop",60385),graphLine:we("graph-line",60386),graphScatter:we("graph-scatter",60387),pieChart:we("pie-chart",60388),bracketDot:we("bracket-dot",60389),bracketError:we("bracket-error",60390),lockSmall:we("lock-small",60391),azureDevops:we("azure-devops",60392),verifiedFilled:we("verified-filled",60393),newLine:we("newline",60394),layout:we("layout",60395),layoutActivitybarLeft:we("layout-activitybar-left",60396),layoutActivitybarRight:we("layout-activitybar-right",60397),layoutPanelLeft:we("layout-panel-left",60398),layoutPanelCenter:we("layout-panel-center",60399),layoutPanelJustify:we("layout-panel-justify",60400),layoutPanelRight:we("layout-panel-right",60401),layoutPanel:we("layout-panel",60402),layoutSidebarLeft:we("layout-sidebar-left",60403),layoutSidebarRight:we("layout-sidebar-right",60404),layoutStatusbar:we("layout-statusbar",60405),layoutMenubar:we("layout-menubar",60406),layoutCentered:we("layout-centered",60407),layoutSidebarRightOff:we("layout-sidebar-right-off",60416),layoutPanelOff:we("layout-panel-off",60417),layoutSidebarLeftOff:we("layout-sidebar-left-off",60418),target:we("target",60408),indent:we("indent",60409),recordSmall:we("record-small",60410),errorSmall:we("error-small",60411),arrowCircleDown:we("arrow-circle-down",60412),arrowCircleLeft:we("arrow-circle-left",60413),arrowCircleRight:we("arrow-circle-right",60414),arrowCircleUp:we("arrow-circle-up",60415),heartFilled:we("heart-filled",60420),map:we("map",60421),mapFilled:we("map-filled",60422),circleSmall:we("circle-small",60423),bellSlash:we("bell-slash",60424),bellSlashDot:we("bell-slash-dot",60425),commentUnresolved:we("comment-unresolved",60426),gitPullRequestGoToChanges:we("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:we("git-pull-request-new-changes",60428),searchFuzzy:we("search-fuzzy",60429),commentDraft:we("comment-draft",60430),send:we("send",60431),sparkle:we("sparkle",60432),insert:we("insert",60433),mic:we("mic",60434),dialogError:we("dialog-error","error"),dialogWarning:we("dialog-warning","warning"),dialogInfo:we("dialog-info","info"),dialogClose:we("dialog-close","close"),treeItemExpanded:we("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:we("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:we("tree-filter-on-type-off","list-selection"),treeFilterClear:we("tree-filter-clear","close"),treeItemLoading:we("tree-item-loading","loading"),menuSelection:we("menu-selection","check"),menuSubmenu:we("menu-submenu","chevron-right"),menuBarMore:we("menubar-more","more"),scrollbarButtonLeft:we("scrollbar-button-left","triangle-left"),scrollbarButtonRight:we("scrollbar-button-right","triangle-right"),scrollbarButtonUp:we("scrollbar-button-up","triangle-up"),scrollbarButtonDown:we("scrollbar-button-down","triangle-down"),toolBarMore:we("toolbar-more","more"),quickInputBack:we("quick-input-back","arrow-left")};var OW=function(f,p,b,D){function B($){return $ instanceof b?$:new b(function(pe){pe($)})}return new(b||(b=Promise))(function($,pe){function ke(Ie){try{ge(D.next(Ie))}catch(xt){pe(xt)}}function qe(Ie){try{ge(D.throw(Ie))}catch(xt){pe(xt)}}function ge(Ie){Ie.done?$(Ie.value):B(Ie.value).then(ke,qe)}ge((D=D.apply(f,p||[])).next())})};class PNe{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new hy,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(p){this._onDidChange.fire({changedLanguages:p,changedColorMap:!1})}register(p,b){return this._tokenizationSupports.set(p,b),this.handleChange([p]),Lw(()=>{this._tokenizationSupports.get(p)===b&&(this._tokenizationSupports.delete(p),this.handleChange([p]))})}get(p){return this._tokenizationSupports.get(p)||null}registerFactory(p,b){var D;(D=this._factories.get(p))===null||D===void 0||D.dispose();const B=new FNe(this,p,b);return this._factories.set(p,B),Lw(()=>{const $=this._factories.get(p);!$||$!==B||(this._factories.delete(p),$.dispose())})}getOrCreate(p){return OW(this,void 0,void 0,function*(){const b=this.get(p);if(b)return b;const D=this._factories.get(p);return!D||D.isResolved?null:(yield D.resolve(),this.get(p))})}isResolved(p){if(this.get(p))return!0;const D=this._factories.get(p);return!!(!D||D.isResolved)}setColorMap(p){this._colorMap=p,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 FNe extends OA{get isResolved(){return this._isResolved}constructor(p,b,D){super(),this._registry=p,this._languageId=b,this._factory=D,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return OW(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return OW(this,void 0,void 0,function*(){const p=yield this._factory.tokenizationSupport;this._isResolved=!0,p&&!this._isDisposed&&this._register(this._registry.register(this._languageId,p))})}}class BNe{constructor(p,b,D){this.offset=p,this.type=b,this.language=D,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class Gpt{constructor(p,b){this.tokens=p,this.endState=b,this._tokenizationResultBrand=void 0}}class Upt{constructor(p,b){this.tokens=p,this.endState=b,this._encodedTokenizationResultBrand=void 0}}var _ce;(function(f){const p=new Map;p.set(0,_s.symbolMethod),p.set(1,_s.symbolFunction),p.set(2,_s.symbolConstructor),p.set(3,_s.symbolField),p.set(4,_s.symbolVariable),p.set(5,_s.symbolClass),p.set(6,_s.symbolStruct),p.set(7,_s.symbolInterface),p.set(8,_s.symbolModule),p.set(9,_s.symbolProperty),p.set(10,_s.symbolEvent),p.set(11,_s.symbolOperator),p.set(12,_s.symbolUnit),p.set(13,_s.symbolValue),p.set(15,_s.symbolEnum),p.set(14,_s.symbolConstant),p.set(15,_s.symbolEnum),p.set(16,_s.symbolEnumMember),p.set(17,_s.symbolKeyword),p.set(27,_s.symbolSnippet),p.set(18,_s.symbolText),p.set(19,_s.symbolColor),p.set(20,_s.symbolFile),p.set(21,_s.symbolReference),p.set(22,_s.symbolCustomColor),p.set(23,_s.symbolFolder),p.set(24,_s.symbolTypeParameter),p.set(25,_s.account),p.set(26,_s.issues);function b($){let pe=p.get($);return pe||(console.info("No codicon found for CompletionItemKind "+$),pe=_s.symbolProperty),pe}f.toIcon=b;const D=new Map;D.set("method",0),D.set("function",1),D.set("constructor",2),D.set("field",3),D.set("variable",4),D.set("class",5),D.set("struct",6),D.set("interface",7),D.set("module",8),D.set("property",9),D.set("event",10),D.set("operator",11),D.set("unit",12),D.set("value",13),D.set("constant",14),D.set("enum",15),D.set("enum-member",16),D.set("enumMember",16),D.set("keyword",17),D.set("snippet",27),D.set("text",18),D.set("color",19),D.set("file",20),D.set("reference",21),D.set("customcolor",22),D.set("folder",23),D.set("type-parameter",24),D.set("typeParameter",24),D.set("account",25),D.set("issue",26);function B($,pe){let ke=D.get($);return typeof ke=="undefined"&&!pe&&(ke=9),ke}f.fromString=B})(_ce||(_ce={}));var pce;(function(f){f[f.Automatic=0]="Automatic",f[f.Explicit=1]="Explicit"})(pce||(pce={}));class Vpt{constructor(p,b,D,B){this.range=p,this.text=b,this.completionKind=D,this.isSnippetText=B}equals(p){return Range.lift(this.range).equalsRange(p.range)&&this.text===p.text&&this.completionKind===p.completionKind&&this.isSnippetText===p.isSnippetText}}var mce;(function(f){f[f.Invoke=1]="Invoke",f[f.TriggerCharacter=2]="TriggerCharacter",f[f.ContentChange=3]="ContentChange"})(mce||(mce={}));var hce;(function(f){f[f.Text=0]="Text",f[f.Read=1]="Read",f[f.Write=2]="Write"})(hce||(hce={}));function jpt(f){return f&&URI.isUri(f.uri)&&Range.isIRange(f.range)&&(Range.isIRange(f.originSelectionRange)||Range.isIRange(f.targetSelectionRange))}const GNe={17:Uu("Array","array"),16:Uu("Boolean","boolean"),4:Uu("Class","class"),13:Uu("Constant","constant"),8:Uu("Constructor","constructor"),9:Uu("Enum","enumeration"),21:Uu("EnumMember","enumeration member"),23:Uu("Event","event"),7:Uu("Field","field"),0:Uu("File","file"),11:Uu("Function","function"),10:Uu("Interface","interface"),19:Uu("Key","key"),5:Uu("Method","method"),1:Uu("Module","module"),2:Uu("Namespace","namespace"),20:Uu("Null","null"),15:Uu("Number","number"),18:Uu("Object","object"),24:Uu("Operator","operator"),3:Uu("Package","package"),6:Uu("Property","property"),14:Uu("String","string"),22:Uu("Struct","struct"),25:Uu("TypeParameter","type parameter"),12:Uu("Variable","variable")};function Wpt(f,p){return localize("symbolAriaLabel","{0} ({1})",f,GNe[p])}var gce;(function(f){const p=new Map;p.set(0,_s.symbolFile),p.set(1,_s.symbolModule),p.set(2,_s.symbolNamespace),p.set(3,_s.symbolPackage),p.set(4,_s.symbolClass),p.set(5,_s.symbolMethod),p.set(6,_s.symbolProperty),p.set(7,_s.symbolField),p.set(8,_s.symbolConstructor),p.set(9,_s.symbolEnum),p.set(10,_s.symbolInterface),p.set(11,_s.symbolFunction),p.set(12,_s.symbolVariable),p.set(13,_s.symbolConstant),p.set(14,_s.symbolString),p.set(15,_s.symbolNumber),p.set(16,_s.symbolBoolean),p.set(17,_s.symbolArray),p.set(18,_s.symbolObject),p.set(19,_s.symbolKey),p.set(20,_s.symbolNull),p.set(21,_s.symbolEnumMember),p.set(22,_s.symbolStruct),p.set(23,_s.symbolEvent),p.set(24,_s.symbolOperator),p.set(25,_s.symbolTypeParameter);function b(D){let B=p.get(D);return B||(console.info("No codicon found for SymbolKind "+D),B=_s.symbolProperty),B}f.toIcon=b})(gce||(gce={}));class Hpt{}class Z0{static fromValue(p){switch(p){case"comment":return Z0.Comment;case"imports":return Z0.Imports;case"region":return Z0.Region}return new Z0(p)}constructor(p){this.value=p}}Z0.Comment=new Z0("comment"),Z0.Imports=new Z0("imports"),Z0.Region=new Z0("region");var yce;(function(f){function p(b){return!b||typeof b!="object"?!1:typeof b.id=="string"&&typeof b.title=="string"}f.is=p})(yce||(yce={}));var vce;(function(f){f[f.Type=1]="Type",f[f.Parameter=2]="Parameter"})(vce||(vce={}));class zpt{constructor(p){this.createSupport=p,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(p=>{p&&p.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const qpt=new PNe;var bce;(function(f){f[f.Unknown=0]="Unknown",f[f.Disabled=1]="Disabled",f[f.Enabled=2]="Enabled"})(bce||(bce={}));var Ece;(function(f){f[f.Invoke=1]="Invoke",f[f.Auto=2]="Auto"})(Ece||(Ece={}));var Tce;(function(f){f[f.None=0]="None",f[f.KeepWhitespace=1]="KeepWhitespace",f[f.InsertAsSnippet=4]="InsertAsSnippet"})(Tce||(Tce={}));var Sce;(function(f){f[f.Method=0]="Method",f[f.Function=1]="Function",f[f.Constructor=2]="Constructor",f[f.Field=3]="Field",f[f.Variable=4]="Variable",f[f.Class=5]="Class",f[f.Struct=6]="Struct",f[f.Interface=7]="Interface",f[f.Module=8]="Module",f[f.Property=9]="Property",f[f.Event=10]="Event",f[f.Operator=11]="Operator",f[f.Unit=12]="Unit",f[f.Value=13]="Value",f[f.Constant=14]="Constant",f[f.Enum=15]="Enum",f[f.EnumMember=16]="EnumMember",f[f.Keyword=17]="Keyword",f[f.Text=18]="Text",f[f.Color=19]="Color",f[f.File=20]="File",f[f.Reference=21]="Reference",f[f.Customcolor=22]="Customcolor",f[f.Folder=23]="Folder",f[f.TypeParameter=24]="TypeParameter",f[f.User=25]="User",f[f.Issue=26]="Issue",f[f.Snippet=27]="Snippet"})(Sce||(Sce={}));var xce;(function(f){f[f.Deprecated=1]="Deprecated"})(xce||(xce={}));var Ace;(function(f){f[f.Invoke=0]="Invoke",f[f.TriggerCharacter=1]="TriggerCharacter",f[f.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Ace||(Ace={}));var Cce;(function(f){f[f.EXACT=0]="EXACT",f[f.ABOVE=1]="ABOVE",f[f.BELOW=2]="BELOW"})(Cce||(Cce={}));var Lce;(function(f){f[f.NotSet=0]="NotSet",f[f.ContentFlush=1]="ContentFlush",f[f.RecoverFromMarkers=2]="RecoverFromMarkers",f[f.Explicit=3]="Explicit",f[f.Paste=4]="Paste",f[f.Undo=5]="Undo",f[f.Redo=6]="Redo"})(Lce||(Lce={}));var Ice;(function(f){f[f.LF=1]="LF",f[f.CRLF=2]="CRLF"})(Ice||(Ice={}));var kce;(function(f){f[f.Text=0]="Text",f[f.Read=1]="Read",f[f.Write=2]="Write"})(kce||(kce={}));var wce;(function(f){f[f.None=0]="None",f[f.Keep=1]="Keep",f[f.Brackets=2]="Brackets",f[f.Advanced=3]="Advanced",f[f.Full=4]="Full"})(wce||(wce={}));var Dce;(function(f){f[f.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",f[f.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",f[f.accessibilitySupport=2]="accessibilitySupport",f[f.accessibilityPageSize=3]="accessibilityPageSize",f[f.ariaLabel=4]="ariaLabel",f[f.ariaRequired=5]="ariaRequired",f[f.autoClosingBrackets=6]="autoClosingBrackets",f[f.autoClosingComments=7]="autoClosingComments",f[f.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",f[f.autoClosingDelete=9]="autoClosingDelete",f[f.autoClosingOvertype=10]="autoClosingOvertype",f[f.autoClosingQuotes=11]="autoClosingQuotes",f[f.autoIndent=12]="autoIndent",f[f.automaticLayout=13]="automaticLayout",f[f.autoSurround=14]="autoSurround",f[f.bracketPairColorization=15]="bracketPairColorization",f[f.guides=16]="guides",f[f.codeLens=17]="codeLens",f[f.codeLensFontFamily=18]="codeLensFontFamily",f[f.codeLensFontSize=19]="codeLensFontSize",f[f.colorDecorators=20]="colorDecorators",f[f.colorDecoratorsLimit=21]="colorDecoratorsLimit",f[f.columnSelection=22]="columnSelection",f[f.comments=23]="comments",f[f.contextmenu=24]="contextmenu",f[f.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",f[f.cursorBlinking=26]="cursorBlinking",f[f.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",f[f.cursorStyle=28]="cursorStyle",f[f.cursorSurroundingLines=29]="cursorSurroundingLines",f[f.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",f[f.cursorWidth=31]="cursorWidth",f[f.disableLayerHinting=32]="disableLayerHinting",f[f.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",f[f.domReadOnly=34]="domReadOnly",f[f.dragAndDrop=35]="dragAndDrop",f[f.dropIntoEditor=36]="dropIntoEditor",f[f.emptySelectionClipboard=37]="emptySelectionClipboard",f[f.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",f[f.extraEditorClassName=39]="extraEditorClassName",f[f.fastScrollSensitivity=40]="fastScrollSensitivity",f[f.find=41]="find",f[f.fixedOverflowWidgets=42]="fixedOverflowWidgets",f[f.folding=43]="folding",f[f.foldingStrategy=44]="foldingStrategy",f[f.foldingHighlight=45]="foldingHighlight",f[f.foldingImportsByDefault=46]="foldingImportsByDefault",f[f.foldingMaximumRegions=47]="foldingMaximumRegions",f[f.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",f[f.fontFamily=49]="fontFamily",f[f.fontInfo=50]="fontInfo",f[f.fontLigatures=51]="fontLigatures",f[f.fontSize=52]="fontSize",f[f.fontWeight=53]="fontWeight",f[f.fontVariations=54]="fontVariations",f[f.formatOnPaste=55]="formatOnPaste",f[f.formatOnType=56]="formatOnType",f[f.glyphMargin=57]="glyphMargin",f[f.gotoLocation=58]="gotoLocation",f[f.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",f[f.hover=60]="hover",f[f.inDiffEditor=61]="inDiffEditor",f[f.inlineSuggest=62]="inlineSuggest",f[f.letterSpacing=63]="letterSpacing",f[f.lightbulb=64]="lightbulb",f[f.lineDecorationsWidth=65]="lineDecorationsWidth",f[f.lineHeight=66]="lineHeight",f[f.lineNumbers=67]="lineNumbers",f[f.lineNumbersMinChars=68]="lineNumbersMinChars",f[f.linkedEditing=69]="linkedEditing",f[f.links=70]="links",f[f.matchBrackets=71]="matchBrackets",f[f.minimap=72]="minimap",f[f.mouseStyle=73]="mouseStyle",f[f.mouseWheelScrollSensitivity=74]="mouseWheelScrollSensitivity",f[f.mouseWheelZoom=75]="mouseWheelZoom",f[f.multiCursorMergeOverlapping=76]="multiCursorMergeOverlapping",f[f.multiCursorModifier=77]="multiCursorModifier",f[f.multiCursorPaste=78]="multiCursorPaste",f[f.multiCursorLimit=79]="multiCursorLimit",f[f.occurrencesHighlight=80]="occurrencesHighlight",f[f.overviewRulerBorder=81]="overviewRulerBorder",f[f.overviewRulerLanes=82]="overviewRulerLanes",f[f.padding=83]="padding",f[f.pasteAs=84]="pasteAs",f[f.parameterHints=85]="parameterHints",f[f.peekWidgetDefaultFocus=86]="peekWidgetDefaultFocus",f[f.definitionLinkOpensInPeek=87]="definitionLinkOpensInPeek",f[f.quickSuggestions=88]="quickSuggestions",f[f.quickSuggestionsDelay=89]="quickSuggestionsDelay",f[f.readOnly=90]="readOnly",f[f.readOnlyMessage=91]="readOnlyMessage",f[f.renameOnType=92]="renameOnType",f[f.renderControlCharacters=93]="renderControlCharacters",f[f.renderFinalNewline=94]="renderFinalNewline",f[f.renderLineHighlight=95]="renderLineHighlight",f[f.renderLineHighlightOnlyWhenFocus=96]="renderLineHighlightOnlyWhenFocus",f[f.renderValidationDecorations=97]="renderValidationDecorations",f[f.renderWhitespace=98]="renderWhitespace",f[f.revealHorizontalRightPadding=99]="revealHorizontalRightPadding",f[f.roundedSelection=100]="roundedSelection",f[f.rulers=101]="rulers",f[f.scrollbar=102]="scrollbar",f[f.scrollBeyondLastColumn=103]="scrollBeyondLastColumn",f[f.scrollBeyondLastLine=104]="scrollBeyondLastLine",f[f.scrollPredominantAxis=105]="scrollPredominantAxis",f[f.selectionClipboard=106]="selectionClipboard",f[f.selectionHighlight=107]="selectionHighlight",f[f.selectOnLineNumbers=108]="selectOnLineNumbers",f[f.showFoldingControls=109]="showFoldingControls",f[f.showUnused=110]="showUnused",f[f.snippetSuggestions=111]="snippetSuggestions",f[f.smartSelect=112]="smartSelect",f[f.smoothScrolling=113]="smoothScrolling",f[f.stickyScroll=114]="stickyScroll",f[f.stickyTabStops=115]="stickyTabStops",f[f.stopRenderingLineAfter=116]="stopRenderingLineAfter",f[f.suggest=117]="suggest",f[f.suggestFontSize=118]="suggestFontSize",f[f.suggestLineHeight=119]="suggestLineHeight",f[f.suggestOnTriggerCharacters=120]="suggestOnTriggerCharacters",f[f.suggestSelection=121]="suggestSelection",f[f.tabCompletion=122]="tabCompletion",f[f.tabIndex=123]="tabIndex",f[f.unicodeHighlighting=124]="unicodeHighlighting",f[f.unusualLineTerminators=125]="unusualLineTerminators",f[f.useShadowDOM=126]="useShadowDOM",f[f.useTabStops=127]="useTabStops",f[f.wordBreak=128]="wordBreak",f[f.wordSeparators=129]="wordSeparators",f[f.wordWrap=130]="wordWrap",f[f.wordWrapBreakAfterCharacters=131]="wordWrapBreakAfterCharacters",f[f.wordWrapBreakBeforeCharacters=132]="wordWrapBreakBeforeCharacters",f[f.wordWrapColumn=133]="wordWrapColumn",f[f.wordWrapOverride1=134]="wordWrapOverride1",f[f.wordWrapOverride2=135]="wordWrapOverride2",f[f.wrappingIndent=136]="wrappingIndent",f[f.wrappingStrategy=137]="wrappingStrategy",f[f.showDeprecated=138]="showDeprecated",f[f.inlayHints=139]="inlayHints",f[f.editorClassName=140]="editorClassName",f[f.pixelRatio=141]="pixelRatio",f[f.tabFocusMode=142]="tabFocusMode",f[f.layoutInfo=143]="layoutInfo",f[f.wrappingInfo=144]="wrappingInfo",f[f.defaultColorDecorators=145]="defaultColorDecorators",f[f.colorDecoratorsActivatedOn=146]="colorDecoratorsActivatedOn",f[f.inlineCompletionsAccessibilityVerbose=147]="inlineCompletionsAccessibilityVerbose"})(Dce||(Dce={}));var Rce;(function(f){f[f.TextDefined=0]="TextDefined",f[f.LF=1]="LF",f[f.CRLF=2]="CRLF"})(Rce||(Rce={}));var Nce;(function(f){f[f.LF=0]="LF",f[f.CRLF=1]="CRLF"})(Nce||(Nce={}));var Oce;(function(f){f[f.Left=1]="Left",f[f.Right=2]="Right"})(Oce||(Oce={}));var Mce;(function(f){f[f.None=0]="None",f[f.Indent=1]="Indent",f[f.IndentOutdent=2]="IndentOutdent",f[f.Outdent=3]="Outdent"})(Mce||(Mce={}));var Pce;(function(f){f[f.Both=0]="Both",f[f.Right=1]="Right",f[f.Left=2]="Left",f[f.None=3]="None"})(Pce||(Pce={}));var Fce;(function(f){f[f.Type=1]="Type",f[f.Parameter=2]="Parameter"})(Fce||(Fce={}));var Bce;(function(f){f[f.Automatic=0]="Automatic",f[f.Explicit=1]="Explicit"})(Bce||(Bce={}));var MW;(function(f){f[f.DependsOnKbLayout=-1]="DependsOnKbLayout",f[f.Unknown=0]="Unknown",f[f.Backspace=1]="Backspace",f[f.Tab=2]="Tab",f[f.Enter=3]="Enter",f[f.Shift=4]="Shift",f[f.Ctrl=5]="Ctrl",f[f.Alt=6]="Alt",f[f.PauseBreak=7]="PauseBreak",f[f.CapsLock=8]="CapsLock",f[f.Escape=9]="Escape",f[f.Space=10]="Space",f[f.PageUp=11]="PageUp",f[f.PageDown=12]="PageDown",f[f.End=13]="End",f[f.Home=14]="Home",f[f.LeftArrow=15]="LeftArrow",f[f.UpArrow=16]="UpArrow",f[f.RightArrow=17]="RightArrow",f[f.DownArrow=18]="DownArrow",f[f.Insert=19]="Insert",f[f.Delete=20]="Delete",f[f.Digit0=21]="Digit0",f[f.Digit1=22]="Digit1",f[f.Digit2=23]="Digit2",f[f.Digit3=24]="Digit3",f[f.Digit4=25]="Digit4",f[f.Digit5=26]="Digit5",f[f.Digit6=27]="Digit6",f[f.Digit7=28]="Digit7",f[f.Digit8=29]="Digit8",f[f.Digit9=30]="Digit9",f[f.KeyA=31]="KeyA",f[f.KeyB=32]="KeyB",f[f.KeyC=33]="KeyC",f[f.KeyD=34]="KeyD",f[f.KeyE=35]="KeyE",f[f.KeyF=36]="KeyF",f[f.KeyG=37]="KeyG",f[f.KeyH=38]="KeyH",f[f.KeyI=39]="KeyI",f[f.KeyJ=40]="KeyJ",f[f.KeyK=41]="KeyK",f[f.KeyL=42]="KeyL",f[f.KeyM=43]="KeyM",f[f.KeyN=44]="KeyN",f[f.KeyO=45]="KeyO",f[f.KeyP=46]="KeyP",f[f.KeyQ=47]="KeyQ",f[f.KeyR=48]="KeyR",f[f.KeyS=49]="KeyS",f[f.KeyT=50]="KeyT",f[f.KeyU=51]="KeyU",f[f.KeyV=52]="KeyV",f[f.KeyW=53]="KeyW",f[f.KeyX=54]="KeyX",f[f.KeyY=55]="KeyY",f[f.KeyZ=56]="KeyZ",f[f.Meta=57]="Meta",f[f.ContextMenu=58]="ContextMenu",f[f.F1=59]="F1",f[f.F2=60]="F2",f[f.F3=61]="F3",f[f.F4=62]="F4",f[f.F5=63]="F5",f[f.F6=64]="F6",f[f.F7=65]="F7",f[f.F8=66]="F8",f[f.F9=67]="F9",f[f.F10=68]="F10",f[f.F11=69]="F11",f[f.F12=70]="F12",f[f.F13=71]="F13",f[f.F14=72]="F14",f[f.F15=73]="F15",f[f.F16=74]="F16",f[f.F17=75]="F17",f[f.F18=76]="F18",f[f.F19=77]="F19",f[f.F20=78]="F20",f[f.F21=79]="F21",f[f.F22=80]="F22",f[f.F23=81]="F23",f[f.F24=82]="F24",f[f.NumLock=83]="NumLock",f[f.ScrollLock=84]="ScrollLock",f[f.Semicolon=85]="Semicolon",f[f.Equal=86]="Equal",f[f.Comma=87]="Comma",f[f.Minus=88]="Minus",f[f.Period=89]="Period",f[f.Slash=90]="Slash",f[f.Backquote=91]="Backquote",f[f.BracketLeft=92]="BracketLeft",f[f.Backslash=93]="Backslash",f[f.BracketRight=94]="BracketRight",f[f.Quote=95]="Quote",f[f.OEM_8=96]="OEM_8",f[f.IntlBackslash=97]="IntlBackslash",f[f.Numpad0=98]="Numpad0",f[f.Numpad1=99]="Numpad1",f[f.Numpad2=100]="Numpad2",f[f.Numpad3=101]="Numpad3",f[f.Numpad4=102]="Numpad4",f[f.Numpad5=103]="Numpad5",f[f.Numpad6=104]="Numpad6",f[f.Numpad7=105]="Numpad7",f[f.Numpad8=106]="Numpad8",f[f.Numpad9=107]="Numpad9",f[f.NumpadMultiply=108]="NumpadMultiply",f[f.NumpadAdd=109]="NumpadAdd",f[f.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",f[f.NumpadSubtract=111]="NumpadSubtract",f[f.NumpadDecimal=112]="NumpadDecimal",f[f.NumpadDivide=113]="NumpadDivide",f[f.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",f[f.ABNT_C1=115]="ABNT_C1",f[f.ABNT_C2=116]="ABNT_C2",f[f.AudioVolumeMute=117]="AudioVolumeMute",f[f.AudioVolumeUp=118]="AudioVolumeUp",f[f.AudioVolumeDown=119]="AudioVolumeDown",f[f.BrowserSearch=120]="BrowserSearch",f[f.BrowserHome=121]="BrowserHome",f[f.BrowserBack=122]="BrowserBack",f[f.BrowserForward=123]="BrowserForward",f[f.MediaTrackNext=124]="MediaTrackNext",f[f.MediaTrackPrevious=125]="MediaTrackPrevious",f[f.MediaStop=126]="MediaStop",f[f.MediaPlayPause=127]="MediaPlayPause",f[f.LaunchMediaPlayer=128]="LaunchMediaPlayer",f[f.LaunchMail=129]="LaunchMail",f[f.LaunchApp2=130]="LaunchApp2",f[f.Clear=131]="Clear",f[f.MAX_VALUE=132]="MAX_VALUE"})(MW||(MW={}));var PW;(function(f){f[f.Hint=1]="Hint",f[f.Info=2]="Info",f[f.Warning=4]="Warning",f[f.Error=8]="Error"})(PW||(PW={}));var FW;(function(f){f[f.Unnecessary=1]="Unnecessary",f[f.Deprecated=2]="Deprecated"})(FW||(FW={}));var Gce;(function(f){f[f.Inline=1]="Inline",f[f.Gutter=2]="Gutter"})(Gce||(Gce={}));var Uce;(function(f){f[f.UNKNOWN=0]="UNKNOWN",f[f.TEXTAREA=1]="TEXTAREA",f[f.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",f[f.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",f[f.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",f[f.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",f[f.CONTENT_TEXT=6]="CONTENT_TEXT",f[f.CONTENT_EMPTY=7]="CONTENT_EMPTY",f[f.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",f[f.CONTENT_WIDGET=9]="CONTENT_WIDGET",f[f.OVERVIEW_RULER=10]="OVERVIEW_RULER",f[f.SCROLLBAR=11]="SCROLLBAR",f[f.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",f[f.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Uce||(Uce={}));var Vce;(function(f){f[f.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",f[f.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",f[f.TOP_CENTER=2]="TOP_CENTER"})(Vce||(Vce={}));var jce;(function(f){f[f.Left=1]="Left",f[f.Center=2]="Center",f[f.Right=4]="Right",f[f.Full=7]="Full"})(jce||(jce={}));var Wce;(function(f){f[f.Left=0]="Left",f[f.Right=1]="Right",f[f.None=2]="None",f[f.LeftOfInjectedText=3]="LeftOfInjectedText",f[f.RightOfInjectedText=4]="RightOfInjectedText"})(Wce||(Wce={}));var Hce;(function(f){f[f.Off=0]="Off",f[f.On=1]="On",f[f.Relative=2]="Relative",f[f.Interval=3]="Interval",f[f.Custom=4]="Custom"})(Hce||(Hce={}));var zce;(function(f){f[f.None=0]="None",f[f.Text=1]="Text",f[f.Blocks=2]="Blocks"})(zce||(zce={}));var qce;(function(f){f[f.Smooth=0]="Smooth",f[f.Immediate=1]="Immediate"})(qce||(qce={}));var Jce;(function(f){f[f.Auto=1]="Auto",f[f.Hidden=2]="Hidden",f[f.Visible=3]="Visible"})(Jce||(Jce={}));var BW;(function(f){f[f.LTR=0]="LTR",f[f.RTL=1]="RTL"})(BW||(BW={}));var Kce;(function(f){f[f.Invoke=1]="Invoke",f[f.TriggerCharacter=2]="TriggerCharacter",f[f.ContentChange=3]="ContentChange"})(Kce||(Kce={}));var Xce;(function(f){f[f.File=0]="File",f[f.Module=1]="Module",f[f.Namespace=2]="Namespace",f[f.Package=3]="Package",f[f.Class=4]="Class",f[f.Method=5]="Method",f[f.Property=6]="Property",f[f.Field=7]="Field",f[f.Constructor=8]="Constructor",f[f.Enum=9]="Enum",f[f.Interface=10]="Interface",f[f.Function=11]="Function",f[f.Variable=12]="Variable",f[f.Constant=13]="Constant",f[f.String=14]="String",f[f.Number=15]="Number",f[f.Boolean=16]="Boolean",f[f.Array=17]="Array",f[f.Object=18]="Object",f[f.Key=19]="Key",f[f.Null=20]="Null",f[f.EnumMember=21]="EnumMember",f[f.Struct=22]="Struct",f[f.Event=23]="Event",f[f.Operator=24]="Operator",f[f.TypeParameter=25]="TypeParameter"})(Xce||(Xce={}));var Yce;(function(f){f[f.Deprecated=1]="Deprecated"})(Yce||(Yce={}));var $ce;(function(f){f[f.Hidden=0]="Hidden",f[f.Blink=1]="Blink",f[f.Smooth=2]="Smooth",f[f.Phase=3]="Phase",f[f.Expand=4]="Expand",f[f.Solid=5]="Solid"})($ce||($ce={}));var Qce;(function(f){f[f.Line=1]="Line",f[f.Block=2]="Block",f[f.Underline=3]="Underline",f[f.LineThin=4]="LineThin",f[f.BlockOutline=5]="BlockOutline",f[f.UnderlineThin=6]="UnderlineThin"})(Qce||(Qce={}));var Zce;(function(f){f[f.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",f[f.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",f[f.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",f[f.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Zce||(Zce={}));var eue;(function(f){f[f.None=0]="None",f[f.Same=1]="Same",f[f.Indent=2]="Indent",f[f.DeepIndent=3]="DeepIndent"})(eue||(eue={}));class Bw{static chord(p,b){return RNe(p,b)}}Bw.CtrlCmd=2048,Bw.Shift=1024,Bw.Alt=512,Bw.WinCtrl=256;function UNe(){return{editor:void 0,languages:void 0,CancellationTokenSource:CNe,Emitter:hy,KeyCode:MW,KeyMod:Bw,Position:Qp,Range:Bl,Selection:gy,SelectionDirection:BW,MarkerSeverity:PW,MarkerTag:FW,Uri:PA,Token:BNe}}class VNe extends Pw{constructor(p){super(0);for(let b=0,D=p.length;b<D;b++)this.set(p.charCodeAt(b),2);this.set(32,1),this.set(9,1)}}function jNe(f){const p={};return b=>(p.hasOwnProperty(b)||(p[b]=f(b)),p[b])}const Jpt=jNe(f=>new VNe(f));var tue;(function(f){f[f.Left=1]="Left",f[f.Center=2]="Center",f[f.Right=4]="Right",f[f.Full=7]="Full"})(tue||(tue={}));var nue;(function(f){f[f.Left=1]="Left",f[f.Right=2]="Right"})(nue||(nue={}));var rue;(function(f){f[f.Inline=1]="Inline",f[f.Gutter=2]="Gutter"})(rue||(rue={}));var iue;(function(f){f[f.Both=0]="Both",f[f.Right=1]="Right",f[f.Left=2]="Left",f[f.None=3]="None"})(iue||(iue={}));class Kpt{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(p){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,p.tabSize|0),p.indentSize==="tabSize"?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,p.indentSize|0),this._indentSizeIsTabSize=!1),this.insertSpaces=!!p.insertSpaces,this.defaultEOL=p.defaultEOL|0,this.trimAutoWhitespace=!!p.trimAutoWhitespace,this.bracketPairColorizationOptions=p.bracketPairColorizationOptions}equals(p){return this.tabSize===p.tabSize&&this._indentSizeIsTabSize===p._indentSizeIsTabSize&&this.indentSize===p.indentSize&&this.insertSpaces===p.insertSpaces&&this.defaultEOL===p.defaultEOL&&this.trimAutoWhitespace===p.trimAutoWhitespace&&equals(this.bracketPairColorizationOptions,p.bracketPairColorizationOptions)}createChangeEvent(p){return{tabSize:this.tabSize!==p.tabSize,indentSize:this.indentSize!==p.indentSize,insertSpaces:this.insertSpaces!==p.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==p.trimAutoWhitespace}}}class Xpt{constructor(p,b){this._findMatchBrand=void 0,this.range=p,this.matches=b}}function Ypt(f){return f&&typeof f.read=="function"}class $pt{constructor(p,b,D,B,$,pe){this.identifier=p,this.range=b,this.text=D,this.forceMoveMarkers=B,this.isAutoWhitespaceEdit=$,this._isTracked=pe}}class Qpt{constructor(p,b,D){this.regex=p,this.wordSeparators=b,this.simpleSearch=D}}class Zpt{constructor(p,b,D){this.reverseEdits=p,this.changes=b,this.trimAutoWhitespaceLineNumbers=D}}function emt(f){return!f.isTooLargeForSyncing()&&!f.isForSimpleWidget}const WNe=999;class tmt{constructor(p,b,D,B){this.searchString=p,this.isRegex=b,this.matchCase=D,this.wordSeparators=B}parseSearchRequest(){if(this.searchString==="")return null;let p;this.isRegex?p=HNe(this.searchString):p=this.searchString.indexOf(`
`)>=0;let b=null;try{b=strings.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:p,global:!0,unicode:!0})}catch(B){return null}if(!b)return null;let D=!this.isRegex&&!p;return D&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(D=this.matchCase),new SearchData(b,this.wordSeparators?getMapForWordSeparators(this.wordSeparators):null,D?this.searchString:null)}}function HNe(f){if(!f||f.length===0)return!1;for(let p=0,b=f.length;p<b;p++){const D=f.charCodeAt(p);if(D===10)return!0;if(D===92){if(p++,p>=b)break;const B=f.charCodeAt(p);if(B===110||B===114||B===87)return!0}}return!1}function Gw(f,p,b){if(!b)return new FindMatch(f,null);const D=[];for(let B=0,$=p.length;B<$;B++)D[B]=p[B];return new FindMatch(f,D)}class aue{constructor(p){const b=[];let D=0;for(let B=0,$=p.length;B<$;B++)p.charCodeAt(B)===10&&(b[D++]=B);this._lineFeedsOffsets=b}findLineFeedCountBeforeOffset(p){const b=this._lineFeedsOffsets;let D=0,B=b.length-1;if(B===-1||p<=b[0])return 0;for(;D<B;){const $=D+((B-D)/2>>0);b[$]>=p?B=$-1:b[$+1]>=p?(D=$,B=$):D=$+1}return D+1}}class nmt{static findMatches(p,b,D,B,$){const pe=b.parseSearchRequest();return pe?pe.regex.multiline?this._doFindMatchesMultiline(p,D,new Uw(pe.wordSeparators,pe.regex),B,$):this._doFindMatchesLineByLine(p,D,pe,B,$):[]}static _getMultilineMatchRange(p,b,D,B,$,pe){let ke,qe=0;B?(qe=B.findLineFeedCountBeforeOffset($),ke=b+$+qe):ke=b+$;let ge;if(B){const Xn=B.findLineFeedCountBeforeOffset($+pe.length)-qe;ge=ke+pe.length+Xn}else ge=ke+pe.length;const Ie=p.getPositionAt(ke),xt=p.getPositionAt(ge);return new Range(Ie.lineNumber,Ie.column,xt.lineNumber,xt.column)}static _doFindMatchesMultiline(p,b,D,B,$){const pe=p.getOffsetAt(b.getStartPosition()),ke=p.getValueInRange(b,1),qe=p.getEOL()===`\r
`?new aue(ke):null,ge=[];let Ie=0,xt;for(D.reset(0);xt=D.next(ke);)if(ge[Ie++]=Gw(this._getMultilineMatchRange(p,pe,ke,qe,xt.index,xt[0]),xt,B),Ie>=$)return ge;return ge}static _doFindMatchesLineByLine(p,b,D,B,$){const pe=[];let ke=0;if(b.startLineNumber===b.endLineNumber){const ge=p.getLineContent(b.startLineNumber).substring(b.startColumn-1,b.endColumn-1);return ke=this._findMatchesInLine(D,ge,b.startLineNumber,b.startColumn-1,ke,pe,B,$),pe}const qe=p.getLineContent(b.startLineNumber).substring(b.startColumn-1);ke=this._findMatchesInLine(D,qe,b.startLineNumber,b.startColumn-1,ke,pe,B,$);for(let ge=b.startLineNumber+1;ge<b.endLineNumber&&ke<$;ge++)ke=this._findMatchesInLine(D,p.getLineContent(ge),ge,0,ke,pe,B,$);if(ke<$){const ge=p.getLineContent(b.endLineNumber).substring(0,b.endColumn-1);ke=this._findMatchesInLine(D,ge,b.endLineNumber,0,ke,pe,B,$)}return pe}static _findMatchesInLine(p,b,D,B,$,pe,ke,qe){const ge=p.wordSeparators;if(!ke&&p.simpleSearch){const qt=p.simpleSearch,Xn=qt.length,fr=b.length;let zn=-Xn;for(;(zn=b.indexOf(qt,zn+Xn))!==-1;)if((!ge||oue(ge,b,fr,zn,Xn))&&(pe[$++]=new FindMatch(new Range(D,zn+1+B,D,zn+1+Xn+B),null),$>=qe))return $;return $}const Ie=new Uw(p.wordSeparators,p.regex);let xt;Ie.reset(0);do if(xt=Ie.next(b),xt&&(pe[$++]=Gw(new Range(D,xt.index+1+B,D,xt.index+1+xt[0].length+B),xt,ke),$>=qe))return $;while(xt);return $}static findNextMatch(p,b,D,B){const $=b.parseSearchRequest();if(!$)return null;const pe=new Uw($.wordSeparators,$.regex);return $.regex.multiline?this._doFindNextMatchMultiline(p,D,pe,B):this._doFindNextMatchLineByLine(p,D,pe,B)}static _doFindNextMatchMultiline(p,b,D,B){const $=new Position(b.lineNumber,1),pe=p.getOffsetAt($),ke=p.getLineCount(),qe=p.getValueInRange(new Range($.lineNumber,$.column,ke,p.getLineMaxColumn(ke)),1),ge=p.getEOL()===`\r
`?new aue(qe):null;D.reset(b.column-1);const Ie=D.next(qe);return Ie?Gw(this._getMultilineMatchRange(p,pe,qe,ge,Ie.index,Ie[0]),Ie,B):b.lineNumber!==1||b.column!==1?this._doFindNextMatchMultiline(p,new Position(1,1),D,B):null}static _doFindNextMatchLineByLine(p,b,D,B){const $=p.getLineCount(),pe=b.lineNumber,ke=p.getLineContent(pe),qe=this._findFirstMatchInLine(D,ke,pe,b.column,B);if(qe)return qe;for(let ge=1;ge<=$;ge++){const Ie=(pe+ge-1)%$,xt=p.getLineContent(Ie+1),qt=this._findFirstMatchInLine(D,xt,Ie+1,1,B);if(qt)return qt}return null}static _findFirstMatchInLine(p,b,D,B,$){p.reset(B-1);const pe=p.next(b);return pe?Gw(new Range(D,pe.index+1,D,pe.index+1+pe[0].length),pe,$):null}static findPreviousMatch(p,b,D,B){const $=b.parseSearchRequest();if(!$)return null;const pe=new Uw($.wordSeparators,$.regex);return $.regex.multiline?this._doFindPreviousMatchMultiline(p,D,pe,B):this._doFindPreviousMatchLineByLine(p,D,pe,B)}static _doFindPreviousMatchMultiline(p,b,D,B){const $=this._doFindMatchesMultiline(p,new Range(1,1,b.lineNumber,b.column),D,B,10*WNe);if($.length>0)return $[$.length-1];const pe=p.getLineCount();return b.lineNumber!==pe||b.column!==p.getLineMaxColumn(pe)?this._doFindPreviousMatchMultiline(p,new Position(pe,p.getLineMaxColumn(pe)),D,B):null}static _doFindPreviousMatchLineByLine(p,b,D,B){const $=p.getLineCount(),pe=b.lineNumber,ke=p.getLineContent(pe).substring(0,b.column-1),qe=this._findLastMatchInLine(D,ke,pe,B);if(qe)return qe;for(let ge=1;ge<=$;ge++){const Ie=($+pe-ge-1)%$,xt=p.getLineContent(Ie+1),qt=this._findLastMatchInLine(D,xt,Ie+1,B);if(qt)return qt}return null}static _findLastMatchInLine(p,b,D,B){let $=null,pe;for(p.reset(0);pe=p.next(b);)$=Gw(new Range(D,pe.index+1,D,pe.index+1+pe[0].length),pe,B);return $}}function zNe(f,p,b,D,B){if(D===0)return!0;const $=p.charCodeAt(D-1);if(f.get($)!==0||$===13||$===10)return!0;if(B>0){const pe=p.charCodeAt(D);if(f.get(pe)!==0)return!0}return!1}function qNe(f,p,b,D,B){if(D+B===b)return!0;const $=p.charCodeAt(D+B);if(f.get($)!==0||$===13||$===10)return!0;if(B>0){const pe=p.charCodeAt(D+B-1);if(f.get(pe)!==0)return!0}return!1}function oue(f,p,b,D,B){return zNe(f,p,b,D,B)&&qNe(f,p,b,D,B)}class Uw{constructor(p,b){this._wordSeparators=p,this._searchRegex=b,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(p){this._searchRegex.lastIndex=p,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(p){const b=p.length;let D;do{if(this._prevMatchStartIndex+this._prevMatchLength===b||(D=this._searchRegex.exec(p),!D))return null;const B=D.index,$=D[0].length;if(B===this._prevMatchStartIndex&&$===this._prevMatchLength){if($===0){Ble(p,b,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=B,this._prevMatchLength=$,!this._wordSeparators||oue(this._wordSeparators,p,b,B,$))return D}while(D);return null}}function rmt(f,p){if(!f)throw new Error(p?`Assertion failed (${p})`:"Assertion Failed")}function JNe(f,p="Unreachable"){throw new Error(p)}function D7(f){if(!f()){debugger;f(),Iv(new Z2("Assertion Failed"))}}function sue(f,p){let b=0;for(;b<f.length-1;){const D=f[b],B=f[b+1];if(!p(D,B))return!1;b++}return!0}class KNe{static computeUnicodeHighlights(p,b,D){const B=D?D.startLineNumber:1,$=D?D.endLineNumber:p.getLineCount(),pe=new lue(b),ke=pe.getCandidateCodePoints();let qe;ke==="allNonBasicAscii"?qe=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):qe=new RegExp(`${XNe(Array.from(ke))}`,"g");const ge=new Uw(null,qe),Ie=[];let xt=!1,qt,Xn=0,fr=0,zn=0;e:for(let sa=B,Qn=$;sa<=Qn;sa++){const $t=p.getLineContent(sa),yi=$t.length;ge.reset(0);do if(qt=ge.next($t),qt){let ii=qt.index,va=qt.index+qt[0].length;if(ii>0){const Lc=$t.charCodeAt(ii-1);ww(Lc)&&ii--}if(va+1<yi){const Lc=$t.charCodeAt(va-1);ww(Lc)&&va++}const Mo=$t.substring(ii,va);let Fr=AW(ii+1,sce,$t,0);Fr&&Fr.endColumn<=ii+1&&(Fr=null);const Jo=pe.shouldHighlightNonBasicASCII(Mo,Fr?Fr.word:null);if(Jo!==0){Jo===3?Xn++:Jo===2?fr++:Jo===1?zn++:JNe(Jo);const Lc=1e3;if(Ie.length>=Lc){xt=!0;break e}Ie.push(new Bl(sa,ii+1,sa,va+1))}}while(qt)}return{ranges:Ie,hasMore:xt,ambiguousCharacterCount:Xn,invisibleCharacterCount:fr,nonBasicAsciiCharacterCount:zn}}static computeUnicodeHighlightReason(p,b){const D=new lue(b);switch(D.shouldHighlightNonBasicASCII(p,null)){case 0:return null;case 2:return{kind:1};case 3:{const $=p.codePointAt(0),pe=D.ambiguousCharacters.getPrimaryConfusable($),ke=MA.getLocales().filter(qe=>!MA.getInstance(new Set([...b.allowedLocales,qe])).isAmbiguous($));return{kind:0,confusableWith:String.fromCodePoint(pe),notAmbiguousInLocales:ke}}case 1:return{kind:2}}}}function XNe(f,p){return`[${Mle(f.map(D=>String.fromCodePoint(D)).join(""))}]`}class lue{constructor(p){this.options=p,this.allowedCodePoints=new Set(p.allowedCodePoints),this.ambiguousCharacters=MA.getInstance(new Set(p.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const p=new Set;if(this.options.invisibleCharacters)for(const b of tS.codePoints)cue(String.fromCodePoint(b))||p.add(b);if(this.options.ambiguousCharacters)for(const b of this.ambiguousCharacters.getConfusableCodePoints())p.add(b);for(const b of this.allowedCodePoints)p.delete(b);return p}shouldHighlightNonBasicASCII(p,b){const D=p.codePointAt(0);if(this.allowedCodePoints.has(D))return 0;if(this.options.nonBasicASCII)return 1;let B=!1,$=!1;if(b)for(const pe of b){const ke=pe.codePointAt(0),qe=k6e(pe);B=B||qe,!qe&&!this.ambiguousCharacters.isAmbiguous(ke)&&!tS.isInvisibleCharacter(ke)&&($=!0)}return!B&&$?0:this.options.invisibleCharacters&&!cue(p)&&tS.isInvisibleCharacter(D)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(D)?3:0}}function cue(f){return f===" "||f===`
`||f===" "}class R7{constructor(p,b,D){this.changes=p,this.moves=b,this.hitTimeout=D}}class YNe{constructor(p,b){this.lineRangeMapping=p,this.changes=b}}class Al{static addRange(p,b){let D=0;for(;D<b.length&&b[D].endExclusive<p.start;)D++;let B=D;for(;B<b.length&&b[B].start<=p.endExclusive;)B++;if(D===B)b.splice(D,0,p);else{const $=Math.min(p.start,b[D].start),pe=Math.max(p.endExclusive,b[B-1].endExclusive);b.splice(D,B-D,new Al($,pe))}}static tryCreate(p,b){if(!(p>b))return new Al(p,b)}static ofLength(p){return new Al(0,p)}constructor(p,b){if(this.start=p,this.endExclusive=b,p>b)throw new Z2(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(p){return new Al(this.start+p,this.endExclusive+p)}deltaStart(p){return new Al(this.start+p,this.endExclusive)}deltaEnd(p){return new Al(this.start,this.endExclusive+p)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(p){return this.start===p.start&&this.endExclusive===p.endExclusive}containsRange(p){return this.start<=p.start&&p.endExclusive<=this.endExclusive}contains(p){return this.start<=p&&p<this.endExclusive}join(p){return new Al(Math.min(this.start,p.start),Math.max(this.endExclusive,p.endExclusive))}intersect(p){const b=Math.max(this.start,p.start),D=Math.min(this.endExclusive,p.endExclusive);if(b<=D)return new Al(b,D)}slice(p){return p.slice(this.start,this.endExclusive)}clip(p){if(this.isEmpty)throw new Z2(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,p))}clipCyclic(p){if(this.isEmpty)throw new Z2(`Invalid clipping range: ${this.toString()}`);return p<this.start?this.endExclusive-(this.start-p)%this.length:p>=this.endExclusive?this.start+(p-this.start)%this.length:p}forEach(p){for(let b=this.start;b<this.endExclusive;b++)p(b)}}class uue{constructor(){this._sortedRanges=[]}addRange(p){let b=0;for(;b<this._sortedRanges.length&&this._sortedRanges[b].endExclusive<p.start;)b++;let D=b;for(;D<this._sortedRanges.length&&this._sortedRanges[D].start<=p.endExclusive;)D++;if(b===D)this._sortedRanges.splice(b,0,p);else{const B=Math.min(p.start,this._sortedRanges[b].start),$=Math.max(p.endExclusive,this._sortedRanges[D-1].endExclusive);this._sortedRanges.splice(b,D-b,new Al(B,$))}}toString(){return this._sortedRanges.map(p=>p.toString()).join(", ")}intersectsStrict(p){let b=0;for(;b<this._sortedRanges.length&&this._sortedRanges[b].endExclusive<=p.start;)b++;return b<this._sortedRanges.length&&this._sortedRanges[b].start<p.endExclusive}intersectWithRange(p){const b=new uue;for(const D of this._sortedRanges){const B=D.intersect(p);B&&b.addRange(B)}return b}intersectWithRangeLength(p){return this.intersectWithRange(p).length}get length(){return this._sortedRanges.reduce((p,b)=>p+b.length,0)}}function imt(f,p,b){const D=$Ne(f,p);if(D!==-1)return f[D]}function $Ne(f,p,b=f.length-1){for(let D=b;D>=0;D--){const B=f[D];if(p(B))return D}return-1}function Vw(f,p){const b=jw(f,p);return b===-1?void 0:f[b]}function jw(f,p,b=0,D=f.length){let B=b,$=D;for(;B<$;){const pe=Math.floor((B+$)/2);p(f[pe])?B=pe+1:$=pe}return B-1}function QNe(f,p){const b=GW(f,p);return b===f.length?void 0:f[b]}function GW(f,p,b=0,D=f.length){let B=b,$=D;for(;B<$;){const pe=Math.floor((B+$)/2);p(f[pe])?$=pe:B=pe+1}return B}class Ww{constructor(p){this._array=p,this._findLastMonotonousLastIdx=0}findLastMonotonous(p){if(Ww.assertInvariants){if(this._prevFindLastPredicate){for(const D of this._array)if(this._prevFindLastPredicate(D)&&!p(D))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=p}const b=jw(this._array,p,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=b+1,b===-1?void 0:this._array[b]}}Ww.assertInvariants=!1;function ZNe(f,p){if(f.length===0)return;let b=f[0];for(let D=1;D<f.length;D++){const B=f[D];p(B,b)>0&&(b=B)}return b}function amt(f,p){if(f.length===0)return;let b=f[0];for(let D=1;D<f.length;D++){const B=f[D];p(B,b)>=0&&(b=B)}return b}function omt(f,p){return ZNe(f,(b,D)=>-p(b,D))}function smt(f,p){if(f.length===0)return-1;let b=0;for(let D=1;D<f.length;D++){const B=f[D];p(B,f[b])>0&&(b=D)}return b}function lmt(f,p){for(const b of f){const D=p(b);if(D!==void 0)return D}}class vc{static fromRange(p){return new vc(p.startLineNumber,p.endLineNumber)}static joinMany(p){if(p.length===0)return[];let b=new yb(p[0].slice());for(let D=1;D<p.length;D++)b=b.getUnion(new yb(p[D].slice()));return b.ranges}static ofLength(p,b){return new vc(p,p+b)}static deserialize(p){return new vc(p[0],p[1])}constructor(p,b){if(p>b)throw new Z2(`startLineNumber ${p} cannot be after endLineNumberExclusive ${b}`);this.startLineNumber=p,this.endLineNumberExclusive=b}contains(p){return this.startLineNumber<=p&&p<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(p){return new vc(this.startLineNumber+p,this.endLineNumberExclusive+p)}deltaLength(p){return new vc(this.startLineNumber,this.endLineNumberExclusive+p)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(p){return new vc(Math.min(this.startLineNumber,p.startLineNumber),Math.max(this.endLineNumberExclusive,p.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(p){const b=Math.max(this.startLineNumber,p.startLineNumber),D=Math.min(this.endLineNumberExclusive,p.endLineNumberExclusive);if(b<=D)return new vc(b,D)}intersectsStrict(p){return this.startLineNumber<p.endLineNumberExclusive&&p.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(p){return this.startLineNumber<=p.endLineNumberExclusive&&p.startLineNumber<=this.endLineNumberExclusive}equals(p){return this.startLineNumber===p.startLineNumber&&this.endLineNumberExclusive===p.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Bl(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Bl(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(p){const b=[];for(let D=this.startLineNumber;D<this.endLineNumberExclusive;D++)b.push(p(D));return b}forEach(p){for(let b=this.startLineNumber;b<this.endLineNumberExclusive;b++)p(b)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(p){return this.startLineNumber<=p&&p<this.endLineNumberExclusive}toOffsetRange(){return new Al(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class yb{constructor(p=[]){this._normalizedRanges=p}get ranges(){return this._normalizedRanges}addRange(p){if(p.length===0)return;const b=GW(this._normalizedRanges,B=>B.endLineNumberExclusive>=p.startLineNumber),D=jw(this._normalizedRanges,B=>B.startLineNumber<=p.endLineNumberExclusive)+1;if(b===D)this._normalizedRanges.splice(b,0,p);else if(b===D-1){const B=this._normalizedRanges[b];this._normalizedRanges[b]=B.join(p)}else{const B=this._normalizedRanges[b].join(this._normalizedRanges[D-1]).join(p);this._normalizedRanges.splice(b,D-b,B)}}contains(p){const b=Vw(this._normalizedRanges,D=>D.startLineNumber<=p);return!!b&&b.endLineNumberExclusive>p}getUnion(p){if(this._normalizedRanges.length===0)return p;if(p._normalizedRanges.length===0)return this;const b=[];let D=0,B=0,$=null;for(;D<this._normalizedRanges.length||B<p._normalizedRanges.length;){let pe=null;if(D<this._normalizedRanges.length&&B<p._normalizedRanges.length){const ke=this._normalizedRanges[D],qe=p._normalizedRanges[B];ke.startLineNumber<qe.startLineNumber?(pe=ke,D++):(pe=qe,B++)}else D<this._normalizedRanges.length?(pe=this._normalizedRanges[D],D++):(pe=p._normalizedRanges[B],B++);$===null?$=pe:$.endLineNumberExclusive>=pe.startLineNumber?$=new vc($.startLineNumber,Math.max($.endLineNumberExclusive,pe.endLineNumberExclusive)):(b.push($),$=pe)}return $!==null&&b.push($),new yb(b)}subtractFrom(p){const b=GW(this._normalizedRanges,pe=>pe.endLineNumberExclusive>=p.startLineNumber),D=jw(this._normalizedRanges,pe=>pe.startLineNumber<=p.endLineNumberExclusive)+1;if(b===D)return new yb([p]);const B=[];let $=p.startLineNumber;for(let pe=b;pe<D;pe++){const ke=this._normalizedRanges[pe];ke.startLineNumber>$&&B.push(new vc($,ke.startLineNumber)),$=ke.endLineNumberExclusive}return $<p.endLineNumberExclusive&&B.push(new vc($,p.endLineNumberExclusive)),new yb(B)}toString(){return this._normalizedRanges.map(p=>p.toString()).join(", ")}getIntersection(p){const b=[];let D=0,B=0;for(;D<this._normalizedRanges.length&&B<p._normalizedRanges.length;){const $=this._normalizedRanges[D],pe=p._normalizedRanges[B],ke=$.intersect(pe);ke&&!ke.isEmpty&&b.push(ke),$.endLineNumberExclusive<pe.endLineNumberExclusive?D++:B++}return new yb(b)}getWithDelta(p){return new yb(this._normalizedRanges.map(b=>b.delta(p)))}}class lS{static inverse(p,b,D){const B=[];let $=1,pe=1;for(const qe of p){const ge=new pT(new vc($,qe.original.startLineNumber),new vc(pe,qe.modified.startLineNumber),void 0);ge.modified.isEmpty||B.push(ge),$=qe.original.endLineNumberExclusive,pe=qe.modified.endLineNumberExclusive}const ke=new pT(new vc($,b+1),new vc(pe,D+1),void 0);return ke.modified.isEmpty||B.push(ke),B}constructor(p,b){this.original=p,this.modified=b}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new lS(this.modified,this.original)}join(p){return new lS(this.original.join(p.original),this.modified.join(p.modified))}}class pT extends lS{constructor(p,b,D){super(p,b),this.innerChanges=D}flip(){var p;return new pT(this.modified,this.original,(p=this.innerChanges)===null||p===void 0?void 0:p.map(b=>b.flip()))}}class Hw{constructor(p,b){this.originalRange=p,this.modifiedRange=b}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Hw(this.modifiedRange,this.originalRange)}}const eOe=3;class tOe{computeDiff(p,b,D){var B;const pe=new iOe(p,b,{maxComputationTime:D.maxComputationTimeMs,shouldIgnoreTrimWhitespace:D.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),ke=[];let qe=null;for(const ge of pe.changes){let Ie;ge.originalEndLineNumber===0?Ie=new vc(ge.originalStartLineNumber+1,ge.originalStartLineNumber+1):Ie=new vc(ge.originalStartLineNumber,ge.originalEndLineNumber+1);let xt;ge.modifiedEndLineNumber===0?xt=new vc(ge.modifiedStartLineNumber+1,ge.modifiedStartLineNumber+1):xt=new vc(ge.modifiedStartLineNumber,ge.modifiedEndLineNumber+1);let qt=new pT(Ie,xt,(B=ge.charChanges)===null||B===void 0?void 0:B.map(Xn=>new Hw(new Bl(Xn.originalStartLineNumber,Xn.originalStartColumn,Xn.originalEndLineNumber,Xn.originalEndColumn),new Bl(Xn.modifiedStartLineNumber,Xn.modifiedStartColumn,Xn.modifiedEndLineNumber,Xn.modifiedEndColumn))));qe&&(qe.modified.endLineNumberExclusive===qt.modified.startLineNumber||qe.original.endLineNumberExclusive===qt.original.startLineNumber)&&(qt=new pT(qe.original.join(qt.original),qe.modified.join(qt.modified),qe.innerChanges&&qt.innerChanges?qe.innerChanges.concat(qt.innerChanges):void 0),ke.pop()),ke.push(qt),qe=qt}return D7(()=>sue(ke,(ge,Ie)=>Ie.original.startLineNumber-ge.original.endLineNumberExclusive===Ie.modified.startLineNumber-ge.modified.endLineNumberExclusive&&ge.original.endLineNumberExclusive<Ie.original.startLineNumber&&ge.modified.endLineNumberExclusive<Ie.modified.startLineNumber)),new R7(ke,[],pe.quitEarly)}}function due(f,p,b,D){return new rS(f,p,b).ComputeDiff(D)}class fue{constructor(p){const b=[],D=[];for(let B=0,$=p.length;B<$;B++)b[B]=UW(p[B],1),D[B]=VW(p[B],1);this.lines=p,this._startColumns=b,this._endColumns=D}getElements(){const p=[];for(let b=0,D=this.lines.length;b<D;b++)p[b]=this.lines[b].substring(this._startColumns[b]-1,this._endColumns[b]-1);return p}getStrictElement(p){return this.lines[p]}getStartLineNumber(p){return p+1}getEndLineNumber(p){return p+1}createCharSequence(p,b,D){const B=[],$=[],pe=[];let ke=0;for(let qe=b;qe<=D;qe++){const ge=this.lines[qe],Ie=p?this._startColumns[qe]:1,xt=p?this._endColumns[qe]:ge.length+1;for(let qt=Ie;qt<xt;qt++)B[ke]=ge.charCodeAt(qt-1),$[ke]=qe+1,pe[ke]=qt,ke++;!p&&qe<D&&(B[ke]=10,$[ke]=qe+1,pe[ke]=ge.length+1,ke++)}return new nOe(B,$,pe)}}class nOe{constructor(p,b,D){this._charCodes=p,this._lineNumbers=b,this._columns=D}toString(){return"["+this._charCodes.map((p,b)=>(p===10?"\\n":String.fromCharCode(p))+`-(${this._lineNumbers[b]},${this._columns[b]})`).join(", ")+"]"}_assertIndex(p,b){if(p<0||p>=b.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(p){return p>0&&p===this._lineNumbers.length?this.getEndLineNumber(p-1):(this._assertIndex(p,this._lineNumbers),this._lineNumbers[p])}getEndLineNumber(p){return p===-1?this.getStartLineNumber(p+1):(this._assertIndex(p,this._lineNumbers),this._charCodes[p]===10?this._lineNumbers[p]+1:this._lineNumbers[p])}getStartColumn(p){return p>0&&p===this._columns.length?this.getEndColumn(p-1):(this._assertIndex(p,this._columns),this._columns[p])}getEndColumn(p){return p===-1?this.getStartColumn(p+1):(this._assertIndex(p,this._columns),this._charCodes[p]===10?1:this._columns[p]+1)}}class wI{constructor(p,b,D,B,$,pe,ke,qe){this.originalStartLineNumber=p,this.originalStartColumn=b,this.originalEndLineNumber=D,this.originalEndColumn=B,this.modifiedStartLineNumber=$,this.modifiedStartColumn=pe,this.modifiedEndLineNumber=ke,this.modifiedEndColumn=qe}static createFromDiffChange(p,b,D){const B=b.getStartLineNumber(p.originalStart),$=b.getStartColumn(p.originalStart),pe=b.getEndLineNumber(p.originalStart+p.originalLength-1),ke=b.getEndColumn(p.originalStart+p.originalLength-1),qe=D.getStartLineNumber(p.modifiedStart),ge=D.getStartColumn(p.modifiedStart),Ie=D.getEndLineNumber(p.modifiedStart+p.modifiedLength-1),xt=D.getEndColumn(p.modifiedStart+p.modifiedLength-1);return new wI(B,$,pe,ke,qe,ge,Ie,xt)}}function rOe(f){if(f.length<=1)return f;const p=[f[0]];let b=p[0];for(let D=1,B=f.length;D<B;D++){const $=f[D],pe=$.originalStart-(b.originalStart+b.originalLength),ke=$.modifiedStart-(b.modifiedStart+b.modifiedLength);Math.min(pe,ke)<eOe?(b.originalLength=$.originalStart+$.originalLength-b.originalStart,b.modifiedLength=$.modifiedStart+$.modifiedLength-b.modifiedStart):(p.push($),b=$)}return p}class zw{constructor(p,b,D,B,$){this.originalStartLineNumber=p,this.originalEndLineNumber=b,this.modifiedStartLineNumber=D,this.modifiedEndLineNumber=B,this.charChanges=$}static createFromDiffResult(p,b,D,B,$,pe,ke){let qe,ge,Ie,xt,qt;if(b.originalLength===0?(qe=D.getStartLineNumber(b.originalStart)-1,ge=0):(qe=D.getStartLineNumber(b.originalStart),ge=D.getEndLineNumber(b.originalStart+b.originalLength-1)),b.modifiedLength===0?(Ie=B.getStartLineNumber(b.modifiedStart)-1,xt=0):(Ie=B.getStartLineNumber(b.modifiedStart),xt=B.getEndLineNumber(b.modifiedStart+b.modifiedLength-1)),pe&&b.originalLength>0&&b.originalLength<20&&b.modifiedLength>0&&b.modifiedLength<20&&$()){const Xn=D.createCharSequence(p,b.originalStart,b.originalStart+b.originalLength-1),fr=B.createCharSequence(p,b.modifiedStart,b.modifiedStart+b.modifiedLength-1);if(Xn.getElements().length>0&&fr.getElements().length>0){let zn=due(Xn,fr,$,!0).changes;ke&&(zn=rOe(zn)),qt=[];for(let sa=0,Qn=zn.length;sa<Qn;sa++)qt.push(wI.createFromDiffChange(zn[sa],Xn,fr))}}return new zw(qe,ge,Ie,xt,qt)}}class iOe{constructor(p,b,D){this.shouldComputeCharChanges=D.shouldComputeCharChanges,this.shouldPostProcessCharChanges=D.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=D.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=D.shouldMakePrettyDiff,this.originalLines=p,this.modifiedLines=b,this.original=new fue(p),this.modified=new fue(b),this.continueLineDiff=_ue(D.maxComputationTime),this.continueCharDiff=_ue(D.maxComputationTime===0?0:Math.min(D.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 p=due(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),b=p.changes,D=p.quitEarly;if(this.shouldIgnoreTrimWhitespace){const ke=[];for(let qe=0,ge=b.length;qe<ge;qe++)ke.push(zw.createFromDiffResult(this.shouldIgnoreTrimWhitespace,b[qe],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:D,changes:ke}}const B=[];let $=0,pe=0;for(let ke=-1,qe=b.length;ke<qe;ke++){const ge=ke+1<qe?b[ke+1]:null,Ie=ge?ge.originalStart:this.originalLines.length,xt=ge?ge.modifiedStart:this.modifiedLines.length;for(;$<Ie&&pe<xt;){const qt=this.originalLines[$],Xn=this.modifiedLines[pe];if(qt!==Xn){{let fr=UW(qt,1),zn=UW(Xn,1);for(;fr>1&&zn>1;){const sa=qt.charCodeAt(fr-2),Qn=Xn.charCodeAt(zn-2);if(sa!==Qn)break;fr--,zn--}(fr>1||zn>1)&&this._pushTrimWhitespaceCharChange(B,$+1,1,fr,pe+1,1,zn)}{let fr=VW(qt,1),zn=VW(Xn,1);const sa=qt.length+1,Qn=Xn.length+1;for(;fr<sa&&zn<Qn;){const $t=qt.charCodeAt(fr-1),yi=qt.charCodeAt(zn-1);if($t!==yi)break;fr++,zn++}(fr<sa||zn<Qn)&&this._pushTrimWhitespaceCharChange(B,$+1,fr,sa,pe+1,zn,Qn)}}$++,pe++}ge&&(B.push(zw.createFromDiffResult(this.shouldIgnoreTrimWhitespace,ge,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),$+=ge.originalLength,pe+=ge.modifiedLength)}return{quitEarly:D,changes:B}}_pushTrimWhitespaceCharChange(p,b,D,B,$,pe,ke){if(this._mergeTrimWhitespaceCharChange(p,b,D,B,$,pe,ke))return;let qe;this.shouldComputeCharChanges&&(qe=[new wI(b,D,b,B,$,pe,$,ke)]),p.push(new zw(b,b,$,$,qe))}_mergeTrimWhitespaceCharChange(p,b,D,B,$,pe,ke){const qe=p.length;if(qe===0)return!1;const ge=p[qe-1];return ge.originalEndLineNumber===0||ge.modifiedEndLineNumber===0?!1:ge.originalEndLineNumber===b&&ge.modifiedEndLineNumber===$?(this.shouldComputeCharChanges&&ge.charChanges&&ge.charChanges.push(new wI(b,D,b,B,$,pe,$,ke)),!0):ge.originalEndLineNumber+1===b&&ge.modifiedEndLineNumber+1===$?(ge.originalEndLineNumber=b,ge.modifiedEndLineNumber=$,this.shouldComputeCharChanges&&ge.charChanges&&ge.charChanges.push(new wI(b,D,b,B,$,pe,$,ke)),!0):!1}}function UW(f,p){const b=E6e(f);return b===-1?p:b+1}function VW(f,p){const b=T6e(f);return b===-1?p:b+2}function _ue(f){if(f===0)return()=>!0;const p=Date.now();return()=>Date.now()-p<f}class mT{static trivial(p,b){return new mT([new Qf(Al.ofLength(p.length),Al.ofLength(b.length))],!1)}static trivialTimedOut(p,b){return new mT([new Qf(Al.ofLength(p.length),Al.ofLength(b.length))],!0)}constructor(p,b){this.diffs=p,this.hitTimeout=b}}class Qf{static invert(p,b){const D=[];return uNe(p,(B,$)=>{D.push(Qf.fromOffsetPairs(B?B.getEndExclusives():vb.zero,$?$.getStarts():new vb(b,(B?B.seq2Range.endExclusive-B.seq1Range.endExclusive:0)+b)))}),D}static fromOffsetPairs(p,b){return new Qf(new Al(p.offset1,b.offset1),new Al(p.offset2,b.offset2))}constructor(p,b){this.seq1Range=p,this.seq2Range=b}swap(){return new Qf(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(p){return new Qf(this.seq1Range.join(p.seq1Range),this.seq2Range.join(p.seq2Range))}delta(p){return p===0?this:new Qf(this.seq1Range.delta(p),this.seq2Range.delta(p))}deltaStart(p){return p===0?this:new Qf(this.seq1Range.deltaStart(p),this.seq2Range.deltaStart(p))}deltaEnd(p){return p===0?this:new Qf(this.seq1Range.deltaEnd(p),this.seq2Range.deltaEnd(p))}intersect(p){const b=this.seq1Range.intersect(p.seq1Range),D=this.seq2Range.intersect(p.seq2Range);if(!(!b||!D))return new Qf(b,D)}getStarts(){return new vb(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new vb(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class vb{constructor(p,b){this.offset1=p,this.offset2=b}toString(){return`${this.offset1} <-> ${this.offset2}`}}vb.zero=new vb(0,0),vb.max=new vb(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class qw{isValid(){return!0}}qw.instance=new qw;class aOe{constructor(p){if(this.timeout=p,this.startTime=Date.now(),this.valid=!0,p<=0)throw new Z2("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class jW{constructor(p,b){this.width=p,this.height=b,this.array=[],this.array=new Array(p*b)}get(p,b){return this.array[p+b*this.width]}set(p,b,D){this.array[p+b*this.width]=D}}function WW(f){return f===32||f===9}class DI{static getKey(p){let b=this.chrKeys.get(p);return b===void 0&&(b=this.chrKeys.size,this.chrKeys.set(p,b)),b}constructor(p,b,D){this.range=p,this.lines=b,this.source=D,this.histogram=[];let B=0;for(let $=p.startLineNumber-1;$<p.endLineNumberExclusive-1;$++){const pe=b[$];for(let qe=0;qe<pe.length;qe++){B++;const ge=pe[qe],Ie=DI.getKey(ge);this.histogram[Ie]=(this.histogram[Ie]||0)+1}B++;const ke=DI.getKey(`
`);this.histogram[ke]=(this.histogram[ke]||0)+1}this.totalCount=B}computeSimilarity(p){var b,D;let B=0;const $=Math.max(this.histogram.length,p.histogram.length);for(let pe=0;pe<$;pe++)B+=Math.abs(((b=this.histogram[pe])!==null&&b!==void 0?b:0)-((D=p.histogram[pe])!==null&&D!==void 0?D:0));return 1-B/(this.totalCount+p.totalCount)}}DI.chrKeys=new Map;class oOe{compute(p,b,D=qw.instance,B){if(p.length===0||b.length===0)return mT.trivial(p,b);const $=new jW(p.length,b.length),pe=new jW(p.length,b.length),ke=new jW(p.length,b.length);for(let fr=0;fr<p.length;fr++)for(let zn=0;zn<b.length;zn++){if(!D.isValid())return mT.trivialTimedOut(p,b);const sa=fr===0?0:$.get(fr-1,zn),Qn=zn===0?0:$.get(fr,zn-1);let $t;p.getElement(fr)===b.getElement(zn)?(fr===0||zn===0?$t=0:$t=$.get(fr-1,zn-1),fr>0&&zn>0&&pe.get(fr-1,zn-1)===3&&($t+=ke.get(fr-1,zn-1)),$t+=B?B(fr,zn):1):$t=-1;const yi=Math.max(sa,Qn,$t);if(yi===$t){const ii=fr>0&&zn>0?ke.get(fr-1,zn-1):0;ke.set(fr,zn,ii+1),pe.set(fr,zn,3)}else yi===sa?(ke.set(fr,zn,0),pe.set(fr,zn,1)):yi===Qn&&(ke.set(fr,zn,0),pe.set(fr,zn,2));$.set(fr,zn,yi)}const qe=[];let ge=p.length,Ie=b.length;function xt(fr,zn){(fr+1!==ge||zn+1!==Ie)&&qe.push(new Qf(new Al(fr+1,ge),new Al(zn+1,Ie))),ge=fr,Ie=zn}let qt=p.length-1,Xn=b.length-1;for(;qt>=0&&Xn>=0;)pe.get(qt,Xn)===3?(xt(qt,Xn),qt--,Xn--):pe.get(qt,Xn)===1?qt--:Xn--;return xt(-1,-1),qe.reverse(),new mT(qe,!1)}}class pue{compute(p,b,D=qw.instance){if(p.length===0||b.length===0)return mT.trivial(p,b);const B=p,$=b;function pe(zn,sa){for(;zn<B.length&&sa<$.length&&B.getElement(zn)===$.getElement(sa);)zn++,sa++;return zn}let ke=0;const qe=new sOe;qe.set(0,pe(0,0));const ge=new lOe;ge.set(0,qe.get(0)===0?null:new mue(null,0,0,qe.get(0)));let Ie=0;e:for(;;){if(ke++,!D.isValid())return mT.trivialTimedOut(B,$);const zn=-Math.min(ke,$.length+ke%2),sa=Math.min(ke,B.length+ke%2);for(Ie=zn;Ie<=sa;Ie+=2){let Qn=0;const $t=Ie===sa?-1:qe.get(Ie+1),yi=Ie===zn?-1:qe.get(Ie-1)+1;Qn++;const ii=Math.min(Math.max($t,yi),B.length),va=ii-Ie;if(Qn++,ii>B.length||va>$.length)continue;const Mo=pe(ii,va);qe.set(Ie,Mo);const Fr=ii===$t?ge.get(Ie+1):ge.get(Ie-1);if(ge.set(Ie,Mo!==ii?new mue(Fr,ii,va,Mo-ii):Fr),qe.get(Ie)===B.length&&qe.get(Ie)-Ie===$.length)break e}}let xt=ge.get(Ie);const qt=[];let Xn=B.length,fr=$.length;for(;;){const zn=xt?xt.x+xt.length:0,sa=xt?xt.y+xt.length:0;if((zn!==Xn||sa!==fr)&&qt.push(new Qf(new Al(zn,Xn),new Al(sa,fr))),!xt)break;Xn=xt.x,fr=xt.y,xt=xt.prev}return qt.reverse(),new mT(qt,!1)}}class mue{constructor(p,b,D,B){this.prev=p,this.x=b,this.y=D,this.length=B}}class sOe{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(p){return p<0?(p=-p-1,this.negativeArr[p]):this.positiveArr[p]}set(p,b){if(p<0){if(p=-p-1,p>=this.negativeArr.length){const D=this.negativeArr;this.negativeArr=new Int32Array(D.length*2),this.negativeArr.set(D)}this.negativeArr[p]=b}else{if(p>=this.positiveArr.length){const D=this.positiveArr;this.positiveArr=new Int32Array(D.length*2),this.positiveArr.set(D)}this.positiveArr[p]=b}}}class lOe{constructor(){this.positiveArr=[],this.negativeArr=[]}get(p){return p<0?(p=-p-1,this.negativeArr[p]):this.positiveArr[p]}set(p,b){p<0?(p=-p-1,this.negativeArr[p]=b):this.positiveArr[p]=b}}var hue,gue;class cOe{constructor(p,b){this.uri=p,this.value=b}}function uOe(f){return Array.isArray(f)}class RI{constructor(p,b){if(this[hue]="ResourceMap",p instanceof RI)this.map=new Map(p.map),this.toKey=b!=null?b:RI.defaultToKey;else if(uOe(p)){this.map=new Map,this.toKey=b!=null?b:RI.defaultToKey;for(const[D,B]of p)this.set(D,B)}else this.map=new Map,this.toKey=p!=null?p:RI.defaultToKey}set(p,b){return this.map.set(this.toKey(p),new cOe(p,b)),this}get(p){var b;return(b=this.map.get(this.toKey(p)))===null||b===void 0?void 0:b.value}has(p){return this.map.has(this.toKey(p))}get size(){return this.map.size}clear(){this.map.clear()}delete(p){return this.map.delete(this.toKey(p))}forEach(p,b){typeof b!="undefined"&&(p=p.bind(b));for(const[D,B]of this.map)p(B.value,B.uri,this)}*values(){for(const p of this.map.values())yield p.value}*keys(){for(const p of this.map.values())yield p.uri}*entries(){for(const p of this.map.values())yield[p.uri,p.value]}*[(hue=Symbol.toStringTag,Symbol.iterator)](){for(const[,p]of this.map)yield[p.uri,p.value]}}RI.defaultToKey=f=>f.toString();class cmt{constructor(){this[gue]="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 p;return(p=this._head)===null||p===void 0?void 0:p.value}get last(){var p;return(p=this._tail)===null||p===void 0?void 0:p.value}has(p){return this._map.has(p)}get(p,b=0){const D=this._map.get(p);if(D)return b!==0&&this.touch(D,b),D.value}set(p,b,D=0){let B=this._map.get(p);if(B)B.value=b,D!==0&&this.touch(B,D);else{switch(B={key:p,value:b,next:void 0,previous:void 0},D){case 0:this.addItemLast(B);break;case 1:this.addItemFirst(B);break;case 2:this.addItemLast(B);break;default:this.addItemLast(B);break}this._map.set(p,B),this._size++}return this}delete(p){return!!this.remove(p)}remove(p){const b=this._map.get(p);if(b)return this._map.delete(p),this.removeItem(b),this._size--,b.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const p=this._head;return this._map.delete(p.key),this.removeItem(p),this._size--,p.value}forEach(p,b){const D=this._state;let B=this._head;for(;B;){if(b?p.bind(b)(B.value,B.key,this):p(B.value,B.key,this),this._state!==D)throw new Error("LinkedMap got modified during iteration.");B=B.next}}keys(){const p=this,b=this._state;let D=this._head;const B={[Symbol.iterator](){return B},next(){if(p._state!==b)throw new Error("LinkedMap got modified during iteration.");if(D){const $={value:D.key,done:!1};return D=D.next,$}else return{value:void 0,done:!0}}};return B}values(){const p=this,b=this._state;let D=this._head;const B={[Symbol.iterator](){return B},next(){if(p._state!==b)throw new Error("LinkedMap got modified during iteration.");if(D){const $={value:D.value,done:!1};return D=D.next,$}else return{value:void 0,done:!0}}};return B}entries(){const p=this,b=this._state;let D=this._head;const B={[Symbol.iterator](){return B},next(){if(p._state!==b)throw new Error("LinkedMap got modified during iteration.");if(D){const $={value:[D.key,D.value],done:!1};return D=D.next,$}else return{value:void 0,done:!0}}};return B}[(gue=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(p){if(p>=this.size)return;if(p===0){this.clear();return}let b=this._head,D=this.size;for(;b&&D>p;)this._map.delete(b.key),b=b.next,D--;this._head=b,this._size=D,b&&(b.previous=void 0),this._state++}addItemFirst(p){if(!this._head&&!this._tail)this._tail=p;else if(this._head)p.next=this._head,this._head.previous=p;else throw new Error("Invalid list");this._head=p,this._state++}addItemLast(p){if(!this._head&&!this._tail)this._head=p;else if(this._tail)p.previous=this._tail,this._tail.next=p;else throw new Error("Invalid list");this._tail=p,this._state++}removeItem(p){if(p===this._head&&p===this._tail)this._head=void 0,this._tail=void 0;else if(p===this._head){if(!p.next)throw new Error("Invalid list");p.next.previous=void 0,this._head=p.next}else if(p===this._tail){if(!p.previous)throw new Error("Invalid list");p.previous.next=void 0,this._tail=p.previous}else{const b=p.next,D=p.previous;if(!b||!D)throw new Error("Invalid list");b.previous=D,D.next=b}p.next=void 0,p.previous=void 0,this._state++}touch(p,b){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(b!==1&&b!==2)){if(b===1){if(p===this._head)return;const D=p.next,B=p.previous;p===this._tail?(B.next=void 0,this._tail=B):(D.previous=B,B.next=D),p.previous=void 0,p.next=this._head,this._head.previous=p,this._head=p,this._state++}else if(b===2){if(p===this._tail)return;const D=p.next,B=p.previous;p===this._head?(D.previous=void 0,this._head=D):(D.previous=B,B.next=D),p.next=void 0,p.previous=this._tail,this._tail.next=p,this._tail=p,this._state++}}}toJSON(){const p=[];return this.forEach((b,D)=>{p.push([D,b])}),p}fromJSON(p){this.clear();for(const[b,D]of p)this.set(b,D)}}class umt extends null{constructor(p,b=1){super(),this._limit=p,this._ratio=Math.min(Math.max(0,b),1)}get limit(){return this._limit}set limit(p){this._limit=p,this.checkTrim()}get(p,b=2){return super.get(p,b)}peek(p){return super.get(p,0)}set(p,b){return super.set(p,b,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}class dmt{constructor(p){if(this._m1=new Map,this._m2=new Map,p)for(const[b,D]of p)this.set(b,D)}clear(){this._m1.clear(),this._m2.clear()}set(p,b){this._m1.set(p,b),this._m2.set(b,p)}get(p){return this._m1.get(p)}getKey(p){return this._m2.get(p)}delete(p){const b=this._m1.get(p);return b===void 0?!1:(this._m1.delete(p),this._m2.delete(b),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class dOe{constructor(){this.map=new Map}add(p,b){let D=this.map.get(p);D||(D=new Set,this.map.set(p,D)),D.add(b)}delete(p,b){const D=this.map.get(p);D&&(D.delete(b),D.size===0&&this.map.delete(p))}forEach(p,b){const D=this.map.get(p);D&&D.forEach(b)}get(p){const b=this.map.get(p);return b||new Set}}class N7{constructor(p,b,D){this.lines=p,this.considerWhitespaceChanges=D,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let B=!1;b.start>0&&b.endExclusive>=p.length&&(b=new Al(b.start-1,b.endExclusive),B=!0),this.lineRange=b,this.firstCharOffsetByLine[0]=0;for(let $=this.lineRange.start;$<this.lineRange.endExclusive;$++){let pe=p[$],ke=0;if(B)ke=pe.length,pe="",B=!1;else if(!D){const qe=pe.trimStart();ke=pe.length-qe.length,pe=qe.trimEnd()}this.additionalOffsetByLine.push(ke);for(let qe=0;qe<pe.length;qe++)this.elements.push(pe.charCodeAt(qe));$<p.length-1&&(this.elements.push(`
`.charCodeAt(0)),this.firstCharOffsetByLine[$-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Al(0,this.length))}getText(p){return this.elements.slice(p.start,p.endExclusive).map(b=>String.fromCharCode(b)).join("")}getElement(p){return this.elements[p]}get length(){return this.elements.length}getBoundaryScore(p){const b=vue(p>0?this.elements[p-1]:-1),D=vue(p<this.elements.length?this.elements[p]:-1);if(b===6&&D===7)return 0;let B=0;return b!==D&&(B+=10,b===0&&D===1&&(B+=1)),B+=yue(b),B+=yue(D),B}translateOffset(p){if(this.lineRange.isEmpty)return new Qp(this.lineRange.start+1,1);const b=jw(this.firstCharOffsetByLine,D=>D<=p);return new Qp(this.lineRange.start+b+1,p-this.firstCharOffsetByLine[b]+this.additionalOffsetByLine[b]+1)}translateRange(p){return Bl.fromPositions(this.translateOffset(p.start),this.translateOffset(p.endExclusive))}findWordContaining(p){if(p<0||p>=this.elements.length||!HW(this.elements[p]))return;let b=p;for(;b>0&&HW(this.elements[b-1]);)b--;let D=p;for(;D<this.elements.length&&HW(this.elements[D]);)D++;return new Al(b,D)}countLinesIn(p){return this.translateOffset(p.endExclusive).lineNumber-this.translateOffset(p.start).lineNumber}isStronglyEqual(p,b){return this.elements[p]===this.elements[b]}extendToFullLines(p){var b,D;const B=(b=Vw(this.firstCharOffsetByLine,pe=>pe<=p.start))!==null&&b!==void 0?b:0,$=(D=QNe(this.firstCharOffsetByLine,pe=>p.endExclusive<=pe))!==null&&D!==void 0?D:this.elements.length;return new Al(B,$)}}function HW(f){return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57}const fOe={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function yue(f){return fOe[f]}function vue(f){return f===10?7:f===13?6:WW(f)?5:f>=97&&f<=122?0:f>=65&&f<=90?1:f>=48&&f<=57?2:f===-1?3:4}function _Oe(f,p,b,D,B,$){let{moves:pe,excludedChanges:ke}=pOe(f,p,b,$);if(!$.isValid())return[];const qe=f.filter(Ie=>!ke.has(Ie)),ge=mOe(qe,D,B,p,b,$);return fNe(pe,ge),pe=hOe(pe),pe=pe.filter(Ie=>Ie.original.toOffsetRange().slice(p).map(qt=>qt.trim()).join(`
`).length>=10),pe=gOe(f,pe),pe}function pOe(f,p,b,D){const B=[],$=f.filter(qe=>qe.modified.isEmpty&&qe.original.length>=3).map(qe=>new DI(qe.original,p,qe)),pe=new Set(f.filter(qe=>qe.original.isEmpty&&qe.modified.length>=3).map(qe=>new DI(qe.modified,b,qe))),ke=new Set;for(const qe of $){let ge=-1,Ie;for(const xt of pe){const qt=qe.computeSimilarity(xt);qt>ge&&(ge=qt,Ie=xt)}if(ge>.9&&Ie&&(pe.delete(Ie),B.push(new lS(qe.range,Ie.range)),ke.add(qe.source),ke.add(Ie.source)),!D.isValid())return{moves:B,excludedChanges:ke}}return{moves:B,excludedChanges:ke}}function mOe(f,p,b,D,B,$){const pe=[],ke=new dOe;for(const qt of f)for(let Xn=qt.original.startLineNumber;Xn<qt.original.endLineNumberExclusive-2;Xn++){const fr=`${p[Xn-1]}:${p[Xn+1-1]}:${p[Xn+2-1]}`;ke.add(fr,{range:new vc(Xn,Xn+3)})}const qe=[];f.sort(C7(qt=>qt.modified.startLineNumber,Ow));for(const qt of f){let Xn=[];for(let fr=qt.modified.startLineNumber;fr<qt.modified.endLineNumberExclusive-2;fr++){const zn=`${b[fr-1]}:${b[fr+1-1]}:${b[fr+2-1]}`,sa=new vc(fr,fr+3),Qn=[];ke.forEach(zn,({range:$t})=>{for(const ii of Xn)if(ii.originalLineRange.endLineNumberExclusive+1===$t.endLineNumberExclusive&&ii.modifiedLineRange.endLineNumberExclusive+1===sa.endLineNumberExclusive){ii.originalLineRange=new vc(ii.originalLineRange.startLineNumber,$t.endLineNumberExclusive),ii.modifiedLineRange=new vc(ii.modifiedLineRange.startLineNumber,sa.endLineNumberExclusive),Qn.push(ii);return}const yi={modifiedLineRange:sa,originalLineRange:$t};qe.push(yi),Qn.push(yi)}),Xn=Qn}if(!$.isValid())return[]}qe.sort(pNe(C7(qt=>qt.modifiedLineRange.length,Ow)));const ge=new yb,Ie=new yb;for(const qt of qe){const Xn=qt.modifiedLineRange.startLineNumber-qt.originalLineRange.startLineNumber,fr=ge.subtractFrom(qt.modifiedLineRange),zn=Ie.subtractFrom(qt.originalLineRange).getWithDelta(Xn),sa=fr.getIntersection(zn);for(const Qn of sa.ranges){if(Qn.length<3)continue;const $t=Qn,yi=Qn.delta(-Xn);pe.push(new lS(yi,$t)),ge.addRange($t),Ie.addRange(yi)}}pe.sort(C7(qt=>qt.original.startLineNumber,Ow));const xt=new Ww(f);for(let qt=0;qt<pe.length;qt++){const Xn=pe[qt],fr=xt.findLastMonotonous(Mo=>Mo.original.startLineNumber<=Xn.original.startLineNumber),zn=Vw(f,Mo=>Mo.modified.startLineNumber<=Xn.modified.startLineNumber),sa=Math.max(Xn.original.startLineNumber-fr.original.startLineNumber,Xn.modified.startLineNumber-zn.modified.startLineNumber),Qn=xt.findLastMonotonous(Mo=>Mo.original.startLineNumber<Xn.original.endLineNumberExclusive),$t=Vw(f,Mo=>Mo.modified.startLineNumber<Xn.modified.endLineNumberExclusive),yi=Math.max(Qn.original.endLineNumberExclusive-Xn.original.endLineNumberExclusive,$t.modified.endLineNumberExclusive-Xn.modified.endLineNumberExclusive);let ii;for(ii=0;ii<sa;ii++){const Mo=Xn.original.startLineNumber-ii-1,Fr=Xn.modified.startLineNumber-ii-1;if(Mo>D.length||Fr>B.length||ge.contains(Fr)||Ie.contains(Mo)||!bue(D[Mo-1],B[Fr-1],$))break}ii>0&&(Ie.addRange(new vc(Xn.original.startLineNumber-ii,Xn.original.startLineNumber)),ge.addRange(new vc(Xn.modified.startLineNumber-ii,Xn.modified.startLineNumber)));let va;for(va=0;va<yi;va++){const Mo=Xn.original.endLineNumberExclusive+va,Fr=Xn.modified.endLineNumberExclusive+va;if(Mo>D.length||Fr>B.length||ge.contains(Fr)||Ie.contains(Mo)||!bue(D[Mo-1],B[Fr-1],$))break}va>0&&(Ie.addRange(new vc(Xn.original.endLineNumberExclusive,Xn.original.endLineNumberExclusive+va)),ge.addRange(new vc(Xn.modified.endLineNumberExclusive,Xn.modified.endLineNumberExclusive+va))),(ii>0||va>0)&&(pe[qt]=new lS(new vc(Xn.original.startLineNumber-ii,Xn.original.endLineNumberExclusive+va),new vc(Xn.modified.startLineNumber-ii,Xn.modified.endLineNumberExclusive+va)))}return pe}function bue(f,p,b){if(f.trim()===p.trim())return!0;if(f.length>300&&p.length>300)return!1;const B=new pue().compute(new N7([f],new Al(0,1),!1),new N7([p],new Al(0,1),!1),b);let $=0;const pe=Qf.invert(B.diffs,f.length);for(const Ie of pe)Ie.seq1Range.forEach(xt=>{WW(f.charCodeAt(xt))||$++});function ke(Ie){let xt=0;for(let qt=0;qt<f.length;qt++)WW(Ie.charCodeAt(qt))||xt++;return xt}const qe=ke(f.length>p.length?f:p);return $/qe>.6&&qe>10}function hOe(f){if(f.length===0)return f;f.sort(C7(b=>b.original.startLineNumber,Ow));const p=[f[0]];for(let b=1;b<f.length;b++){const D=p[p.length-1],B=f[b],$=B.original.startLineNumber-D.original.endLineNumberExclusive,pe=B.modified.startLineNumber-D.modified.endLineNumberExclusive;if($>=0&&pe>=0&&$+pe<=2){p[p.length-1]=D.join(B);continue}p.push(B)}return p}function gOe(f,p){const b=new Ww(f);return p=p.filter(D=>{const B=b.findLastMonotonous(ke=>ke.original.endLineNumberExclusive<D.original.endLineNumberExclusive)||new lS(new vc(1,1),new vc(1,1)),$=Vw(f,ke=>ke.modified.endLineNumberExclusive<D.modified.endLineNumberExclusive);return B!==$}),p}function Eue(f,p,b){let D=b;return D=yOe(f,p,D),D=vOe(f,p,D),D}function yOe(f,p,b){if(b.length===0)return b;const D=[];D.push(b[0]);for(let $=1;$<b.length;$++){const pe=D[D.length-1];let ke=b[$];if(ke.seq1Range.isEmpty||ke.seq2Range.isEmpty){const qe=ke.seq1Range.start-pe.seq1Range.endExclusive;let ge;for(ge=1;ge<=qe&&!(f.getElement(ke.seq1Range.start-ge)!==f.getElement(ke.seq1Range.endExclusive-ge)||p.getElement(ke.seq2Range.start-ge)!==p.getElement(ke.seq2Range.endExclusive-ge));ge++);if(ge--,ge===qe){D[D.length-1]=new Qf(new Al(pe.seq1Range.start,ke.seq1Range.endExclusive-qe),new Al(pe.seq2Range.start,ke.seq2Range.endExclusive-qe));continue}ke=ke.delta(-ge)}D.push(ke)}const B=[];for(let $=0;$<D.length-1;$++){const pe=D[$+1];let ke=D[$];if(ke.seq1Range.isEmpty||ke.seq2Range.isEmpty){const qe=pe.seq1Range.start-ke.seq1Range.endExclusive;let ge;for(ge=0;ge<qe&&!(!f.isStronglyEqual(ke.seq1Range.start+ge,ke.seq1Range.endExclusive+ge)||!p.isStronglyEqual(ke.seq2Range.start+ge,ke.seq2Range.endExclusive+ge));ge++);if(ge===qe){D[$+1]=new Qf(new Al(ke.seq1Range.start+qe,pe.seq1Range.endExclusive),new Al(ke.seq2Range.start+qe,pe.seq2Range.endExclusive));continue}ge>0&&(ke=ke.delta(ge))}B.push(ke)}return D.length>0&&B.push(D[D.length-1]),B}function vOe(f,p,b){if(!f.getBoundaryScore||!p.getBoundaryScore)return b;for(let D=0;D<b.length;D++){const B=D>0?b[D-1]:void 0,$=b[D],pe=D+1<b.length?b[D+1]:void 0,ke=new Al(B?B.seq1Range.start+1:0,pe?pe.seq1Range.endExclusive-1:f.length),qe=new Al(B?B.seq2Range.start+1:0,pe?pe.seq2Range.endExclusive-1:p.length);$.seq1Range.isEmpty?b[D]=Tue($,f,p,ke,qe):$.seq2Range.isEmpty&&(b[D]=Tue($.swap(),p,f,qe,ke).swap())}return b}function Tue(f,p,b,D,B){let pe=1;for(;f.seq1Range.start-pe>=D.start&&f.seq2Range.start-pe>=B.start&&b.isStronglyEqual(f.seq2Range.start-pe,f.seq2Range.endExclusive-pe)&&pe<100;)pe++;pe--;let ke=0;for(;f.seq1Range.start+ke<D.endExclusive&&f.seq2Range.endExclusive+ke<B.endExclusive&&b.isStronglyEqual(f.seq2Range.start+ke,f.seq2Range.endExclusive+ke)&&ke<100;)ke++;if(pe===0&&ke===0)return f;let qe=0,ge=-1;for(let Ie=-pe;Ie<=ke;Ie++){const xt=f.seq2Range.start+Ie,qt=f.seq2Range.endExclusive+Ie,Xn=f.seq1Range.start+Ie,fr=p.getBoundaryScore(Xn)+b.getBoundaryScore(xt)+b.getBoundaryScore(qt);fr>ge&&(ge=fr,qe=Ie)}return f.delta(qe)}function bOe(f,p,b){const D=[];for(const B of b){const $=D[D.length-1];if(!$){D.push(B);continue}B.seq1Range.start-$.seq1Range.endExclusive<=2||B.seq2Range.start-$.seq2Range.endExclusive<=2?D[D.length-1]=new Qf($.seq1Range.join(B.seq1Range),$.seq2Range.join(B.seq2Range)):D.push(B)}return D}function EOe(f,p,b){const D=[];let B;function $(){if(!B)return;const ke=B.s1Range.length-B.deleted,qe=B.s2Range.length-B.added;Math.max(B.deleted,B.added)+(B.count-1)>ke&&D.push(new Qf(B.s1Range,B.s2Range)),B=void 0}for(const ke of b){let qe=function(Xn,fr){var zn,sa,Qn,$t;if(!B||!B.s1Range.containsRange(Xn)||!B.s2Range.containsRange(fr))if(B&&!(B.s1Range.endExclusive<Xn.start&&B.s2Range.endExclusive<fr.start)){const va=Al.tryCreate(B.s1Range.endExclusive,Xn.start),Mo=Al.tryCreate(B.s2Range.endExclusive,fr.start);B.deleted+=(zn=va==null?void 0:va.length)!==null&&zn!==void 0?zn:0,B.added+=(sa=Mo==null?void 0:Mo.length)!==null&&sa!==void 0?sa:0,B.s1Range=B.s1Range.join(Xn),B.s2Range=B.s2Range.join(fr)}else $(),B={added:0,deleted:0,count:0,s1Range:Xn,s2Range:fr};const yi=Xn.intersect(ke.seq1Range),ii=fr.intersect(ke.seq2Range);B.count++,B.deleted+=(Qn=yi==null?void 0:yi.length)!==null&&Qn!==void 0?Qn:0,B.added+=($t=ii==null?void 0:ii.length)!==null&&$t!==void 0?$t:0};const ge=f.findWordContaining(ke.seq1Range.start-1),Ie=p.findWordContaining(ke.seq2Range.start-1),xt=f.findWordContaining(ke.seq1Range.endExclusive),qt=p.findWordContaining(ke.seq2Range.endExclusive);ge&&xt&&Ie&&qt&&ge.equals(xt)&&Ie.equals(qt)?qe(ge,Ie):(ge&&Ie&&qe(ge,Ie),xt&&qt&&qe(xt,qt))}return $(),TOe(b,D)}function TOe(f,p){const b=[];for(;f.length>0||p.length>0;){const D=f[0],B=p[0];let $;D&&(!B||D.seq1Range.start<B.seq1Range.start)?$=f.shift():$=p.shift(),b.length>0&&b[b.length-1].seq1Range.endExclusive>=$.seq1Range.start?b[b.length-1]=b[b.length-1].join($):b.push($)}return b}function SOe(f,p,b){let D=b;if(D.length===0)return D;let B=0,$;do{$=!1;const pe=[D[0]];for(let ke=1;ke<D.length;ke++){let Ie=function(qt,Xn){const fr=new Al(ge.seq1Range.endExclusive,qe.seq1Range.start);return f.getText(fr).replace(/\s/g,"").length<=4&&(qt.seq1Range.length+qt.seq2Range.length>5||Xn.seq1Range.length+Xn.seq2Range.length>5)};const qe=D[ke],ge=pe[pe.length-1];Ie(ge,qe)?($=!0,pe[pe.length-1]=pe[pe.length-1].join(qe)):pe.push(qe)}D=pe}while(B++<10&&$);return D}function xOe(f,p,b){let D=b;if(D.length===0)return D;let B=0,$;do{$=!1;const ke=[D[0]];for(let qe=1;qe<D.length;qe++){let xt=function(Xn,fr){const zn=new Al(Ie.seq1Range.endExclusive,ge.seq1Range.start);if(f.countLinesIn(zn)>5||zn.length>500)return!1;const Qn=f.getText(zn).trim();if(Qn.length>20||Qn.split(/\r\n|\r|\n/).length>1)return!1;const $t=f.countLinesIn(Xn.seq1Range),yi=Xn.seq1Range.length,ii=p.countLinesIn(Xn.seq2Range),va=Xn.seq2Range.length,Mo=f.countLinesIn(fr.seq1Range),Fr=fr.seq1Range.length,Jo=p.countLinesIn(fr.seq2Range),Lc=fr.seq2Range.length,Hc=2*40+50;function ur(Ws){return Math.min(Ws,Hc)}return Math.pow(Math.pow(ur($t*40+yi),1.5)+Math.pow(ur(ii*40+va),1.5),1.5)+Math.pow(Math.pow(ur(Mo*40+Fr),1.5)+Math.pow(ur(Jo*40+Lc),1.5),1.5)>Math.pow(Math.pow(Hc,1.5),1.5)*1.3};const ge=D[qe],Ie=ke[ke.length-1];xt(Ie,ge)?($=!0,ke[ke.length-1]=ke[ke.length-1].join(ge)):ke.push(ge)}D=ke}while(B++<10&&$);const pe=[];return dNe(D,(ke,qe,ge)=>{let Ie=qe;function xt(Qn){return Qn.length>0&&Qn.trim().length<=3&&qe.seq1Range.length+qe.seq2Range.length>100}const qt=f.extendToFullLines(qe.seq1Range),Xn=f.getText(new Al(qt.start,qe.seq1Range.start));xt(Xn)&&(Ie=Ie.deltaStart(-Xn.length));const fr=f.getText(new Al(qe.seq1Range.endExclusive,qt.endExclusive));xt(fr)&&(Ie=Ie.deltaEnd(fr.length));const zn=Qf.fromOffsetPairs(ke?ke.getEndExclusives():vb.zero,ge?ge.getStarts():vb.max),sa=Ie.intersect(zn);pe.push(sa)}),pe}class Sue{constructor(p,b){this.trimmedHash=p,this.lines=b}getElement(p){return this.trimmedHash[p]}get length(){return this.trimmedHash.length}getBoundaryScore(p){const b=p===0?0:xue(this.lines[p-1]),D=p===this.lines.length?0:xue(this.lines[p]);return 1e3-(b+D)}getText(p){return this.lines.slice(p.start,p.endExclusive).join(`
`)}isStronglyEqual(p,b){return this.lines[p]===this.lines[b]}}function xue(f){let p=0;for(;p<f.length&&(f.charCodeAt(p)===32||f.charCodeAt(p)===9);)p++;return p}class AOe{constructor(){this.dynamicProgrammingDiffing=new oOe,this.myersDiffingAlgorithm=new pue}computeDiff(p,b,D){if(p.length<=1&&sNe(p,b,(va,Mo)=>va===Mo))return new R7([],[],!1);if(p.length===1&&p[0].length===0||b.length===1&&b[0].length===0)return new R7([new pT(new vc(1,p.length+1),new vc(1,b.length+1),[new Hw(new Bl(1,1,p.length,p[0].length+1),new Bl(1,1,b.length,b[0].length+1))])],[],!1);const B=D.maxComputationTimeMs===0?qw.instance:new aOe(D.maxComputationTimeMs),$=!D.ignoreTrimWhitespace,pe=new Map;function ke(va){let Mo=pe.get(va);return Mo===void 0&&(Mo=pe.size,pe.set(va,Mo)),Mo}const qe=p.map(va=>ke(va.trim())),ge=b.map(va=>ke(va.trim())),Ie=new Sue(qe,p),xt=new Sue(ge,b),qt=(()=>Ie.length+xt.length<1700?this.dynamicProgrammingDiffing.compute(Ie,xt,B,(va,Mo)=>p[va]===b[Mo]?b[Mo].length===0?.1:1+Math.log(1+b[Mo].length):.99):this.myersDiffingAlgorithm.compute(Ie,xt))();let Xn=qt.diffs,fr=qt.hitTimeout;Xn=Eue(Ie,xt,Xn),Xn=SOe(Ie,xt,Xn);const zn=[],sa=va=>{if($)for(let Mo=0;Mo<va;Mo++){const Fr=Qn+Mo,Jo=$t+Mo;if(p[Fr]!==b[Jo]){const Lc=this.refineDiff(p,b,new Qf(new Al(Fr,Fr+1),new Al(Jo,Jo+1)),B,$);for(const Hc of Lc.mappings)zn.push(Hc);Lc.hitTimeout&&(fr=!0)}}};let Qn=0,$t=0;for(const va of Xn){D7(()=>va.seq1Range.start-Qn===va.seq2Range.start-$t);const Mo=va.seq1Range.start-Qn;sa(Mo),Qn=va.seq1Range.endExclusive,$t=va.seq2Range.endExclusive;const Fr=this.refineDiff(p,b,va,B,$);Fr.hitTimeout&&(fr=!0);for(const Jo of Fr.mappings)zn.push(Jo)}sa(p.length-Qn);const yi=Aue(zn,p,b);let ii=[];return D.computeMoves&&(ii=this.computeMoves(yi,p,b,qe,ge,B,$)),D7(()=>{function va(Fr,Jo){if(Fr.lineNumber<1||Fr.lineNumber>Jo.length)return!1;const Lc=Jo[Fr.lineNumber-1];return!(Fr.column<1||Fr.column>Lc.length+1)}function Mo(Fr,Jo){return!(Fr.startLineNumber<1||Fr.startLineNumber>Jo.length+1||Fr.endLineNumberExclusive<1||Fr.endLineNumberExclusive>Jo.length+1)}for(const Fr of yi){if(!Fr.innerChanges)return!1;for(const Jo of Fr.innerChanges)if(!(va(Jo.modifiedRange.getStartPosition(),b)&&va(Jo.modifiedRange.getEndPosition(),b)&&va(Jo.originalRange.getStartPosition(),p)&&va(Jo.originalRange.getEndPosition(),p)))return!1;if(!Mo(Fr.modified,b)||!Mo(Fr.original,p))return!1}return!0}),new R7(yi,ii,fr)}computeMoves(p,b,D,B,$,pe,ke){return _Oe(p,b,D,B,$,pe).map(Ie=>{const xt=this.refineDiff(b,D,new Qf(Ie.original.toOffsetRange(),Ie.modified.toOffsetRange()),pe,ke),qt=Aue(xt.mappings,b,D,!0);return new YNe(Ie,qt)})}refineDiff(p,b,D,B,$){const pe=new N7(p,D.seq1Range,$),ke=new N7(b,D.seq2Range,$),qe=pe.length+ke.length<500?this.dynamicProgrammingDiffing.compute(pe,ke,B):this.myersDiffingAlgorithm.compute(pe,ke,B);let ge=qe.diffs;return ge=Eue(pe,ke,ge),ge=EOe(pe,ke,ge),ge=bOe(pe,ke,ge),ge=xOe(pe,ke,ge),{mappings:ge.map(xt=>new Hw(pe.translateRange(xt.seq1Range),ke.translateRange(xt.seq2Range))),hitTimeout:qe.hitTimeout}}}function Aue(f,p,b,D=!1){const B=[];for(const $ of cNe(f.map(pe=>COe(pe,p,b)),(pe,ke)=>pe.original.overlapOrTouch(ke.original)||pe.modified.overlapOrTouch(ke.modified))){const pe=$[0],ke=$[$.length-1];B.push(new pT(pe.original.join(ke.original),pe.modified.join(ke.modified),$.map(qe=>qe.innerChanges[0])))}return D7(()=>!D&&B.length>0&&B[0].original.startLineNumber!==B[0].modified.startLineNumber?!1:sue(B,($,pe)=>pe.original.startLineNumber-$.original.endLineNumberExclusive===pe.modified.startLineNumber-$.modified.endLineNumberExclusive&&$.original.endLineNumberExclusive<pe.original.startLineNumber&&$.modified.endLineNumberExclusive<pe.modified.startLineNumber)),B}function COe(f,p,b){let D=0,B=0;f.modifiedRange.endColumn===1&&f.originalRange.endColumn===1&&f.originalRange.startLineNumber+D<=f.originalRange.endLineNumber&&f.modifiedRange.startLineNumber+D<=f.modifiedRange.endLineNumber&&(B=-1),f.modifiedRange.startColumn-1>=b[f.modifiedRange.startLineNumber-1].length&&f.originalRange.startColumn-1>=p[f.originalRange.startLineNumber-1].length&&f.originalRange.startLineNumber<=f.originalRange.endLineNumber+B&&f.modifiedRange.startLineNumber<=f.modifiedRange.endLineNumber+B&&(D=1);const $=new vc(f.originalRange.startLineNumber+D,f.originalRange.endLineNumber+1+B),pe=new vc(f.modifiedRange.startLineNumber+D,f.modifiedRange.endLineNumber+1+B);return new pT($,pe,[f])}const Cue={getLegacy:()=>new tOe,getDefault:()=>new AOe};function cS(f,p){const b=Math.pow(10,p);return Math.round(f*b)/b}class G_{constructor(p,b,D,B=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,p))|0,this.g=Math.min(255,Math.max(0,b))|0,this.b=Math.min(255,Math.max(0,D))|0,this.a=cS(Math.max(Math.min(1,B),0),3)}static equals(p,b){return p.r===b.r&&p.g===b.g&&p.b===b.b&&p.a===b.a}}class kv{constructor(p,b,D,B){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,p),0)|0,this.s=cS(Math.max(Math.min(1,b),0),3),this.l=cS(Math.max(Math.min(1,D),0),3),this.a=cS(Math.max(Math.min(1,B),0),3)}static equals(p,b){return p.h===b.h&&p.s===b.s&&p.l===b.l&&p.a===b.a}static fromRGBA(p){const b=p.r/255,D=p.g/255,B=p.b/255,$=p.a,pe=Math.max(b,D,B),ke=Math.min(b,D,B);let qe=0,ge=0;const Ie=(ke+pe)/2,xt=pe-ke;if(xt>0){switch(ge=Math.min(Ie<=.5?xt/(2*Ie):xt/(2-2*Ie),1),pe){case b:qe=(D-B)/xt+(D<B?6:0);break;case D:qe=(B-b)/xt+2;break;case B:qe=(b-D)/xt+4;break}qe*=60,qe=Math.round(qe)}return new kv(qe,ge,Ie,$)}static _hue2rgb(p,b,D){return D<0&&(D+=1),D>1&&(D-=1),D<1/6?p+(b-p)*6*D:D<1/2?b:D<2/3?p+(b-p)*(2/3-D)*6:p}static toRGBA(p){const b=p.h/360,{s:D,l:B,a:$}=p;let pe,ke,qe;if(D===0)pe=ke=qe=B;else{const ge=B<.5?B*(1+D):B+D-B*D,Ie=2*B-ge;pe=kv._hue2rgb(Ie,ge,b+1/3),ke=kv._hue2rgb(Ie,ge,b),qe=kv._hue2rgb(Ie,ge,b-1/3)}return new G_(Math.round(pe*255),Math.round(ke*255),Math.round(qe*255),$)}}class NI{constructor(p,b,D,B){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,p),0)|0,this.s=cS(Math.max(Math.min(1,b),0),3),this.v=cS(Math.max(Math.min(1,D),0),3),this.a=cS(Math.max(Math.min(1,B),0),3)}static equals(p,b){return p.h===b.h&&p.s===b.s&&p.v===b.v&&p.a===b.a}static fromRGBA(p){const b=p.r/255,D=p.g/255,B=p.b/255,$=Math.max(b,D,B),pe=Math.min(b,D,B),ke=$-pe,qe=$===0?0:ke/$;let ge;return ke===0?ge=0:$===b?ge=((D-B)/ke%6+6)%6:$===D?ge=(B-b)/ke+2:ge=(b-D)/ke+4,new NI(Math.round(ge*60),qe,$,p.a)}static toRGBA(p){const{h:b,s:D,v:B,a:$}=p,pe=B*D,ke=pe*(1-Math.abs(b/60%2-1)),qe=B-pe;let[ge,Ie,xt]=[0,0,0];return b<60?(ge=pe,Ie=ke):b<120?(ge=ke,Ie=pe):b<180?(Ie=pe,xt=ke):b<240?(Ie=ke,xt=pe):b<300?(ge=ke,xt=pe):b<=360&&(ge=pe,xt=ke),ge=Math.round((ge+qe)*255),Ie=Math.round((Ie+qe)*255),xt=Math.round((xt+qe)*255),new G_(ge,Ie,xt,$)}}class Wc{static fromHex(p){return Wc.Format.CSS.parseHex(p)||Wc.red}static equals(p,b){return!p&&!b?!0:!p||!b?!1:p.equals(b)}get hsla(){return this._hsla?this._hsla:kv.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:NI.fromRGBA(this.rgba)}constructor(p){if(p)if(p instanceof G_)this.rgba=p;else if(p instanceof kv)this._hsla=p,this.rgba=kv.toRGBA(p);else if(p instanceof NI)this._hsva=p,this.rgba=NI.toRGBA(p);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(p){return!!p&&G_.equals(this.rgba,p.rgba)&&kv.equals(this.hsla,p.hsla)&&NI.equals(this.hsva,p.hsva)}getRelativeLuminance(){const p=Wc._relativeLuminanceForComponent(this.rgba.r),b=Wc._relativeLuminanceForComponent(this.rgba.g),D=Wc._relativeLuminanceForComponent(this.rgba.b),B=.2126*p+.7152*b+.0722*D;return cS(B,4)}static _relativeLuminanceForComponent(p){const b=p/255;return b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(p){const b=this.getRelativeLuminance(),D=p.getRelativeLuminance();return b>D}isDarkerThan(p){const b=this.getRelativeLuminance(),D=p.getRelativeLuminance();return b<D}lighten(p){return new Wc(new kv(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*p,this.hsla.a))}darken(p){return new Wc(new kv(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*p,this.hsla.a))}transparent(p){const{r:b,g:D,b:B,a:$}=this.rgba;return new Wc(new G_(b,D,B,$*p))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Wc(new G_(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(p){if(this.isOpaque()||p.rgba.a!==1)return this;const{r:b,g:D,b:B,a:$}=this.rgba;return new Wc(new G_(p.rgba.r-$*(p.rgba.r-b),p.rgba.g-$*(p.rgba.g-D),p.rgba.b-$*(p.rgba.b-B),1))}toString(){return this._toString||(this._toString=Wc.Format.CSS.format(this)),this._toString}static getLighterColor(p,b,D){if(p.isLighterThan(b))return p;D=D||.5;const B=p.getRelativeLuminance(),$=b.getRelativeLuminance();return D=D*($-B)/$,p.lighten(D)}static getDarkerColor(p,b,D){if(p.isDarkerThan(b))return p;D=D||.5;const B=p.getRelativeLuminance(),$=b.getRelativeLuminance();return D=D*(B-$)/B,p.darken(D)}}Wc.white=new Wc(new G_(255,255,255,1)),Wc.black=new Wc(new G_(0,0,0,1)),Wc.red=new Wc(new G_(255,0,0,1)),Wc.blue=new Wc(new G_(0,0,255,1)),Wc.green=new Wc(new G_(0,255,0,1)),Wc.cyan=new Wc(new G_(0,255,255,1)),Wc.lightgrey=new Wc(new G_(211,211,211,1)),Wc.transparent=new Wc(new G_(0,0,0,0)),function(f){let p;(function(b){let D;(function(B){function $(zn){return zn.rgba.a===1?`rgb(${zn.rgba.r}, ${zn.rgba.g}, ${zn.rgba.b})`:f.Format.CSS.formatRGBA(zn)}B.formatRGB=$;function pe(zn){return`rgba(${zn.rgba.r}, ${zn.rgba.g}, ${zn.rgba.b}, ${+zn.rgba.a.toFixed(2)})`}B.formatRGBA=pe;function ke(zn){return zn.hsla.a===1?`hsl(${zn.hsla.h}, ${(zn.hsla.s*100).toFixed(2)}%, ${(zn.hsla.l*100).toFixed(2)}%)`:f.Format.CSS.formatHSLA(zn)}B.formatHSL=ke;function qe(zn){return`hsla(${zn.hsla.h}, ${(zn.hsla.s*100).toFixed(2)}%, ${(zn.hsla.l*100).toFixed(2)}%, ${zn.hsla.a.toFixed(2)})`}B.formatHSLA=qe;function ge(zn){const sa=zn.toString(16);return sa.length!==2?"0"+sa:sa}function Ie(zn){return`#${ge(zn.rgba.r)}${ge(zn.rgba.g)}${ge(zn.rgba.b)}`}B.formatHex=Ie;function xt(zn,sa=!1){return sa&&zn.rgba.a===1?f.Format.CSS.formatHex(zn):`#${ge(zn.rgba.r)}${ge(zn.rgba.g)}${ge(zn.rgba.b)}${ge(Math.round(zn.rgba.a*255))}`}B.formatHexA=xt;function qt(zn){return zn.isOpaque()?f.Format.CSS.formatHex(zn):f.Format.CSS.formatRGBA(zn)}B.format=qt;function Xn(zn){const sa=zn.length;if(sa===0||zn.charCodeAt(0)!==35)return null;if(sa===7){const Qn=16*fr(zn.charCodeAt(1))+fr(zn.charCodeAt(2)),$t=16*fr(zn.charCodeAt(3))+fr(zn.charCodeAt(4)),yi=16*fr(zn.charCodeAt(5))+fr(zn.charCodeAt(6));return new f(new G_(Qn,$t,yi,1))}if(sa===9){const Qn=16*fr(zn.charCodeAt(1))+fr(zn.charCodeAt(2)),$t=16*fr(zn.charCodeAt(3))+fr(zn.charCodeAt(4)),yi=16*fr(zn.charCodeAt(5))+fr(zn.charCodeAt(6)),ii=16*fr(zn.charCodeAt(7))+fr(zn.charCodeAt(8));return new f(new G_(Qn,$t,yi,ii/255))}if(sa===4){const Qn=fr(zn.charCodeAt(1)),$t=fr(zn.charCodeAt(2)),yi=fr(zn.charCodeAt(3));return new f(new G_(16*Qn+Qn,16*$t+$t,16*yi+yi))}if(sa===5){const Qn=fr(zn.charCodeAt(1)),$t=fr(zn.charCodeAt(2)),yi=fr(zn.charCodeAt(3)),ii=fr(zn.charCodeAt(4));return new f(new G_(16*Qn+Qn,16*$t+$t,16*yi+yi,(16*ii+ii)/255))}return null}B.parseHex=Xn;function fr(zn){switch(zn){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}})(D=b.CSS||(b.CSS={}))})(p=f.Format||(f.Format={}))}(Wc||(Wc={}));function Lue(f){const p=[];for(const b of f){const D=Number(b);(D||D===0&&b.replace(/\s/g,"")!=="")&&p.push(D)}return p}function zW(f,p,b,D){return{red:f/255,blue:b/255,green:p/255,alpha:D}}function Jw(f,p){const b=p.index,D=p[0].length;if(!b)return;const B=f.positionAt(b);return{startLineNumber:B.lineNumber,startColumn:B.column,endLineNumber:B.lineNumber,endColumn:B.column+D}}function LOe(f,p){if(!f)return;const b=Wc.Format.CSS.parseHex(p);if(b)return{range:f,color:zW(b.rgba.r,b.rgba.g,b.rgba.b,b.rgba.a)}}function Iue(f,p,b){if(!f||p.length!==1)return;const B=p[0].values(),$=Lue(B);return{range:f,color:zW($[0],$[1],$[2],b?$[3]:1)}}function kue(f,p,b){if(!f||p.length!==1)return;const B=p[0].values(),$=Lue(B),pe=new Wc(new kv($[0],$[1]/100,$[2]/100,b?$[3]:1));return{range:f,color:zW(pe.rgba.r,pe.rgba.g,pe.rgba.b,pe.rgba.a)}}function Kw(f,p){return typeof f=="string"?[...f.matchAll(p)]:f.findMatches(p)}function IOe(f){const p=[],D=Kw(f,/\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(D.length>0)for(const B of D){const $=B.filter(ge=>ge!==void 0),pe=$[1],ke=$[2];if(!ke)continue;let qe;if(pe==="rgb"){const ge=/^\(\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;qe=Iue(Jw(f,B),Kw(ke,ge),!1)}else if(pe==="rgba"){const ge=/^\(\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;qe=Iue(Jw(f,B),Kw(ke,ge),!0)}else if(pe==="hsl"){const ge=/^\(\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;qe=kue(Jw(f,B),Kw(ke,ge),!1)}else if(pe==="hsla"){const ge=/^\(\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;qe=kue(Jw(f,B),Kw(ke,ge),!0)}else pe==="#"&&(qe=LOe(Jw(f,B),pe+ke));qe&&p.push(qe)}return p}function kOe(f){return!f||typeof f.getValue!="function"||typeof f.positionAt!="function"?[]:IOe(f)}var uS=function(f,p,b,D){function B($){return $ instanceof b?$:new b(function(pe){pe($)})}return new(b||(b=Promise))(function($,pe){function ke(Ie){try{ge(D.next(Ie))}catch(xt){pe(xt)}}function qe(Ie){try{ge(D.throw(Ie))}catch(xt){pe(xt)}}function ge(Ie){Ie.done?$(Ie.value):B(Ie.value).then(ke,qe)}ge((D=D.apply(f,p||[])).next())})};class wOe extends hNe{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(p){const b=[];for(let D=0;D<this._lines.length;D++){const B=this._lines[D],$=this.offsetAt(new Qp(D+1,1)),pe=B.matchAll(p);for(const ke of pe)(ke.index||ke.index===0)&&(ke.index=ke.index+$),b.push(ke)}return b}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(p){return this._lines[p-1]}getWordAtPosition(p,b){const D=AW(p.column,vNe(b),this._lines[p.lineNumber-1],0);return D?new Bl(p.lineNumber,D.startColumn,p.lineNumber,D.endColumn):null}words(p){const b=this._lines,D=this._wordenize.bind(this);let B=0,$="",pe=0,ke=[];return{*[Symbol.iterator](){for(;;)if(pe<ke.length){const qe=$.substring(ke[pe].start,ke[pe].end);pe+=1,yield qe}else if(B<b.length)$=b[B],ke=D($,p),pe=0,B+=1;else break}}}getLineWords(p,b){const D=this._lines[p-1],B=this._wordenize(D,b),$=[];for(const pe of B)$.push({word:D.substring(pe.start,pe.end),startColumn:pe.start+1,endColumn:pe.end+1});return $}_wordenize(p,b){const D=[];let B;for(b.lastIndex=0;(B=b.exec(p))&&B[0].length!==0;)D.push({start:B.index,end:B.index+B[0].length});return D}getValueInRange(p){if(p=this._validateRange(p),p.startLineNumber===p.endLineNumber)return this._lines[p.startLineNumber-1].substring(p.startColumn-1,p.endColumn-1);const b=this._eol,D=p.startLineNumber-1,B=p.endLineNumber-1,$=[];$.push(this._lines[D].substring(p.startColumn-1));for(let pe=D+1;pe<B;pe++)$.push(this._lines[pe]);return $.push(this._lines[B].substring(0,p.endColumn-1)),$.join(b)}offsetAt(p){return p=this._validatePosition(p),this._ensureLineStarts(),this._lineStarts.getPrefixSum(p.lineNumber-2)+(p.column-1)}positionAt(p){p=Math.floor(p),p=Math.max(0,p),this._ensureLineStarts();const b=this._lineStarts.getIndexOf(p),D=this._lines[b.index].length;return{lineNumber:1+b.index,column:1+Math.min(b.remainder,D)}}_validateRange(p){const b=this._validatePosition({lineNumber:p.startLineNumber,column:p.startColumn}),D=this._validatePosition({lineNumber:p.endLineNumber,column:p.endColumn});return b.lineNumber!==p.startLineNumber||b.column!==p.startColumn||D.lineNumber!==p.endLineNumber||D.column!==p.endColumn?{startLineNumber:b.lineNumber,startColumn:b.column,endLineNumber:D.lineNumber,endColumn:D.column}:p}_validatePosition(p){if(!Qp.isIPosition(p))throw new Error("bad position");let{lineNumber:b,column:D}=p,B=!1;if(b<1)b=1,D=1,B=!0;else if(b>this._lines.length)b=this._lines.length,D=this._lines[b-1].length+1,B=!0;else{const $=this._lines[b-1].length+1;D<1?(D=1,B=!0):D>$&&(D=$,B=!0)}return B?{lineNumber:b,column:D}:p}}class dS{constructor(p,b){this._host=p,this._models=Object.create(null),this._foreignModuleFactory=b,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(p){return this._models[p]}_getModels(){const p=[];return Object.keys(this._models).forEach(b=>p.push(this._models[b])),p}acceptNewModel(p){this._models[p.url]=new wOe(PA.parse(p.url),p.lines,p.EOL,p.versionId)}acceptModelChanged(p,b){if(!this._models[p])return;this._models[p].onEvents(b)}acceptRemovedModel(p){this._models[p]&&delete this._models[p]}computeUnicodeHighlights(p,b,D){return uS(this,void 0,void 0,function*(){const B=this._getModel(p);return B?KNe.computeUnicodeHighlights(B,b,D):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(p,b,D,B){return uS(this,void 0,void 0,function*(){const $=this._getModel(p),pe=this._getModel(b);return!$||!pe?null:dS.computeDiff($,pe,D,B)})}static computeDiff(p,b,D,B){const $=B==="advanced"?Cue.getDefault():Cue.getLegacy(),pe=p.getLinesContent(),ke=b.getLinesContent(),qe=$.computeDiff(pe,ke,D),ge=qe.changes.length>0?!1:this._modelsAreIdentical(p,b);function Ie(xt){return xt.map(qt=>{var Xn;return[qt.original.startLineNumber,qt.original.endLineNumberExclusive,qt.modified.startLineNumber,qt.modified.endLineNumberExclusive,(Xn=qt.innerChanges)===null||Xn===void 0?void 0:Xn.map(fr=>[fr.originalRange.startLineNumber,fr.originalRange.startColumn,fr.originalRange.endLineNumber,fr.originalRange.endColumn,fr.modifiedRange.startLineNumber,fr.modifiedRange.startColumn,fr.modifiedRange.endLineNumber,fr.modifiedRange.endColumn])]})}return{identical:ge,quitEarly:qe.hitTimeout,changes:Ie(qe.changes),moves:qe.moves.map(xt=>[xt.lineRangeMapping.original.startLineNumber,xt.lineRangeMapping.original.endLineNumberExclusive,xt.lineRangeMapping.modified.startLineNumber,xt.lineRangeMapping.modified.endLineNumberExclusive,Ie(xt.changes)])}}static _modelsAreIdentical(p,b){const D=p.getLineCount(),B=b.getLineCount();if(D!==B)return!1;for(let $=1;$<=D;$++){const pe=p.getLineContent($),ke=b.getLineContent($);if(pe!==ke)return!1}return!0}computeMoreMinimalEdits(p,b,D){return uS(this,void 0,void 0,function*(){const B=this._getModel(p);if(!B)return b;const $=[];let pe;b=b.slice(0).sort((qe,ge)=>{if(qe.range&&ge.range)return Bl.compareRangesUsingStarts(qe.range,ge.range);const Ie=qe.range?0:1,xt=ge.range?0:1;return Ie-xt});let ke=0;for(let qe=1;qe<b.length;qe++)Bl.getEndPosition(b[ke].range).equals(Bl.getStartPosition(b[qe].range))?(b[ke].range=Bl.fromPositions(Bl.getStartPosition(b[ke].range),Bl.getEndPosition(b[qe].range)),b[ke].text+=b[qe].text):(ke++,b[ke]=b[qe]);b.length=ke+1;for(let{range:qe,text:ge,eol:Ie}of b){if(typeof Ie=="number"&&(pe=Ie),Bl.isEmpty(qe)&&!ge)continue;const xt=B.getValueInRange(qe);if(ge=ge.replace(/\r\n|\n|\r/g,B.eol),xt===ge)continue;if(Math.max(ge.length,xt.length)>dS._diffLimit){$.push({range:qe,text:ge});continue}const qt=W6e(xt,ge,D),Xn=B.offsetAt(Bl.lift(qe).getStartPosition());for(const fr of qt){const zn=B.positionAt(Xn+fr.originalStart),sa=B.positionAt(Xn+fr.originalStart+fr.originalLength),Qn={text:ge.substr(fr.modifiedStart,fr.modifiedLength),range:{startLineNumber:zn.lineNumber,startColumn:zn.column,endLineNumber:sa.lineNumber,endColumn:sa.column}};B.getValueInRange(Qn.range)!==Qn.text&&$.push(Qn)}}return typeof pe=="number"&&$.push({eol:pe,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),$})}computeLinks(p){return uS(this,void 0,void 0,function*(){const b=this._getModel(p);return b?ANe(b):null})}computeDefaultDocumentColors(p){return uS(this,void 0,void 0,function*(){const b=this._getModel(p);return b?kOe(b):null})}textualSuggest(p,b,D,B){return uS(this,void 0,void 0,function*(){const $=new m7,pe=new RegExp(D,B),ke=new Set;e:for(const qe of p){const ge=this._getModel(qe);if(ge){for(const Ie of ge.words(pe))if(!(Ie===b||!isNaN(Number(Ie)))&&(ke.add(Ie),ke.size>dS._suggestionsLimit))break e}}return{words:Array.from(ke),duration:$.elapsed()}})}computeWordRanges(p,b,D,B){return uS(this,void 0,void 0,function*(){const $=this._getModel(p);if(!$)return Object.create(null);const pe=new RegExp(D,B),ke=Object.create(null);for(let qe=b.startLineNumber;qe<b.endLineNumber;qe++){const ge=$.getLineWords(qe,pe);for(const Ie of ge){if(!isNaN(Number(Ie.word)))continue;let xt=ke[Ie.word];xt||(xt=[],ke[Ie.word]=xt),xt.push({startLineNumber:qe,startColumn:Ie.startColumn,endLineNumber:qe,endColumn:Ie.endColumn})}}return ke})}navigateValueSet(p,b,D,B,$){return uS(this,void 0,void 0,function*(){const pe=this._getModel(p);if(!pe)return null;const ke=new RegExp(B,$);b.startColumn===b.endColumn&&(b={startLineNumber:b.startLineNumber,startColumn:b.startColumn,endLineNumber:b.endLineNumber,endColumn:b.endColumn+1});const qe=pe.getValueInRange(b),ge=pe.getWordAtPosition({lineNumber:b.startLineNumber,column:b.startColumn},ke);if(!ge)return null;const Ie=pe.getValueInRange(ge);return LW.INSTANCE.navigateValueSet(b,qe,ge,Ie,D)})}loadForeignModule(p,b,D){const pe={host:n6e(D,(ke,qe)=>this._host.fhr(ke,qe)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(pe,b),Promise.resolve(oW(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(p,b){if(!this._foreignModule||typeof this._foreignModule[p]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+p));try{return Promise.resolve(this._foreignModule[p].apply(this._foreignModule,b))}catch(D){return Promise.reject(D)}}}dS._diffLimit=1e5,dS._suggestionsLimit=1e4;function fmt(f){return new dS(f,null)}typeof importScripts=="function"&&(globalThis.monaco=UNe());let qW=!1;function wue(f){if(qW)return;qW=!0;const p=new qle(b=>{globalThis.postMessage(b)},b=>new dS(b,f));globalThis.onmessage=b=>{p.onmessage(b.data)}}globalThis.onmessage=f=>{qW||wue(null)};var JW="/index.js",DOe="/";var ROe=Object.defineProperty,NOe=(f,p)=>{for(var b in p)ROe(f,b,{get:p[b],enumerable:!0})},Due={};NOe(Due,{EndOfLineState:()=>POe,IndentStyle:()=>BOe,ScriptKind:()=>FA,ScriptTarget:()=>GOe,TokenClass:()=>UOe,createClassifier:()=>OOe,createLanguageService:()=>Rue,displayPartsToString:()=>MOe,flattenDiagnosticMessageText:()=>FOe,typescript:()=>Nue});var e1=void 0,O7={exports:{}},t1=(()=>{var f=Object.defineProperty,p=Object.getOwnPropertyNames,b=(e,t)=>function(){return e&&(t=(0,e[p(e)[0]])(e=0)),t},D=(e,t)=>function(){return t||(0,e[p(e)[0]])((t={exports:{}}).exports,t),t.exports},B=(e,t)=>{for(var r in t)f(e,r,{get:t[r],enumerable:!0})},$,pe,ke,qe=b({"src/compiler/corePublic.ts"(){"use strict";$="5.0",pe="5.0.2",ke=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(ke||{})}});function ge(e){return e?e.length:0}function Ie(e,t){if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}}function xt(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 Xn(e,t){for(const r of e){const i=t(r);if(i!==void 0)return i}}function fr(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 zn(e,t,r){const i=[];R.assertEqual(e.length,t.length);for(let o=0;o<e.length;o++)i.push(r(e[o],t[o],o));return i}function sa(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 Qn(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function $t(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 yi(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 ii(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 va(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 Mo(e,t){for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}return R.fail()}function Fr(e,t,r=r1){if(e){for(const i of e)if(r(i,t))return!0}return!1}function Jo(e,t,r=r1){return e.length===t.length&&e.every((i,o)=>r(i,t[o]))}function Lc(e,t,r){for(let i=r||0;i<e.length;i++)if(Fr(t,e.charCodeAt(i)))return i;return-1}function Hc(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 ur(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 Ws(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 Ta(e){e.length=0}function Pt(e,t){let r;if(e){r=[];for(let i=0;i<e.length;i++)r.push(t(e[i],i))}return r}function*Ua(e,t){for(const r of e)yield t(r)}function Ui(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 Ha(e){const t=[];for(const r of e)r&&(ja(r)?xi(t,r):t.push(r));return t}function ji(e,t){let r;if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(ja(o)?r=xi(r,o):r=Pn(r,o))}return r||it}function bc(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(ja(o)?xi(r,o):r.push(o))}return r}function*xp(e,t){for(const r of e){const i=t(r);i&&(yield*ble(i))}}function U_(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||ja(s))&&(r||(r=e.slice(0,i)),ja(s)?xi(r,s):r.push(s))}return r||e}function bb(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 ua(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*yy(e,t){for(const r of e){const i=t(r);i!==void 0&&(yield i)}}function M7(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const s=t(o,i);if(s!==void 0){const[c,_]=s;c!==void 0&&_!==void 0&&r.set(c,_)}}),r}function Eb(e,t,r){if(e.has(t))return e.get(t);const i=r();return e.set(t,i),i}function wv(e,t){return e.has(t)?!1:(e.add(t),!0)}function*KW(e){yield e}function P7(e,t,r){let i;if(e){i=[];const o=e.length;let s,c,_=0,d=0;for(;_<o;){for(;d<o;){const v=e[d];if(c=t(v,d),d===0)s=c;else if(c!==s)break;d++}if(_<d){const v=r(e.slice(_,d),s,_,d);v&&i.push(v),_=d}s=c,d++}}return i}function Oue(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const[s,c]=t(o,i);r.set(s,c)}),r}function Dt(e,t){if(e)if(t){for(const r of e)if(t(r))return!0}else return e.length>0;return!1}function XW(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 ba(e,t){return Dt(t)?Dt(e)?[...e,...t]:t:e}function jOe(e,t){return t}function Xw(e){return e.map(jOe)}function WOe(e,t,r){const i=Xw(e);Fue(e,i,r);let o=e[i[0]];const s=[i[0]];for(let c=1;c<i.length;c++){const _=i[c],d=e[_];t(o,d)||(s.push(_),o=d)}return s.sort(),s.map(c=>e[c])}function HOe(e,t){const r=[];for(const i of e)y_(r,i,t);return r}function BA(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?WOe(e,t,r):HOe(e,t)}function zOe(e,t){if(e.length===0)return it;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 R.fail("Array is unsorted.")}i.push(r=s)}return i}function YW(){return[]}function Dv(e,t,r,i){if(e.length===0)return e.push(t),!0;const o=Rv(e,t,gl,r);return o<0?(e.splice(~o,0,t),!0):i?(e.splice(o,0,t),!0):!1}function Yw(e,t,r){return zOe(MI(e,t),r||t||ju)}function Mue(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 F7(e,t,r,i){let o=3;if(e.length<2)return o;let s=t(e[0]);for(let c=1,_=e.length;c<_&&o!==0;c++){const d=t(e[c]);o&1&&r(s,d)>0&&(o&=-2),o&2&&i(s,d)>0&&(o&=-3),s=d}return o}function Zp(e,t,r=r1){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 $w(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 Pue(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&&R.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(const c=o;o<e.length;o++)switch(o>c&&R.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 Pn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function GA(e,t){return e===void 0?t:t===void 0?e:ja(e)?ja(t)?ba(e,t):Pn(e,t):ja(t)?Pn(t,e):[e,t]}function $W(e,t){return t<0?e.length+t:t}function xi(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:$W(t,r),i=i===void 0?t.length:$W(t,i);for(let o=r;o<i&&o<t.length;o++)t[o]!==void 0&&e.push(t[o]);return e}function y_(e,t,r){return Fr(e,t,r)?!1:(e.push(t),!0)}function vy(e,t,r){return e?(y_(e,t,r),e):[t]}function Fue(e,t,r){t.sort((i,o)=>r(e[i],e[o])||qs(i,o))}function MI(e,t){return e.length===0?e:e.slice().sort(t)}function*qOe(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function by(e,t){const r=Xw(e);return Fue(e,r,t),r.map(i=>e[i])}function QW(e,t,r,i){for(;r<i;){if(e[r]!==t[r])return!1;r++}return!0}function tu(e){return e===void 0||e.length===0?void 0:e[0]}function B7(e){if(e)for(const t of e)return t}function ds(e){return R.assert(e.length!==0),e[0]}function Bue(e){for(const t of e)return t;R.fail("iterator is empty")}function rl(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Ko(e){return R.assert(e.length!==0),e[e.length-1]}function Nm(e){return e&&e.length===1?e[0]:void 0}function ZW(e){return R.checkDefined(Nm(e))}function Om(e){return e&&e.length===1?e[0]:e}function eH(e,t,r){const i=e.slice(0);return i[t]=r,i}function Rv(e,t,r,i,o){return fS(e,r(t),r,i,o)}function fS(e,t,r,i,o){if(!Dt(e))return-1;let s=o||0,c=e.length-1;for(;s<=c;){const _=s+(c-s>>1),d=r(e[_],_);switch(i(d,t)){case-1:s=_+1;break;case 0:return _;case 1:c=_-1;break}}return~s}function Vu(e,t,r,i,o){if(e&&e.length>0){const s=e.length;if(s>0){let c=i===void 0||i<0?0:i;const _=o===void 0||c+o>s-1?s-1:c+o;let d;for(arguments.length<=2?(d=e[c],c++):d=r;c<=_;)d=t(d,e[c],c),c++;return d}}return r}function Fs(e,t){return Sy.call(e,t)}function Qw(e,t){return Sy.call(e,t)?e[t]:void 0}function fg(e){const t=[];for(const r in e)Sy.call(e,r)&&t.push(r);return t}function JOe(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)y_(t,i)}while(e=Object.getPrototypeOf(e));return t}function _S(e){const t=[];for(const r in e)Sy.call(e,r)&&t.push(e[r]);return t}function Gue(e,t){const r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i);return r}function Oo(e,t){const r=[];for(const i of e)r.push(t?t(i):i);return r}function Zw(e,...t){for(const r of t)if(r!==void 0)for(const i in r)Fs(r,i)&&(e[i]=r[i]);return e}function Uue(e,t,r=r1){if(e===t)return!0;if(!e||!t)return!1;for(const i in e)if(Sy.call(e,i)&&(!Sy.call(t,i)||!r(e[i],t[i])))return!1;for(const i in t)if(Sy.call(t,i)&&!Sy.call(e,i))return!1;return!0}function Tb(e,t,r=gl){const i=new Map;for(const o of e){const s=t(o);s!==void 0&&i.set(s,r(o))}return i}function Vue(e,t,r=gl){const i=[];for(const o of e)i[t(o)]=r(o);return i}function eD(e,t,r=gl){const i=v_();for(const o of e)i.add(t(o),r(o));return i}function PI(e,t,r=gl){return Oo(eD(e,t).values(),r)}function jue(e,t){var r;const i={};if(e)for(const o of e){const s=`${t(o)}`;((r=i[s])!=null?r:i[s]=[]).push(o)}return i}function tH(e){const t={};for(const r in e)Sy.call(e,r)&&(t[r]=e[r]);return t}function G7(e,t){const r={};for(const i in t)Sy.call(t,i)&&(r[i]=t[i]);for(const i in e)Sy.call(e,i)&&(r[i]=e[i]);return r}function nH(e,t){for(const r in t)Sy.call(t,r)&&(e[r]=t[r])}function Vo(e,t){return t?t.bind(e):void 0}function v_(){const e=new Map;return e.add=KOe,e.remove=XOe,e}function KOe(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function XOe(e,t){const r=this.get(e);r&&(rD(r,t),r.length||this.delete(e))}function Wue(){return v_()}function rH(e){const t=(e==null?void 0:e.slice())||[];let r=0;function i(){return r===t.length}function o(...c){t.push(...c)}function s(){if(i())throw new Error("Queue is empty");const c=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){const _=t.length-r;t.copyWithin(0,r),t.length=_,r=0}return c}return{enqueue:o,dequeue:s,isEmpty:i}}function YOe(e,t){const r=new Map;let i=0;function*o(){for(const c of r.values())ja(c)?yield*ble(c):yield c}const s={has(c){const _=e(c);if(!r.has(_))return!1;const d=r.get(_);if(!ja(d))return t(d,c);for(const v of d)if(t(v,c))return!0;return!1},add(c){const _=e(c);if(r.has(_)){const d=r.get(_);if(ja(d))Fr(d,c,t)||(d.push(c),i++);else{const v=d;t(v,c)||(r.set(_,[v,c]),i++)}}else r.set(_,c),i++;return this},delete(c){const _=e(c);if(!r.has(_))return!1;const d=r.get(_);if(ja(d)){for(let v=0;v<d.length;v++)if(t(d[v],c))return d.length===1?r.delete(_):d.length===2?r.set(_,d[1-v]):aH(d,v),i--,!0}else if(t(d,c))return r.delete(_),i--,!0;return!1},clear(){r.clear(),i=0},get size(){return i},forEach(c){for(const _ of Oo(r.values()))if(ja(_))for(const d of _)c(d,d,s);else{const d=_;c(d,d,s)}},keys(){return o()},values(){return o()},*entries(){for(const c of o())yield[c,c]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function ja(e){return Array.isArray(e)}function tD(e){return ja(e)?e:[e]}function za(e){return typeof e=="string"}function Ey(e){return typeof e=="number"}function li(e,t){return e!==void 0&&t(e)?e:void 0}function lo(e,t){return e!==void 0&&t(e)?e:R.fail(`Invalid cast. The supplied value ${e} did not pass the test '${R.getFunctionName(t)}'.`)}function co(e){}function Sb(){return!1}function xb(){return!0}function n1(){}function gl(e){return e}function Hue(e){return e.toLowerCase()}function V_(e){return uH.test(e)?e.replace(uH,Hue):e}function qa(){throw new Error("Not implemented")}function Ld(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Mm(e){const t=new Map;return r=>{const i=`${typeof r}:${r}`;let o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function $Oe(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 zue(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 QOe(e,t,r,i,o){if(o){const s=[];for(let c=0;c<arguments.length;c++)s[c]=arguments[c];return c=>Vu(s,(_,d)=>d(_),c)}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 r1(e,t){return e===t}function pS(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function mS(e,t){return r1(e,t)}function que(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function qs(e,t){return que(e,t)}function U7(e,t){return qs(e==null?void 0:e.start,t==null?void 0:t.start)||qs(e==null?void 0:e.length,t==null?void 0:t.length)}function iH(e,t){return Vu(e,(r,i)=>t(r,i)===-1?r:i)}function V7(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 Jue(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 ju(e,t){return que(e,t)}function j7(e){return e?V7:ju}function Kue(){return Y7}function Xue(e){Y7!==e&&(Y7=e,fH=void 0)}function nD(e,t){return(fH||(fH=ode(Y7)))(e,t)}function Yue(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function Ab(e,t){return qs(e?1:0,t?1:0)}function FI(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let o=Math.floor(e.length*.4)+1,s;for(const c of t){const _=r(c);if(_!==void 0&&Math.abs(_.length-e.length)<=i){if(_===e||_.length<3&&_.toLowerCase()!==e.toLowerCase())continue;const d=ZOe(e,_,o-.1);if(d===void 0)continue;R.assert(d<o),o=d,s=c}}return s}function ZOe(e,t,r){let i=new Array(t.length+1),o=new Array(t.length+1);const s=r+.01;for(let _=0;_<=t.length;_++)i[_]=_;for(let _=1;_<=e.length;_++){const d=e.charCodeAt(_-1),v=Math.ceil(_>r?_-r:1),g=Math.floor(t.length>r+_?r+_:t.length);o[0]=_;let T=_;for(let L=1;L<v;L++)o[L]=s;for(let L=v;L<=g;L++){const I=e[_-1].toLowerCase()===t[L-1].toLowerCase()?i[L-1]+.1:i[L-1]+2,M=d===t.charCodeAt(L-1)?i[L-1]:Math.min(i[L]+1,o[L-1]+1,I);o[L]=M,T=Math.min(T,M)}for(let L=g+1;L<=t.length;L++)o[L]=s;if(T>r)return;const C=i;i=o,o=C}const c=i[t.length];return c>r?void 0:c}function oc(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function UA(e,t){return oc(e,t)?e.slice(0,e.length-t.length):e}function $ue(e,t){return oc(e,t)?e.slice(0,e.length-t.length):void 0}function bu(e,t){return e.indexOf(t)!==-1}function Que(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 W7(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return Cb(e,r),!0;return!1}function Cb(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function aH(e,t){e[t]=e[e.length-1],e.pop()}function rD(e,t){return e3e(e,r=>r===t)}function e3e(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return aH(e,r),!0;return!1}function lu(e){return e?gl:V_}function Zue({prefix:e,suffix:t}){return`${e}*${t}`}function ede(e,t){return R.assert(H7(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function oH(e,t,r){let i,o=-1;for(const s of e){const c=t(s);H7(c,r)&&c.prefix.length>o&&(o=c.prefix.length,i=s)}return i}function xa(e,t){return e.lastIndexOf(t,0)===0}function BI(e,t){return xa(e,t)?e.substr(t.length):e}function sH(e,t,r=gl){return xa(r(e),r(t))?e.substring(t.length):void 0}function H7({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&xa(r,e)&&oc(r,t)}function z7(e,t){return r=>e(r)&&t(r)}function Pm(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function q7(e){return(...t)=>!e(...t)}function t3e(e){}function hT(e){return e===void 0?void 0:[e]}function tde(e,t,r,i,o,s){s=s||co;let c=0,_=0;const d=e.length,v=t.length;let g=!1;for(;c<d&&_<v;){const T=e[c],C=t[_],L=r(T,C);L===-1?(i(T),c++,g=!0):L===1?(o(C),_++,g=!0):(s(C,T),c++,_++)}for(;c<d;)i(e[c++]),g=!0;for(;_<v;)o(t[_++]),g=!0;return g}function nde(e){const t=[];return rde(e,t,void 0,0),t}function rde(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):rde(e,t,s,i+1)}}function hS(e,t,r=" "){return t<=e.length?e:r.repeat(t-e.length)+e}function n3e(e,t,r=" "){return t<=e.length?e:e+r.repeat(t-e.length)}function J7(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(0,i)}}function ide(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(i)}}function r3e(e){let t=e.length-1;for(;t>=0&&hg(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function lH(){return typeof process!="undefined"&&process.nextTick&&!process.browser&&typeof O7=="object"}var it,K7,ade,cH,Ty,Sy,X7,uH,dH,ode,fH,Y7,Lb,iD,GI,i3e=b({"src/compiler/core.ts"(){"use strict";Oa(),it=[],K7=new Map,ade=new Set,cH=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(cH||{}),Ty=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=$W(e,t),t<e.length))return e[t]},Sy=Object.prototype.hasOwnProperty,X7={push:co,length:0},uH=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g,dH=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(dH||{}),ode=(()=>{let e,t;const r=_();return d;function i(v,g,T){if(v===g)return 0;if(v===void 0)return-1;if(g===void 0)return 1;const C=T(v,g);return C<0?-1:C>0?1:0}function o(v){const g=new Intl.Collator(v,{usage:"sort",sensitivity:"variant"}).compare;return(T,C)=>i(T,C,g)}function s(v){if(v!==void 0)return c();return(T,C)=>i(T,C,g);function g(T,C){return T.localeCompare(C)}}function c(){return(T,C)=>i(T,C,v);function v(T,C){return g(T.toUpperCase(),C.toUpperCase())||g(T,C)}function g(T,C){return T<C?-1:T>C?1:0}}function _(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?o:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?s:c}function d(v){return v===void 0?e||(e=r(v)):v==="en-US"?t||(t=r(v)):r(v)}})(),Lb=String.prototype.trim?e=>e.trim():e=>iD(GI(e)),iD=String.prototype.trimEnd?e=>e.trimEnd():r3e,GI=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),_H,R,a3e=b({"src/compiler/debug.ts"(){"use strict";Oa(),Oa(),_H=(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))(_H||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(Wt){return e.currentLogLevel<=Wt}e.shouldLog=r;function i(Wt,In){e.loggingHost&&r(Wt)&&e.loggingHost.log(Wt,In)}function o(Wt){i(3,Wt)}e.log=o,(Wt=>{function In(bi){i(1,bi)}Wt.error=In;function Bn(bi){i(2,bi)}Wt.warn=Bn;function lr(bi){i(3,bi)}Wt.log=lr;function Oi(bi){i(4,bi)}Wt.trace=Oi})(o=e.log||(e.log={}));const s={};function c(){return t}e.getAssertionLevel=c;function _(Wt){const In=t;if(t=Wt,Wt>In)for(const Bn of fg(s)){const lr=s[Bn];lr!==void 0&&e[Bn]!==lr.assertion&&Wt>=lr.level&&(e[Bn]=lr,s[Bn]=void 0)}}e.setAssertionLevel=_;function d(Wt){return t>=Wt}e.shouldAssert=d;function v(Wt,In){return d(Wt)?!0:(s[In]={level:Wt,assertion:e[In]},e[In]=co,!1)}function g(Wt,In){const Bn=new Error(Wt?`Debug Failure. ${Wt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Bn,In||g),Bn}e.fail=g;function T(Wt,In,Bn){return g(`${In||"Unexpected node."}\r
Node ${Ze(Wt.kind)} was unexpected.`,Bn||T)}e.failBadSyntaxKind=T;function C(Wt,In,Bn,lr){Wt||(In=In?`False expression: ${In}`:"False expression.",Bn&&(In+=`\r
Verbose Debug Information: `+(typeof Bn=="string"?Bn:Bn())),g(In,lr||C))}e.assert=C;function L(Wt,In,Bn,lr,Oi){if(Wt!==In){const bi=Bn?lr?`${Bn} ${lr}`:Bn:"";g(`Expected ${Wt} === ${In}. ${bi}`,Oi||L)}}e.assertEqual=L;function I(Wt,In,Bn,lr){Wt>=In&&g(`Expected ${Wt} < ${In}. ${Bn||""}`,lr||I)}e.assertLessThan=I;function M(Wt,In,Bn){Wt>In&&g(`Expected ${Wt} <= ${In}`,Bn||M)}e.assertLessThanOrEqual=M;function k(Wt,In,Bn){Wt<In&&g(`Expected ${Wt} >= ${In}`,Bn||k)}e.assertGreaterThanOrEqual=k;function U(Wt,In,Bn){Wt==null&&g(In,Bn||U)}e.assertIsDefined=U;function j(Wt,In,Bn){return U(Wt,In,Bn||j),Wt}e.checkDefined=j;function H(Wt,In,Bn){for(const lr of Wt)U(lr,In,Bn||H)}e.assertEachIsDefined=H;function ee(Wt,In,Bn){return H(Wt,In,Bn||ee),Wt}e.checkEachDefined=ee;function X(Wt,In="Illegal value:",Bn){const lr=typeof Wt=="object"&&Fs(Wt,"kind")&&Fs(Wt,"pos")?"SyntaxKind: "+Ze(Wt.kind):JSON.stringify(Wt);return g(`${In} ${lr}`,Bn||X)}e.assertNever=X;function ne(Wt,In,Bn,lr){v(1,"assertEachNode")&&C(In===void 0||Qn(Wt,In),Bn||"Unexpected node.",()=>`Node array did not pass test '${ce(In)}'.`,lr||ne)}e.assertEachNode=ne;function P(Wt,In,Bn,lr){v(1,"assertNode")&&C(Wt!==void 0&&(In===void 0||In(Wt)),Bn||"Unexpected node.",()=>`Node ${Ze(Wt==null?void 0:Wt.kind)} did not pass test '${ce(In)}'.`,lr||P)}e.assertNode=P;function ue(Wt,In,Bn,lr){v(1,"assertNotNode")&&C(Wt===void 0||In===void 0||!In(Wt),Bn||"Unexpected node.",()=>`Node ${Ze(Wt.kind)} should not have passed test '${ce(In)}'.`,lr||ue)}e.assertNotNode=ue;function re(Wt,In,Bn,lr){v(1,"assertOptionalNode")&&C(In===void 0||Wt===void 0||In(Wt),Bn||"Unexpected node.",()=>`Node ${Ze(Wt==null?void 0:Wt.kind)} did not pass test '${ce(In)}'.`,lr||re)}e.assertOptionalNode=re;function be(Wt,In,Bn,lr){v(1,"assertOptionalToken")&&C(In===void 0||Wt===void 0||Wt.kind===In,Bn||"Unexpected node.",()=>`Node ${Ze(Wt==null?void 0:Wt.kind)} was not a '${Ze(In)}' token.`,lr||be)}e.assertOptionalToken=be;function ae(Wt,In,Bn){v(1,"assertMissingNode")&&C(Wt===void 0,In||"Unexpected node.",()=>`Node ${Ze(Wt.kind)} was unexpected'.`,Bn||ae)}e.assertMissingNode=ae;function z(Wt){}e.type=z;function ce(Wt){if(typeof Wt!="function")return"";if(Fs(Wt,"name"))return Wt.name;{const In=Function.prototype.toString.call(Wt),Bn=/^function\s+([\w\$]+)\s*\(/.exec(In);return Bn?Bn[1]:""}}e.getFunctionName=ce;function he(Wt){return`{ name: ${ia(Wt.escapedName)}; flags: ${$e(Wt.flags)}; declarations: ${Pt(Wt.declarations,In=>Ze(In.kind))} }`}e.formatSymbol=he;function Ee(Wt=0,In,Bn){const lr=te(In);if(Wt===0)return lr.length>0&&lr[0][0]===0?lr[0][1]:"0";if(Bn){const Oi=[];let bi=Wt;for(const[Rn,an]of lr){if(Rn>Wt)break;Rn!==0&&Rn&Wt&&(Oi.push(an),bi&=~Rn)}if(bi===0)return Oi.join("|")}else for(const[Oi,bi]of lr)if(Oi===Wt)return bi;return Wt.toString()}e.formatEnum=Ee;const Ae=new Map;function te(Wt){const In=Ae.get(Wt);if(In)return In;const Bn=[];for(const Oi in Wt){const bi=Wt[Oi];typeof bi=="number"&&Bn.push([bi,Oi])}const lr=by(Bn,(Oi,bi)=>qs(Oi[0],bi[0]));return Ae.set(Wt,lr),lr}function Ze(Wt){return Ee(Wt,tM,!1)}e.formatSyntaxKind=Ze;function je(Wt){return Ee(Wt,_M,!1)}e.formatSnippetKind=je;function Ue(Wt){return Ee(Wt,nM,!0)}e.formatNodeFlags=Ue;function Je(Wt){return Ee(Wt,rM,!0)}e.formatModifierFlags=Je;function Fe(Wt){return Ee(Wt,fM,!0)}e.formatTransformFlags=Fe;function Be(Wt){return Ee(Wt,pM,!0)}e.formatEmitFlags=Be;function $e(Wt){return Ee(Wt,sM,!0)}e.formatSymbolFlags=$e;function ze(Wt){return Ee(Wt,lM,!0)}e.formatTypeFlags=ze;function Ge(Wt){return Ee(Wt,uM,!0)}e.formatSignatureFlags=Ge;function lt(Wt){return Ee(Wt,cM,!0)}e.formatObjectFlags=lt;function Ct(Wt){return Ee(Wt,lD,!0)}e.formatFlowFlags=Ct;function bt(Wt){return Ee(Wt,iM,!0)}e.formatRelationComparisonResult=bt;function zt(Wt){return Ee(Wt,V9,!0)}e.formatCheckMode=zt;function nt(Wt){return Ee(Wt,j9,!0)}e.formatSignatureCheckMode=nt;function ot(Wt){return Ee(Wt,G9,!0)}e.formatTypeFacts=ot;let sn=!1,pn;function gn(Wt){"__debugFlowFlags"in Wt||Object.defineProperties(Wt,{__tsDebuggerDisplay:{value(){const In=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",Bn=this.flags&~(2048-1);return`${In}${Bn?` (${Ct(Bn)})`:""}`}},__debugFlowFlags:{get(){return Ee(this.flags,lD,!0)}},__debugToString:{value(){return yn(this)}}})}function jn(Wt){sn&&(typeof Object.setPrototypeOf=="function"?(pn||(pn=Object.create(Object.prototype),gn(pn)),Object.setPrototypeOf(Wt,pn)):gn(Wt))}e.attachFlowNodeDebugInfo=jn;let Ln;function Zt(Wt){"__tsDebuggerDisplay"in Wt||Object.defineProperties(Wt,{__tsDebuggerDisplay:{value(In){return In=String(In).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${In}`}}})}function pr(Wt){sn&&(typeof Object.setPrototypeOf=="function"?(Ln||(Ln=Object.create(Array.prototype),Zt(Ln)),Object.setPrototypeOf(Wt,Ln)):Zt(Wt))}e.attachNodeArrayDebugInfo=pr;function Ii(){if(sn)return;const Wt=new WeakMap,In=new WeakMap;Object.defineProperties(Kc.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const lr=this.flags&33554432?"TransientSymbol":"Symbol",Oi=this.flags&-33554433;return`${lr} '${Gl(this)}'${Oi?` (${$e(Oi)})`:""}`}},__debugFlags:{get(){return $e(this.flags)}}}),Object.defineProperties(Kc.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const lr=this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?`IntrinsicType ${this.intrinsicName}`: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`${lr}${this.symbol?` '${Gl(this.symbol)}'`:""}${Oi?` (${lt(Oi)})`:""}`}},__debugFlags:{get(){return ze(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?lt(this.objectFlags):""}},__debugTypeToString:{value(){let lr=Wt.get(this);return lr===void 0&&(lr=this.checker.typeToString(this),Wt.set(this,lr)),lr}}}),Object.defineProperties(Kc.getSignatureConstructor().prototype,{__debugFlags:{get(){return Ge(this.flags)}},__debugSignatureToString:{value(){var lr;return(lr=this.checker)==null?void 0:lr.signatureToString(this)}}});const Bn=[Kc.getNodeConstructor(),Kc.getIdentifierConstructor(),Kc.getTokenConstructor(),Kc.getSourceFileConstructor()];for(const lr of Bn)Fs(lr.prototype,"__debugKind")||Object.defineProperties(lr.prototype,{__tsDebuggerDisplay:{value(){return`${Ll(this)?"GeneratedIdentifier":We(this)?`Identifier '${Pr(this)}'`:Ri(this)?`PrivateIdentifier '${Pr(this)}'`:Wo(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:C_(this)?`NumericLiteral ${this.text}`:N5(this)?`BigIntLiteral ${this.text}n`:Ul(this)?"TypeParameterDeclaration":Ba(this)?"ParameterDeclaration":Kl(this)?"ConstructorDeclaration":Z_(this)?"GetAccessorDeclaration":s_(this)?"SetAccessorDeclaration":GC(this)?"CallSignatureDeclaration":g6(this)?"ConstructSignatureDeclaration":ZS(this)?"IndexSignatureDeclaration":F5(this)?"TypePredicateNode":ep(this)?"TypeReferenceNode":Ph(this)?"FunctionTypeNode":i4(this)?"ConstructorTypeNode":a4(this)?"TypeQueryNode":hf(this)?"TypeLiteralNode":zK(this)?"ArrayTypeNode":UC(this)?"TupleTypeNode":qK(this)?"OptionalTypeNode":JK(this)?"RestTypeNode":ex(this)?"UnionTypeNode":y6(this)?"IntersectionTypeNode":VC(this)?"ConditionalTypeNode":jC(this)?"InferTypeNode":tx(this)?"ParenthesizedTypeNode":B5(this)?"ThisTypeNode":nx(this)?"TypeOperatorNode":rx(this)?"IndexedAccessTypeNode":s4(this)?"MappedTypeNode":v1(this)?"LiteralTypeNode":o4(this)?"NamedTupleMember":Ig(this)?"ImportTypeNode":Ze(this.kind)}${this.flags?` (${Ue(this.flags)})`:""}`}},__debugKind:{get(){return Ze(this.kind)}},__debugNodeFlags:{get(){return Ue(this.flags)}},__debugModifierFlags:{get(){return Je(ype(this))}},__debugTransformFlags:{get(){return Fe(this.transformFlags)}},__debugIsParseTreeNode:{get(){return $I(this)}},__debugEmitFlags:{get(){return Be(Eo(this))}},__debugGetText:{value(Oi){if(tl(this))return"";let bi=In.get(this);if(bi===void 0){const Rn=Ea(this),an=Rn&&Zn(Rn);bi=an?Fb(an,Rn,Oi):"",In.set(this,bi)}return bi}}});sn=!0}e.enableDebugInfo=Ii;function ea(Wt){const In=Wt&7;let Bn=In===0?"in out":In===3?"[bivariant]":In===2?"in":In===1?"out":In===4?"[independent]":"";return Wt&8?Bn+=" (unmeasurable)":Wt&16&&(Bn+=" (unreliable)"),Bn}e.formatVariance=ea;class ta{__debugToString(){var In;switch(this.kind){case 3:return((In=this.debugInfo)==null?void 0:In.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return zn(this.sources,this.targets||Pt(this.sources,()=>"any"),(Bn,lr)=>`${Bn.__debugTypeToString()} -> ${typeof lr=="string"?lr:lr.__debugTypeToString()}`).join(", ");case 2:return zn(this.sources,this.targets,(Bn,lr)=>`${Bn.__debugTypeToString()} -> ${lr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;default:return X(this)}}}e.DebugTypeMapper=ta;function Or(Wt){return e.isDebugging?Object.setPrototypeOf(Wt,ta.prototype):Wt}e.attachDebugPrototypeIfDebug=Or;function Lt(Wt){return console.log(yn(Wt))}e.printControlFlowGraph=Lt;function yn(Wt){let In=-1;function Bn(Te){return Te.id||(Te.id=In,In--),Te.id}let lr;(Te=>{Te.lr="\u2500",Te.ud="\u2502",Te.dr="\u256D",Te.dl="\u256E",Te.ul="\u256F",Te.ur="\u2570",Te.udr="\u251C",Te.udl="\u2524",Te.dlr="\u252C",Te.ulr="\u2534",Te.udlr="\u256B"})(lr||(lr={}));let Oi;(Te=>{Te[Te.None=0]="None",Te[Te.Up=1]="Up",Te[Te.Down=2]="Down",Te[Te.Left=4]="Left",Te[Te.Right=8]="Right",Te[Te.UpDown=3]="UpDown",Te[Te.LeftRight=12]="LeftRight",Te[Te.UpLeft=5]="UpLeft",Te[Te.UpRight=9]="UpRight",Te[Te.DownLeft=6]="DownLeft",Te[Te.DownRight=10]="DownRight",Te[Te.UpDownLeft=7]="UpDownLeft",Te[Te.UpDownRight=11]="UpDownRight",Te[Te.UpLeftRight=13]="UpLeftRight",Te[Te.DownLeftRight=14]="DownLeftRight",Te[Te.UpDownLeftRight=15]="UpDownLeftRight",Te[Te.NoChildren=16]="NoChildren"})(Oi||(Oi={}));const bi=2032,Rn=882,an=Object.create(null),On=[],Ir=[],Hr=W(Wt,new Set);for(const Te of On)Te.text=de(Te.flowNode,Te.circular),et(Te);const Oe=Ye(Hr),gt=jt(Oe);return cn(Hr,0),mt();function Ot(Te){return!!(Te.flags&128)}function Le(Te){return!!(Te.flags&12)&&!!Te.antecedents}function pt(Te){return!!(Te.flags&bi)}function me(Te){return!!(Te.flags&Rn)}function ie(Te){const Y=[];for(const Ne of Te.edges)Ne.source===Te&&Y.push(Ne.target);return Y}function ye(Te){const Y=[];for(const Ne of Te.edges)Ne.target===Te&&Y.push(Ne.source);return Y}function W(Te,Y){const Ne=Bn(Te);let J=an[Ne];if(J&&Y.has(Te))return J.circular=!0,J={id:-1,flowNode:Te,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},On.push(J),J;if(Y.add(Te),!J)if(an[Ne]=J={id:Ne,flowNode:Te,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},On.push(J),Le(Te))for(const wt of Te.antecedents)He(J,wt,Y);else pt(Te)&&He(J,Te.antecedent,Y);return Y.delete(Te),J}function He(Te,Y,Ne){const J=W(Y,Ne),wt={source:Te,target:J};Ir.push(wt),Te.edges.push(wt),J.edges.push(wt)}function et(Te){if(Te.level!==-1)return Te.level;let Y=0;for(const Ne of ye(Te))Y=Math.max(Y,et(Ne)+1);return Te.level=Y}function Ye(Te){let Y=0;for(const Ne of ie(Te))Y=Math.max(Y,Ye(Ne));return Y+1}function jt(Te){const Y=at(Array(Te),0);for(const Ne of On)Y[Ne.level]=Math.max(Y[Ne.level],Ne.text.length);return Y}function cn(Te,Y){if(Te.lane===-1){Te.lane=Y,Te.endLane=Y;const Ne=ie(Te);for(let J=0;J<Ne.length;J++){J>0&&Y++;const wt=Ne[J];cn(wt,Y),wt.endLane>Te.endLane&&(Y=wt.endLane)}Te.endLane=Y}}function Sn(Te){if(Te&2)return"Start";if(Te&4)return"Branch";if(Te&8)return"Loop";if(Te&16)return"Assignment";if(Te&32)return"True";if(Te&64)return"False";if(Te&128)return"SwitchClause";if(Te&256)return"ArrayMutation";if(Te&512)return"Call";if(Te&1024)return"ReduceLabel";if(Te&1)return"Unreachable";throw new Error}function Er(Te){const Y=Zn(Te);return Fb(Y,Te,!1)}function de(Te,Y){let Ne=Sn(Te.flags);if(Y&&(Ne=`${Ne}#${Bn(Te)}`),me(Te))Te.node&&(Ne+=` (${Er(Te.node)})`);else if(Ot(Te)){const J=[];for(let wt=Te.clauseStart;wt<Te.clauseEnd;wt++){const Et=Te.switchStatement.caseBlock.clauses[wt];A6(Et)?J.push("default"):J.push(Er(Et.expression))}Ne+=` (${J.join(", ")})`}return Y==="circularity"?`Circular(${Ne})`:Ne}function mt(){const Te=gt.length,Y=On.reduce((ut,nn)=>Math.max(ut,nn.lane),0)+1,Ne=at(Array(Y),""),J=gt.map(()=>Array(Y)),wt=gt.map(()=>at(Array(Y),0));for(const ut of On){J[ut.level][ut.lane]=ut;const nn=ie(ut);for(let ai=0;ai<nn.length;ai++){const gi=nn[ai];let ui=8;gi.lane===ut.lane&&(ui|=4),ai>0&&(ui|=1),ai<nn.length-1&&(ui|=2),wt[ut.level][gi.lane]|=ui}nn.length===0&&(wt[ut.level][ut.lane]|=16);const ir=ye(ut);for(let ai=0;ai<ir.length;ai++){const gi=ir[ai];let ui=4;ai>0&&(ui|=1),ai<ir.length-1&&(ui|=2),wt[ut.level-1][gi.lane]|=ui}}for(let ut=0;ut<Te;ut++)for(let nn=0;nn<Y;nn++){const ir=ut>0?wt[ut-1][nn]:0,ai=nn>0?wt[ut][nn-1]:0;let gi=wt[ut][nn];gi||(ir&8&&(gi|=12),ai&2&&(gi|=3),wt[ut][nn]=gi)}for(let ut=0;ut<Te;ut++)for(let nn=0;nn<Ne.length;nn++){const ir=wt[ut][nn],ai=ir&4?"\u2500":" ",gi=J[ut][nn];gi?(Et(nn,gi.text),ut<Te-1&&(Et(nn," "),Et(nn,fe(ai,gt[ut]-gi.text.length)))):ut<Te-1&&Et(nn,fe(ai,gt[ut]+1)),Et(nn,Jt(ir)),Et(nn,ir&8&&ut<Te-1&&!J[ut+1][nn]?"\u2500":" ")}return`
${Ne.join(`
`)}
`;function Et(ut,nn){Ne[ut]+=nn}}function Jt(Te){switch(Te){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function at(Te,Y){if(Te.fill)Te.fill(Y);else for(let Ne=0;Ne<Te.length;Ne++)Te[Ne]=Y;return Te}function fe(Te,Y){if(Te.repeat)return Y>0?Te.repeat(Y):"";let Ne="";for(;Ne.length<Y;)Ne+=Te;return Ne}}e.formatControlFlowGraph=yn})(R||(R={}))}});function sde(e){const t=cde.exec(e);if(!t)return;const[,r,i="0",o="0",s="",c=""]=t;if(!(s&&!ude.test(s))&&!(c&&!fde.test(c)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:c}}function o3e(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 c=mH.test(o),_=mH.test(s);if(c||_){if(c!==_)return c?-1:1;const d=qs(+o,+s);if(d)return d}else{const d=ju(o,s);if(d)return d}}return qs(e.length,t.length)}function lde(e){const t=[];for(let r of Lb(e).split(pde)){if(!r)continue;const i=[];r=Lb(r);const o=gde.exec(r);if(o){if(!s3e(o[1],o[2],i))return}else for(const s of r.split(mde)){const c=yde.exec(Lb(s));if(!c||!l3e(c[1],c[2],i))return}t.push(i)}return t}function pH(e){const t=hde.exec(e);if(!t)return;const[,r,i="*",o="*",s,c]=t;return{version:new j_(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,c),major:r,minor:i,patch:o}}function s3e(e,t,r){const i=pH(e);if(!i)return!1;const o=pH(t);return o?(Zf(i.major)||r.push(em(">=",i.version)),Zf(o.major)||r.push(Zf(o.minor)?em("<",o.version.increment("major")):Zf(o.patch)?em("<",o.version.increment("minor")):em("<=",o.version)),!0):!1}function l3e(e,t,r){const i=pH(t);if(!i)return!1;const{version:o,major:s,minor:c,patch:_}=i;if(Zf(s))(e==="<"||e===">")&&r.push(em("<",j_.zero));else switch(e){case"~":r.push(em(">=",o)),r.push(em("<",o.increment(Zf(c)?"major":"minor")));break;case"^":r.push(em(">=",o)),r.push(em("<",o.increment(o.major>0||Zf(c)?"major":o.minor>0||Zf(_)?"minor":"patch")));break;case"<":case">=":r.push(Zf(c)||Zf(_)?em(e,o.with({prerelease:"0"})):em(e,o));break;case"<=":case">":r.push(Zf(c)?em(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):Zf(_)?em(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):em(e,o));break;case"=":case void 0:Zf(c)||Zf(_)?(r.push(em(">=",o.with({prerelease:"0"}))),r.push(em("<",o.increment(Zf(c)?"major":"minor").with({prerelease:"0"})))):r.push(em("=",o));break;default:return!1}return!0}function Zf(e){return e==="*"||e==="x"||e==="X"}function em(e,t){return{operator:e,operand:t}}function c3e(e,t){if(t.length===0)return!0;for(const r of t)if(u3e(e,r))return!0;return!1}function u3e(e,t){for(const r of t)if(!d3e(e,r.operator,r.operand))return!1;return!0}function d3e(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 R.assertNever(t)}}function f3e(e){return Pt(e,_3e).join(" || ")||"*"}function _3e(e){return Pt(e,p3e).join(" ")}function p3e(e){return`${e.operator}${e.operand}`}var cde,ude,dde,fde,_de,mH,gS,j_,VA,pde,mde,hde,gde,yde,m3e=b({"src/compiler/semver.ts"(){"use strict";Oa(),cde=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,ude=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,dde=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,fde=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,_de=/^[a-z0-9-]+$/i,mH=/^(0|[1-9]\d*)$/,gS=class{constructor(e,t=0,r=0,i="",o=""){typeof e=="string"&&({major:e,minor:t,patch:r,prerelease:i,build:o}=R.checkDefined(sde(e),"Invalid version")),R.assert(e>=0,"Invalid argument: major"),R.assert(t>=0,"Invalid argument: minor"),R.assert(r>=0,"Invalid argument: patch");const s=i?ja(i)?i:i.split("."):it,c=o?ja(o)?o:o.split("."):it;R.assert(Qn(s,_=>dde.test(_)),"Invalid argument: prerelease"),R.assert(Qn(c,_=>_de.test(_)),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=r,this.prerelease=s,this.build=c}static tryParse(e){const t=sde(e);if(!t)return;const{major:r,minor:i,patch:o,prerelease:s,build:c}=t;return new gS(r,i,o,s,c)}compareTo(e){return this===e?0:e===void 0?1:qs(this.major,e.major)||qs(this.minor,e.minor)||qs(this.patch,e.patch)||o3e(this.prerelease,e.prerelease)}increment(e){switch(e){case"major":return new gS(this.major+1,0,0);case"minor":return new gS(this.major,this.minor+1,0);case"patch":return new gS(this.major,this.minor,this.patch+1);default:return R.assertNever(e)}}with(e){const{major:t=this.major,minor:r=this.minor,patch:i=this.patch,prerelease:o=this.prerelease,build:s=this.build}=e;return new gS(t,r,i,o,s)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return Dt(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),Dt(this.build)&&(e+=`+${this.build.join(".")}`),e}},j_=gS,j_.zero=new gS(0,0,0,["0"]),VA=class{constructor(e){this._alternatives=e?R.checkDefined(lde(e),"Invalid range spec."):it}static tryParse(e){const t=lde(e);if(t){const r=new VA("");return r._alternatives=t,r}}test(e){return typeof e=="string"&&(e=new j_(e)),c3e(e,this._alternatives)}toString(){return f3e(this._alternatives)}},pde=/\|\|/g,mde=/\s+/g,hde=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,gde=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,yde=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function vde(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 h3e(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&vde(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function g3e(){if(lH())try{let e;const{performance:t,PerformanceObserver:r}=e1("perf_hooks");if(vde(t,r)){e=t;const i=new j_(process.versions.node);return new VA("<12.16.3 || 13 <13.13").test(i)&&(e={get timeOrigin(){return t.timeOrigin},now(){return t.now()},mark(s){return t.mark(s)},measure(s,c="nodeStart",_){_===void 0&&(_="__performance.measure-fix__",t.mark(_)),t.measure(s,c,_),_==="__performance.measure-fix__"&&t.clearMarks("__performance.measure-fix__")},clearMarks(s){return t.clearMarks(s)},clearMeasures(s){return t.clearMeasures(s)}}),{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:r}}}catch(e){}}function bde(){return $7}var $7,hH,ol,y3e=b({"src/compiler/performanceCore.ts"(){"use strict";Oa(),$7=h3e()||g3e(),hH=$7==null?void 0:$7.performance,ol=hH?()=>hH.now():Date.now?Date.now:()=>+new Date}}),Ede,aD,Tde,tm,v3e=b({"src/compiler/perfLogger.ts"(){"use strict";Oa(),Ede={logEvent:co,logErrEvent:co,logPerfEvent:co,logInfoEvent:co,logStartCommand:co,logStopCommand:co,logStartUpdateProgram:co,logStopUpdateProgram:co,logStartUpdateGraph:co,logStopUpdateGraph:co,logStartResolveModule:co,logStopResolveModule:co,logStartParseSourceFile:co,logStopParseSourceFile:co,logStartReadFile:co,logStopReadFile:co,logStartBindFile:co,logStopBindFile:co,logStartScheduledOperation:co,logStopScheduledOperation:co};try{const e=(Tde=process.env.TS_ETW_MODULE_PATH)!=null?Tde:"./node_modules/@microsoft/typescript-etw";aD=e1(e)}catch(e){aD=void 0}tm=aD!=null&&aD.logEvent?aD:Ede}});function Sde(e,t,r,i){return e?Q7(t,r,i):Z7}function Q7(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&sl(t)}function s(){--i===0?(sl(r),e_(e,t,r)):i<0&&R.fail("enter/exit count does not match.")}}function sl(e){var t;if(yS){const r=(t=jA.get(e))!=null?t:0;jA.set(e,r+1),vS.set(e,ol()),Ib==null||Ib.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function e_(e,t,r){var i,o;if(yS){const s=(i=r!==void 0?vS.get(r):void 0)!=null?i:ol(),c=(o=t!==void 0?vS.get(t):void 0)!=null?o:gH,_=bS.get(e)||0;bS.set(e,_+(s-c)),Ib==null||Ib.measure(e,t,r)}}function b3e(e){return jA.get(e)||0}function E3e(e){return bS.get(e)||0}function T3e(e){bS.forEach((t,r)=>e(r,t))}function S3e(e){vS.forEach((t,r)=>e(r))}function x3e(e){e!==void 0?bS.delete(e):bS.clear(),Ib==null||Ib.clearMeasures(e)}function A3e(e){e!==void 0?(jA.delete(e),vS.delete(e)):(jA.clear(),vS.clear()),Ib==null||Ib.clearMarks(e)}function C3e(){return yS}function L3e(e=nu){var t;return yS||(yS=!0,UI||(UI=bde()),UI&&(gH=UI.performance.timeOrigin,(UI.shouldWriteNativeEvents||(t=e==null?void 0:e.cpuProfilingEnabled)!=null&&t.call(e)||e!=null&&e.debugMode)&&(Ib=UI.performance))),!0}function I3e(){yS&&(vS.clear(),jA.clear(),bS.clear(),Ib=void 0,yS=!1)}var UI,Ib,Z7,yS,gH,vS,jA,bS,k3e=b({"src/compiler/performance.ts"(){"use strict";Oa(),Z7={enter:co,exit:co},yS=!1,gH=ol(),vS=new Map,jA=new Map,bS=new Map}}),oD={};B(oD,{clearMarks:()=>A3e,clearMeasures:()=>x3e,createTimer:()=>Q7,createTimerIf:()=>Sde,disable:()=>I3e,enable:()=>L3e,forEachMark:()=>S3e,forEachMeasure:()=>T3e,getCount:()=>b3e,getDuration:()=>E3e,isEnabled:()=>C3e,mark:()=>sl,measure:()=>e_,nullTimer:()=>Z7});var kb=b({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";k3e()}}),Ti,sD,xde,Ade,w3e=b({"src/compiler/tracing.ts"(){"use strict";Oa(),kb(),(e=>{let t,r=0,i=0,o;const s=[];let c;const _=[];function d(P,ue,re){if(R.assert(!Ti,"Tracing already started"),t===void 0)try{t=e1("fs")}catch(he){throw new Error(`tracing requires having fs
(original error: ${he.message||he})`)}o=P,s.length=0,c===void 0&&(c=Fi(ue,"legend.json")),t.existsSync(ue)||t.mkdirSync(ue,{recursive:!0});const be=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",ae=Fi(ue,`trace${be}.json`),z=Fi(ue,`types${be}.json`);_.push({configFilePath:re,tracePath:ae,typesPath:z}),i=t.openSync(ae,"w"),Ti=e;const ce={cat:"__metadata",ph:"M",ts:1e3*ol(),pid:1,tid:1};t.writeSync(i,`[
`+[Li({name:"process_name",args:{name:"tsc"}},ce),Li({name:"thread_name",args:{name:"Main"}},ce),so(Li({name:"TracingStartedInBrowser"},ce),{cat:"disabled-by-default-devtools.timeline"})].map(he=>JSON.stringify(he)).join(`,
`))}e.startTracing=d;function v(){R.assert(Ti,"Tracing is not in progress"),R.assert(!!s.length==(o!=="server")),t.writeSync(i,`
]
`),t.closeSync(i),Ti=void 0,s.length?X(s):_[_.length-1].typesPath=void 0}e.stopTracing=v;function g(P){o!=="server"&&s.push(P)}e.recordType=g;let T;(P=>{P.Parse="parse",P.Program="program",P.Bind="bind",P.Check="check",P.CheckTypes="checkTypes",P.Emit="emit",P.Session="session"})(T=e.Phase||(e.Phase={}));function C(P,ue,re){H("I",P,ue,re,'"s":"g"')}e.instant=C;const L=[];function I(P,ue,re,be=!1){be&&H("B",P,ue,re),L.push({phase:P,name:ue,args:re,time:1e3*ol(),separateBeginAndEnd:be})}e.push=I;function M(P){R.assert(L.length>0),j(L.length-1,1e3*ol(),P),L.length--}e.pop=M;function k(){const P=1e3*ol();for(let ue=L.length-1;ue>=0;ue--)j(ue,P);L.length=0}e.popAll=k;const U=1e3*10;function j(P,ue,re){const{phase:be,name:ae,args:z,time:ce,separateBeginAndEnd:he}=L[P];he?(R.assert(!re,"`results` are not supported for events with `separateBeginAndEnd`"),H("E",be,ae,z,void 0,ue)):U-ce%U<=ue-ce&&H("X",be,ae,so(Li({},z),{results:re}),`"dur":${ue-ce}`,ce)}function H(P,ue,re,be,ae,z=1e3*ol()){o==="server"&&ue==="checkTypes"||(sl("beginTracing"),t.writeSync(i,`,
{"pid":1,"tid":1,"ph":"${P}","cat":"${ue}","ts":${z},"name":"${re}"`),ae&&t.writeSync(i,`,${ae}`),be&&t.writeSync(i,`,"args":${JSON.stringify(be)}`),t.writeSync(i,"}"),sl("endTracing"),e_("Tracing","beginTracing","endTracing"))}function ee(P){const ue=Zn(P);return ue?{path:ue.path,start:re(ll(ue,P.pos)),end:re(ll(ue,P.end))}:void 0;function re(be){return{line:be.line+1,character:be.character+1}}}function X(P){var ue,re,be,ae,z,ce,he,Ee,Ae,te,Ze,je,Ue,Je,Fe,Be,$e,ze,Ge,lt,Ct,bt;sl("beginDumpTypes");const zt=_[_.length-1].typesPath,nt=t.openSync(zt,"w"),ot=new Map;t.writeSync(nt,"[");const sn=P.length;for(let pn=0;pn<sn;pn++){const gn=P[pn],jn=gn.objectFlags,Ln=(ue=gn.aliasSymbol)!=null?ue:gn.symbol;let Zt;if(jn&16|gn.flags&2944)try{Zt=(re=gn.checker)==null?void 0:re.typeToString(gn)}catch(Bn){Zt=void 0}let pr={};if(gn.flags&8388608){const Bn=gn;pr={indexedAccessObjectType:(be=Bn.objectType)==null?void 0:be.id,indexedAccessIndexType:(ae=Bn.indexType)==null?void 0:ae.id}}let Ii={};if(jn&4){const Bn=gn;Ii={instantiatedType:(z=Bn.target)==null?void 0:z.id,typeArguments:(ce=Bn.resolvedTypeArguments)==null?void 0:ce.map(lr=>lr.id),referenceLocation:ee(Bn.node)}}let ea={};if(gn.flags&16777216){const Bn=gn;ea={conditionalCheckType:(he=Bn.checkType)==null?void 0:he.id,conditionalExtendsType:(Ee=Bn.extendsType)==null?void 0:Ee.id,conditionalTrueType:(te=(Ae=Bn.resolvedTrueType)==null?void 0:Ae.id)!=null?te:-1,conditionalFalseType:(je=(Ze=Bn.resolvedFalseType)==null?void 0:Ze.id)!=null?je:-1}}let ta={};if(gn.flags&33554432){const Bn=gn;ta={substitutionBaseType:(Ue=Bn.baseType)==null?void 0:Ue.id,constraintType:(Je=Bn.constraint)==null?void 0:Je.id}}let Or={};if(jn&1024){const Bn=gn;Or={reverseMappedSourceType:(Fe=Bn.source)==null?void 0:Fe.id,reverseMappedMappedType:(Be=Bn.mappedType)==null?void 0:Be.id,reverseMappedConstraintType:($e=Bn.constraintType)==null?void 0:$e.id}}let Lt={};if(jn&256){const Bn=gn;Lt={evolvingArrayElementType:Bn.elementType.id,evolvingArrayFinalType:(ze=Bn.finalArrayType)==null?void 0:ze.id}}let yn;const Wt=gn.checker.getRecursionIdentity(gn);Wt&&(yn=ot.get(Wt),yn||(yn=ot.size,ot.set(Wt,yn)));const In=so(Li(Li(Li(Li(Li(Li({id:gn.id,intrinsicName:gn.intrinsicName,symbolName:(Ln==null?void 0:Ln.escapedName)&&ia(Ln.escapedName),recursionId:yn,isTuple:jn&8?!0:void 0,unionTypes:gn.flags&1048576?(Ge=gn.types)==null?void 0:Ge.map(Bn=>Bn.id):void 0,intersectionTypes:gn.flags&2097152?gn.types.map(Bn=>Bn.id):void 0,aliasTypeArguments:(lt=gn.aliasTypeArguments)==null?void 0:lt.map(Bn=>Bn.id),keyofType:gn.flags&4194304?(Ct=gn.type)==null?void 0:Ct.id:void 0},pr),Ii),ea),ta),Or),Lt),{destructuringPattern:ee(gn.pattern),firstDeclaration:ee((bt=Ln==null?void 0:Ln.declarations)==null?void 0:bt[0]),flags:R.formatTypeFlags(gn.flags).split("|"),display:Zt});t.writeSync(nt,JSON.stringify(In)),pn<sn-1&&t.writeSync(nt,`,
`)}t.writeSync(nt,`]
`),t.closeSync(nt),sl("endDumpTypes"),e_("Dump types","beginDumpTypes","endDumpTypes")}function ne(){c&&t.writeFileSync(c,JSON.stringify(_))}e.dumpLegend=ne})(sD||(sD={})),xde=sD.startTracing,Ade=sD.dumpLegend}});function eM(e,t=!0){const r=cD[e.category];return t?r.toLowerCase():r}var tM,nM,rM,yH,iM,aM,vH,lD,bH,VI,oM,EH,TH,SH,xH,AH,CH,LH,IH,kH,wH,DH,RH,NH,OH,sM,MH,PH,FH,BH,lM,cM,GH,UH,VH,jH,WH,uM,HH,zH,qH,JH,KH,XH,cD,uD,YH,$H,QH,ZH,dM,ez,tz,nz,rz,iz,az,oz,sz,lz,fM,_M,pM,cz,uz,dz,fz,_z,pz,mz,hz,dD,Cde=b({"src/compiler/types.ts"(){"use strict";tM=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.HashToken=62]="HashToken",e[e.EqualsToken=63]="EqualsToken",e[e.PlusEqualsToken=64]="PlusEqualsToken",e[e.MinusEqualsToken=65]="MinusEqualsToken",e[e.AsteriskEqualsToken=66]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=68]="SlashEqualsToken",e[e.PercentEqualsToken=69]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=73]="AmpersandEqualsToken",e[e.BarEqualsToken=74]="BarEqualsToken",e[e.BarBarEqualsToken=75]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=78]="CaretEqualsToken",e[e.Identifier=79]="Identifier",e[e.PrivateIdentifier=80]="PrivateIdentifier",e[e.BreakKeyword=81]="BreakKeyword",e[e.CaseKeyword=82]="CaseKeyword",e[e.CatchKeyword=83]="CatchKeyword",e[e.ClassKeyword=84]="ClassKeyword",e[e.ConstKeyword=85]="ConstKeyword",e[e.ContinueKeyword=86]="ContinueKeyword",e[e.DebuggerKeyword=87]="DebuggerKeyword",e[e.DefaultKeyword=88]="DefaultKeyword",e[e.DeleteKeyword=89]="DeleteKeyword",e[e.DoKeyword=90]="DoKeyword",e[e.ElseKeyword=91]="ElseKeyword",e[e.EnumKeyword=92]="EnumKeyword",e[e.ExportKeyword=93]="ExportKeyword",e[e.ExtendsKeyword=94]="ExtendsKeyword",e[e.FalseKeyword=95]="FalseKeyword",e[e.FinallyKeyword=96]="FinallyKeyword",e[e.ForKeyword=97]="ForKeyword",e[e.FunctionKeyword=98]="FunctionKeyword",e[e.IfKeyword=99]="IfKeyword",e[e.ImportKeyword=100]="ImportKeyword",e[e.InKeyword=101]="InKeyword",e[e.InstanceOfKeyword=102]="InstanceOfKeyword",e[e.NewKeyword=103]="NewKeyword",e[e.NullKeyword=104]="NullKeyword",e[e.ReturnKeyword=105]="ReturnKeyword",e[e.SuperKeyword=106]="SuperKeyword",e[e.SwitchKeyword=107]="SwitchKeyword",e[e.ThisKeyword=108]="ThisKeyword",e[e.ThrowKeyword=109]="ThrowKeyword",e[e.TrueKeyword=110]="TrueKeyword",e[e.TryKeyword=111]="TryKeyword",e[e.TypeOfKeyword=112]="TypeOfKeyword",e[e.VarKeyword=113]="VarKeyword",e[e.VoidKeyword=114]="VoidKeyword",e[e.WhileKeyword=115]="WhileKeyword",e[e.WithKeyword=116]="WithKeyword",e[e.ImplementsKeyword=117]="ImplementsKeyword",e[e.InterfaceKeyword=118]="InterfaceKeyword",e[e.LetKeyword=119]="LetKeyword",e[e.PackageKeyword=120]="PackageKeyword",e[e.PrivateKeyword=121]="PrivateKeyword",e[e.ProtectedKeyword=122]="ProtectedKeyword",e[e.PublicKeyword=123]="PublicKeyword",e[e.StaticKeyword=124]="StaticKeyword",e[e.YieldKeyword=125]="YieldKeyword",e[e.AbstractKeyword=126]="AbstractKeyword",e[e.AccessorKeyword=127]="AccessorKeyword",e[e.AsKeyword=128]="AsKeyword",e[e.AssertsKeyword=129]="AssertsKeyword",e[e.AssertKeyword=130]="AssertKeyword",e[e.AnyKeyword=131]="AnyKeyword",e[e.AsyncKeyword=132]="AsyncKeyword",e[e.AwaitKeyword=133]="AwaitKeyword",e[e.BooleanKeyword=134]="BooleanKeyword",e[e.ConstructorKeyword=135]="ConstructorKeyword",e[e.DeclareKeyword=136]="DeclareKeyword",e[e.GetKeyword=137]="GetKeyword",e[e.InferKeyword=138]="InferKeyword",e[e.IntrinsicKeyword=139]="IntrinsicKeyword",e[e.IsKeyword=140]="IsKeyword",e[e.KeyOfKeyword=141]="KeyOfKeyword",e[e.ModuleKeyword=142]="ModuleKeyword",e[e.NamespaceKeyword=143]="NamespaceKeyword",e[e.NeverKeyword=144]="NeverKeyword",e[e.OutKeyword=145]="OutKeyword",e[e.ReadonlyKeyword=146]="ReadonlyKeyword",e[e.RequireKeyword=147]="RequireKeyword",e[e.NumberKeyword=148]="NumberKeyword",e[e.ObjectKeyword=149]="ObjectKeyword",e[e.SatisfiesKeyword=150]="SatisfiesKeyword",e[e.SetKeyword=151]="SetKeyword",e[e.StringKeyword=152]="StringKeyword",e[e.SymbolKeyword=153]="SymbolKeyword",e[e.TypeKeyword=154]="TypeKeyword",e[e.UndefinedKeyword=155]="UndefinedKeyword",e[e.UniqueKeyword=156]="UniqueKeyword",e[e.UnknownKeyword=157]="UnknownKeyword",e[e.FromKeyword=158]="FromKeyword",e[e.GlobalKeyword=159]="GlobalKeyword",e[e.BigIntKeyword=160]="BigIntKeyword",e[e.OverrideKeyword=161]="OverrideKeyword",e[e.OfKeyword=162]="OfKeyword",e[e.QualifiedName=163]="QualifiedName",e[e.ComputedPropertyName=164]="ComputedPropertyName",e[e.TypeParameter=165]="TypeParameter",e[e.Parameter=166]="Parameter",e[e.Decorator=167]="Decorator",e[e.PropertySignature=168]="PropertySignature",e[e.PropertyDeclaration=169]="PropertyDeclaration",e[e.MethodSignature=170]="MethodSignature",e[e.MethodDeclaration=171]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=172]="ClassStaticBlockDeclaration",e[e.Constructor=173]="Constructor",e[e.GetAccessor=174]="GetAccessor",e[e.SetAccessor=175]="SetAccessor",e[e.CallSignature=176]="CallSignature",e[e.ConstructSignature=177]="ConstructSignature",e[e.IndexSignature=178]="IndexSignature",e[e.TypePredicate=179]="TypePredicate",e[e.TypeReference=180]="TypeReference",e[e.FunctionType=181]="FunctionType",e[e.ConstructorType=182]="ConstructorType",e[e.TypeQuery=183]="TypeQuery",e[e.TypeLiteral=184]="TypeLiteral",e[e.ArrayType=185]="ArrayType",e[e.TupleType=186]="TupleType",e[e.OptionalType=187]="OptionalType",e[e.RestType=188]="RestType",e[e.UnionType=189]="UnionType",e[e.IntersectionType=190]="IntersectionType",e[e.ConditionalType=191]="ConditionalType",e[e.InferType=192]="InferType",e[e.ParenthesizedType=193]="ParenthesizedType",e[e.ThisType=194]="ThisType",e[e.TypeOperator=195]="TypeOperator",e[e.IndexedAccessType=196]="IndexedAccessType",e[e.MappedType=197]="MappedType",e[e.LiteralType=198]="LiteralType",e[e.NamedTupleMember=199]="NamedTupleMember",e[e.TemplateLiteralType=200]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=201]="TemplateLiteralTypeSpan",e[e.ImportType=202]="ImportType",e[e.ObjectBindingPattern=203]="ObjectBindingPattern",e[e.ArrayBindingPattern=204]="ArrayBindingPattern",e[e.BindingElement=205]="BindingElement",e[e.ArrayLiteralExpression=206]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=207]="ObjectLiteralExpression",e[e.PropertyAccessExpression=208]="PropertyAccessExpression",e[e.ElementAccessExpression=209]="ElementAccessExpression",e[e.CallExpression=210]="CallExpression",e[e.NewExpression=211]="NewExpression",e[e.TaggedTemplateExpression=212]="TaggedTemplateExpression",e[e.TypeAssertionExpression=213]="TypeAssertionExpression",e[e.ParenthesizedExpression=214]="ParenthesizedExpression",e[e.FunctionExpression=215]="FunctionExpression",e[e.ArrowFunction=216]="ArrowFunction",e[e.DeleteExpression=217]="DeleteExpression",e[e.TypeOfExpression=218]="TypeOfExpression",e[e.VoidExpression=219]="VoidExpression",e[e.AwaitExpression=220]="AwaitExpression",e[e.PrefixUnaryExpression=221]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=222]="PostfixUnaryExpression",e[e.BinaryExpression=223]="BinaryExpression",e[e.ConditionalExpression=224]="ConditionalExpression",e[e.TemplateExpression=225]="TemplateExpression",e[e.YieldExpression=226]="YieldExpression",e[e.SpreadElement=227]="SpreadElement",e[e.ClassExpression=228]="ClassExpression",e[e.OmittedExpression=229]="OmittedExpression",e[e.ExpressionWithTypeArguments=230]="ExpressionWithTypeArguments",e[e.AsExpression=231]="AsExpression",e[e.NonNullExpression=232]="NonNullExpression",e[e.MetaProperty=233]="MetaProperty",e[e.SyntheticExpression=234]="SyntheticExpression",e[e.SatisfiesExpression=235]="SatisfiesExpression",e[e.TemplateSpan=236]="TemplateSpan",e[e.SemicolonClassElement=237]="SemicolonClassElement",e[e.Block=238]="Block",e[e.EmptyStatement=239]="EmptyStatement",e[e.VariableStatement=240]="VariableStatement",e[e.ExpressionStatement=241]="ExpressionStatement",e[e.IfStatement=242]="IfStatement",e[e.DoStatement=243]="DoStatement",e[e.WhileStatement=244]="WhileStatement",e[e.ForStatement=245]="ForStatement",e[e.ForInStatement=246]="ForInStatement",e[e.ForOfStatement=247]="ForOfStatement",e[e.ContinueStatement=248]="ContinueStatement",e[e.BreakStatement=249]="BreakStatement",e[e.ReturnStatement=250]="ReturnStatement",e[e.WithStatement=251]="WithStatement",e[e.SwitchStatement=252]="SwitchStatement",e[e.LabeledStatement=253]="LabeledStatement",e[e.ThrowStatement=254]="ThrowStatement",e[e.TryStatement=255]="TryStatement",e[e.DebuggerStatement=256]="DebuggerStatement",e[e.VariableDeclaration=257]="VariableDeclaration",e[e.VariableDeclarationList=258]="VariableDeclarationList",e[e.FunctionDeclaration=259]="FunctionDeclaration",e[e.ClassDeclaration=260]="ClassDeclaration",e[e.InterfaceDeclaration=261]="InterfaceDeclaration",e[e.TypeAliasDeclaration=262]="TypeAliasDeclaration",e[e.EnumDeclaration=263]="EnumDeclaration",e[e.ModuleDeclaration=264]="ModuleDeclaration",e[e.ModuleBlock=265]="ModuleBlock",e[e.CaseBlock=266]="CaseBlock",e[e.NamespaceExportDeclaration=267]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=268]="ImportEqualsDeclaration",e[e.ImportDeclaration=269]="ImportDeclaration",e[e.ImportClause=270]="ImportClause",e[e.NamespaceImport=271]="NamespaceImport",e[e.NamedImports=272]="NamedImports",e[e.ImportSpecifier=273]="ImportSpecifier",e[e.ExportAssignment=274]="ExportAssignment",e[e.ExportDeclaration=275]="ExportDeclaration",e[e.NamedExports=276]="NamedExports",e[e.NamespaceExport=277]="NamespaceExport",e[e.ExportSpecifier=278]="ExportSpecifier",e[e.MissingDeclaration=279]="MissingDeclaration",e[e.ExternalModuleReference=280]="ExternalModuleReference",e[e.JsxElement=281]="JsxElement",e[e.JsxSelfClosingElement=282]="JsxSelfClosingElement",e[e.JsxOpeningElement=283]="JsxOpeningElement",e[e.JsxClosingElement=284]="JsxClosingElement",e[e.JsxFragment=285]="JsxFragment",e[e.JsxOpeningFragment=286]="JsxOpeningFragment",e[e.JsxClosingFragment=287]="JsxClosingFragment",e[e.JsxAttribute=288]="JsxAttribute",e[e.JsxAttributes=289]="JsxAttributes",e[e.JsxSpreadAttribute=290]="JsxSpreadAttribute",e[e.JsxExpression=291]="JsxExpression",e[e.CaseClause=292]="CaseClause",e[e.DefaultClause=293]="DefaultClause",e[e.HeritageClause=294]="HeritageClause",e[e.CatchClause=295]="CatchClause",e[e.AssertClause=296]="AssertClause",e[e.AssertEntry=297]="AssertEntry",e[e.ImportTypeAssertionContainer=298]="ImportTypeAssertionContainer",e[e.PropertyAssignment=299]="PropertyAssignment",e[e.ShorthandPropertyAssignment=300]="ShorthandPropertyAssignment",e[e.SpreadAssignment=301]="SpreadAssignment",e[e.EnumMember=302]="EnumMember",e[e.UnparsedPrologue=303]="UnparsedPrologue",e[e.UnparsedPrepend=304]="UnparsedPrepend",e[e.UnparsedText=305]="UnparsedText",e[e.UnparsedInternalText=306]="UnparsedInternalText",e[e.UnparsedSyntheticReference=307]="UnparsedSyntheticReference",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.UnparsedSource=310]="UnparsedSource",e[e.InputFiles=311]="InputFiles",e[e.JSDocTypeExpression=312]="JSDocTypeExpression",e[e.JSDocNameReference=313]="JSDocNameReference",e[e.JSDocMemberName=314]="JSDocMemberName",e[e.JSDocAllType=315]="JSDocAllType",e[e.JSDocUnknownType=316]="JSDocUnknownType",e[e.JSDocNullableType=317]="JSDocNullableType",e[e.JSDocNonNullableType=318]="JSDocNonNullableType",e[e.JSDocOptionalType=319]="JSDocOptionalType",e[e.JSDocFunctionType=320]="JSDocFunctionType",e[e.JSDocVariadicType=321]="JSDocVariadicType",e[e.JSDocNamepathType=322]="JSDocNamepathType",e[e.JSDoc=323]="JSDoc",e[e.JSDocComment=323]="JSDocComment",e[e.JSDocText=324]="JSDocText",e[e.JSDocTypeLiteral=325]="JSDocTypeLiteral",e[e.JSDocSignature=326]="JSDocSignature",e[e.JSDocLink=327]="JSDocLink",e[e.JSDocLinkCode=328]="JSDocLinkCode",e[e.JSDocLinkPlain=329]="JSDocLinkPlain",e[e.JSDocTag=330]="JSDocTag",e[e.JSDocAugmentsTag=331]="JSDocAugmentsTag",e[e.JSDocImplementsTag=332]="JSDocImplementsTag",e[e.JSDocAuthorTag=333]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=334]="JSDocDeprecatedTag",e[e.JSDocClassTag=335]="JSDocClassTag",e[e.JSDocPublicTag=336]="JSDocPublicTag",e[e.JSDocPrivateTag=337]="JSDocPrivateTag",e[e.JSDocProtectedTag=338]="JSDocProtectedTag",e[e.JSDocReadonlyTag=339]="JSDocReadonlyTag",e[e.JSDocOverrideTag=340]="JSDocOverrideTag",e[e.JSDocCallbackTag=341]="JSDocCallbackTag",e[e.JSDocOverloadTag=342]="JSDocOverloadTag",e[e.JSDocEnumTag=343]="JSDocEnumTag",e[e.JSDocParameterTag=344]="JSDocParameterTag",e[e.JSDocReturnTag=345]="JSDocReturnTag",e[e.JSDocThisTag=346]="JSDocThisTag",e[e.JSDocTypeTag=347]="JSDocTypeTag",e[e.JSDocTemplateTag=348]="JSDocTemplateTag",e[e.JSDocTypedefTag=349]="JSDocTypedefTag",e[e.JSDocSeeTag=350]="JSDocSeeTag",e[e.JSDocPropertyTag=351]="JSDocPropertyTag",e[e.JSDocThrowsTag=352]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=353]="JSDocSatisfiesTag",e[e.SyntaxList=354]="SyntaxList",e[e.NotEmittedStatement=355]="NotEmittedStatement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.MergeDeclarationMarker=358]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=359]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=360]="SyntheticReferenceExpression",e[e.Count=361]="Count",e[e.FirstAssignment=63]="FirstAssignment",e[e.LastAssignment=78]="LastAssignment",e[e.FirstCompoundAssignment=64]="FirstCompoundAssignment",e[e.LastCompoundAssignment=78]="LastCompoundAssignment",e[e.FirstReservedWord=81]="FirstReservedWord",e[e.LastReservedWord=116]="LastReservedWord",e[e.FirstKeyword=81]="FirstKeyword",e[e.LastKeyword=162]="LastKeyword",e[e.FirstFutureReservedWord=117]="FirstFutureReservedWord",e[e.LastFutureReservedWord=125]="LastFutureReservedWord",e[e.FirstTypeNode=179]="FirstTypeNode",e[e.LastTypeNode=202]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=78]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=162]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=78]="LastBinaryOperator",e[e.FirstStatement=240]="FirstStatement",e[e.LastStatement=256]="LastStatement",e[e.FirstNode=163]="FirstNode",e[e.FirstJSDocNode=312]="FirstJSDocNode",e[e.LastJSDocNode=353]="LastJSDocNode",e[e.FirstJSDocTagNode=330]="FirstJSDocTagNode",e[e.LastJSDocTagNode=353]="LastJSDocTagNode",e[e.FirstContextualKeyword=126]="FirstContextualKeyword",e[e.LastContextualKeyword=162]="LastContextualKeyword",e))(tM||{}),nM=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=131072]="ThisNodeHasError",e[e.JavaScriptFile=262144]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=1048576]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",e[e.JSDoc=8388608]="JSDoc",e[e.Ambient=16777216]="Ambient",e[e.InWithStatement=33554432]="InWithStatement",e[e.JsonFile=67108864]="JsonFile",e[e.TypeCached=134217728]="TypeCached",e[e.Deprecated=268435456]="Deprecated",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=50720768]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=128]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=2048]="IdentifierIsInJSDocNamespace",e))(nM||{}),rM=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(rM||{}),yH=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(yH||{}),iM=(e=>(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))(iM||{}),aM=(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))(aM||{}),vH=(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.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",e))(vH||{}),lD=(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))(lD||{}),bH=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(bH||{}),VI=class{},oM=(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))(oM||{}),EH=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(EH||{}),TH=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(TH||{}),SH=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(SH||{}),xH=(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))(xH||{}),AH=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(AH||{}),CH=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(CH||{}),LH=(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))(LH||{}),IH=(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))(IH||{}),kH=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.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=848330091]="NodeBuilderFlagsMask",e))(kH||{}),wH=(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))(wH||{}),DH=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(DH||{}),RH=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(RH||{}),NH=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(NH||{}),OH=(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))(OH||{}),sM=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.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))(sM||{}),MH=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(MH||{}),PH=(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))(PH||{}),FH=(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))(FH||{}),BH=(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.ClassWithBodyScopedClassBinding=65536]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=131072]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=262144]="NeedsLoopOutParameter",e[e.AssignmentsMarked=524288]="AssignmentsMarked",e[e.ClassWithConstructorReference=1048576]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=2097152]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=4194304]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=8388608]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=16777216]="InCheckIdentifier",e))(BH||{}),lM=(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.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.Primitive=134348796]="Primitive",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.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=205258751]="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.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",e))(lM||{}),cM=(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.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))(cM||{}),GH=(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))(GH||{}),UH=(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))(UH||{}),VH=(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))(VH||{}),jH=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(jH||{}),WH=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(WH||{}),uM=(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.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(uM||{}),HH=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(HH||{}),zH=(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))(zH||{}),qH=(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))(qH||{}),JH=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(JH||{}),KH=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(KH||{}),XH=(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))(XH||{}),cD=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(cD||{}),uD=(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))(uD||{}),YH=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(YH||{}),$H=(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))($H||{}),QH=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(QH||{}),ZH=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(ZH||{}),dM=(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))(dM||{}),ez=(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))(ez||{}),tz=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(tz||{}),nz=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(nz||{}),rz=(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))(rz||{}),iz=(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))(iz||{}),az=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(az||{}),oz=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(oz||{}),sz=(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))(sz||{}),lz=(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))(lz||{}),fM=(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))(fM||{}),_M=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(_M||{}),pM=(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.HasEndOfDeclarationMarker=8388608]="HasEndOfDeclarationMarker",e[e.Iterator=16777216]="Iterator",e[e.NoAsciiEscaping=33554432]="NoAsciiEscaping",e))(pM||{}),cz=(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))(cz||{}),uz=(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.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(uz||{}),dz=(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))(dz||{}),fz=(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))(fz||{}),_z=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(_z||{}),pz=(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))(pz||{}),mz=(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.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))(mz||{}),hz=(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))(hz||{}),dD={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}}}});function fD(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}function D3e(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function ES(e,t){return e.getModifiedTime(t)||_g}function gz(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function R3e(e){if(!e.getEnvironmentVariable)return;const t=o("TSC_WATCH_POLLINGINTERVAL",mM);mD=s("TSC_WATCH_POLLINGCHUNKSIZE",pD)||mD,hD=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",pD)||hD;function r(c,_){return e.getEnvironmentVariable(`${c}_${_.toUpperCase()}`)}function i(c){let _;return d("Low"),d("Medium"),d("High"),_;function d(v){const g=r(c,v);g&&((_||(_={}))[v]=Number(g))}}function o(c,_){const d=i(c);if(d)return v("Low"),v("Medium"),v("High"),!0;return!1;function v(g){_[g]=d[g]||_[g]}}function s(c,_){const d=i(c);return(t||d)&&gz(d?Li(Li({},_),d):_)}}function Lde(e,t,r,i,o){let s=r;for(let _=t.length;i&&_;c(),_--){const d=t[r];if(d){if(d.isClosed){t[r]=void 0;continue}}else continue;i--;const v=P3e(d,ES(e,d.fileName));if(d.isClosed){t[r]=void 0;continue}o==null||o(d,r,v),t[r]&&(s<r&&(t[s]=d,t[r]=void 0),s++)}return r;function c(){r++,r===t.length&&(s<r&&(t.length=s),r=0,s=0)}}function N3e(e){const t=[],r=[],i=_(250),o=_(500),s=_(2e3);return c;function c(k,U,j){const H={fileName:k,callback:U,unchangedPolls:0,mtime:ES(e,k)};return t.push(H),C(H,j),{close:()=>{H.isClosed=!0,rD(t,H)}}}function _(k){const U=[];return U.pollingInterval=k,U.pollIndex=0,U.pollScheduled=!1,U}function d(k){k.pollIndex=g(k,k.pollingInterval,k.pollIndex,mD[k.pollingInterval]),k.length?M(k.pollingInterval):(R.assert(k.pollIndex===0),k.pollScheduled=!1)}function v(k){g(r,250,0,r.length),d(k),!k.pollScheduled&&r.length&&M(250)}function g(k,U,j,H){return Lde(e,k,j,H,ee);function ee(X,ne,P){P?(X.unchangedPolls=0,k!==r&&(k[ne]=void 0,L(X))):X.unchangedPolls!==hD[U]?X.unchangedPolls++:k===r?(X.unchangedPolls=1,k[ne]=void 0,C(X,250)):U!==2e3&&(X.unchangedPolls++,k[ne]=void 0,C(X,U===250?500:2e3))}}function T(k){switch(k){case 250:return i;case 500:return o;case 2e3:return s}}function C(k,U){T(U).push(k),I(U)}function L(k){r.push(k),I(250)}function I(k){T(k).pollScheduled||M(k)}function M(k){T(k).pollScheduled=e.setTimeout(k===250?v:d,k,T(k))}}function O3e(e,t){const r=v_(),i=new Map,o=lu(t);return s;function s(_,d,v,g){const T=o(_);r.add(T,d);const C=vi(T)||".",L=i.get(C)||c(vi(_)||".",C,g);return L.referenceCount++,{close:()=>{L.referenceCount===1?(L.close(),i.delete(C)):L.referenceCount--,r.remove(T,d)}}}function c(_,d,v){const g=e(_,1,(T,C,L)=>{if(!za(C))return;const I=Ma(C,_),M=I&&r.get(o(I));if(M)for(const k of M)k(I,1,L)},!1,500,v);return g.referenceCount=0,i.set(d,g),g}}function M3e(e){const t=[];let r=0,i;return o;function o(_,d){const v={fileName:_,callback:d,mtime:ES(e,_)};return t.push(v),c(),{close:()=>{v.isClosed=!0,rD(t,v)}}}function s(){i=void 0,r=Lde(e,t,r,mD[250]),c()}function c(){!t.length||i||(i=e.setTimeout(s,2e3))}}function Ide(e,t,r,i,o){const c=lu(t)(r),_=e.get(c);return _?_.callbacks.push(i):e.set(c,{watcher:o((d,v,g)=>{var T;return(T=e.get(c))==null?void 0:T.callbacks.slice().forEach(C=>C(d,v,g))}),callbacks:[i]}),{close:()=>{const d=e.get(c);d&&(!W7(d.callbacks,i)||d.callbacks.length||(e.delete(c),nh(d)))}}}function P3e(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,kde(r,i),t),!0):!1}function kde(e,t){return e===0?0:t===0?2:1}function _D(e){return vz(e)}function wde(e){vz=e}function F3e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:c,clearTimeout:_}){const d=new Map,v=v_(),g=new Map;let T;const C=j7(!t),L=lu(t);return(P,ue,re,be)=>re?I(P,be,ue):e(P,ue,re,be);function I(P,ue,re){const be=L(P);let ae=d.get(be);ae?ae.refCount++:(ae={watcher:e(P,ce=>{X(ce,ue)||(ue!=null&&ue.synchronousWatchDirectory?(M(be,ce),ee(P,be,ue)):k(P,be,ce,ue))},!1,ue),refCount:1,childWatches:it},d.set(be,ae),ee(P,be,ue));const z=re&&{dirName:P,callback:re};return z&&v.add(be,z),{dirName:P,close:()=>{const ce=R.checkDefined(d.get(be));z&&v.remove(be,z),ce.refCount--,!ce.refCount&&(d.delete(be),nh(ce),ce.childWatches.forEach(Km))}}}function M(P,ue,re){let be,ae;za(ue)?be=ue:ae=ue,v.forEach((z,ce)=>{if(!(ae&&ae.get(ce)===!0)&&(ce===P||xa(P,ce)&&P[ce.length]===Bs))if(ae)if(re){const he=ae.get(ce);he?he.push(...re):ae.set(ce,re.slice())}else ae.set(ce,!0);else z.forEach(({callback:he})=>he(be))})}function k(P,ue,re,be){const ae=d.get(ue);if(ae&&o(P,1)){U(P,ue,re,be);return}M(ue,re),H(ae)}function U(P,ue,re,be){const ae=g.get(ue);ae?ae.fileNames.push(re):g.set(ue,{dirName:P,options:be,fileNames:[re]}),T&&(_(T),T=void 0),T=c(j,1e3)}function j(){T=void 0,_D(`sysLog:: onTimerToUpdateChildWatches:: ${g.size}`);const P=ol(),ue=new Map;for(;!T&&g.size;){const be=g.entries().next();R.assert(!be.done);const{value:[ae,{dirName:z,options:ce,fileNames:he}]}=be;g.delete(ae);const Ee=ee(z,ae,ce);M(ae,ue,Ee?void 0:he)}_D(`sysLog:: invokingWatchers:: Elapsed:: ${ol()-P}ms:: ${g.size}`),v.forEach((be,ae)=>{const z=ue.get(ae);z&&be.forEach(({callback:ce,dirName:he})=>{ja(z)?z.forEach(ce):ce(he)})});const re=ol()-P;_D(`sysLog:: Elapsed:: ${re}ms:: onTimerToUpdateChildWatches:: ${g.size} ${T}`)}function H(P){if(!P)return;const ue=P.childWatches;P.childWatches=it;for(const re of ue)re.close(),H(d.get(L(re.dirName)))}function ee(P,ue,re){const be=d.get(ue);if(!be)return!1;let ae;const z=tde(o(P,1)?ua(i(P),Ee=>{const Ae=Ma(Ee,P);return!X(Ae,re)&&C(Ae,Xo(s(Ae)))===0?Ae:void 0}):it,be.childWatches,(Ee,Ae)=>C(Ee,Ae.dirName),ce,Km,he);return be.childWatches=ae||it,z;function ce(Ee){const Ae=I(Ee,re);he(Ae)}function he(Ee){(ae||(ae=[])).push(Ee)}}function X(P,ue){return Dt(gD,re=>ne(P,re))||Dde(P,ue,t,r)}function ne(P,ue){return bu(P,ue)?!0:t?!1:bu(L(P),ue)}}function B3e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function G3e(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||_g),t(e,s!==_g?0:2,s)):t(e,1,s)}}function Dde(e,t,r,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&(f9(e,t==null?void 0:t.excludeFiles,r,i())||f9(e,t==null?void 0:t.excludeDirectories,r,i()))}function Rde(e,t,r,i,o){return(s,c)=>{if(s==="rename"){const _=c?Xo(Fi(e,c)):e;(!c||!Dde(_,r,i,o))&&t(_)}}}function Nde({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:c,getCurrentDirectory:_,fsSupportsRecursiveFsWatch:d,getAccessibleSortedChildDirectories:v,realpath:g,tscWatchFile:T,useNonPollingWatchers:C,tscWatchDirectory:L,inodeWatching:I,sysLog:M}){const k=new Map,U=new Map,j=new Map;let H,ee,X,ne,P=!1;return{watchFile:ue,watchDirectory:ce};function ue(je,Ue,Je,Fe){Fe=ae(Fe,C);const Be=R.checkDefined(Fe.watchFile);switch(Be){case 0:return Ae(je,Ue,250,void 0);case 1:return Ae(je,Ue,Je,void 0);case 2:return re()(je,Ue,Je,void 0);case 3:return be()(je,Ue,void 0,void 0);case 4:return te(je,0,G3e(je,Ue,t),!1,Je,bN(Fe));case 5:return X||(X=O3e(te,c)),X(je,Ue,Je,bN(Fe));default:R.assertNever(Be)}}function re(){return H||(H=N3e({getModifiedTime:t,setTimeout:r}))}function be(){return ee||(ee=M3e({getModifiedTime:t,setTimeout:r}))}function ae(je,Ue){if(je&&je.watchFile!==void 0)return je;switch(T){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return z(4,1,je);case"UseFsEventsWithFallbackDynamicPolling":return z(4,2,je);case"UseFsEventsOnParentDirectory":Ue=!0;default:return Ue?z(5,1,je):{watchFile:4}}}function z(je,Ue,Je){const Fe=Je==null?void 0:Je.fallbackPolling;return{watchFile:je,fallbackPolling:Fe===void 0?Ue:Fe}}function ce(je,Ue,Je,Fe){return d?te(je,1,Rde(je,Ue,Fe,c,_),Je,500,bN(Fe)):(ne||(ne=F3e({useCaseSensitiveFileNames:c,getCurrentDirectory:_,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:v,watchDirectory:he,realpath:g,setTimeout:r,clearTimeout:i})),ne(je,Ue,Je,Fe))}function he(je,Ue,Je,Fe){R.assert(!Je);const Be=Ee(Fe),$e=R.checkDefined(Be.watchDirectory);switch($e){case 1:return Ae(je,()=>Ue(je),500,void 0);case 2:return re()(je,()=>Ue(je),500,void 0);case 3:return be()(je,()=>Ue(je),void 0,void 0);case 0:return te(je,1,Rde(je,Ue,Fe,c,_),Je,500,bN(Be));default:R.assertNever($e)}}function Ee(je){if(je&&je.watchDirectory!==void 0)return je;switch(L){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const Ue=je==null?void 0:je.fallbackPolling;return{watchDirectory:0,fallbackPolling:Ue!==void 0?Ue:void 0}}}function Ae(je,Ue,Je,Fe){return Ide(k,c,je,Ue,Be=>e(je,Be,Je,Fe))}function te(je,Ue,Je,Fe,Be,$e){return Ide(Fe?j:U,c,je,Je,ze=>Ze(je,Ue,ze,Fe,Be,$e))}function Ze(je,Ue,Je,Fe,Be,$e){let ze,Ge;I&&(ze=je.substring(je.lastIndexOf(Bs)),Ge=ze.slice(Bs.length));let lt=s(je,Ue)?bt():ot();return{close:()=>{lt&&(lt.close(),lt=void 0)}};function Ct(sn){lt&&(M(`sysLog:: ${je}:: Changing watcher to ${sn===bt?"Present":"Missing"}FileSystemEntryWatcher`),lt.close(),lt=sn())}function bt(){if(P)return M(`sysLog:: ${je}:: Defaulting to watchFile`),nt();try{const sn=o(je,Fe,I?zt:Je);return sn.on("error",()=>{Je("rename",""),Ct(ot)}),sn}catch(sn){return P||(P=sn.code==="ENOSPC"),M(`sysLog:: ${je}:: Changing to watchFile`),nt()}}function zt(sn,pn){let gn;if(pn&&oc(pn,"~")&&(gn=pn,pn=pn.slice(0,pn.length-1)),sn==="rename"&&(!pn||pn===Ge||oc(pn,ze))){const jn=t(je)||_g;gn&&Je(sn,gn,jn),Je(sn,pn,jn),I?Ct(jn===_g?ot:bt):jn===_g&&Ct(ot)}else gn&&Je(sn,gn),Je(sn,pn)}function nt(){return ue(je,B3e(Je),Be,$e)}function ot(){return ue(je,(sn,pn,gn)=>{pn===0&&(gn||(gn=t(je)||_g),gn!==_g&&(Je("rename","",gn),Ct(bt)))},Be,$e)}}}function Ode(e){const t=e.writeFile;e.writeFile=(r,i,o)=>hJ(r,i,!!o,(s,c,_)=>t.call(e,s,c,_),s=>e.createDirectory(s),s=>e.directoryExists(s))}function U3e(e){nu=e}var yz,mM,_g,pD,mD,hD,gD,vz,bz,nu,V3e=b({"src/compiler/sys.ts"(){"use strict";Oa(),yz=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(yz||{}),mM=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(mM||{}),_g=new Date(0),pD={Low:32,Medium:64,High:256},mD=gz(pD),hD=gz(pD),gD=["/node_modules/.","/.git","/.#"],vz=co,bz=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(bz||{}),nu=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=e1("fs"),s=e1("path"),c=e1("os");let _;try{_=e1("crypto")}catch(bt){_=void 0}let d,v="./profile.cpuprofile";const g=e1("buffer").Buffer,T=process.platform==="linux"||process.platform==="darwin",C=c.platform(),L=be(),I=o.realpathSync.native?process.platform==="win32"?Be:o.realpathSync.native:o.realpathSync,M=JW.endsWith("sys.js")?s.join(s.dirname(DOe),"__fake__.js"):JW,k=process.platform==="win32"||process.platform==="darwin",U=Ld(()=>process.cwd()),{watchFile:j,watchDirectory:H}=Nde({pollingWatchFileWorker:z,getModifiedTime:ze,setTimeout,clearTimeout,fsWatchWorker:ce,useCaseSensitiveFileNames:L,getCurrentDirectory:U,fileSystemEntryExists:je,fsSupportsRecursiveFsWatch:k,getAccessibleSortedChildDirectories:bt=>te(bt).directories,realpath:$e,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:T,sysLog:_D}),ee={args:process.argv.slice(2),newLine:c.EOL,useCaseSensitiveFileNames:L,write(bt){process.stdout.write(bt)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:Ee,writeFile:Ae,watchFile:j,watchDirectory:H,resolvePath:bt=>s.resolve(bt),fileExists:Ue,directoryExists:Je,createDirectory(bt){if(!ee.directoryExists(bt))try{o.mkdirSync(bt)}catch(zt){if(zt.code!=="EEXIST")throw zt}},getExecutingFilePath(){return M},getCurrentDirectory:U,getDirectories:Fe,getEnvironmentVariable(bt){return process.env[bt]||""},readDirectory:Ze,getModifiedTime:ze,setModifiedTime:Ge,deleteFile:lt,createHash:_?Ct:fD,createSHA256Hash:_?Ct:void 0,getMemoryUsage(){return dc.g.gc&&dc.g.gc(),process.memoryUsage().heapUsed},getFileSize(bt){try{const zt=X(bt);if(zt!=null&&zt.isFile())return zt.size}catch(zt){}return 0},exit(bt){ue(()=>process.exit(bt))},enableCPUProfiler:ne,disableCPUProfiler:ue,cpuProfilingEnabled:()=>!!d||Fr(process.execArgv,"--cpu-prof")||Fr(process.execArgv,"--prof"),realpath:$e,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||Dt(process.execArgv,bt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(bt)),tryEnableSourceMapsForHost(){try{e1("source-map-support").install()}catch(bt){}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:re,base64decode:bt=>re(bt,"base64").toString("utf8"),base64encode:bt=>re(bt).toString("base64"),require:(bt,zt)=>{try{const nt=fye(zt,bt,ee);return{module:e1(nt),modulePath:nt,error:void 0}}catch(nt){return{module:void 0,modulePath:void 0,error:nt}}}};return ee;function X(bt){return o.statSync(bt,{throwIfNoEntry:!1})}function ne(bt,zt){if(d)return zt(),!1;const nt=e1("inspector");if(!nt||!nt.Session)return zt(),!1;const ot=new nt.Session;return ot.connect(),ot.post("Profiler.enable",()=>{ot.post("Profiler.start",()=>{d=ot,v=bt,zt()})}),!0}function P(bt){let zt=0;const nt=new Map,ot=ru(s.dirname(M)),sn=`file://${nm(ot)===1?"":"/"}${ot}`;for(const pn of bt.nodes)if(pn.callFrame.url){const gn=ru(pn.callFrame.url);Mv(sn,gn,L)?pn.callFrame.url=TS(sn,gn,sn,lu(L),!0):i.test(gn)||(pn.callFrame.url=(nt.has(gn)?nt:nt.set(gn,`external${zt}.js`)).get(gn),zt++)}return bt}function ue(bt){if(d&&d!=="stopping"){const zt=d;return d.post("Profiler.stop",(nt,{profile:ot})=>{var sn;if(!nt){try{(sn=X(v))!=null&&sn.isDirectory()&&(v=s.join(v,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch(pn){}try{o.mkdirSync(s.dirname(v),{recursive:!0})}catch(pn){}o.writeFileSync(v,JSON.stringify(P(ot)))}d=void 0,zt.disconnect(),bt()}),d="stopping",!0}else return bt(),!1}function re(bt,zt){return g.from&&g.from!==Int8Array.from?g.from(bt,zt):new g(bt,zt)}function be(){return C==="win32"||C==="win64"?!1:!Ue(ae(JW))}function ae(bt){return bt.replace(/\w/g,zt=>{const nt=zt.toUpperCase();return zt===nt?zt.toLowerCase():nt})}function z(bt,zt,nt){o.watchFile(bt,{persistent:!0,interval:nt},sn);let ot;return{close:()=>o.unwatchFile(bt,sn)};function sn(pn,gn){const jn=+gn.mtime==0||ot===2;if(+pn.mtime==0){if(jn)return;ot=2}else if(jn)ot=0;else{if(+pn.mtime==+gn.mtime)return;ot=1}zt(bt,ot,pn.mtime)}}function ce(bt,zt,nt){return o.watch(bt,k?{persistent:!0,recursive:!!zt}:{persistent:!0},nt)}function he(bt,zt){let nt;try{nt=o.readFileSync(bt)}catch(sn){return}let ot=nt.length;if(ot>=2&&nt[0]===254&&nt[1]===255){ot&=-2;for(let sn=0;sn<ot;sn+=2){const pn=nt[sn];nt[sn]=nt[sn+1],nt[sn+1]=pn}return nt.toString("utf16le",2)}return ot>=2&&nt[0]===255&&nt[1]===254?nt.toString("utf16le",2):ot>=3&&nt[0]===239&&nt[1]===187&&nt[2]===191?nt.toString("utf8",3):nt.toString("utf8")}function Ee(bt,zt){tm.logStartReadFile(bt);const nt=he(bt,zt);return tm.logStopReadFile(),nt}function Ae(bt,zt,nt){tm.logEvent("WriteFile: "+bt),nt&&(zt=e+zt);let ot;try{ot=o.openSync(bt,"w"),o.writeSync(ot,zt,void 0,"utf8")}finally{ot!==void 0&&o.closeSync(ot)}}function te(bt){tm.logEvent("ReadDir: "+(bt||"."));try{const zt=o.readdirSync(bt||".",{withFileTypes:!0}),nt=[],ot=[];for(const sn of zt){const pn=typeof sn=="string"?sn:sn.name;if(pn==="."||pn==="..")continue;let gn;if(typeof sn=="string"||sn.isSymbolicLink()){const jn=Fi(bt,pn);try{if(gn=X(jn),!gn)continue}catch(Ln){continue}}else gn=sn;gn.isFile()?nt.push(pn):gn.isDirectory()&&ot.push(pn)}return nt.sort(),ot.sort(),{files:nt,directories:ot}}catch(zt){return i5}}function Ze(bt,zt,nt,ot,sn){return zJ(bt,zt,nt,ot,L,process.cwd(),sn,te,$e)}function je(bt,zt){const nt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const ot=X(bt);if(!ot)return!1;switch(zt){case 0:return ot.isFile();case 1:return ot.isDirectory();default:return!1}}catch(ot){return!1}finally{Error.stackTraceLimit=nt}}function Ue(bt){return je(bt,0)}function Je(bt){return je(bt,1)}function Fe(bt){return te(bt).directories.slice()}function Be(bt){return bt.length<260?o.realpathSync.native(bt):o.realpathSync(bt)}function $e(bt){try{return I(bt)}catch(zt){return bt}}function ze(bt){var zt;const nt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(zt=X(bt))==null?void 0:zt.mtime}catch(ot){return}finally{Error.stackTraceLimit=nt}}function Ge(bt,zt){try{o.utimesSync(bt,zt,zt)}catch(nt){return}}function lt(bt){try{return o.unlinkSync(bt)}catch(zt){return}}function Ct(bt){const zt=_.createHash("sha256");return zt.update(bt),zt.digest("hex")}}let r;return lH()&&(r=t()),r&&Ode(r),r})(),nu&&nu.getEnvironmentVariable&&(R3e(nu),R.setAssertionLevel(/^development$/i.test(nu.getEnvironmentVariable("NODE_ENV"))?1:0)),nu&&nu.debugMode&&(R.isDebugging=!0)}});function Ez(e){return e===47||e===92}function Mde(e){return yD(e)<0}function Fm(e){return yD(e)>0}function j3e(e){const t=yD(e);return t>0&&t===e.length}function jI(e){return yD(e)!==0}function wf(e){return/^\.\.?($|[\\/])/.test(e)}function Tz(e){return!jI(e)&&!wf(e)}function WA(e){return bu(Eu(e),".")}function _c(e,t){return e.length>t.length&&oc(e,t)}function Ic(e,t){for(const r of t)if(_c(e,r))return!0;return!1}function Nv(e){return e.length>0&&Ez(e.charCodeAt(e.length-1))}function Pde(e){return e>=97&&e<=122||e>=65&&e<=90}function W3e(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 yD(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?Bs:ED,2);return i<0?e.length:i+1}if(Pde(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(Iz);if(r!==-1){const i=r+Iz.length,o=e.indexOf(Bs,i);if(o!==-1){const s=e.slice(0,r),c=e.slice(i,o);if(s==="file"&&(c===""||c==="localhost")&&Pde(e.charCodeAt(o+1))){const _=W3e(e,o+2);if(_!==-1){if(e.charCodeAt(_)===47)return~(_+1);if(_===e.length)return~_}}return~(o+1)}return~e.length}return 0}function nm(e){const t=yD(e);return t<0?~t:t}function vi(e){e=ru(e);const t=nm(e);return t===e.length?e:(e=yT(e),e.slice(0,Math.max(t,e.lastIndexOf(Bs))))}function Eu(e,t,r){if(e=ru(e),nm(e)===e.length)return"";e=yT(e);const o=e.slice(Math.max(nm(e),e.lastIndexOf(Bs)+1)),s=t!==void 0&&r!==void 0?hM(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function Fde(e,t,r){if(xa(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 H3e(e,t,r){if(typeof t=="string")return Fde(e,t,r)||"";for(const i of t){const o=Fde(e,i,r);if(o)return o}return""}function hM(e,t,r){if(t)return H3e(yT(e),t,r?pS:mS);const i=Eu(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function z3e(e,t){const r=e.substring(0,t),i=e.substring(t).split(Bs);return i.length&&!rl(i)&&i.pop(),[r,...i]}function md(e,t=""){return e=Fi(t,e),z3e(e,nm(e))}function wb(e){return e.length===0?"":(e[0]&&Wu(e[0]))+e.slice(1).join(Bs)}function ru(e){return e.indexOf("\\")!==-1?e.replace(Bde,Bs):e}function gT(e){if(!Dt(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 Fi(e,...t){e&&(e=ru(e));for(let r of t)r&&(r=ru(r),!e||nm(r)!==0?e=r:e=Wu(e)+r);return e}function Ov(e,...t){return Xo(Dt(t)?Fi(e,...t):ru(e))}function vD(e,t){return gT(md(e,t))}function Ma(e,t){return wb(vD(e,t))}function Xo(e){if(e=ru(e),!TD.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!TD.test(e)))return e;const r=wb(gT(md(e)));return r&&Nv(e)?Wu(r):r}function q3e(e){return e.length===0?"":e.slice(1).join(Bs)}function Sz(e,t){return q3e(vD(e,t))}function Js(e,t,r){const i=Fm(e)?Xo(e):Ma(e,t);return r(i)}function yT(e){return Nv(e)?e.substr(0,e.length-1):e}function Wu(e){return Nv(e)?e:e+Bs}function Db(e){return!jI(e)&&!wf(e)?"./"+e:e}function xz(e,t,r,i){const o=r!==void 0&&i!==void 0?hM(e,r,i):hM(e);return o?e.slice(0,e.length-o.length)+(xa(t,".")?t:"."+t):e}function Az(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,nm(e)),o=t.substring(0,nm(t)),s=V7(i,o);if(s!==0)return s;const c=e.substring(i.length),_=t.substring(o.length);if(!TD.test(c)&&!TD.test(_))return r(c,_);const d=gT(md(e)),v=gT(md(t)),g=Math.min(d.length,v.length);for(let T=1;T<g;T++){const C=r(d[T],v[T]);if(C!==0)return C}return qs(d.length,v.length)}function J3e(e,t){return Az(e,t,ju)}function K3e(e,t){return Az(e,t,V7)}function vT(e,t,r,i){return typeof r=="string"?(e=Fi(r,e),t=Fi(r,t)):typeof r=="boolean"&&(i=r),Az(e,t,j7(i))}function Mv(e,t,r,i){if(typeof r=="string"?(e=Fi(r,e),t=Fi(r,t)):typeof r=="boolean"&&(i=r),e===void 0||t===void 0)return!1;if(e===t)return!0;const o=gT(md(e)),s=gT(md(t));if(s.length<o.length)return!1;const c=i?pS:mS;for(let _=0;_<o.length;_++)if(!(_===0?pS:c)(o[_],s[_]))return!1;return!0}function Cz(e,t,r){const i=r(e),o=r(t);return xa(i,o+"/")||xa(i,o+"\\")}function Lz(e,t,r,i){const o=gT(md(e)),s=gT(md(t));let c;for(c=0;c<o.length&&c<s.length;c++){const v=i(o[c]),g=i(s[c]);if(!(c===0?pS:r)(v,g))break}if(c===0)return s;const _=s.slice(c),d=[];for(;c<o.length;c++)d.push("..");return["",...d,..._]}function Bm(e,t,r){R.assert(nm(e)>0==nm(t)>0,"Paths must either both be absolute or both be relative");const s=Lz(e,t,(typeof r=="boolean"?r:!1)?pS:mS,typeof r=="function"?r:gl);return wb(s)}function WI(e,t,r){return Fm(e)?TS(t,e,t,r,!1):e}function bD(e,t,r){return Db(Bm(vi(e),t,r))}function TS(e,t,r,i,o){const s=Lz(Ov(r,e),Ov(r,t),mS,i),c=s[0];if(o&&Fm(c)){const _=c.charAt(0)===Bs?"file://":"file:///";s[0]=_+c}return wb(s)}function pg(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=vi(e);if(i===e)return;e=i}}function gM(e){return oc(e,"/node_modules")}var Bs,ED,Iz,Bde,TD,X3e=b({"src/compiler/path.ts"(){"use strict";Oa(),Bs="/",ED="\\",Iz="://",Bde=/\\/g,TD=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function S(e,t,r,i,o,s,c){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:c}}var m,Y3e=b({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";Cde(),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}>'?"),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."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:S(1085,1,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration: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."),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_in_strict_mode:S(1121,1,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),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."),const_declarations_must_be_initialized:S(1155,1,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:S(1156,1,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:S(1157,1,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' 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."),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."),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'."),Convert_to_type_only_import:S(1373,3,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:S(1374,3,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),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_or_nodenext_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', or 'nodenext', 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 `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:S(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),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_or_nodenext_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', or 'nodenext', 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_assertion_as_arguments:S(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion 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_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:S(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),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"),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."),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}'."),Call_target_does_not_contain_any_signatures:S(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments: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_void_nor_any_must_return_a_value:S(2355,1,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type: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_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:S(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_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."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:S(2380,1,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),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."),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_or_nodenext:S(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),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."),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_transpile_to_commonjs_require_calls:S(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile 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_an_interface_can_only_extend_named_types_and_classes:S(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:S(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_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?"),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'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:S(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),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_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:S(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0: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}'."),Tuple_members_must_all_have_names_or_all_not_have_names:S(5084,1,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),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_es2015_or_later:S(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set 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."),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."),File_0_has_an_unsupported_extension_so_skipping_it:S(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0: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."),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_1:S(6259,3,"Found_1_error_in_1_6259","Found 1 error in {1}"),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."),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.`),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."),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."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:S(8017,1,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:S(8018,1,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files: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'."),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}'?"),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."),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_concatenation:S(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),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."),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.")}}});function ad(e){return e>=79}function Gde(e){return e===31||ad(e)}function HI(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 yM(e,t){return t>=2?HI(e,Xde):t===1?HI(e,Jde):HI(e,zde)}function $3e(e,t){return t>=2?HI(e,Yde):t===1?HI(e,Kde):HI(e,qde)}function Q3e(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}function bo(e){return Zde[e]}function bT(e){return Nz.get(e)}function SD(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&&Tu(o)&&(t.push(i),i=r);break}}return t.push(i),t}function xD(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):kz(mg(e),t,r,e.text,i)}function kz(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:R.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Jo(e,SD(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?R.assert(s<e[t+1]):i!==void 0&&R.assert(s<=i.length),s)}function mg(e){return e.lineMap||(e.lineMap=SD(e.text))}function AD(e,t){const r=zI(e,t);return{line:r,character:t-e[r]}}function zI(e,t,r){let i=Rv(e,t,gl,qs,r);return i<0&&(i=~i-1,R.assert(i!==-1,"position cannot precede the beginning of the file")),i}function qI(e,t,r){if(t===r)return 0;const i=mg(e),o=Math.min(t,r),s=o===r,c=s?t:r,_=zI(i,o),d=zI(i,c,_);return s?_-d:d-_}function ll(e,t){return AD(mg(e),t)}function hg(e){return Gm(e)||Tu(e)}function Gm(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 Tu(e){return e===10||e===13||e===8232||e===8233}function JI(e){return e>=48&&e<=57}function vM(e){return JI(e)||e>=65&&e<=70||e>=97&&e<=102}function Z3e(e){return e<=1114111}function wz(e){return e>=48&&e<=55}function Ude(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 Yo(e,t,r,i,o){if(lm(t))return t;let s=!1;for(;;){const c=e.charCodeAt(t);switch(c){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&&!Tu(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(HA(e,t)){t=KI(e,t),s=!1;continue}break;case 35:if(t===0&&Dz(e,t)){t=Rz(e,t),s=!1;continue}break;case 42:if(s){t++,s=!1;continue}break;default:if(c>127&&hg(c)){t++;continue}break}return t}}function HA(e,t){if(R.assert(t>=0),t===0||Tu(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+kD<e.length){for(let i=0;i<kD;i++)if(e.charCodeAt(t+i)!==r)return!1;return r===61||e.charCodeAt(t+kD)===32}}return!1}function KI(e,t,r){r&&r(m.Merge_conflict_marker_encountered,t,kD);const i=e.charCodeAt(t),o=e.length;if(i===60||i===62)for(;t<o&&!Tu(e.charCodeAt(t));)t++;else for(R.assert(i===124||i===61);t<o;){const s=e.charCodeAt(t);if((s===61||s===62)&&s!==i&&HA(e,t))break;t++}return t}function Dz(e,t){return R.assert(t===0),TM.test(e)}function Rz(e,t){const r=TM.exec(e)[0];return t=t+r.length,t}function bM(e,t,r,i,o,s,c){let _,d,v,g,T=!1,C=i,L=c;if(r===0){C=!0;const I=EM(t);I&&(r=I.length)}e:for(;r>=0&&r<t.length;){const I=t.charCodeAt(r);switch(I){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)break e;C=!0,T&&(g=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:const M=t.charCodeAt(r+1);let k=!1;if(M===47||M===42){const U=M===47?2:3,j=r;if(r+=2,M===47)for(;r<t.length;){if(Tu(t.charCodeAt(r))){k=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(C){if(T&&(L=o(_,d,v,g,s,L),!e&&L))return L;_=j,d=r,v=U,g=k,T=!0}continue}break e;default:if(I>127&&hg(I)){T&&Tu(I)&&(g=!0),r++;continue}break e}}return T&&(L=o(_,d,v,g,s,L)),L}function CD(e,t,r,i){return bM(!1,e,t,!1,r,i)}function LD(e,t,r,i){return bM(!1,e,t,!0,r,i)}function Vde(e,t,r,i,o){return bM(!0,e,t,!1,r,i,o)}function jde(e,t,r,i,o){return bM(!0,e,t,!0,r,i,o)}function Wde(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function xh(e,t){return Vde(e,t,Wde,void 0,void 0)}function i1(e,t){return jde(e,t,Wde,void 0,void 0)}function EM(e){const t=TM.exec(e);if(t)return t[0]}function Ah(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&yM(e,t)}function a1(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&&$3e(e,t)}function W_(e,t,r){let i=Ay(e,0);if(!Ah(i,t))return!1;for(let o=Pv(i);o<e.length;o+=Pv(i))if(!a1(i=Ay(e,o),t,r))return!1;return!0}function xy(e,t,r=0,i,o,s,c){var _=i,d,v,g,T,C,L,I,M,k=0;Wt(_,s,c);var U={getStartPos:()=>g,getTextPos:()=>d,getToken:()=>C,getTokenPos:()=>T,getTokenText:()=>_.substring(T,d),getTokenValue:()=>L,hasUnicodeEscape:()=>(I&1024)!==0,hasExtendedUnicodeEscape:()=>(I&8)!==0,hasPrecedingLineBreak:()=>(I&1)!==0,hasPrecedingJSDocComment:()=>(I&2)!==0,isIdentifier:()=>C===79||C>116,isReservedWord:()=>C>=81&&C<=116,isUnterminated:()=>(I&4)!==0,getCommentDirectives:()=>M,getNumericLiteralFlags:()=>I&1008,getTokenFlags:()=>I,reScanGreaterToken:$e,reScanAsteriskEqualsToken:ze,reScanSlashToken:Ge,reScanTemplateToken:bt,reScanTemplateHeadOrNoSubstitutionTemplate:zt,scanJsxIdentifier:jn,scanJsxAttributeValue:Ln,reScanJsxAttributeValue:Zt,reScanJsxToken:nt,reScanLessThanToken:ot,reScanHashToken:sn,reScanQuestionToken:pn,reScanInvalidIdentifier:Fe,scanJsxToken:gn,scanJsDocToken:pr,scan:Je,getText:Lt,clearCommentDirectives:yn,setText:Wt,setScriptTarget:Bn,setLanguageVariant:lr,setOnError:In,setTextPos:Oi,setInJSDocType:bi,tryScan:Or,lookAhead:ta,scanRange:ea};return R.isDebugging&&Object.defineProperty(U,"__debugShowCurrentPositionInText",{get:()=>{const Rn=U.getText();return Rn.slice(0,U.getStartPos())+"\u2551"+Rn.slice(U.getStartPos())}}),U;function j(Rn,an=d,On){if(o){const Ir=d;d=an,o(Rn,On||0),d=Ir}}function H(){let Rn=d,an=!1,On=!1,Ir="";for(;;){const Hr=_.charCodeAt(d);if(Hr===95){I|=512,an?(an=!1,On=!0,Ir+=_.substring(Rn,d)):j(On?m.Multiple_consecutive_numeric_separators_are_not_permitted:m.Numeric_separators_are_not_allowed_here,d,1),d++,Rn=d;continue}if(JI(Hr)){an=!0,On=!1,d++;continue}break}return _.charCodeAt(d-1)===95&&j(m.Numeric_separators_are_not_allowed_here,d-1,1),Ir+_.substring(Rn,d)}function ee(){const Rn=d,an=H();let On,Ir;_.charCodeAt(d)===46&&(d++,On=H());let Hr=d;if(_.charCodeAt(d)===69||_.charCodeAt(d)===101){d++,I|=16,(_.charCodeAt(d)===43||_.charCodeAt(d)===45)&&d++;const gt=d,Ot=H();Ot?(Ir=_.substring(Hr,gt)+Ot,Hr=d):j(m.Digit_expected)}let Oe;if(I&512?(Oe=an,On&&(Oe+="."+On),Ir&&(Oe+=Ir)):Oe=_.substring(Rn,Hr),On!==void 0||I&16)return X(Rn,On===void 0&&!!(I&16)),{type:8,value:""+ +Oe};{L=Oe;const gt=Ue();return X(Rn),{type:gt,value:L}}}function X(Rn,an){if(!Ah(Ay(_,d),e))return;const On=d,{length:Ir}=te();Ir===1&&_[On]==="n"?j(an?m.A_bigint_literal_cannot_use_exponential_notation:m.A_bigint_literal_must_be_an_integer,Rn,On-Rn+1):(j(m.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,On,Ir),d=On)}function ne(){const Rn=d;for(;wz(_.charCodeAt(d));)d++;return+_.substring(Rn,d)}function P(Rn,an){const On=re(Rn,!1,an);return On?parseInt(On,16):-1}function ue(Rn,an){return re(Rn,!0,an)}function re(Rn,an,On){let Ir=[],Hr=!1,Oe=!1;for(;Ir.length<Rn||an;){let gt=_.charCodeAt(d);if(On&&gt===95){I|=512,Hr?(Hr=!1,Oe=!0):j(Oe?m.Multiple_consecutive_numeric_separators_are_not_permitted:m.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(Hr=On,gt>=65&&gt<=70)gt+=97-65;else if(!(gt>=48&&gt<=57||gt>=97&&gt<=102))break;Ir.push(gt),d++,Oe=!1}return Ir.length<Rn&&(Ir=[]),_.charCodeAt(d-1)===95&&j(m.Numeric_separators_are_not_allowed_here,d-1,1),String.fromCharCode(...Ir)}function be(Rn=!1){const an=_.charCodeAt(d);d++;let On="",Ir=d;for(;;){if(d>=v){On+=_.substring(Ir,d),I|=4,j(m.Unterminated_string_literal);break}const Hr=_.charCodeAt(d);if(Hr===an){On+=_.substring(Ir,d),d++;break}if(Hr===92&&!Rn){On+=_.substring(Ir,d),On+=z(),Ir=d;continue}if(Tu(Hr)&&!Rn){On+=_.substring(Ir,d),I|=4,j(m.Unterminated_string_literal);break}d++}return On}function ae(Rn){const an=_.charCodeAt(d)===96;d++;let On=d,Ir="",Hr;for(;;){if(d>=v){Ir+=_.substring(On,d),I|=4,j(m.Unterminated_template_literal),Hr=an?14:17;break}const Oe=_.charCodeAt(d);if(Oe===96){Ir+=_.substring(On,d),d++,Hr=an?14:17;break}if(Oe===36&&d+1<v&&_.charCodeAt(d+1)===123){Ir+=_.substring(On,d),d+=2,Hr=an?15:16;break}if(Oe===92){Ir+=_.substring(On,d),Ir+=z(Rn),On=d;continue}if(Oe===13){Ir+=_.substring(On,d),d++,d<v&&_.charCodeAt(d)===10&&d++,Ir+=`
`,On=d;continue}d++}return R.assert(Hr!==void 0),L=Ir,Hr}function z(Rn){const an=d;if(d++,d>=v)return j(m.Unexpected_end_of_text),"";const On=_.charCodeAt(d);switch(d++,On){case 48:return Rn&&d<v&&JI(_.charCodeAt(d))?(d++,I|=2048,_.substring(an,d)):"\0";case 98:return"\b";case 116:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(Rn){for(let Ir=d;Ir<d+4;Ir++)if(Ir<v&&!vM(_.charCodeAt(Ir))&&_.charCodeAt(Ir)!==123)return d=Ir,I|=2048,_.substring(an,d)}if(d<v&&_.charCodeAt(d)===123){if(d++,Rn&&!vM(_.charCodeAt(d)))return I|=2048,_.substring(an,d);if(Rn){const Ir=d,Hr=ue(1,!1),Oe=Hr?parseInt(Hr,16):-1;if(!Z3e(Oe)||_.charCodeAt(d)!==125)return I|=2048,_.substring(an,d);d=Ir}return I|=8,he()}return I|=1024,ce(4);case 120:if(Rn)if(vM(_.charCodeAt(d))){if(!vM(_.charCodeAt(d+1)))return d++,I|=2048,_.substring(an,d)}else return I|=2048,_.substring(an,d);return ce(2);case 13:d<v&&_.charCodeAt(d)===10&&d++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(On)}}function ce(Rn){const an=P(Rn,!1);return an>=0?String.fromCharCode(an):(j(m.Hexadecimal_digit_expected),"")}function he(){const Rn=ue(1,!1),an=Rn?parseInt(Rn,16):-1;let On=!1;return an<0?(j(m.Hexadecimal_digit_expected),On=!0):an>1114111&&(j(m.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),On=!0),d>=v?(j(m.Unexpected_end_of_text),On=!0):_.charCodeAt(d)===125?d++:(j(m.Unterminated_Unicode_escape_sequence),On=!0),On?"":XI(an)}function Ee(){if(d+5<v&&_.charCodeAt(d+1)===117){const Rn=d;d+=2;const an=P(4,!1);return d=Rn,an}return-1}function Ae(){if(Ay(_,d+1)===117&&Ay(_,d+2)===123){const Rn=d;d+=3;const an=ue(1,!1),On=an?parseInt(an,16):-1;return d=Rn,On}return-1}function te(){let Rn="",an=d;for(;d<v;){let On=Ay(_,d);if(a1(On,e))d+=Pv(On);else if(On===92){if(On=Ae(),On>=0&&a1(On,e)){d+=3,I|=8,Rn+=he(),an=d;continue}if(On=Ee(),!(On>=0&&a1(On,e)))break;I|=1024,Rn+=_.substring(an,d),Rn+=XI(On),d+=6,an=d}else break}return Rn+=_.substring(an,d),Rn}function Ze(){const Rn=L.length;if(Rn>=2&&Rn<=12){const an=L.charCodeAt(0);if(an>=97&&an<=122){const On=Hde.get(L);if(On!==void 0)return C=On}}return C=79}function je(Rn){let an="",On=!1,Ir=!1;for(;;){const Hr=_.charCodeAt(d);if(Hr===95){I|=512,On?(On=!1,Ir=!0):j(Ir?m.Multiple_consecutive_numeric_separators_are_not_permitted:m.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(On=!0,!JI(Hr)||Hr-48>=Rn)break;an+=_[d],d++,Ir=!1}return _.charCodeAt(d-1)===95&&j(m.Numeric_separators_are_not_allowed_here,d-1,1),an}function Ue(){return _.charCodeAt(d)===110?(L+="n",I&384&&(L=Hk(L)+"n"),d++,9):(L=""+(I&128?parseInt(L.slice(2),2):I&256?parseInt(L.slice(2),8):+L),8)}function Je(){g=d,I=0;let Rn=!1;for(;;){if(T=d,d>=v)return C=1;const an=Ay(_,d);if(an===35&&d===0&&Dz(_,d)){if(d=Rz(_,d),t)continue;return C=6}switch(an){case 10:case 13:if(I|=1,t){d++;continue}else return an===13&&d+1<v&&_.charCodeAt(d+1)===10?d+=2:d++,C=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){d++;continue}else{for(;d<v&&Gm(_.charCodeAt(d));)d++;return C=5}case 33:return _.charCodeAt(d+1)===61?_.charCodeAt(d+2)===61?(d+=3,C=37):(d+=2,C=35):(d++,C=53);case 34:case 39:return L=be(),C=10;case 96:return C=ae(!1);case 37:return _.charCodeAt(d+1)===61?(d+=2,C=69):(d++,C=44);case 38:return _.charCodeAt(d+1)===38?_.charCodeAt(d+2)===61?(d+=3,C=76):(d+=2,C=55):_.charCodeAt(d+1)===61?(d+=2,C=73):(d++,C=50);case 40:return d++,C=20;case 41:return d++,C=21;case 42:if(_.charCodeAt(d+1)===61)return d+=2,C=66;if(_.charCodeAt(d+1)===42)return _.charCodeAt(d+2)===61?(d+=3,C=67):(d+=2,C=42);if(d++,k&&!Rn&&I&1){Rn=!0;continue}return C=41;case 43:return _.charCodeAt(d+1)===43?(d+=2,C=45):_.charCodeAt(d+1)===61?(d+=2,C=64):(d++,C=39);case 44:return d++,C=27;case 45:return _.charCodeAt(d+1)===45?(d+=2,C=46):_.charCodeAt(d+1)===61?(d+=2,C=65):(d++,C=40);case 46:return JI(_.charCodeAt(d+1))?(L=ee().value,C=8):_.charCodeAt(d+1)===46&&_.charCodeAt(d+2)===46?(d+=3,C=25):(d++,C=24);case 47:if(_.charCodeAt(d+1)===47){for(d+=2;d<v&&!Tu(_.charCodeAt(d));)d++;if(M=lt(M,_.slice(T,d),$de,T),t)continue;return C=2}if(_.charCodeAt(d+1)===42){d+=2,_.charCodeAt(d)===42&&_.charCodeAt(d+1)!==47&&(I|=2);let Ot=!1,Le=T;for(;d<v;){const pt=_.charCodeAt(d);if(pt===42&&_.charCodeAt(d+1)===47){d+=2,Ot=!0;break}d++,Tu(pt)&&(Le=d,I|=1)}if(M=lt(M,_.slice(Le,d),Qde,Le),Ot||j(m.Asterisk_Slash_expected),t)continue;return Ot||(I|=4),C=3}return _.charCodeAt(d+1)===61?(d+=2,C=68):(d++,C=43);case 48:if(d+2<v&&(_.charCodeAt(d+1)===88||_.charCodeAt(d+1)===120))return d+=2,L=ue(1,!0),L||(j(m.Hexadecimal_digit_expected),L="0"),L="0x"+L,I|=64,C=Ue();if(d+2<v&&(_.charCodeAt(d+1)===66||_.charCodeAt(d+1)===98))return d+=2,L=je(2),L||(j(m.Binary_digit_expected),L="0"),L="0b"+L,I|=128,C=Ue();if(d+2<v&&(_.charCodeAt(d+1)===79||_.charCodeAt(d+1)===111))return d+=2,L=je(8),L||(j(m.Octal_digit_expected),L="0"),L="0o"+L,I|=256,C=Ue();if(d+1<v&&wz(_.charCodeAt(d+1)))return L=""+ne(),I|=32,C=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return{type:C,value:L}=ee(),C;case 58:return d++,C=58;case 59:return d++,C=26;case 60:if(HA(_,d)){if(d=KI(_,d,j),t)continue;return C=7}return _.charCodeAt(d+1)===60?_.charCodeAt(d+2)===61?(d+=3,C=70):(d+=2,C=47):_.charCodeAt(d+1)===61?(d+=2,C=32):r===1&&_.charCodeAt(d+1)===47&&_.charCodeAt(d+2)!==42?(d+=2,C=30):(d++,C=29);case 61:if(HA(_,d)){if(d=KI(_,d,j),t)continue;return C=7}return _.charCodeAt(d+1)===61?_.charCodeAt(d+2)===61?(d+=3,C=36):(d+=2,C=34):_.charCodeAt(d+1)===62?(d+=2,C=38):(d++,C=63);case 62:if(HA(_,d)){if(d=KI(_,d,j),t)continue;return C=7}return d++,C=31;case 63:return _.charCodeAt(d+1)===46&&!JI(_.charCodeAt(d+2))?(d+=2,C=28):_.charCodeAt(d+1)===63?_.charCodeAt(d+2)===61?(d+=3,C=77):(d+=2,C=60):(d++,C=57);case 91:return d++,C=22;case 93:return d++,C=23;case 94:return _.charCodeAt(d+1)===61?(d+=2,C=78):(d++,C=52);case 123:return d++,C=18;case 124:if(HA(_,d)){if(d=KI(_,d,j),t)continue;return C=7}return _.charCodeAt(d+1)===124?_.charCodeAt(d+2)===61?(d+=3,C=75):(d+=2,C=56):_.charCodeAt(d+1)===61?(d+=2,C=74):(d++,C=51);case 125:return d++,C=19;case 126:return d++,C=54;case 64:return d++,C=59;case 92:const On=Ae();if(On>=0&&Ah(On,e))return d+=3,I|=8,L=he()+te(),C=Ze();const Ir=Ee();return Ir>=0&&Ah(Ir,e)?(d+=6,I|=1024,L=String.fromCharCode(Ir)+te(),C=Ze()):(j(m.Invalid_character),d++,C=0);case 35:if(d!==0&&_[d+1]==="!")return j(m.can_only_be_used_at_the_start_of_a_file),d++,C=0;const Hr=Ay(_,d+1);if(Hr===92){d++;const Ot=Ae();if(Ot>=0&&Ah(Ot,e))return d+=3,I|=8,L="#"+he()+te(),C=80;const Le=Ee();if(Le>=0&&Ah(Le,e))return d+=6,I|=1024,L="#"+String.fromCharCode(Le)+te(),C=80;d--}return Ah(Hr,e)?(d++,Be(Hr,e)):(L="#",j(m.Invalid_character,d++,Pv(an))),C=80;default:const Oe=Be(an,e);if(Oe)return C=Oe;if(Gm(an)){d+=Pv(an);continue}else if(Tu(an)){I|=1,d+=Pv(an);continue}const gt=Pv(an);return j(m.Invalid_character,d,gt),d+=gt,C=0}}}function Fe(){R.assert(C===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),d=T=g,I=0;const Rn=Ay(_,d),an=Be(Rn,99);return an?C=an:(d+=Pv(Rn),C)}function Be(Rn,an){let On=Rn;if(Ah(On,an)){for(d+=Pv(On);d<v&&a1(On=Ay(_,d),an);)d+=Pv(On);return L=_.substring(T,d),On===92&&(L+=te()),Ze()}}function $e(){if(C===31){if(_.charCodeAt(d)===62)return _.charCodeAt(d+1)===62?_.charCodeAt(d+2)===61?(d+=3,C=72):(d+=2,C=49):_.charCodeAt(d+1)===61?(d+=2,C=71):(d++,C=48);if(_.charCodeAt(d)===61)return d++,C=33}return C}function ze(){return R.assert(C===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),d=T+1,C=63}function Ge(){if(C===43||C===68){let Rn=T+1,an=!1,On=!1;for(;;){if(Rn>=v){I|=4,j(m.Unterminated_regular_expression_literal);break}const Ir=_.charCodeAt(Rn);if(Tu(Ir)){I|=4,j(m.Unterminated_regular_expression_literal);break}if(an)an=!1;else if(Ir===47&&!On){Rn++;break}else Ir===91?On=!0:Ir===92?an=!0:Ir===93&&(On=!1);Rn++}for(;Rn<v&&a1(_.charCodeAt(Rn),e);)Rn++;d=Rn,L=_.substring(T,d),C=13}return C}function lt(Rn,an,On,Ir){const Hr=Ct(GI(an),On);return Hr===void 0?Rn:Pn(Rn,{range:{pos:Ir,end:d},type:Hr})}function Ct(Rn,an){const On=an.exec(Rn);if(On)switch(On[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function bt(Rn){return R.assert(C===19,"'reScanTemplateToken' should only be called on a '}'"),d=T,C=ae(Rn)}function zt(){return d=T,C=ae(!0)}function nt(Rn=!0){return d=T=g,C=gn(Rn)}function ot(){return C===47?(d=T+1,C=29):C}function sn(){return C===80?(d=T+1,C=62):C}function pn(){return R.assert(C===60,"'reScanQuestionToken' should only be called on a '??'"),d=T+1,C=57}function gn(Rn=!0){if(g=T=d,d>=v)return C=1;let an=_.charCodeAt(d);if(an===60)return _.charCodeAt(d+1)===47?(d+=2,C=30):(d++,C=29);if(an===123)return d++,C=18;let On=0;for(;d<v&&(an=_.charCodeAt(d),an!==123);){if(an===60){if(HA(_,d))return d=KI(_,d,j),C=7;break}if(an===62&&j(m.Unexpected_token_Did_you_mean_or_gt,d,1),an===125&&j(m.Unexpected_token_Did_you_mean_or_rbrace,d,1),Tu(an)&&On===0)On=-1;else{if(!Rn&&Tu(an)&&On>0)break;hg(an)||(On=d)}d++}return L=_.substring(g,d),On===-1?12:11}function jn(){if(ad(C)){let Rn=!1;for(;d<v;){const an=_.charCodeAt(d);if(an===45){L+="-",d++;continue}else if(an===58&&!Rn){L+=":",d++,Rn=!0,C=79;continue}const On=d;if(L+=te(),d===On)break}return L.slice(-1)===":"&&(L=L.slice(0,-1),d--),Ze()}return C}function Ln(){switch(g=d,_.charCodeAt(d)){case 34:case 39:return L=be(!0),C=10;default:return Je()}}function Zt(){return d=T=g,Ln()}function pr(){if(g=T=d,I=0,d>=v)return C=1;const Rn=Ay(_,d);switch(d+=Pv(Rn),Rn){case 9:case 11:case 12:case 32:for(;d<v&&Gm(_.charCodeAt(d));)d++;return C=5;case 64:return C=59;case 13:_.charCodeAt(d)===10&&d++;case 10:return I|=1,C=4;case 42:return C=41;case 123:return C=18;case 125:return C=19;case 91:return C=22;case 93:return C=23;case 60:return C=29;case 62:return C=31;case 61:return C=63;case 44:return C=27;case 46:return C=24;case 96:return C=61;case 35:return C=62;case 92:d--;const an=Ae();if(an>=0&&Ah(an,e))return d+=3,I|=8,L=he()+te(),C=Ze();const On=Ee();return On>=0&&Ah(On,e)?(d+=6,I|=1024,L=String.fromCharCode(On)+te(),C=Ze()):(d++,C=0)}if(Ah(Rn,e)){let an=Rn;for(;d<v&&a1(an=Ay(_,d),e)||_.charCodeAt(d)===45;)d+=Pv(an);return L=_.substring(T,d),an===92&&(L+=te()),C=Ze()}else return C=0}function Ii(Rn,an){const On=d,Ir=g,Hr=T,Oe=C,gt=L,Ot=I,Le=Rn();return(!Le||an)&&(d=On,g=Ir,T=Hr,C=Oe,L=gt,I=Ot),Le}function ea(Rn,an,On){const Ir=v,Hr=d,Oe=g,gt=T,Ot=C,Le=L,pt=I,me=M;Wt(_,Rn,an);const ie=On();return v=Ir,d=Hr,g=Oe,T=gt,C=Ot,L=Le,I=pt,M=me,ie}function ta(Rn){return Ii(Rn,!0)}function Or(Rn){return Ii(Rn,!1)}function Lt(){return _}function yn(){M=void 0}function Wt(Rn,an,On){_=Rn||"",v=On===void 0?_.length:an+On,Oi(an||0)}function In(Rn){o=Rn}function Bn(Rn){e=Rn}function lr(Rn){r=Rn}function Oi(Rn){R.assert(Rn>=0),d=Rn,g=Rn,T=Rn,C=0,L=void 0,I=0}function bi(Rn){k+=Rn?1:-1}}function Pv(e){return e>=65536?2:1}function e7e(e){if(R.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 XI(e){return efe(e)}var ID,Hde,Nz,zde,qde,Jde,Kde,Xde,Yde,$de,Qde,Zde,kD,TM,Ay,efe,t7e=b({"src/compiler/scanner.ts"(){"use strict";Oa(),ID={abstract:126,accessor:127,any:131,as:128,asserts:129,assert:130,bigint:160,boolean:134,break:81,case:82,catch:83,class:84,continue:86,const:85,constructor:135,debugger:87,declare:136,default:88,delete:89,do:90,else:91,enum:92,export:93,extends:94,false:95,finally:96,for:97,from:158,function:98,get:137,if:99,implements:117,import:100,in:101,infer:138,instanceof:102,interface:118,intrinsic:139,is:140,keyof:141,let:119,module:142,namespace:143,never:144,new:103,null:104,number:148,object:149,package:120,private:121,protected:122,public:123,override:161,out:145,readonly:146,require:147,global:159,return:105,satisfies:150,set:151,static:124,string:152,super:106,switch:107,symbol:153,this:108,throw:109,true:110,try:111,type:154,typeof:112,undefined:155,unique:156,unknown:157,var:113,void:114,while:115,with:116,yield:125,async:132,await:133,of:162},Hde=new Map(Object.entries(ID)),Nz=new Map(Object.entries(so(Li({},ID),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),zde=[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],qde=[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],Jde=[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],Kde=[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],Xde=[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],Yde=[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],$de=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Qde=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Zde=Q3e(Nz),kD=7,TM=/^#!.*/,Ay=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(t,r){const i=t.length;if(r<0||r>=i)return;const o=t.charCodeAt(r);if(o>=55296&&o<=56319&&i>r+1){const s=t.charCodeAt(r+1);if(s>=56320&&s<=57343)return(o-55296)*1024+s-56320+65536}return o},efe=String.fromCodePoint?e=>String.fromCodePoint(e):e7e}});function zc(e){return wf(e)||Fm(e)}function zA(e){return Yw(e,Gk)}function SM(e){switch(ns(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 cu(e){return e.start+e.length}function tfe(e){return e.length===0}function Oz(e,t){return t>=e.start&&t<cu(e)}function xM(e,t){return t>=e.pos&&t<=e.end}function nfe(e,t){return t.start>=e.start&&cu(t)<=cu(e)}function n7e(e,t){return rfe(e,t)!==void 0}function rfe(e,t){const r=afe(e,t);return r&&r.length===0?void 0:r}function r7e(e,t){return CM(e.start,e.length,t.start,t.length)}function AM(e,t,r){return CM(e.start,e.length,t,r)}function CM(e,t,r,i){const o=e+t,s=r+i;return r<=o&&s>=e}function ife(e,t){return t<=cu(e)&&t>=e.start}function afe(e,t){const r=Math.max(e.start,t.start),i=Math.min(cu(e),cu(t));return r<=i?Ec(r,i):void 0}function Mc(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Ec(e,t){return Mc(e,t-e)}function YI(e){return Mc(e.span.start,e.newLength)}function ofe(e){return tfe(e.span)&&e.newLength===0}function wD(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function i7e(e){if(e.length===0)return dq;if(e.length===1)return e[0];const t=e[0];let r=t.span.start,i=cu(t.span),o=r+t.newLength;for(let s=1;s<e.length;s++){const c=e[s],_=r,d=i,v=o,g=c.span.start,T=cu(c.span),C=g+c.newLength;r=Math.min(_,g),i=Math.max(d,d+(T-v)),o=Math.max(C,C+(v-T))}return wD(Ec(r,i),o-r)}function a7e(e){if(e&&e.kind===165){for(let t=e;t;t=t.parent)if(Ya(t)||_i(t)||t.kind===261)return t}}function cf(e,t){return Ba(e)&&Qr(e,16476)&&t.kind===173}function sfe(e){return $a(e)?Qn(e.elements,lfe):!1}function lfe(e){return Fc(e)?!0:sfe(e.name)}function qA(e){let t=e.parent;for(;ms(t.parent);)t=t.parent.parent;return t.parent}function Mz(e,t){ms(e)&&(e=qA(e));let r=t(e);return e.kind===257&&(e=e.parent),e&&e.kind===258&&(r|=t(e),e=e.parent),e&&e.kind===240&&(r|=t(e)),r}function Cy(e){return Mz(e,zu)}function Pz(e){return Mz(e,hpe)}function Ap(e){return Mz(e,t=>t.flags)}function o7e(e,t,r){const i=e.toLowerCase(),o=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(!o){r&&r.push(Gs(m.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}const s=o[1],c=o[3];Fr(fq,i)&&!_(s,c,r)&&_(s,void 0,r),Xue(e);function _(d,v,g){const T=Xo(t.getExecutingFilePath()),C=vi(T);let L=Fi(C,d);if(v&&(L=L+"-"+v),L=t.resolvePath(Fi(L,"diagnosticMessages.generated.json")),!t.fileExists(L))return!1;let I="";try{I=t.readFile(L)}catch(M){return g&&g.push(Gs(m.Unable_to_open_file_0,L)),!1}try{Bpe(JSON.parse(I))}catch(M){return g&&g.push(Gs(m.Corrupted_locale_file_0,L)),!1}return!0}}function Cl(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function rr(e,t){for(;e;){const r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function $I(e){return(e.flags&8)===0}function Ea(e,t){if(e===void 0||$I(e))return e;for(e=e.original;e;){if($I(e))return!t||t(e)?e:void 0;e=e.original}}function cl(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function ia(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 Pr(e){return ia(e.escapedText)}function o1(e){const t=bT(e.escapedText);return t?li(t,Dd):void 0}function Gl(e){return e.valueDeclaration&&od(e.valueDeclaration)?Pr(e.valueDeclaration.name):ia(e.escapedName)}function cfe(e){const t=e.parent.parent;if(t){if(Au(t))return LM(t);switch(t.kind){case 240:if(t.declarationList&&t.declarationList.declarations[0])return LM(t.declarationList.declarations[0]);break;case 241:let r=t.expression;switch(r.kind===223&&r.operatorToken.kind===63&&(r=r.left),r.kind){case 208:return r.name;case 209:const i=r.argumentExpression;if(We(i))return i}break;case 214:return LM(t.expression);case 253:{if(Au(t.statement)||yt(t.statement))return LM(t.statement);break}}}}function LM(e){const t=ka(e);return t&&We(t)?t:void 0}function DD(e,t){return!!(Su(e)&&We(e.name)&&Pr(e.name)===Pr(t)||pc(e)&&Dt(e.declarationList.declarations,r=>DD(r,t)))}function ufe(e){return e.name||cfe(e)}function Su(e){return!!e.name}function Fz(e){switch(e.kind){case 79:return e;case 351:case 344:{const{name:r}=e;if(r.kind===163)return r.right;break}case 210:case 223:{const r=e;switch(wl(r)){case 1:case 4:case 5:case 3:return yP(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 349:return ufe(e);case 343:return cfe(e);case 274:{const{expression:r}=e;return We(r)?r:void 0}case 209:const t=e;if(gP(t))return t.argumentExpression}return e.name}function ka(e){if(e!==void 0)return Fz(e)||(Us(e)||Xs(e)||Ku(e)?Bz(e):void 0)}function Bz(e){if(e.parent){if($c(e.parent)||ms(e.parent))return e.parent.name;if(Tr(e.parent)&&e===e.parent.right){if(We(e.parent.left))return e.parent.left;if(ul(e.parent.left))return yP(e.parent.left)}else if($i(e.parent)&&We(e.parent.name))return e.parent.name}else return}function Fv(e){if(i_(e))return ur(e.modifiers,qu)}function ET(e){if(Qr(e,126975))return ur(e.modifiers,po)}function dfe(e,t){if(e.name)if(We(e.name)){const r=e.name.escapedText;return ZI(e.parent,t).filter(i=>_m(i)&&We(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);R.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=ZI(e.parent,t).filter(_m);if(r<i.length)return[i[r]]}return it}function QI(e){return dfe(e,!1)}function ffe(e){return dfe(e,!0)}function _fe(e,t){const r=e.name.escapedText;return ZI(e.parent,t).filter(i=>wp(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function pfe(e){return _fe(e,!1)}function mfe(e){return _fe(e,!0)}function hfe(e){return!!t_(e,_m)}function gfe(e){return t_(e,YC)}function yfe(e){return Wz(e,lX)}function Gz(e){return t_(e,vhe)}function s7e(e){return t_(e,nX)}function vfe(e){return t_(e,nX,!0)}function l7e(e){return t_(e,rX)}function bfe(e){return t_(e,rX,!0)}function c7e(e){return t_(e,iX)}function Efe(e){return t_(e,iX,!0)}function u7e(e){return t_(e,aX)}function Tfe(e){return t_(e,aX,!0)}function Sfe(e){return t_(e,z5,!0)}function Uz(e){return t_(e,oX)}function xfe(e){return t_(e,oX,!0)}function Vz(e){return t_(e,C6)}function IM(e){return t_(e,bhe)}function Afe(e){return t_(e,q5)}function d7e(e){return t_(e,wp)}function jz(e){return t_(e,J5)}function Rb(e){const t=t_(e,h4);if(t&&t.typeExpression&&t.typeExpression.type)return t}function Bv(e){let t=t_(e,h4);return!t&&Ba(e)&&(t=$t(QI(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function RD(e){const t=Afe(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=Rb(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(hf(i)){const o=$t(i.members,GC);return o&&o.type}if(Ph(i)||XC(i))return i.type}}function ZI(e,t){var r,i;if(!hR(e))return it;let o=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(o===void 0||t){const s=Xq(e,t);R.assert(s.length<2||s[0]!==s[1]),o=ji(s,c=>eh(c)?c.tags:c),t||((i=e.jsDoc)!=null||(e.jsDoc=[]),e.jsDoc.jsDocCache=o)}return o}function Nb(e){return ZI(e,!1)}function f7e(e){return ZI(e,!0)}function t_(e,t,r){return $t(ZI(e,r),t)}function Wz(e,t){return Nb(e).filter(t)}function _7e(e,t){return Nb(e).filter(r=>r.kind===t)}function ND(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===324?t.text:p7e(t)).join("")}function p7e(e){const t=e.kind===327?"link":e.kind===328?"linkcode":"linkplain",r=e.name?Rf(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function Gv(e){if(rE(e)){if(m4(e.parent)){const t=vk(e.parent);if(t&&ge(t.tags))return ji(t.tags,r=>wp(r)?r.typeParameters:void 0)}return it}if(T_(e))return R.assert(e.parent.kind===323),ji(e.parent.tags,t=>wp(t)?t.typeParameters:void 0);if(e.typeParameters||Dhe(e)&&e.typeParameters)return e.typeParameters;if(_r(e)){const t=kP(e);if(t.length)return t;const r=Bv(e);if(r&&Ph(r)&&r.typeParameters)return r.typeParameters}return it}function JA(e){return e.constraint?e.constraint:wp(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function gg(e){return e.kind===79||e.kind===80}function kM(e){return e.kind===175||e.kind===174}function wM(e){return Br(e)&&!!(e.flags&32)}function Hz(e){return dl(e)&&!!(e.flags&32)}function TT(e){return io(e)&&!!(e.flags&32)}function xu(e){const t=e.kind;return!!(e.flags&32)&&(t===208||t===209||t===210||t===232)}function ek(e){return xu(e)&&!ax(e)&&!!e.questionDotToken}function DM(e){return ek(e.parent)&&e.parent.expression===e}function tk(e){return!xu(e.parent)||ek(e.parent)||e!==e.parent.expression}function zz(e){return e.kind===223&&e.operatorToken.kind===60}function yg(e){return ep(e)&&We(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function H_(e){return Cu(e,8)}function RM(e){return ax(e)&&!!(e.flags&32)}function nk(e){return e.kind===249||e.kind===248}function qz(e){return e.kind===277||e.kind===276}function Cfe(e){switch(e.kind){case 305:case 306:return!0;default:return!1}}function Jz(e){return Cfe(e)||e.kind===303||e.kind===307}function NM(e){return e.kind===351||e.kind===344}function m7e(e){return OD(e.kind)}function OD(e){return e>=163}function Kz(e){return e>=0&&e<=162}function SS(e){return Kz(e.kind)}function Ob(e){return Fs(e,"pos")&&Fs(e,"end")}function rk(e){return 8<=e&&e<=14}function ST(e){return rk(e.kind)}function Xz(e){switch(e.kind){case 207:case 206:case 13:case 215:case 228:return!0}return!1}function Uv(e){return 14<=e&&e<=17}function Lfe(e){return Uv(e.kind)}function OM(e){const t=e.kind;return t===16||t===17}function xS(e){return Nd(e)||yd(e)}function Yz(e){switch(e.kind){case 273:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 271:return e.parent.isTypeOnly;case 270:case 268:return e.isTypeOnly}return!1}function Ife(e){switch(e.kind){case 278:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 275:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 277:return e.parent.isTypeOnly}return!1}function Mb(e){return Yz(e)||Ife(e)}function kfe(e){return Wo(e)||We(e)}function $z(e){return e.kind===10||Uv(e.kind)}function Ll(e){var t;return We(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function AS(e){var t;return Ri(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function od(e){return(ro(e)||YA(e))&&Ri(e.name)}function KA(e){return Br(e)&&Ri(e.name)}function Ly(e){switch(e){case 126:case 127:case 132:case 85:case 136:case 88:case 93:case 101:case 123:case 121:case 122:case 146:case 124:case 145:case 161:return!0}return!1}function ik(e){return!!(VS(e)&16476)}function Qz(e){return ik(e)||e===124||e===161||e===127}function po(e){return Ly(e.kind)}function uf(e){const t=e.kind;return t===163||t===79}function bl(e){const t=e.kind;return t===79||t===80||t===10||t===8||t===164}function Ch(e){const t=e.kind;return t===79||t===203||t===204}function Ya(e){return!!e&&CS(e.kind)}function XA(e){return!!e&&(CS(e.kind)||Rl(e))}function el(e){return e&&Dfe(e.kind)}function wfe(e){return e.kind===110||e.kind===95}function Dfe(e){switch(e){case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function CS(e){switch(e){case 170:case 176:case 326:case 177:case 178:case 181:case 320:case 182:return!0;default:return Dfe(e)}}function Zz(e){return Ki(e)||dm(e)||fo(e)&&Ya(e.parent)}function qc(e){const t=e.kind;return t===173||t===169||t===171||t===174||t===175||t===178||t===172||t===237}function _i(e){return e&&(e.kind===260||e.kind===228)}function s1(e){return e&&(e.kind===174||e.kind===175)}function df(e){return ro(e)&&qm(e)}function YA(e){switch(e.kind){case 171:case 174:case 175:return!0;default:return!1}}function Rfe(e){switch(e.kind){case 171:case 174:case 175:case 169:return!0;default:return!1}}function il(e){return po(e)||qu(e)}function xT(e){const t=e.kind;return t===177||t===176||t===168||t===170||t===178||t===174||t===175}function MM(e){return xT(e)||qc(e)}function Iy(e){const t=e.kind;return t===299||t===300||t===301||t===171||t===174||t===175}function Bi(e){return NJ(e.kind)}function Nfe(e){switch(e.kind){case 181:case 182:return!0}return!1}function $a(e){if(e){const t=e.kind;return t===204||t===203}return!1}function ak(e){const t=e.kind;return t===206||t===207}function PM(e){const t=e.kind;return t===205||t===229}function MD(e){switch(e.kind){case 257:case 166:case 205:return!0}return!1}function Ofe(e){return $i(e)||Ba(e)||FD(e)||BD(e)}function PD(e){return eq(e)||tq(e)}function eq(e){switch(e.kind){case 203:case 207:return!0}return!1}function FD(e){switch(e.kind){case 205:case 299:case 300:case 301:return!0}return!1}function tq(e){switch(e.kind){case 204:case 206:return!0}return!1}function BD(e){switch(e.kind){case 205:case 229:case 227:case 206:case 207:case 79:case 208:case 209:return!0}return cd(e,!0)}function Mfe(e){const t=e.kind;return t===208||t===163||t===202}function Pfe(e){const t=e.kind;return t===208||t===163}function LS(e){switch(e.kind){case 283:case 282:case 210:case 211:case 212:case 167:return!0;default:return!1}}function vg(e){return e.kind===210||e.kind===211}function $A(e){const t=e.kind;return t===225||t===14}function Id(e){return Ffe(H_(e).kind)}function Ffe(e){switch(e){case 208:case 209:case 211:case 210:case 281:case 282:case 285:case 212:case 206:case 214:case 207:case 228:case 215:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 225:case 95:case 104:case 108:case 110:case 106:case 232:case 230:case 233:case 100:case 279:return!0;default:return!1}}function nq(e){return Bfe(H_(e).kind)}function Bfe(e){switch(e){case 221:case 222:case 217:case 218:case 219:case 220:case 213:return!0;default:return Ffe(e)}}function Gfe(e){switch(e.kind){case 222:return!0;case 221:return e.operator===45||e.operator===46;default:return!1}}function Ufe(e){switch(e.kind){case 104:case 110:case 95:case 221:return!0;default:return ST(e)}}function yt(e){return h7e(H_(e).kind)}function h7e(e){switch(e){case 224:case 226:case 216:case 223:case 227:case 231:case 229:case 357:case 356:case 235:return!0;default:return Bfe(e)}}function AT(e){const t=e.kind;return t===213||t===231}function g7e(e){return QK(e)||V5(e)}function Vv(e,t){switch(e.kind){case 245:case 246:case 247:case 243:case 244:return!0;case 253:return t&&Vv(e.statement,t)}return!1}function Vfe(e){return Vl(e)||au(e)}function jfe(e){return Dt(e,Vfe)}function FM(e){return!JD(e)&&!Vl(e)&&!Qr(e,1)&&!Hu(e)}function GD(e){return JD(e)||Vl(e)||Qr(e,1)}function QA(e){return e.kind===246||e.kind===247}function BM(e){return fo(e)||yt(e)}function rq(e){return fo(e)}function rm(e){return Xu(e)||yt(e)}function Wfe(e){const t=e.kind;return t===265||t===264||t===79}function y7e(e){const t=e.kind;return t===265||t===264}function v7e(e){const t=e.kind;return t===79||t===264}function iq(e){const t=e.kind;return t===272||t===271}function UD(e){return e.kind===264||e.kind===263}function Um(e){switch(e.kind){case 216:case 223:case 205:case 210:case 176:case 260:case 228:case 172:case 173:case 182:case 177:case 209:case 263:case 302:case 274:case 275:case 278:case 259:case 215:case 181:case 174:case 79:case 270:case 268:case 273:case 178:case 261:case 341:case 343:case 320:case 344:case 351:case 326:case 349:case 325:case 288:case 289:case 290:case 197:case 171:case 170:case 264:case 199:case 277:case 267:case 271:case 211:case 14:case 8:case 207:case 166:case 208:case 299:case 169:case 168:case 175:case 300:case 308:case 301:case 10:case 262:case 184:case 165:case 257:return!0;default:return!1}}function Vm(e){switch(e.kind){case 216:case 238:case 176:case 266:case 295:case 172:case 191:case 173:case 182:case 177:case 245:case 246:case 247:case 259:case 215:case 181:case 174:case 178:case 341:case 343:case 320:case 326:case 349:case 197:case 171:case 170:case 264:case 175:case 308:case 262:return!0;default:return!1}}function b7e(e){return e===216||e===205||e===260||e===228||e===172||e===173||e===263||e===302||e===278||e===259||e===215||e===174||e===270||e===268||e===273||e===261||e===288||e===171||e===170||e===264||e===267||e===271||e===277||e===166||e===299||e===169||e===168||e===175||e===300||e===262||e===165||e===257||e===349||e===341||e===351}function aq(e){return e===259||e===279||e===260||e===261||e===262||e===263||e===264||e===269||e===268||e===275||e===274||e===267}function oq(e){return e===249||e===248||e===256||e===243||e===241||e===239||e===246||e===247||e===245||e===242||e===253||e===250||e===252||e===254||e===255||e===240||e===244||e===251||e===355||e===359||e===358}function Au(e){return e.kind===165?e.parent&&e.parent.kind!==348||_r(e):b7e(e.kind)}function Hfe(e){return aq(e.kind)}function VD(e){return oq(e.kind)}function wa(e){const t=e.kind;return oq(t)||aq(t)||E7e(e)}function E7e(e){return e.kind!==238||e.parent!==void 0&&(e.parent.kind===255||e.parent.kind===295)?!1:!DT(e)}function zfe(e){const t=e.kind;return oq(t)||aq(t)||t===238}function qfe(e){const t=e.kind;return t===280||t===163||t===79}function ok(e){const t=e.kind;return t===108||t===79||t===208}function jD(e){const t=e.kind;return t===281||t===291||t===282||t===11||t===285}function GM(e){const t=e.kind;return t===288||t===290}function Jfe(e){const t=e.kind;return t===10||t===291}function sd(e){const t=e.kind;return t===283||t===282}function sq(e){const t=e.kind;return t===292||t===293}function ZA(e){return e.kind>=312&&e.kind<=353}function lq(e){return e.kind===323||e.kind===322||e.kind===324||IS(e)||sk(e)||p4(e)||rE(e)}function sk(e){return e.kind>=330&&e.kind<=353}function ky(e){return e.kind===175}function jv(e){return e.kind===174}function Df(e){if(!hR(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function UM(e){return!!e.type}function Wv(e){return!!e.initializer}function CT(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:case 302:return!0;default:return!1}}function cq(e){return e.kind===288||e.kind===290||Iy(e)}function VM(e){return e.kind===180||e.kind===230}function Kfe(e){let t=_q;for(const r of e){if(!r.length)continue;let i=0;for(;i<r.length&&i<t&&hg(r.charCodeAt(i));i++);if(i<t&&(t=i),t===0)return 0}return t===_q?void 0:t}function As(e){return e.kind===10||e.kind===14}function IS(e){return e.kind===327||e.kind===328||e.kind===329}function uq(e){const t=rl(e.parameters);return!!t&&Lh(t)}function Lh(e){const t=_m(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===321}var dq,fq,_q,T7e=b({"src/compiler/utilitiesPublic.ts"(){"use strict";Oa(),dq=wD(Mc(0,0),0),fq=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],_q=1073741823}});function Il(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function Xfe(e,t){return ur(e.declarations||it,r=>r.kind===t)}function uo(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function jm(e){return(e.flags&33554432)!==0}function S7e(){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&&hg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:co,decreaseIndent:co,clear:()=>e=""}}function pq(e,t){return e.configFilePath!==t.configFilePath||Yfe(e,t)}function Yfe(e,t){return eC(e,t,p9)}function $fe(e,t){return eC(e,t,QX)}function eC(e,t,r){return e!==t&&r.some(i=>!QJ(UP(e,i),UP(t,i)))}function Qfe(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Ki(e))return;e=e.parent}}function ff(e,t){const r=e.entries();for(const[i,o]of r){const s=t(o,i);if(s)return s}}function lk(e,t){const r=e.keys();for(const i of r){const o=t(i);if(o)return o}}function WD(e,t){e.forEach((r,i)=>{t.set(i,r)})}function ck(e){const t=Yk.getText();try{return e(Yk),Yk.getText()}finally{Yk.clear(),Yk.writeKeyword(t)}}function HD(e){return e.end-e.pos}function tC(e,t,r){var i,o;return(o=(i=e==null?void 0:e.resolvedModules)==null?void 0:i.get(t,r))==null?void 0:o.resolvedModule}function Zfe(e,t,r,i){e.resolvedModules||(e.resolvedModules=t2()),e.resolvedModules.set(t,i,r)}function e_e(e,t,r,i){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=t2()),e.resolvedTypeReferenceDirectiveNames.set(t,i,r)}function x7e(e,t,r){var i,o;return(o=(i=e==null?void 0:e.resolvedTypeReferenceDirectiveNames)==null?void 0:i.get(t,r))==null?void 0:o.resolvedTypeReferenceDirective}function mq(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function t_e(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&&A7e(e.resolvedModule.packageId,t.resolvedModule.packageId)}function A7e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function jM({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function LT(e){return`${jM(e)}@${e.version}`}function n_e(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 hq(e,t,r,i,o,s){R.assert(e.length===r.length);for(let c=0;c<e.length;c++){const _=r[c],d=e[c],v=s.getName(d),g=s.getMode(d,t),T=i&&i.get(v,g);if(T?!_||!o(T,_):_)return!0}return!1}function zD(e){return C7e(e),(e.flags&524288)!==0}function C7e(e){e.flags&1048576||((e.flags&131072||Pa(e,zD))&&(e.flags|=524288),e.flags|=1048576)}function Zn(e){for(;e&&e.kind!==308;)e=e.parent;return e}function WM(e){return Zn(e.valueDeclaration||Aq(e))}function HM(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function r_e(e){switch(e.kind){case 238:case 266:case 245:case 246:case 247:return!0}return!1}function Hv(e,t){return R.assert(e>=0),mg(t)[e]}function L7e(e){const t=Zn(e),r=ll(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function qD(e,t){R.assert(e>=0);const r=mg(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{const s=r[i];let c=r[i+1]-1;for(R.assert(Tu(o.charCodeAt(c)));s<=c&&Tu(o.charCodeAt(c));)c--;return c}}function zM(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function kl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function b_(e){return!kl(e)}function i_e(e,t){return Ul(e)?t===e.expression:Rl(e)?t===e.modifiers:Mf(e)?t===e.initializer:ro(e)?t===e.questionToken&&df(e):$c(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||uk(e.modifiers,t,il):l_(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||uk(e.modifiers,t,il):sc(e)?t===e.exclamationToken:Kl(e)?t===e.typeParameters||t===e.type||uk(e.typeParameters,t,Ul):Z_(e)?t===e.typeParameters||uk(e.typeParameters,t,Ul):s_(e)?t===e.typeParameters||t===e.type||uk(e.typeParameters,t,Ul):x6(e)?t===e.modifiers||uk(e.modifiers,t,il):!1}function uk(e,t,r){return!e||ja(t)||!r(t)?!1:Fr(e,t)}function a_e(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 o_e(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 s_e(e){return Cp(e)||!!(Eo(e)&2097152)}function Wm(e,t){return a_e(e,t,Cp)}function gq(e,t){return a_e(e,t,s_e)}function I7e(e,t){return o_e(e,t,Cp)}function Pb(e,t){return o_e(e,t,s_e)}function yq(e,t,r){if(e.charCodeAt(t+1)===47&&t+2<r&&e.charCodeAt(t+2)===47){const i=e.substring(t,r);return!!(lK.test(i)||cK.test(i)||pme.test(i)||mme.test(i))}return!1}function qM(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function l_e(e,t){const r=new Map(t.map(c=>[`${ll(e,c.range.end).line}`,c])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Oo(r.entries()).filter(([c,_])=>_.type===0&&!i.get(c)).map(([c,_])=>_)}function s(c){return r.has(`${c}`)?(i.set(`${c}`,!0),!0):!1}}function IT(e,t,r){return kl(e)?e.pos:ZA(e)||e.kind===11?Yo((t||Zn(e)).text,e.pos,!1,!0):r&&Df(e)?IT(e.jsDoc[0],t):e.kind===354&&e._children.length>0?IT(e._children[0],t,r):Yo((t||Zn(e)).text,e.pos,!1,!1,tR(e))}function vq(e,t){const r=!kl(e)&&np(e)?yi(e.modifiers,qu):void 0;return r?Yo((t||Zn(e)).text,r.end):IT(e,t)}function Fb(e,t,r=!1){return dk(e.text,t,r)}function k7e(e){return!!rr(e,$T)}function JM(e){return!!(au(e)&&e.exportClause&&Bh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function dk(e,t,r=!1){if(kl(t))return"";let i=e.substring(r?t.pos:Yo(e,t.pos),t.end);return k7e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>GI(o.replace(/^\s*\*/,""))).join(`
`)),i}function kc(e,t=!1){return Fb(Zn(e),e,t)}function w7e(e){return e.pos}function nC(e,t){return Rv(e,t,w7e,qs)}function Eo(e){const t=e.emitNode;return t&&t.flags||0}function z_(e){const t=e.emitNode;return t&&t.internalFlags||0}function bq(){return 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:it})),AsyncIterator:new Map(Object.entries({es2015:it})),Atomics:new Map(Object.entries({es2017:it})),SharedArrayBuffer:new Map(Object.entries({es2017:it})),AsyncIterable:new Map(Object.entries({es2018:it})),AsyncIterableIterator:new Map(Object.entries({es2018:it})),AsyncGenerator:new Map(Object.entries({es2018:it})),AsyncGeneratorFunction:new Map(Object.entries({es2018:it})),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:it,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:it})),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:it,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:it,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))}function c_e(e,t,r){var i;if(t&&D7e(e,r))return Fb(t,e);switch(e.kind){case 10:{const o=r&2?lJ:r&1||Eo(e)&33554432?FS:IR;return e.singleQuote?"'"+o(e.text,39)+"'":'"'+o(e.text,34)+'"'}case 14:case 15:case 16:case 17:{const o=r&1||Eo(e)&33554432?FS:IR,s=(i=e.rawText)!=null?i:Q7e(o(e.text,96));switch(e.kind){case 14:return"`"+s+"`";case 15:return"`"+s+"${";case 16:return"}"+s+"${";case 17:return"}"+s+"`"}break}case 8:case 9:return e.text;case 13:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return R.fail(`Literal kind '${e.kind}' not accounted for.`)}function D7e(e,t){return tl(e)||!e.parent||t&4&&e.isUnterminated?!1:C_(e)&&e.numericLiteralFlags&512?!!(t&8):!N5(e)}function u_e(e){return za(e)?'"'+IR(e)+'"':""+e}function d_e(e){return Eu(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function Eq(e){return(Ap(e)&3)!==0||Tq(e)}function Tq(e){const t=zm(e);return t.kind===257&&t.parent.kind===295}function Hu(e){return Xl(e)&&(e.name.kind===10||im(e))}function KM(e){return Xl(e)&&e.name.kind===10}function Sq(e){return Xl(e)&&Wo(e.name)}function f_e(e){return Xl(e)||We(e)}function fk(e){return R7e(e.valueDeclaration)}function R7e(e){return!!e&&e.kind===264&&!e.body}function __e(e){return e.kind===308||e.kind===264||XA(e)}function im(e){return!!(e.flags&1024)}function Bb(e){return Hu(e)&&xq(e)}function xq(e){switch(e.parent.kind){case 308:return tc(e.parent);case 265:return Hu(e.parent.parent)&&Ki(e.parent.parent.parent)&&!tc(e.parent.parent.parent)}return!1}function Aq(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!Bb(r)&&!(Xl(r)&&im(r)))}function N7e(e){return e===1||e===100||e===199}function kS(e,t){return tc(e)||Y_(t)||N7e(uu(t))&&!!e.commonJsModuleIndicator}function Cq(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:A_(t,"alwaysStrict")||Che(e.statements)?!0:tc(e)||Y_(t)?uu(t)>=5?!0:!t.noImplicitUseStrict:!1}function Lq(e){return!!(e.flags&16777216)||Qr(e,2)}function Iq(e,t){switch(e.kind){case 308:case 266:case 295:case 264:case 245:case 246:case 247:case 173:case 171:case 174:case 175:case 259:case 215:case 216:case 169:case 172:return!0;case 238:return!XA(t)}return!1}function kq(e){switch(R.type(e),e.kind){case 341:case 349:case 326:return!0;default:return wq(e)}}function wq(e){switch(R.type(e),e.kind){case 176:case 177:case 170:case 178:case 181:case 182:case 320:case 260:case 228:case 261:case 262:case 348:case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function kT(e){switch(e.kind){case 269:case 268:return!0;default:return!1}}function p_e(e){return kT(e)||jb(e)}function XM(e){switch(e.kind){case 269:case 268:case 240:case 260:case 259:case 264:case 262:case 261:case 263:return!0;default:return!1}}function m_e(e){return JD(e)||Xl(e)||Ig(e)||pf(e)}function JD(e){return kT(e)||au(e)}function Hm(e){return rr(e.parent,t=>Iq(t,t.parent))}function h_e(e,t){let r=Hm(e);for(;r;)t(r),r=Hm(r)}function Ds(e){return!e||HD(e)===0?"(Missing)":kc(e)}function g_e(e){return e.declaration?Ds(e.declaration.parameters[0].name):void 0}function KD(e){return e.kind===164&&!n_(e.expression)}function YM(e){var t;switch(e.kind){case 79:case 80:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 10:case 8:case 14:return cl(e.text);case 164:return n_(e.expression)?cl(e.expression.text):void 0;default:return R.assertNever(e)}}function rC(e){return R.checkDefined(YM(e))}function Rf(e){switch(e.kind){case 108:return"this";case 80:case 79:return HD(e)===0?Pr(e):kc(e);case 163:return Rf(e.left)+"."+Rf(e.right);case 208:return We(e.name)||Ri(e.name)?Rf(e.expression)+"."+Rf(e.name):R.assertNever(e.name);case 314:return Rf(e.left)+Rf(e.right);default:return R.assertNever(e)}}function Nr(e,t,r,i,o,s){const c=Zn(e);return hd(c,e,t,r,i,o,s)}function iC(e,t,r,i,o,s,c){const _=Yo(e.text,t.pos);return Pc(e,_,t.end-_,r,i,o,s,c)}function hd(e,t,r,i,o,s,c){const _=Gb(e,t);return Pc(e,_.start,_.length,r,i,o,s,c)}function bg(e,t,r,i){const o=Gb(e,t);return $M(e,o.start,o.length,r,i)}function XD(e,t,r,i){const o=Yo(e.text,t.pos);return $M(e,o,t.end-o,r,i)}function Dq(e,t,r){R.assertGreaterThanOrEqual(t,0),R.assertGreaterThanOrEqual(r,0),e&&(R.assertLessThanOrEqual(t,e.text.length),R.assertLessThanOrEqual(t+r,e.text.length))}function $M(e,t,r,i,o){return Dq(e,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function Rq(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 y_e(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Nq(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function wy(e,t){const r=xy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenPos();return Ec(i,r.getTextPos())}function v_e(e,t){const r=xy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function O7e(e,t){const r=Yo(e.text,t.pos);if(t.body&&t.body.kind===238){const{line:i}=ll(e,t.body.pos),{line:o}=ll(e,t.body.end);if(i<o)return Mc(r,qD(i,e)-r+1)}return Ec(r,t.end)}function Gb(e,t){let r=t;switch(t.kind){case 308:const s=Yo(e.text,0,!1);return s===e.text.length?Mc(0,0):wy(e,s);case 257:case 205:case 260:case 228:case 261:case 264:case 263:case 302:case 259:case 215:case 171:case 174:case 175:case 262:case 169:case 168:case 271:r=t.name;break;case 216:return O7e(e,t);case 292:case 293:const c=Yo(e.text,t.pos),_=t.statements.length>0?t.statements[0].pos:t.end;return Ec(c,_)}if(r===void 0)return wy(e,t.pos);R.assert(!eh(r));const i=kl(r),o=i||YS(t)?r.pos:Yo(e.text,r.pos);return i?(R.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),R.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(R.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),R.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Ec(o,r.end)}function _f(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function E_(e){return e.scriptKind===6}function Ub(e){return!!(Cy(e)&2048)}function QM(e){return!!(Cy(e)&64&&!cf(e,e.parent))}function Eg(e){return!!(Ap(e)&2)}function _k(e){return!!(Ap(e)&1)}function aC(e){return e.kind===210&&e.expression.kind===106}function pf(e){return e.kind===210&&e.expression.kind===100}function oC(e){return l4(e)&&e.keywordToken===100&&e.name.escapedText==="meta"}function l1(e){return Ig(e)&&v1(e.argument)&&Wo(e.argument.literal)}function Cp(e){return e.kind===241&&e.expression.kind===10}function ZM(e){return!!(Eo(e)&2097152)}function eP(e){return ZM(e)&&Sc(e)}function M7e(e){return We(e.name)&&!e.initializer}function tP(e){return ZM(e)&&pc(e)&&Qn(e.declarationList.declarations,M7e)}function Oq(e,t){return e.kind!==11?xh(t.text,e.pos):void 0}function Mq(e,t){const r=e.kind===166||e.kind===165||e.kind===215||e.kind===216||e.kind===214||e.kind===257||e.kind===278?ba(i1(t,e.pos),xh(t,e.pos)):xh(t,e.pos);return ur(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function Ih(e){if(179<=e.kind&&e.kind<=202)return!0;switch(e.kind){case 131:case 157:case 148:case 160:case 152:case 134:case 153:case 149:case 155:case 144:return!0;case 114:return e.parent.kind!==219;case 230:return Jd(e.parent)&&!OR(e);case 165:return e.parent.kind===197||e.parent.kind===192;case 79:(e.parent.kind===163&&e.parent.right===e||e.parent.kind===208&&e.parent.name===e)&&(e=e.parent),R.assert(e.kind===79||e.kind===163||e.kind===208,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 163:case 208:case 108:{const{parent:t}=e;if(t.kind===183)return!1;if(t.kind===202)return!t.isTypeOf;if(179<=t.kind&&t.kind<=202)return!0;switch(t.kind){case 230:return Jd(t.parent)&&!OR(t);case 165:return e===t.constraint;case 348:return e===t.constraint;case 169:case 168:case 166:case 257:return e===t.type;case 259:case 215:case 216:case 173:case 171:case 170:case 174:case 175:return e===t.type;case 176:case 177:case 178:return e===t.type;case 213:return e===t.type;case 210:case 211:return Fr(t.typeArguments,e);case 212:return!1}}}return!1}function Pq(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function wT(e,t){return r(e);function r(i){switch(i.kind){case 250:return t(i);case 266:case 238:case 242:case 243:case 244:case 245:case 246:case 247:case 251:case 252:case 292:case 293:case 253:case 255:case 295:return Pa(i,r)}}}function b_e(e,t){return r(e);function r(i){switch(i.kind){case 226:t(i);const o=i.expression;o&&r(o);return;case 263:case 261:case 264:case 262:return;default:if(Ya(i)){if(i.name&&i.name.kind===164){r(i.name.expression);return}}else Ih(i)||Pa(i,r)}}}function Fq(e){return e&&e.kind===185?e.elementType:e&&e.kind===180?Nm(e.typeArguments):void 0}function E_e(e){switch(e.kind){case 261:case 260:case 228:case 184:return e.members;case 207:return e.properties}}function sC(e){if(e)switch(e.kind){case 205:case 302:case 166:case 299:case 169:case 168:case 300:case 257:return!0}return!1}function T_e(e){return sC(e)||s1(e)}function nP(e){return e.parent.kind===258&&e.parent.parent.kind===240}function S_e(e){return _r(e)?Is(e.parent)&&Tr(e.parent.parent)&&wl(e.parent.parent)===2||rP(e.parent):!1}function rP(e){return _r(e)?Tr(e)&&wl(e)===1:!1}function x_e(e){return($i(e)?Eg(e)&&We(e.name)&&nP(e):ro(e)?Ik(e)&&Tc(e):Mf(e)&&Ik(e))||rP(e)}function A_e(e){switch(e.kind){case 171:case 170:case 173:case 174:case 175:case 259:case 215:return!0}return!1}function Bq(e,t){for(;;){if(t&&t(e),e.statement.kind!==253)return e.statement;e=e.statement}}function DT(e){return e&&e.kind===238&&Ya(e.parent)}function q_(e){return e&&e.kind===171&&e.parent.kind===207}function iP(e){return(e.kind===171||e.kind===174||e.kind===175)&&(e.parent.kind===207||e.parent.kind===228)}function C_e(e){return e&&e.kind===1}function P7e(e){return e&&e.kind===0}function lC(e,t,r){return e.properties.filter(i=>{if(i.kind===299){const o=YM(i.name);return t===o||!!r&&r===o}return!1})}function L_e(e,t,r){return qt(lC(e,t),i=>Ju(i.initializer)?$t(i.initializer.elements,o=>Wo(o)&&o.text===r):void 0)}function pk(e){if(e&&e.statements.length){const t=e.statements[0].expression;return li(t,Is)}}function aP(e,t,r){return qt(YD(e,t),i=>Ju(i.initializer)?$t(i.initializer.elements,o=>Wo(o)&&o.text===r):void 0)}function YD(e,t){const r=pk(e);return r?lC(r,t):it}function Nf(e){return rr(e.parent,Ya)}function I_e(e){return rr(e.parent,el)}function wc(e){return rr(e.parent,_i)}function F7e(e){return rr(e.parent,t=>_i(t)||Ya(t)?"quit":Rl(t))}function oP(e){return rr(e.parent,XA)}function kd(e,t,r){for(R.assert(e.kind!==308);;){if(e=e.parent,!e)return R.fail();switch(e.kind){case 164:if(r&&_i(e.parent.parent))return e;e=e.parent.parent;break;case 167:e.parent.kind===166&&qc(e.parent.parent)?e=e.parent.parent:qc(e.parent)&&(e=e.parent);break;case 216:if(!t)continue;case 259:case 215:case 264:case 172:case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 176:case 177:case 178:case 263:case 308:return e}}}function k_e(e){switch(e.kind){case 216:case 259:case 215:case 169:return!0;case 238:switch(e.parent.kind){case 173:case 171:case 174:case 175:return!0;default:return!1}default:return!1}}function sP(e){We(e)&&(Bc(e.parent)||Sc(e.parent))&&e.parent.name===e&&(e=e.parent);const t=kd(e,!0,!1);return Ki(t)}function w_e(e){const t=kd(e,!1,!1);if(t)switch(t.kind){case 173:case 259:case 215:return t}}function $D(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 164:e=e.parent;break;case 259:case 215:case 216:if(!t)continue;case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 172:return e;case 167:e.parent.kind===166&&qc(e.parent.parent)?e=e.parent.parent:qc(e.parent)&&(e=e.parent);break}}}function RT(e){if(e.kind===215||e.kind===216){let t=e,r=e.parent;for(;r.kind===214;)t=r,r=r.parent;if(r.kind===210&&r.expression===t)return r}}function B7e(e){return e.kind===106||gd(e)}function gd(e){const t=e.kind;return(t===208||t===209)&&e.expression.kind===106}function QD(e){const t=e.kind;return(t===208||t===209)&&e.expression.kind===108}function lP(e){var t;return!!e&&$i(e)&&((t=e.initializer)==null?void 0:t.kind)===108}function D_e(e){return!!e&&(l_(e)||$c(e))&&Tr(e.parent.parent)&&e.parent.parent.operatorToken.kind===63&&e.parent.parent.right.kind===108}function ZD(e){switch(e.kind){case 180:return e.typeName;case 230:return Jl(e.expression)?e.expression:void 0;case 79:case 163:return e}}function cP(e){switch(e.kind){case 212:return e.tag;case 283:case 282:return e.tagName;default:return e.expression}}function uP(e,t,r,i){if(e&&Su(t)&&Ri(t.name))return!1;switch(t.kind){case 260:return!0;case 228:return!e;case 169:return r!==void 0&&(e?Bc(r):_i(r)&&!Jb(t)&&!vJ(t));case 174:case 175:case 171:return t.body!==void 0&&r!==void 0&&(e?Bc(r):_i(r));case 166:return e?r!==void 0&&r.body!==void 0&&(r.kind===173||r.kind===171||r.kind===175)&&zb(r)!==t&&i!==void 0&&i.kind===260:!1}return!1}function cC(e,t,r,i){return i_(t)&&uP(e,t,r,i)}function eR(e,t,r,i){return cC(e,t,r,i)||mk(e,t,r)}function mk(e,t,r){switch(t.kind){case 260:return Dt(t.members,i=>eR(e,i,t,r));case 228:return!e&&Dt(t.members,i=>eR(e,i,t,r));case 171:case 175:case 173:return Dt(t.parameters,i=>cC(e,i,t,r));default:return!1}}function Vb(e,t){if(cC(e,t))return!0;const r=Dh(t);return!!r&&mk(e,r,t)}function Gq(e,t,r){let i;if(s1(t)){const{firstAccessor:o,secondAccessor:s,setAccessor:c}=UT(r.members,t),_=i_(o)?o:s&&i_(s)?s:void 0;if(!_||t!==_)return!1;i=c==null?void 0:c.parameters}else sc(t)&&(i=t.parameters);if(cC(e,t,r))return!0;if(i){for(const o of i)if(!qb(o)&&cC(e,o,t,r))return!0}return!1}function Uq(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 10:return Uq(e.textSourceNode);case 14:return e.text===""}return!1}return e.text===""}function hk(e){const{parent:t}=e;return t.kind===283||t.kind===282||t.kind===284?t.tagName===e:!1}function Tg(e){switch(e.kind){case 106:case 104:case 110:case 95:case 13:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 231:case 213:case 235:case 232:case 214:case 215:case 228:case 216:case 219:case 217:case 218:case 221:case 222:case 223:case 224:case 227:case 225:case 229:case 281:case 282:case 285:case 226:case 220:case 233:return!0;case 230:return!Jd(e.parent)&&!YC(e.parent);case 163:for(;e.parent.kind===163;)e=e.parent;return e.parent.kind===183||IS(e.parent)||_4(e.parent)||E1(e.parent)||hk(e);case 314:for(;E1(e.parent);)e=e.parent;return e.parent.kind===183||IS(e.parent)||_4(e.parent)||E1(e.parent)||hk(e);case 80:return Tr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===101;case 79:if(e.parent.kind===183||IS(e.parent)||_4(e.parent)||E1(e.parent)||hk(e))return!0;case 8:case 9:case 10:case 14:case 108:return dP(e);default:return!1}}function dP(e){const{parent:t}=e;switch(t.kind){case 257:case 166:case 169:case 168:case 302:case 299:case 205:return t.initializer===e;case 241:case 242:case 243:case 244:case 250:case 251:case 252:case 292:case 254:return t.expression===e;case 245:const r=t;return r.initializer===e&&r.initializer.kind!==258||r.condition===e||r.incrementor===e;case 246:case 247:const i=t;return i.initializer===e&&i.initializer.kind!==258||i.expression===e;case 213:case 231:return e===t.expression;case 236:return e===t.expression;case 164:return e===t.expression;case 167:case 291:case 290:case 301:return!0;case 230:return t.expression===e&&!Ih(t);case 300:return t.objectAssignmentInitializer===e;case 235:return e===t.expression;default:return Tg(t)}}function fP(e){for(;e.kind===163||e.kind===79;)e=e.parent;return e.kind===183}function R_e(e){return Bh(e)&&!!e.parent.moduleSpecifier}function c1(e){return e.kind===268&&e.moduleReference.kind===280}function gk(e){return R.assert(c1(e)),e.moduleReference.expression}function Vq(e){return jb(e)&&Fk(e.initializer).arguments[0]}function uC(e){return e.kind===268&&e.moduleReference.kind!==280}function ld(e){return _r(e)}function G7e(e){return!_r(e)}function _r(e){return!!e&&!!(e.flags&262144)}function _P(e){return!!e&&!!(e.flags&67108864)}function jq(e){return!E_(e)}function tR(e){return!!e&&!!(e.flags&8388608)}function pP(e){return ep(e)&&We(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===152||e.typeArguments[0].kind===148)}function wd(e,t){if(e.kind!==210)return!1;const{expression:r,arguments:i}=e;if(r.kind!==79||r.escapedText!=="require"||i.length!==1)return!1;const o=i[0];return!t||As(o)}function Wq(e){return O_e(e,!1)}function jb(e){return O_e(e,!0)}function N_e(e){return ms(e)&&jb(e.parent.parent)}function O_e(e,t){return $i(e)&&!!e.initializer&&wd(t?Fk(e.initializer):e.initializer,!0)}function Hq(e){return pc(e)&&e.declarationList.declarations.length>0&&Qn(e.declarationList.declarations,t=>Wq(t))}function nR(e){return e===39||e===34}function mP(e,t){return Fb(t,e).charCodeAt(0)===34}function yk(e){return Tr(e)||ul(e)||We(e)||io(e)}function rR(e){return _r(e)&&e.initializer&&Tr(e.initializer)&&(e.initializer.operatorToken.kind===56||e.initializer.operatorToken.kind===60)&&e.name&&Jl(e.name)&&dC(e.name,e.initializer.left)?e.initializer.right:e.initializer}function iR(e){const t=rR(e);return t&&u1(t,p1(e.name))}function U7e(e,t){return Ie(e.properties,r=>$c(r)&&We(r.name)&&r.name.escapedText==="value"&&r.initializer&&u1(r.initializer,t))}function wS(e){if(e&&e.parent&&Tr(e.parent)&&e.parent.operatorToken.kind===63){const t=p1(e.parent.left);return u1(e.parent.right,t)||V7e(e.parent.left,e.parent.right,t)}if(e&&io(e)&&DS(e)){const t=U7e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function u1(e,t){if(io(e)){const r=Hs(e.expression);return r.kind===215||r.kind===216?e:void 0}if(e.kind===215||e.kind===228||e.kind===216||Is(e)&&(e.properties.length===0||t))return e}function V7e(e,t,r){const i=Tr(t)&&(t.operatorToken.kind===56||t.operatorToken.kind===60)&&u1(t.right,r);if(i&&dC(e,t.left))return i}function M_e(e){const t=$i(e.parent)?e.parent.name:Tr(e.parent)&&e.parent.operatorToken.kind===63?e.parent.left:void 0;return t&&u1(e.right,p1(t))&&Jl(t)&&dC(t,e.left)}function zq(e){if(Tr(e.parent)){const t=(e.parent.operatorToken.kind===56||e.parent.operatorToken.kind===60)&&Tr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===63&&We(t.left))return t.left}else if($i(e.parent))return e.parent.name}function dC(e,t){return J_(e)&&J_(t)?K_(e)===K_(t):gg(e)&&hP(t)&&(t.expression.kind===108||We(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?dC(e,sR(t)):hP(e)&&hP(t)?Sg(e)===Sg(t)&&dC(e.expression,t.expression):!1}function aR(e){for(;cd(e,!0);)e=e.right;return e}function NT(e){return We(e)&&e.escapedText==="exports"}function qq(e){return We(e)&&e.escapedText==="module"}function kh(e){return(Br(e)||oR(e))&&qq(e.expression)&&Sg(e)==="exports"}function wl(e){const t=j7e(e);return t===5||_r(e)?t:0}function DS(e){return ge(e.arguments)===3&&Br(e.expression)&&We(e.expression.expression)&&Pr(e.expression.expression)==="Object"&&Pr(e.expression.name)==="defineProperty"&&n_(e.arguments[1])&&RS(e.arguments[0],!0)}function hP(e){return Br(e)||oR(e)}function oR(e){return dl(e)&&n_(e.argumentExpression)}function OT(e,t){return Br(e)&&(!t&&e.expression.kind===108||We(e.name)&&RS(e.expression,!0))||gP(e,t)}function gP(e,t){return oR(e)&&(!t&&e.expression.kind===108||Jl(e.expression)||OT(e.expression,!0))}function RS(e,t){return Jl(e)||OT(e,t)}function sR(e){return Br(e)?e.name:e.argumentExpression}function j7e(e){if(io(e)){if(!DS(e))return 0;const t=e.arguments[0];return NT(t)||kh(t)?8:OT(t)&&Sg(t)==="prototype"?9:7}return e.operatorToken.kind!==63||!ul(e.left)||W7e(aR(e))?0:RS(e.left.expression,!0)&&Sg(e.left)==="prototype"&&Is(Jq(e))?6:lR(e.left)}function W7e(e){return ix(e)&&C_(e.expression)&&e.expression.text==="0"}function yP(e){if(Br(e))return e.name;const t=Hs(e.argumentExpression);return C_(t)||As(t)?t:e}function Sg(e){const t=yP(e);if(t){if(We(t))return t.escapedText;if(As(t)||C_(t))return cl(t.text)}}function lR(e){if(e.expression.kind===108)return 4;if(kh(e))return 2;if(RS(e.expression,!0)){if(p1(e.expression))return 3;let t=e;for(;!We(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&Sg(t)==="exports")&&OT(e))return 1;if(RS(e,!0)||dl(e)&&xP(e))return 5}return 0}function Jq(e){for(;Tr(e.right);)e=e.right;return e.right}function cR(e){return Tr(e)&&wl(e)===3}function P_e(e){return _r(e)&&e.parent&&e.parent.kind===241&&(!dl(e)||oR(e))&&!!Rb(e.parent)}function uR(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&16777216&&!_r(t)&&!(r.flags&16777216))&&yk(r)&&!yk(t)||r.kind!==t.kind&&f_e(r))&&(e.valueDeclaration=t)}function F_e(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===259||$i(t)&&t.initializer&&Ya(t.initializer)}function dR(e){var t,r;switch(e.kind){case 257:case 205:return(t=rr(e.initializer,i=>wd(i,!0)))==null?void 0:t.arguments[0];case 269:return li(e.moduleSpecifier,As);case 268:return li((r=li(e.moduleReference,Zm))==null?void 0:r.expression,As);case 270:case 277:return li(e.parent.moduleSpecifier,As);case 271:case 278:return li(e.parent.parent.moduleSpecifier,As);case 273:return li(e.parent.parent.parent.moduleSpecifier,As);default:R.assertNever(e)}}function fR(e){return _R(e)||R.failBadSyntaxKind(e.parent)}function _R(e){switch(e.parent.kind){case 269:case 275:return e.parent;case 280:return e.parent.parent;case 210:return pf(e.parent)||wd(e.parent,!1)?e.parent:void 0;case 198:return R.assert(Wo(e)),li(e.parent.parent,Ig);default:return}}function fC(e){switch(e.kind){case 269:case 275:return e.moduleSpecifier;case 268:return e.moduleReference.kind===280?e.moduleReference.expression:void 0;case 202:return l1(e)?e.argument.literal:void 0;case 210:return e.arguments[0];case 264:return e.name.kind===10?e.name:void 0;default:return R.assertNever(e)}}function _C(e){switch(e.kind){case 269:return e.importClause&&li(e.importClause.namedBindings,Zv);case 268:return e;case 275:return e.exportClause&&li(e.exportClause,Bh);default:return R.assertNever(e)}}function NS(e){return e.kind===269&&!!e.importClause&&!!e.importClause.name}function vP(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=Zv(e.namedBindings)?t(e.namedBindings):Ie(e.namedBindings.elements,t);if(r)return r}}function OS(e){if(e)switch(e.kind){case 166:case 171:case 170:case 300:case 299:case 169:case 168:return e.questionToken!==void 0}return!1}function pC(e){const t=XC(e)?tu(e.parameters):void 0,r=li(t&&t.name,We);return!!r&&r.escapedText==="new"}function T_(e){return e.kind===349||e.kind===341||e.kind===343}function pR(e){return T_(e)||um(e)}function H7e(e){return du(e)&&Tr(e.expression)&&e.expression.operatorToken.kind===63?aR(e.expression):void 0}function B_e(e){return du(e)&&Tr(e.expression)&&wl(e.expression)!==0&&Tr(e.expression.right)&&(e.expression.right.operatorToken.kind===56||e.expression.right.operatorToken.kind===60)?e.expression.right.right:void 0}function Kq(e){switch(e.kind){case 240:const t=mC(e);return t&&t.initializer;case 169:return e.initializer;case 299:return e.initializer}}function mC(e){return pc(e)?tu(e.declarationList.declarations):void 0}function G_e(e){return Xl(e)&&e.body&&e.body.kind===264?e.body:void 0}function mR(e){if(e.kind>=240&&e.kind<=256)return!0;switch(e.kind){case 79:case 108:case 106:case 163:case 233:case 209:case 208:case 205:case 215:case 216:case 171:case 174:case 175:return!0;default:return!1}}function hR(e){switch(e.kind){case 216:case 223:case 238:case 249:case 176:case 292:case 260:case 228:case 172:case 173:case 182:case 177:case 248:case 256:case 243:case 209:case 239:case 1:case 263:case 302:case 274:case 275:case 278:case 241:case 246:case 247:case 245:case 259:case 215:case 181:case 174:case 79:case 242:case 269:case 268:case 178:case 261:case 320:case 326:case 253:case 171:case 170:case 264:case 199:case 267:case 207:case 166:case 214:case 208:case 299:case 169:case 168:case 250:case 175:case 300:case 301:case 252:case 254:case 255:case 262:case 165:case 257:case 240:case 244:case 251:return!0;default:return!1}}function Xq(e,t){let r;sC(e)&&Wv(e)&&Df(e.initializer)&&(r=xi(r,U_e(e,Ko(e.initializer.jsDoc))));let i=e;for(;i&&i.parent;){if(Df(i)&&(r=xi(r,U_e(e,Ko(i.jsDoc)))),i.kind===166){r=xi(r,(t?ffe:QI)(i));break}if(i.kind===165){r=xi(r,(t?mfe:pfe)(i));break}i=Yq(i)}return r||it}function U_e(e,t){if(eh(t)){const r=ur(t.tags,i=>V_e(e,i));return t.tags===r?[t]:r}return V_e(e,t)?[t]:void 0}function V_e(e,t){return!(h4(t)||J5(t))||!t.parent||!eh(t.parent)||!qd(t.parent.parent)||t.parent.parent===e}function Yq(e){const t=e.parent;if(t.kind===299||t.kind===274||t.kind===169||t.kind===241&&e.kind===208||t.kind===250||G_e(t)||Tr(e)&&e.operatorToken.kind===63)return t;if(t.parent&&(mC(t.parent)===e||Tr(t)&&t.operatorToken.kind===63))return t.parent;if(t.parent&&t.parent.parent&&(mC(t.parent.parent)||Kq(t.parent.parent)===e||B_e(t.parent.parent)))return t.parent.parent}function gR(e){if(e.symbol)return e.symbol;if(!We(e.name))return;const t=e.name.escapedText,r=d1(e);if(!r)return;const i=$t(r.parameters,o=>o.name.kind===79&&o.name.escapedText===t);return i&&i.symbol}function bP(e){if(eh(e.parent)&&e.parent.tags){const t=$t(e.parent.tags,T_);if(t)return t}return d1(e)}function d1(e){const t=hC(e);if(t)return Mf(t)&&t.type&&Ya(t.type)?t.type:Ya(t)?t:void 0}function hC(e){const t=MS(e);if(t)return B_e(t)||H7e(t)||Kq(t)||mC(t)||G_e(t)||t}function MS(e){const t=vk(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===rl(r.jsDoc))return r}function vk(e){return rr(e.parent,eh)}function j_e(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&$t(r,i=>i.name.escapedText===t)}function z7e(e){return!!e.typeArguments}function MT(e){let t=e.parent;for(;;){switch(t.kind){case 223:const r=t.operatorToken.kind;return Dy(r)&&t.left===e?r===63||kk(r)?1:2:0;case 221:case 222:const i=t.operator;return i===45||i===46?2:0;case 246:case 247:return t.initializer===e?1:0;case 214:case 206:case 227:case 232:e=t;break;case 301:e=t.parent;break;case 300:if(t.name!==e)return 0;e=t.parent;break;case 299:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function wh(e){return MT(e)!==0}function W_e(e){switch(e.kind){case 238:case 240:case 251:case 242:case 252:case 266:case 292:case 293:case 253:case 245:case 246:case 247:case 243:case 244:case 255:case 295:return!0}return!1}function H_e(e){return Us(e)||Xs(e)||YA(e)||Sc(e)||Kl(e)}function z_e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function yR(e){return z_e(e,193)}function zv(e){return z_e(e,214)}function q_e(e){let t;for(;e&&e.kind===193;)t=e,e=e.parent;return[t,e]}function $q(e){for(;tx(e);)e=e.type;return e}function Hs(e,t){return Cu(e,t?17:1)}function Qq(e){return e.kind!==208&&e.kind!==209?!1:(e=zv(e.parent),e&&e.kind===217)}function PT(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function xg(e){return!Ki(e)&&!$a(e)&&Au(e.parent)&&e.parent.name===e}function vR(e){const t=e.parent;switch(e.kind){case 10:case 14:case 8:if(Cs(t))return t.parent;case 79:if(Au(t))return t.name===e?t:void 0;if(Rd(t)){const r=t.parent;return _m(r)&&r.name===t?r:void 0}else{const r=t.parent;return Tr(r)&&wl(r)!==0&&(r.left.symbol||r.symbol)&&ka(r)===e?r:void 0}case 80:return Au(t)&&t.name===e?t:void 0;default:return}}function bR(e){return n_(e)&&e.parent.kind===164&&Au(e.parent.parent)}function J_e(e){const t=e.parent;switch(t.kind){case 169:case 168:case 171:case 170:case 174:case 175:case 302:case 299:case 208:return t.name===e;case 163:return t.right===e;case 205:case 273:return t.propertyName===e;case 278:case 288:case 282:case 283:case 284:return!0}return!1}function q7e(e){return e.kind===268||e.kind===267||e.kind===270&&e.name||e.kind===271||e.kind===277||e.kind===273||e.kind===278||e.kind===274&&gC(e)?!0:_r(e)&&(Tr(e)&&wl(e)===2&&gC(e)||Br(e)&&Tr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===63&&ER(e.parent.right))}function Zq(e){switch(e.parent.kind){case 270:case 273:case 271:case 278:case 274:case 268:case 277:return e.parent;case 163:do e=e.parent;while(e.parent.kind===163);return Zq(e)}}function ER(e){return Jl(e)||Ku(e)}function gC(e){const t=eJ(e);return ER(t)}function eJ(e){return Vl(e)?e.expression:e.right}function K_e(e){return e.kind===300?e.name:e.kind===299?e.initializer:e.parent.right}function am(e){const t=Wb(e);if(t&&_r(e)){const r=gfe(e);if(r)return r.class}return t}function Wb(e){const t=TR(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function yC(e){if(_r(e))return yfe(e).map(t=>t.class);{const t=TR(e.heritageClauses,117);return t==null?void 0:t.types}}function bk(e){return dd(e)?Ek(e)||it:_i(e)&&ba(hT(am(e)),yC(e))||it}function Ek(e){const t=TR(e.heritageClauses,94);return t?t.types:void 0}function TR(e,t){if(e){for(const r of e)if(r.token===t)return r}}function f1(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Dd(e){return 81<=e&&e<=162}function EP(e){return 126<=e&&e<=162}function X_e(e){return Dd(e)&&!EP(e)}function J7e(e){return 117<=e&&e<=125}function PS(e){const t=bT(e);return t!==void 0&&X_e(t)}function K7e(e){const t=bT(e);return t!==void 0&&Dd(t)}function TP(e){const t=o1(e);return!!t&&!EP(t)}function vC(e){return 2<=e&&e<=7}function Jc(e){if(!e)return 4;let t=0;switch(e.kind){case 259:case 215:case 171:e.asteriskToken&&(t|=1);case 216:Qr(e,512)&&(t|=2);break}return e.body||(t|=4),t}function bC(e){switch(e.kind){case 259:case 215:case 216:case 171:return e.body!==void 0&&e.asteriskToken===void 0&&Qr(e,512)}return!1}function n_(e){return As(e)||C_(e)}function SP(e){return Qv(e)&&(e.operator===39||e.operator===40)&&C_(e.operand)}function qv(e){const t=ka(e);return!!t&&xP(t)}function xP(e){if(!(e.kind===164||e.kind===209))return!1;const t=dl(e)?Hs(e.argumentExpression):e.expression;return!n_(t)&&!SP(t)}function Hb(e){switch(e.kind){case 79:case 80:return e.escapedText;case 10:case 8:return cl(e.text);case 164:const t=e.expression;return n_(t)?cl(t.text):SP(t)?t.operator===40?bo(t.operator)+t.operand.text:t.operand.text:void 0;default:return R.assertNever(e)}}function J_(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function K_(e){return gg(e)?Pr(e):e.text}function Tk(e){return gg(e)?e.escapedText:cl(e.text)}function X7e(e){return`__@${To(e)}@${e.escapedName}`}function SR(e,t){return`__#${To(e)}@${t}`}function xR(e){return xa(e.escapedName,"__@")}function Y_e(e){return xa(e.escapedName,"__#")}function Y7e(e){return e.kind===79&&e.escapedText==="Symbol"}function $_e(e){return We(e)?Pr(e)==="__proto__":Wo(e)&&e.text==="__proto__"}function Sk(e,t){switch(e=Cu(e),e.kind){case 228:case 215:if(e.name)return!1;break;case 216:break;default:return!1}return typeof t=="function"?t(e):!0}function tJ(e){switch(e.kind){case 299:return!$_e(e.name);case 300:return!!e.objectAssignmentInitializer;case 257:return We(e.name)&&!!e.initializer;case 166:return We(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 205:return We(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 169:return!!e.initializer;case 223:switch(e.operatorToken.kind){case 63:case 76:case 75:case 77:return We(e.left)}break;case 274:return!0}return!1}function r_(e,t){if(!tJ(e))return!1;switch(e.kind){case 299:return Sk(e.initializer,t);case 300:return Sk(e.objectAssignmentInitializer,t);case 257:case 166:case 205:case 169:return Sk(e.initializer,t);case 223:return Sk(e.right,t);case 274:return Sk(e.expression,t)}}function nJ(e){return e.escapedText==="push"||e.escapedText==="unshift"}function FT(e){return zm(e).kind===166}function zm(e){for(;e.kind===205;)e=e.parent.parent;return e}function rJ(e){const t=e.kind;return t===173||t===215||t===259||t===216||t===171||t===174||t===175||t===264||t===308}function tl(e){return lm(e.pos)||lm(e.end)}function $7e(e){return Ea(e,Ki)||e}function iJ(e){const t=oJ(e),r=e.kind===211&&e.arguments!==void 0;return aJ(e.kind,t,r)}function aJ(e,t,r){switch(e){case 211:return r?0:1;case 221:case 218:case 219:case 217:case 220:case 224:case 226:return 1;case 223:switch(t){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function AP(e){const t=oJ(e),r=e.kind===211&&e.arguments!==void 0;return AR(e.kind,t,r)}function oJ(e){return e.kind===223?e.operatorToken.kind:e.kind===221||e.kind===222?e.operator:e.kind}function AR(e,t,r){switch(e){case 357:return 0;case 227:return 1;case 226:return 2;case 224:return 4;case 223:switch(t){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return CR(t)}case 213:case 232:case 221:case 218:case 219:case 217:case 220:return 16;case 222:return 17;case 210:return 18;case 211:return r?19:18;case 212:case 208:case 209:case 233:return 19;case 231:case 235:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 206:case 207:case 215:case 216:case 228:case 13:case 14:case 225:case 214:case 229:case 281:case 282:case 285:return 20;default:return-1}}function CR(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}function LR(e){return ur(e,t=>{switch(t.kind){case 291:return!!t.expression;case 11:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function EC(){let e=[];const t=[],r=new Map;let i=!1;return{add:s,lookup:o,getGlobalDiagnostics:c,getDiagnostics:_};function o(d){let v;if(d.file?v=r.get(d.file.fileName):v=e,!v)return;const g=Rv(v,d,gl,PP);if(g>=0)return v[g]}function s(d){let v;d.file?(v=r.get(d.file.fileName),v||(v=[],r.set(d.file.fileName,v),Dv(t,d.file.fileName,ju))):(i&&(i=!1,e=e.slice()),v=e),Dv(v,d,PP)}function c(){return i=!0,e}function _(d){if(d)return r.get(d)||[];const v=bc(t,g=>r.get(g));return e.length&&v.unshift(...e),v}}function Q7e(e){return e.replace(hme,"\\${")}function sJ(e){return e&&!!($S(e)?e.templateFlags:e.head.templateFlags||Dt(e.templateSpans,t=>!!t.literal.templateFlags))}function Q_e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Z7e(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return bme.get(e)||Q_e(e.charCodeAt(0))}function FS(e,t){const r=t===96?vme:t===39?yme:gme;return e.replace(r,Z7e)}function IR(e,t){return e=FS(e,t),pK.test(e)?e.replace(pK,r=>Q_e(r.charCodeAt(0))):e}function eMe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function tMe(e){return e.charCodeAt(0)===0?"&#0;":Sme.get(e)||eMe(e.charCodeAt(0))}function lJ(e,t){const r=t===39?Tme:Eme;return e.replace(r,tMe)}function X_(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&nMe(e.charCodeAt(0))?e.substring(1,t-1):e}function nMe(e){return e===39||e===34||e===96}function xk(e){const t=e.charCodeAt(0);return t>=97&&t<=122||bu(e,"-")||bu(e,":")}function CP(e){const t=NC[1];for(let r=NC.length;r<=e;r++)NC.push(NC[r-1]+t);return NC[e]}function TC(){return NC[1].length}function kR(){return bu(pe,"-dev")||bu(pe,"-insiders")}function wR(e){var t,r,i,o,s,c=!1;function _(k){const U=SD(k);U.length>1?(o=o+U.length-1,s=t.length-k.length+Ko(U),i=s-t.length===0):i=!1}function d(k){k&&k.length&&(i&&(k=CP(r)+k,i=!1),t+=k,_(k))}function v(k){k&&(c=!1),d(k)}function g(k){k&&(c=!0),d(k)}function T(){t="",r=0,i=!0,o=0,s=0,c=!1}function C(k){k!==void 0&&(t+=k,_(k),c=!1)}function L(k){k&&k.length&&v(k)}function I(k){(!i||k)&&(t+=e,o++,s=t.length,i=!0,c=!1)}function M(){return i?t.length:t.length+e.length}return T(),{write:v,rawWrite:C,writeLiteral:L,writeLine:I,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*TC():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>c,hasTrailingWhitespace:()=>!!t.length&&hg(t.charCodeAt(t.length-1)),clear:T,writeKeyword:v,writeOperator:v,writeParameter:v,writeProperty:v,writePunctuation:v,writeSpace:v,writeStringLiteral:v,writeSymbol:(k,U)=>v(k),writeTrailingSemicolon:v,writeComment:g,getTextPosWithWriteLine:M}}function cJ(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return so(Li({},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 DR(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function _1(e){return lu(DR(e))}function LP(e,t,r){return t.moduleName||uJ(e,t.fileName,r&&r.fileName)}function Z_e(e,t){return e.getCanonicalFileName(Ma(t,e.getCurrentDirectory()))}function epe(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const o=fC(r);if(!(o&&As(o)&&!wf(o.text)&&Z_e(e,i.path).indexOf(Z_e(e,Wu(e.getCommonSourceDirectory())))===-1))return LP(e,i)}function uJ(e,t,r){const i=d=>e.getCanonicalFileName(d),o=Js(r?vi(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=Ma(t,e.getCurrentDirectory()),c=TS(o,s,o,i,!1),_=zd(c);return r?Db(_):_}function tpe(e,t,r){const i=t.getCompilerOptions();let o;return i.outDir?o=zd(IP(e,t,i.outDir)):o=zd(e),o+r}function npe(e,t){return dJ(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function dJ(e,t,r,i,o){const s=t.declarationDir||t.outDir,c=s?mJ(e,s,r,i,o):e,_=fJ(c);return zd(c)+_}function fJ(e){return Ic(e,[".mjs",".mts"])?".d.mts":Ic(e,[".cjs",".cts"])?".d.cts":Ic(e,[".json"])?".d.json.ts":".d.ts"}function rpe(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 Ks(e){return e.outFile||e.out}function _J(e,t){var r,i;if(e.paths)return(i=e.baseUrl)!=null?i:R.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function pJ(e,t,r){const i=e.getCompilerOptions();if(Ks(i)){const o=uu(i),s=i.emitDeclarationOnly||o===2||o===4;return ur(e.getSourceFiles(),c=>(s||!tc(c))&&BS(c,e,r))}else{const o=t===void 0?e.getSourceFiles():[t];return ur(o,s=>BS(s,e,r))}}function BS(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&ld(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(E_(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function IP(e,t,r){return mJ(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function mJ(e,t,r,i,o){let s=Ma(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Fi(t,s)}function Ak(e,t,r,i,o,s,c){e.writeFile(r,i,o,_=>{t.add(Gs(m.Could_not_write_file_0_Colon_1,r,_))},s,c)}function ipe(e,t,r){if(e.length>nm(e)&&!r(e)){const i=vi(e);ipe(i,t,r),t(e)}}function hJ(e,t,r,i,o,s){try{i(e,t,r)}catch(c){ipe(vi(Xo(e)),o,s),i(e,t,r)}}function Ck(e,t){const r=mg(e);return zI(r,t)}function BT(e,t){return zI(e,t)}function Dh(e){return $t(e.members,t=>Kl(t)&&b_(t.body))}function Lk(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&qb(e.parameters[0]);return e.parameters[t?1:0]}}function ape(e){const t=Lk(e);return t&&t.type}function zb(e){if(e.parameters.length&&!rE(e)){const t=e.parameters[0];if(qb(t))return t}}function qb(e){return GT(e.name)}function GT(e){return!!e&&e.kind===79&&gJ(e)}function GS(e){if(!GT(e))return!1;for(;Rd(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===183}function gJ(e){return e.escapedText==="this"}function UT(e,t){let r,i,o,s;return qv(t)?(r=t,t.kind===174?o=t:t.kind===175?s=t:R.fail("Accessor has wrong kind")):Ie(e,c=>{if(s1(c)&&Xa(c)===Xa(t)){const _=Hb(c.name),d=Hb(t.name);_===d&&(r?i||(i=c):r=c,c.kind===174&&!o&&(o=c),c.kind===175&&!s&&(s=c))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function iu(e){if(!_r(e)&&Sc(e))return;const t=e.type;return t||!_r(e)?t:NM(e)?e.typeExpression&&e.typeExpression.type:Bv(e)}function ope(e){return e.type}function Lp(e){return rE(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(_r(e)?RD(e):void 0)}function kP(e){return ji(Nb(e),t=>rMe(t)?t.typeParameters:void 0)}function rMe(e){return wp(e)&&!(e.parent.kind===323&&(e.parent.tags.some(T_)||e.parent.tags.some(m4)))}function spe(e){const t=Lk(e);return t&&iu(t)}function lpe(e,t,r,i){cpe(e,t,r.pos,i)}function cpe(e,t,r,i){i&&i.length&&r!==i[0].pos&&BT(e,r)!==BT(e,i[0].pos)&&t.writeLine()}function upe(e,t,r,i){r!==i&&BT(e,r)!==BT(e,i)&&t.writeLine()}function dpe(e,t,r,i,o,s,c,_){if(i&&i.length>0){o&&r.writeSpace(" ");let d=!1;for(const v of i)d&&(r.writeSpace(" "),d=!1),_(e,t,r,v.pos,v.end,c),v.hasTrailingNewLine?r.writeLine():d=!0;d&&s&&r.writeSpace(" ")}}function fpe(e,t,r,i,o,s,c){let _,d;if(c?o.pos===0&&(_=ur(xh(e,o.pos),v)):_=xh(e,o.pos),_){const g=[];let T;for(const C of _){if(T){const L=BT(t,T.end);if(BT(t,C.pos)>=L+2)break}g.push(C),T=C}if(g.length){const C=BT(t,Ko(g).end);BT(t,Yo(e,o.pos))>=C+2&&(lpe(t,r,o,_),dpe(e,t,r,g,!1,!0,s,i),d={nodePos:o.pos,detachedCommentEndPos:Ko(g).end})}}return d;function v(g){return qM(e,g.pos)}}function SC(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){const c=AD(t,i),_=t.length;let d;for(let v=i,g=c.line;v<o;g++){const T=g+1===_?e.length+1:t[g+1];if(v!==i){d===void 0&&(d=_pe(e,t[c.line],i));const L=r.getIndent()*TC()-d+_pe(e,v,T);if(L>0){let I=L%TC();const M=CP((L-I)/TC());for(r.rawWrite(M);I;)r.rawWrite(" "),I--}else r.rawWrite("")}iMe(e,o,r,s,v,T),v=T}}else r.writeComment(e.substring(i,o))}function iMe(e,t,r,i,o,s){const c=Math.min(t,s-1),_=Lb(e.substring(o,c));_?(r.writeComment(_),c!==t&&r.writeLine()):r.rawWrite(i)}function _pe(e,t,r){let i=0;for(;t<r&&Gm(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=TC()-i%TC():i++;return i}function wP(e){return zu(e)!==0}function ppe(e){return Jv(e)!==0}function Hd(e,t){return!!US(e,t)}function Qr(e,t){return!!mpe(e,t)}function Xa(e){return qc(e)&&Tc(e)||Rl(e)}function Tc(e){return Qr(e,32)}function yJ(e){return Hd(e,16384)}function Jb(e){return Qr(e,256)}function vJ(e){return Qr(e,2)}function qm(e){return Qr(e,128)}function Ik(e){return Hd(e,64)}function i_(e){return Qr(e,131072)}function US(e,t){return zu(e)&t}function mpe(e,t){return Jv(e)&t}function bJ(e,t,r){return e.kind>=0&&e.kind<=162?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=EJ(e)|536870912),t&&!(e.modifierFlagsCache&4096)&&(r||_r(e))&&e.parent&&(e.modifierFlagsCache|=gpe(e)|4096),e.modifierFlagsCache&-536875009)}function zu(e){return bJ(e,!0)}function hpe(e){return bJ(e,!0,!0)}function Jv(e){return bJ(e,!1)}function gpe(e){let t=0;return e.parent&&!Ba(e)&&(_r(e)&&(vfe(e)&&(t|=4),bfe(e)&&(t|=8),Efe(e)&&(t|=16),Tfe(e)&&(t|=64),Sfe(e)&&(t|=16384)),xfe(e)&&(t|=8192)),t}function ype(e){return EJ(e)|gpe(e)}function EJ(e){let t=np(e)?Jm(e.modifiers):0;return(e.flags&4||e.kind===79&&e.flags&2048)&&(t|=1),t}function Jm(e){let t=0;if(e)for(const r of e)t|=VS(r.kind);return t}function VS(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 256;case 127:return 128;case 93:return 1;case 136:return 2;case 85:return 2048;case 88:return 1024;case 132:return 512;case 146:return 64;case 161:return 16384;case 101:return 32768;case 145:return 65536;case 167:return 131072}return 0}function vpe(e){return e===56||e===55}function bpe(e){return vpe(e)||e===53}function kk(e){return e===75||e===76||e===77}function TJ(e){return Tr(e)&&kk(e.operatorToken.kind)}function RR(e){return vpe(e)||e===60}function NR(e){return Tr(e)&&RR(e.operatorToken.kind)}function Dy(e){return e>=63&&e<=78}function SJ(e){const t=xJ(e);return t&&!t.isImplements?t.class:void 0}function xJ(e){if(Py(e)){if(Jd(e.parent)&&_i(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===117};if(YC(e.parent)){const t=hC(e.parent);if(t&&_i(t))return{class:t,isImplements:!1}}}}function cd(e,t){return Tr(e)&&(t?e.operatorToken.kind===63:Dy(e.operatorToken.kind))&&Id(e.left)}function aMe(e){return cd(e.parent)&&e.parent.left===e}function Ry(e){if(cd(e,!0)){const t=e.left.kind;return t===207||t===206}return!1}function OR(e){return SJ(e)!==void 0}function Jl(e){return e.kind===79||MR(e)}function Of(e){switch(e.kind){case 79:return e;case 163:do e=e.left;while(e.kind!==79);return e;case 208:do e=e.expression;while(e.kind!==79);return e}}function wk(e){return e.kind===79||e.kind===108||e.kind===106||e.kind===233||e.kind===208&&wk(e.expression)||e.kind===214&&wk(e.expression)}function MR(e){return Br(e)&&We(e.name)&&Jl(e.expression)}function PR(e){if(Br(e)){const t=PR(e.expression);if(t!==void 0)return t+"."+Rf(e.name)}else if(dl(e)){const t=PR(e.expression);if(t!==void 0&&bl(e.argumentExpression))return t+"."+Hb(e.argumentExpression)}else if(We(e))return ia(e.escapedText)}function p1(e){return OT(e)&&Sg(e)==="prototype"}function Dk(e){return e.parent.kind===163&&e.parent.right===e||e.parent.kind===208&&e.parent.name===e}function Epe(e){return Br(e.parent)&&e.parent.name===e||dl(e.parent)&&e.parent.argumentExpression===e}function Tpe(e){return Rd(e.parent)&&e.parent.right===e||Br(e.parent)&&e.parent.name===e||E1(e.parent)&&e.parent.right===e}function AJ(e){return e.kind===207&&e.properties.length===0}function Spe(e){return e.kind===206&&e.elements.length===0}function xC(e){if(!(!oMe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function oMe(e){return e&&ge(e.declarations)>0&&Qr(e.declarations[0],1024)}function DP(e){return $t(Ime,t=>_c(e,t))}function sMe(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)):R.assert(!1,"Unexpected code point")}return t}function xpe(e){let t="";const r=sMe(e);let i=0;const o=r.length;let s,c,_,d;for(;i<o;)s=r[i]>>2,c=(r[i]&3)<<4|r[i+1]>>4,_=(r[i+1]&15)<<2|r[i+2]>>6,d=r[i+2]&63,i+1>=o?_=d=64:i+2>=o&&(d=64),t+=$b.charAt(s)+$b.charAt(c)+$b.charAt(_)+$b.charAt(d),i+=3;return t}function lMe(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 c=e[r];for(;(c&192)===128;)s=s<<6|c&63,r++,c=e[r];t+=String.fromCharCode(s)}else t+=String.fromCharCode(o),r++}return t}function Ape(e,t){return e&&e.base64encode?e.base64encode(t):xpe(t)}function Cpe(e,t){if(e&&e.base64decode)return e.base64decode(t);const r=t.length,i=[];let o=0;for(;o<r&&t.charCodeAt(o)!==$b.charCodeAt(64);){const s=$b.indexOf(t[o]),c=$b.indexOf(t[o+1]),_=$b.indexOf(t[o+2]),d=$b.indexOf(t[o+3]),v=(s&63)<<2|c>>4&3,g=(c&15)<<4|_>>2&15,T=(_&3)<<6|d&63;g===0&&_!==0?i.push(v):T===0&&d!==0?i.push(v,g):i.push(v,g,T),o+=4}return lMe(i)}function CJ(e,t){const r=za(t)?t:t.readFile(e);if(!r)return;const i=NX(e,r);return i.error?void 0:i.config}function Rk(e,t){return CJ(e,t)||{}}function om(e,t){return!t.directoryExists||t.directoryExists(e)}function m1(e){switch(e.newLine){case 0:return xme;case 1:case void 0:return Ame}}function S_(e,t=e){return R.assert(t>=e||t===-1),{pos:e,end:t}}function RP(e,t){return S_(e.pos,t)}function h1(e,t){return S_(t,e.end)}function Kv(e){const t=np(e)?yi(e.modifiers,qu):void 0;return t&&!lm(t.end)?h1(e,t.end):e}function sm(e){if(ro(e)||sc(e))return h1(e,e.name.pos);const t=np(e)?rl(e.modifiers):void 0;return t&&!lm(t.end)?h1(e,t.end):Kv(e)}function cMe(e){return e.pos===e.end}function LJ(e,t){return S_(e,e+bo(t).length)}function VT(e,t){return Ipe(e,e,t)}function NP(e,t,r){return x_(Nk(e,r,!1),Nk(t,r,!1),r)}function Lpe(e,t,r){return x_(e.end,t.end,r)}function Ipe(e,t,r){return x_(Nk(e,r,!1),t.end,r)}function FR(e,t,r){return x_(e.end,Nk(t,r,!1),r)}function IJ(e,t,r,i){const o=Nk(t,r,i);return qI(r,e.end,o)}function uMe(e,t,r){return qI(r,e.end,t.end)}function kpe(e,t){return!x_(e.pos,e.end,t)}function x_(e,t,r){return qI(r,e,t)===0}function Nk(e,t,r){return lm(e.pos)?-1:Yo(t.text,e.pos,!1,r)}function wpe(e,t,r,i){const o=Yo(r.text,e,!1,i),s=dMe(o,t,r);return qI(r,s!=null?s:t,o)}function Dpe(e,t,r,i){const o=Yo(r.text,e,!1,i);return qI(r,e,Math.min(t,o))}function dMe(e,t=0,r){for(;e-- >t;)if(!hg(r.text.charCodeAt(e)))return e}function BR(e){const t=Ea(e);if(t)switch(t.parent.kind){case 263:case 264:return t===t.parent.name}return!1}function Ok(e){return ur(e.declarations,kJ)}function kJ(e){return $i(e)&&e.initializer!==void 0}function fMe(e){return e.watch&&Fs(e,"watch")}function Km(e){e.close()}function Dl(e){return e.flags&33554432?e.links.checkFlags:0}function a_(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&$t(e.declarations,s_)||e.flags&32768&&$t(e.declarations,Z_)||e.valueDeclaration,i=Cy(r);return e.parent&&e.parent.flags&32?i:i&-29}if(Dl(e)&6){const r=e.links.checkFlags,i=r&1024?8:r&256?4:16,o=r&2048?32:0;return i|o}return e.flags&4194304?36:0}function mf(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function Mk(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function wJ(e){return AC(e)===1}function Pk(e){return AC(e)!==0}function AC(e){const{parent:t}=e;if(!t)return 0;switch(t.kind){case 214:return AC(t);case 222:case 221:const{operator:i}=t;return i===45||i===46?r():0;case 223:const{left:o,operatorToken:s}=t;return o===e&&Dy(s.kind)?s.kind===63?1:r():0;case 208:return t.name!==e?0:AC(t);case 299:{const c=AC(t.parent);return e===t.name?_Me(c):c}case 300:return e===t.objectAssignmentInitializer?0:AC(t.parent);case 206:return AC(t);default:return 0}function r(){return t.parent&&zv(t.parent).kind===241?1:2}}function _Me(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return R.assertNever(e)}}function DJ(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(!DJ(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function o_(e,t){e.forEach(t),e.clear()}function Ag(e,t,r){const{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,c)=>{const _=t.get(c);_===void 0?(e.delete(c),i(s,c)):o&&o(s,_,c)})}function CC(e,t,r){Ag(e,t,r);const{createNewValue:i}=r;t.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function Rpe(e){if(e.flags&32){const t=Cg(e);return!!t&&Qr(t,256)}return!1}function Cg(e){var t;return(t=e.declarations)==null?void 0:t.find(_i)}function ni(e){return e.flags&3899393?e.objectFlags:0}function pMe(e,t){return!!pg(e,r=>t(r)?!0:void 0)}function OP(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&x6(e.declarations[0])}function Npe({moduleSpecifier:e}){return Wo(e)?e.text:kc(e)}function RJ(e){let t;return Pa(e,r=>{b_(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(b_(r[i])){t=r[i];break}}),t}function Ip(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function jS(e){return _i(e)||dd(e)||hf(e)}function NJ(e){return e>=179&&e<=202||e===131||e===157||e===148||e===160||e===149||e===134||e===152||e===153||e===114||e===155||e===144||e===139||e===230||e===315||e===316||e===317||e===318||e===319||e===320||e===321}function ul(e){return e.kind===208||e.kind===209}function Ope(e){return e.kind===208?e.name:(R.assert(e.kind===209),e.argumentExpression)}function Mpe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function OJ(e){return e.kind===272||e.kind===276}function Fk(e){for(;ul(e);)e=e.expression;return e}function mMe(e,t){if(ul(e.parent)&&Epe(e))return r(e.parent);function r(i){if(i.kind===208){const o=t(i.name);if(o!==void 0)return o}else if(i.kind===209)if(We(i.argumentExpression)||As(i.argumentExpression)){const o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(ul(i.expression))return r(i.expression);if(We(i.expression))return t(i.expression)}}function Bk(e,t){for(;;){switch(e.kind){case 222:e=e.operand;continue;case 223:e=e.left;continue;case 224:e=e.condition;continue;case 212:e=e.tag;continue;case 210:if(t)return e;case 231:case 209:case 208:case 232:case 356:case 235:e=e.expression;continue}return e}}function hMe(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.isAssigned=void 0,this.links=void 0}function gMe(e,t){this.flags=t,(R.isDebugging||Ti)&&(this.checker=e)}function yMe(e,t){this.flags=t,R.isDebugging&&(this.checker=e)}function MJ(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 vMe(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 bMe(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 EMe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function Ppe(e){mK.push(e),e(Kc)}function Fpe(e){Object.assign(Kc,e),Ie(mK,t=>t(Kc))}function Rh(e,t,r=0){return e.replace(/{(\d+)}/g,(i,o)=>""+R.checkDefined(t[+o+r]))}function Bpe(e){t6=e}function Gpe(e){!t6&&e&&(t6=e())}function Po(e){return t6&&t6[e.key]||e.message}function LC(e,t,r,i){Dq(void 0,t,r);let o=Po(i);return arguments.length>4&&(o=Rh(o,arguments,4)),{file:void 0,start:t,length:r,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function TMe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function Upe(e,t){const r=t.fileName||"",i=t.text.length;R.assertEqual(e.fileName,r),R.assertLessThanOrEqual(e.start,i),R.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)TMe(s)&&s.fileName===r?(R.assertLessThanOrEqual(s.start,i),R.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(Upe(s,t))):o.relatedInformation.push(s)}return o}function WS(e,t){const r=[];for(const i of e)r.push(Upe(i,t));return r}function Pc(e,t,r,i){Dq(e,t,r);let o=Po(i);return arguments.length>4&&(o=Rh(o,arguments,4)),{file:e,start:t,length:r,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function PJ(e,t){let r=Po(t);return arguments.length>2&&(r=Rh(r,arguments,2)),r}function Gs(e){let t=Po(e);return arguments.length>1&&(t=Rh(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function MP(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 Na(e,t){let r=Po(t);return arguments.length>2&&(r=Rh(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function Vpe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function jpe(e){return e.file?e.file.path:void 0}function Gk(e,t){return PP(e,t)||SMe(e,t)||0}function PP(e,t){return ju(jpe(e),jpe(t))||qs(e.start,t.start)||qs(e.length,t.length)||qs(e.code,t.code)||Wpe(e.messageText,t.messageText)||0}function SMe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?qs(e.relatedInformation.length,t.relatedInformation.length)||Ie(e.relatedInformation,(r,i)=>{const o=t.relatedInformation[i];return Gk(r,o)})||0:e.relatedInformation?-1:1}function Wpe(e,t){if(typeof e=="string"&&typeof t=="string")return ju(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=ju(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=Wpe(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 GR(e){return e===4||e===2||e===1||e===6?1:0}function Hpe(e){if(e.transformFlags&2)return sd(e)||cx(e)?e:Pa(e,Hpe)}function xMe(e){return e.isDeclarationFile?void 0:Hpe(e)}function AMe(e){return(e.impliedNodeFormat===99||Ic(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function UR(e){switch(zpe(e)){case 3:return o=>{o.externalModuleIndicator=M6(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=M6(o)};case 2:const t=[M6];(e.jsx===4||e.jsx===5)&&t.push(xMe),t.push(AMe);const r=Pm(...t);return o=>void(o.externalModuleIndicator=r(o))}}function ns(e){var t;return(t=e.target)!=null?t:e.module===100&&9||e.module===199&&99||1}function uu(e){return typeof e.module=="number"?e.module:ns(e)>=2?5:1}function FJ(e){return e>=5&&e<=99}function El(e){let t=e.moduleResolution;if(t===void 0)switch(uu(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1;break}return t}function zpe(e){return e.moduleDetection||(uu(e)===100||uu(e)===199?3:2)}function FP(e){switch(uu(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function Y_(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function BP(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function qpe(e){return e.allowUnreachableCode===!1}function Jpe(e){return e.allowUnusedLabels===!1}function GP(e){return!!(Q_(e)&&e.declarationMap)}function $_(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(uu(e)){case 100:case 199:return!0}}function jT(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:$_(e)||uu(e)===4||El(e)===100}function HS(e){return e>=3&&e<=99||e===100}function BJ(e){const t=El(e);if(!HS(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function CMe(e){const t=El(e);if(!HS(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function WT(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:El(e)===100}function Q_(e){return!!(e.declaration||e.composite)}function Kb(e){return!!(e.preserveConstEnums||Y_(e))}function VR(e){return!!(e.incremental||e.composite)}function A_(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function jR(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function WR(e){return e.useDefineForClassFields===void 0?ns(e)>=9:e.useDefineForClassFields}function Kpe(e,t){return eC(t,e,XX)}function Xpe(e,t){return eC(t,e,YX)}function Ype(e,t){return eC(t,e,$X)}function UP(e,t){return t.strictFlag?A_(e,t.name):e[t.name]}function GJ(e){const t=e.jsx;return t===2||t===4||t===5}function VP(e,t){const r=t==null?void 0:t.pragmas.get("jsximportsource"),i=ja(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 jP(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function UJ(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 $pe(e,t){let r,i,o,s=!1;return{getSymlinkedFiles:()=>o,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(_,d)=>(o||(o=new Map)).set(_,d),setSymlinkedDirectory:(_,d)=>{let v=Js(_,e,t);Jk(v)||(v=Wu(v),d!==!1&&!(r!=null&&r.has(v))&&(i||(i=v_())).add(Wu(d.realPath),_),(r||(r=new Map)).set(v,d))},setSymlinksFromResolutions(_,d){var v,g;R.assert(!s),s=!0;for(const T of _)(v=T.resolvedModules)==null||v.forEach(C=>c(this,C.resolvedModule)),(g=T.resolvedTypeReferenceDirectiveNames)==null||g.forEach(C=>c(this,C.resolvedTypeReferenceDirective));d.forEach(T=>c(this,T.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function c(_,d){if(!d||!d.originalPath||!d.resolvedFileName)return;const{resolvedFileName:v,originalPath:g}=d;_.setSymlinkedFile(Js(g,e,t),v);const[T,C]=LMe(v,g,e,t)||it;T&&C&&_.setSymlinkedDirectory(C,{real:T,realPath:Js(T,e,t)})}}function LMe(e,t,r,i){const o=md(Ma(e,r)),s=md(Ma(t,r));let c=!1;for(;o.length>=2&&s.length>=2&&!Qpe(o[o.length-2],i)&&!Qpe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),c=!0;return c?[wb(o),wb(s)]:void 0}function Qpe(e,t){return e!==void 0&&(t(e)==="node_modules"||xa(e,"@"))}function IMe(e){return Ez(e.charCodeAt(0))?e.slice(1):void 0}function VJ(e,t,r){const i=sH(e,t,r);return i===void 0?void 0:IMe(i)}function kMe(e){return e.replace(ZP,wMe)}function wMe(e){return"\\"+e}function Uk(e,t,r){const i=WP(e,t,r);return!i||!i.length?void 0:`^(${i.map(c=>`(${c})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function WP(e,t,r){if(!(e===void 0||e.length===0))return ji(e,i=>i&&Zpe(i,t,r,bK[r]))}function jJ(e){return!/[.*?]/.test(e)}function WJ(e,t,r){const i=e&&Zpe(e,t,r,bK[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function Zpe(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}){let c="",_=!1;const d=vD(e,t),v=Ko(d);if(r!=="exclude"&&v==="**")return;d[0]=yT(d[0]),jJ(v)&&d.push("**","*");let g=0;for(let T of d){if(T==="**")c+=o;else if(r==="directories"&&(c+="(",g++),_&&(c+=Bs),r!=="exclude"){let C="";T.charCodeAt(0)===42?(C+="([^./]"+i+")?",T=T.substr(1)):T.charCodeAt(0)===63&&(C+="[^./]",T=T.substr(1)),C+=T.replace(ZP,s),C!==T&&(c+=e5),c+=C}else c+=T.replace(ZP,s);_=!0}for(;g>0;)c+=")?",g--;return c}function HJ(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function Vk(e,t,r,i,o){e=Xo(e),o=Xo(o);const s=Fi(o,e);return{includeFilePatterns:Pt(WP(r,s,"files"),c=>`^${c}$`),includeFilePattern:Uk(r,s,"files"),includeDirectoryPattern:Uk(r,s,"directories"),excludePattern:Uk(t,s,"exclude"),basePaths:DMe(e,r,i)}}function Xv(e,t){return new RegExp(e,t?"":"i")}function zJ(e,t,r,i,o,s,c,_,d){e=Xo(e),s=Xo(s);const v=Vk(e,r,i,o,s),g=v.includeFilePatterns&&v.includeFilePatterns.map(U=>Xv(U,o)),T=v.includeDirectoryPattern&&Xv(v.includeDirectoryPattern,o),C=v.excludePattern&&Xv(v.excludePattern,o),L=g?g.map(()=>[]):[[]],I=new Map,M=lu(o);for(const U of v.basePaths)k(U,Fi(s,U),c);return Ha(L);function k(U,j,H){const ee=M(d(j));if(I.has(ee))return;I.set(ee,!0);const{files:X,directories:ne}=_(U);for(const P of MI(X,ju)){const ue=Fi(U,P),re=Fi(j,P);if(!(t&&!Ic(ue,t))&&!(C&&C.test(re)))if(!g)L[0].push(ue);else{const be=ii(g,ae=>ae.test(re));be!==-1&&L[be].push(ue)}}if(!(H!==void 0&&(H--,H===0)))for(const P of MI(ne,ju)){const ue=Fi(U,P),re=Fi(j,P);(!T||T.test(re))&&(!C||!C.test(re))&&k(ue,re,H)}}}function DMe(e,t,r){const i=[e];if(t){const o=[];for(const s of t){const c=Fm(s)?s:Xo(Fi(e,s));o.push(RMe(c))}o.sort(j7(!r));for(const s of o)Qn(i,c=>!Mv(c,s,e,!r))&&i.push(s)}return i}function RMe(e){const t=Lc(e,Cme);return t<0?WA(e)?yT(vi(e)):e:e.substring(0,e.lastIndexOf(Bs,t))}function HP(e,t){return t||qJ(e)||3}function qJ(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 jk(e,t){const r=e&&jR(e);if(!t||t.length===0)return r?n6:OC;const i=r?n6:OC,o=Ha(i);return[...i,...ua(t,c=>c.scriptKind===7||r&&NMe(c.scriptKind)&&o.indexOf(c.extension)===-1?[c.extension]:void 0)]}function HR(e,t){return!e||!WT(e)?t:t===n6?kme:t===OC?Lme:[...t,[".json"]]}function NMe(e){return e===1||e===2}function zS(e){return Dt($k,t=>_c(e,t))}function zR(e){return Dt(EK,t=>_c(e,t))}function eme({imports:e},t=Pm(zS,zR)){return qt(e,({text:r})=>wf(r)?t(r):void 0)||!1}function JJ(e,t,r,i){if(e==="js"||t===99)return L4(r)&&o()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!L4(r))return eme(i)?2:0;return o();function o(){let s=!1;const c=i.imports.length?i.imports.map(_=>_.text):ld(i)?OMe(i).map(_=>_.arguments[0].text):it;for(const _ of c)if(wf(_)){if(zR(_))return 3;zS(_)&&(s=!0)}return s?2:0}}function OMe(e){let t=0,r;for(const i of e.statements){if(t>3)break;Hq(i)?r=ba(r,i.declarationList.declarations.map(o=>o.initializer)):du(i)&&wd(i.expression,!0)?r=Pn(r,i.expression):t++}return r||it}function tme(e,t,r){if(!e)return!1;const i=jk(t,r);for(const o of Ha(HR(t,i)))if(_c(e,o))return!0;return!1}function nme(e){const t=e.match(/\//g);return t?t.length:0}function qR(e,t){return qs(nme(e),nme(t))}function zd(e){for(const t of r5){const r=rme(e,t);if(r!==void 0)return r}return e}function rme(e,t){return _c(e,t)?JR(e,t):void 0}function JR(e,t){return e.substring(0,e.length-t.length)}function Xb(e,t){return xz(e,t,r5,!1)}function IC(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 zP(e){return ua(fg(e),t=>IC(t))}function lm(e){return!(e>=0)}function qP(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||xa(e,".d.")&&oc(e,".ts")}function KR(e){return qP(e)||e===".json"}function XR(e){const t=Nh(e);return t!==void 0?t:R.fail(`File ${e} has unknown extension.`)}function MMe(e){return Nh(e)!==void 0}function Nh(e){return $t(r5,t=>_c(e,t))}function YR(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function KJ(e,t){const r=[];for(const i of e){if(i===t)return t;za(i)||r.push(i)}return oH(r,i=>i,t)}function XJ(e,t){const r=e.indexOf(t);return R.assert(r!==-1),e.slice(r)}function $o(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),R.assert(e.relatedInformation!==it,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function ime(e,t){R.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 YJ(e){return{pos:IT(e),end:e.end}}function $J(e,t){const r=t.pos-1,i=Math.min(e.text.length,Yo(e.text,t.end)+1);return{pos:r,end:i}}function Wk(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function QJ(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&Uue(e,t,QJ)}function Hk(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 v=e.length-1;let g=0;for(;e.charCodeAt(g)===48;)g++;return e.slice(g,v)||"0"}const r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let v=i-1,g=0;v>=r;v--,g+=t){const T=g>>>4,C=e.charCodeAt(v),I=(C<=57?C-48:10+C-(C<=70?65:97))<<(g&15);s[T]|=I;const M=I>>>16;M&&(s[T+1]|=M)}let c="",_=s.length-1,d=!0;for(;d;){let v=0;d=!1;for(let g=_;g>=0;g--){const T=v<<16|s[g],C=T/10|0;s[g]=C,v=T-C*10,C&&!d&&(_=g,d=!0)}c=v+c}return c}function Yb({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function ame(e){if(JP(e,!1))return ZJ(e)}function ZJ(e){const t=e.startsWith("-"),r=Hk(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function JP(e,t){if(e==="")return!1;const r=xy(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan();const s=o===40;s&&(o=r.scan());const c=r.getTokenFlags();return i&&o===9&&r.getTextPos()===e.length+1&&!(c&512)&&(!t||e===Yb({negative:s,base10Value:Hk(r.getTokenValue())}))}function qS(e){return!!(e.flags&16777216)||fP(e)||BMe(e)||FMe(e)||!(Tg(e)||PMe(e))}function PMe(e){return We(e)&&l_(e.parent)&&e.parent.name===e}function FMe(e){for(;e.kind===79||e.kind===208;)e=e.parent;if(e.kind!==164)return!1;if(Qr(e.parent,256))return!0;const t=e.parent.parent.kind;return t===261||t===184}function BMe(e){if(e.kind!==79)return!1;const t=rr(e.parent,r=>{switch(r.kind){case 294:return!0;case 208:case 230:return!1;default:return"quit"}});return(t==null?void 0:t.token)===117||(t==null?void 0:t.parent.kind)===261}function ome(e){return ep(e)&&We(e.typeName)}function sme(e,t=r1){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 zk(e,t){return e.pos=t,e}function kC(e,t){return e.end=t,e}function Xm(e,t,r){return kC(zk(e,t),r)}function qk(e,t,r){return Xm(e,t,t+r)}function lme(e,t){return e&&(e.flags=t),e}function jo(e,t){return e&&t&&(e.parent=t),e}function wC(e,t){if(e)for(const r of e)jo(r,t);return e}function Yv(e,t){if(!e)return e;return P6(e,ZA(e)?r:o),e;function r(s,c){if(t&&s.parent===c)return"skip";jo(s,c)}function i(s){if(Df(s))for(const c of s.jsDoc)r(c,s),P6(c,r)}function o(s,c){return r(s,c)||i(s)}}function GMe(e){return!Fc(e)}function eK(e){return Ju(e)&&Qn(e.elements,GMe)}function cme(e){for(R.assertIsDefined(e.parent);;){const t=e.parent;if(qd(t)){e=t;continue}if(du(t)||ix(t)||KT(t)&&(t.initializer===e||t.incrementor===e))return!0;if(c4(t)){if(e!==Ko(t.elements))return!0;e=t;continue}if(Tr(t)&&t.operatorToken.kind===27){if(e===t.left)return!0;e=t;continue}return!1}}function Jk(e){return Dt(gD,t=>bu(e,t))}function ume(e){if(!e.parent)return;switch(e.kind){case 165:const{parent:r}=e;return r.kind===192?void 0:r.typeParameters;case 166:return e.parent.parameters;case 201:return e.parent.templateSpans;case 236:return e.parent.templateSpans;case 167:{const{parent:i}=e;return _x(i)?i.modifiers:void 0}case 294:return e.parent.heritageClauses}const{parent:t}=e;if(sk(e))return p4(e.parent)?void 0:e.parent.tags;switch(t.kind){case 184:case 261:return xT(e)?t.members:void 0;case 189:case 190:return t.types;case 186:case 206:case 357:case 272:case 276:return t.elements;case 207:case 289:return t.properties;case 210:case 211:return Bi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 281:case 285:return jD(e)?t.children:void 0;case 283:case 282:return Bi(e)?t.typeArguments:void 0;case 238:case 292:case 293:case 265:return t.statements;case 266:return t.clauses;case 260:case 228:return qc(e)?t.members:void 0;case 263:return nE(e)?t.members:void 0;case 308:return t.statements}}function KP(e){if(!e.typeParameters){if(Dt(e.parameters,t=>!iu(t)))return!0;if(e.kind!==216){const t=tu(e.parameters);if(!(t&&qb(t)))return!0}}return!1}function Kk(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function dme(e){return e.kind===257&&e.parent.kind===295}function tK(e){const t=e.valueDeclaration&&zm(e.valueDeclaration);return!!t&&(Ba(t)||dme(t))}function DC(e){return e.kind===215||e.kind===216}function HT(e){return e.replace(/\$/gm,()=>"\\$")}function Oh(e){return(+e).toString()===e}function XP(e,t,r,i){return W_(e,t)?O.createIdentifier(e):!i&&Oh(e)&&+e>=0?O.createNumericLiteral(+e):O.createStringLiteral(e,!!r)}function Xk(e){return!!(e.flags&262144&&e.isThisType)}function nK(e){let t=0,r=0,i=0,o=0,s;(v=>{v[v.BeforeNodeModules=0]="BeforeNodeModules",v[v.NodeModules=1]="NodeModules",v[v.Scope=2]="Scope",v[v.PackageContent=3]="PackageContent"})(s||(s={}));let c=0,_=0,d=0;for(;_>=0;)switch(c=_,_=e.indexOf("/",c+1),d){case 0:e.indexOf(Gy,c)===c&&(t=c,r=_,d=1);break;case 1:case 2:d===1&&e.charAt(c+1)==="@"?d=2:(i=_,d=3);break;case 3:e.indexOf(Gy,c)===c?d=1:d=3;break}return o=c,d>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function UMe(e){var t;return e.kind===344?(t=e.typeExpression)==null?void 0:t.type:e.type}function RC(e){switch(e.kind){case 165:case 260:case 261:case 262:case 263:case 349:case 341:case 343:return!0;case 270:return e.isTypeOnly;case 273:case 278:return e.parent.parent.isTypeOnly;default:return!1}}function $R(e){return b1(e)||pc(e)||Sc(e)||Bc(e)||dd(e)||RC(e)||Xl(e)&&!Bb(e)&&!im(e)}function QR(e){if(!NM(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===319}function rK(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&Ah(e.charCodeAt(1),t):Ah(r,t)}function fme(e){var t;return((t=OK(e))==null?void 0:t.kind)===0}function ZR(e){return _r(e)&&(e.type&&e.type.kind===319||QI(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===319))}function iK(e){switch(e.kind){case 169:case 168:return!!e.questionToken;case 166:return!!e.questionToken||ZR(e);case 351:case 344:return QR(e);default:return!1}}function _me(e){const t=e.kind;return(t===208||t===209)&&ax(e.expression)}function aK(e){return _r(e)&&qd(e)&&Df(e)&&!!jz(e)}function oK(e){return R.checkDefined(YP(e))}function YP(e){const t=jz(e);return t&&t.typeExpression&&t.typeExpression.type}var $P,g1,e6,QP,Yk,sK,lK,pme,cK,mme,uK,dK,fK,_K,hme,gme,yme,vme,bme,pK,Eme,Tme,Sme,NC,$b,xme,Ame,Kc,mK,t6,ZP,Cme,hK,e5,gK,yK,vK,bK,OC,EK,Lme,Ime,TK,$k,n6,kme,t5,n5,SK,r5,i5,VMe=b({"src/compiler/utilities.ts"(){"use strict";Oa(),$P=[],g1="tslib",e6=160,QP=1e6,Yk=S7e(),sK=(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))(sK||{}),lK=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,pme=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,cK=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,mme=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,uK=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(uK||{}),dK=(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))(dK||{}),fK=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(fK||{}),_K=(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))(_K||{}),hme=/\$\{/g,gme=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,yme=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,vme=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,bme=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),pK=/[^\u0000-\u007F]/g,Eme=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Tme=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Sme=new Map(Object.entries({'"':"&quot;","'":"&apos;"})),NC=[""," "],$b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",xme=`\r
`,Ame=`
`,Kc={getNodeConstructor:()=>MJ,getTokenConstructor:()=>vMe,getIdentifierConstructor:()=>bMe,getPrivateIdentifierConstructor:()=>MJ,getSourceFileConstructor:()=>MJ,getSymbolConstructor:()=>hMe,getTypeConstructor:()=>gMe,getSignatureConstructor:()=>yMe,getSourceMapSourceConstructor:()=>EMe},mK=[],ZP=/[^\w\s\/]/g,Cme=[42,63],hK=["node_modules","bower_components","jspm_packages"],e5=`(?!(${hK.join("|")})(/|$))`,gK={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${e5}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>HJ(e,gK.singleAsteriskRegexFragment)},yK={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${e5}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>HJ(e,yK.singleAsteriskRegexFragment)},vK={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>HJ(e,vK.singleAsteriskRegexFragment)},bK={files:gK,directories:yK,exclude:vK},OC=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],EK=Ha(OC),Lme=[...OC,[".json"]],Ime=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"],TK=[[".js",".jsx"],[".mjs"],[".cjs"]],$k=Ha(TK),n6=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],kme=[...n6,[".json"]],t5=[".d.ts",".d.cts",".d.mts"],n5=[".ts",".cts",".mts",".tsx"],SK=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(SK||{}),r5=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],i5={files:it,directories:it}}});function wme(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:c,createBasePrivateIdentifierNode:_,createBaseTokenNode:d,createBaseNode:v};function s(g){return new(o||(o=Kc.getSourceFileConstructor()))(g,-1,-1)}function c(g){return new(r||(r=Kc.getIdentifierConstructor()))(g,-1,-1)}function _(g){return new(i||(i=Kc.getPrivateIdentifierConstructor()))(g,-1,-1)}function d(g){return new(t||(t=Kc.getTokenConstructor()))(g,-1,-1)}function v(g){return new(e||(e=Kc.getNodeConstructor()))(g,-1,-1)}}var jMe=b({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";Oa()}});function Dme(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:v,parenthesizeRightSideOfBinary:g,parenthesizeExpressionOfComputedPropertyName:T,parenthesizeConditionOfConditionalExpression:C,parenthesizeBranchOfConditionalExpression:L,parenthesizeExpressionOfExportDefault:I,parenthesizeExpressionOfNew:M,parenthesizeLeftSideOfAccess:k,parenthesizeOperandOfPostfixUnary:U,parenthesizeOperandOfPrefixUnary:j,parenthesizeExpressionsOfCommaDelimitedList:H,parenthesizeExpressionForDisallowedComma:ee,parenthesizeExpressionOfExpressionStatement:X,parenthesizeConciseBodyOfArrowFunction:ne,parenthesizeCheckTypeOfConditionalType:P,parenthesizeExtendsTypeOfConditionalType:ue,parenthesizeConstituentTypesOfUnionType:be,parenthesizeConstituentTypeOfUnionType:re,parenthesizeConstituentTypesOfIntersectionType:z,parenthesizeConstituentTypeOfIntersectionType:ae,parenthesizeOperandOfTypeOperator:ce,parenthesizeOperandOfReadonlyTypeOperator:he,parenthesizeNonArrayTypeOfPostfixType:Ee,parenthesizeElementTypesOfTupleType:Ae,parenthesizeElementTypeOfTupleType:te,parenthesizeTypeOfOptionalType:je,parenthesizeTypeArguments:Fe,parenthesizeLeadingTypeArgument:Ue};function i(Be){t||(t=new Map);let $e=t.get(Be);return $e||($e=ze=>v(Be,ze),t.set(Be,$e)),$e}function o(Be){r||(r=new Map);let $e=r.get(Be);return $e||($e=ze=>g(Be,void 0,ze),r.set(Be,$e)),$e}function s(Be,$e,ze,Ge){const lt=AR(223,Be),Ct=aJ(223,Be),bt=H_($e);if(!ze&&$e.kind===216&&lt>3)return!0;const zt=AP(bt);switch(qs(zt,lt)){case-1:return!(!ze&&Ct===1&&$e.kind===226);case 1:return!1;case 0:if(ze)return Ct===1;if(Tr(bt)&&bt.operatorToken.kind===Be){if(c(Be))return!1;if(Be===39){const ot=Ge?_(Ge):0;if(rk(ot)&&ot===_(bt))return!1}}return iJ(bt)===0}}function c(Be){return Be===41||Be===51||Be===50||Be===52||Be===27}function _(Be){if(Be=H_(Be),rk(Be.kind))return Be.kind;if(Be.kind===223&&Be.operatorToken.kind===39){if(Be.cachedLiteralKind!==void 0)return Be.cachedLiteralKind;const $e=_(Be.left),ze=rk($e)&&$e===_(Be.right)?$e:0;return Be.cachedLiteralKind=ze,ze}return 0}function d(Be,$e,ze,Ge){return H_($e).kind===214?$e:s(Be,$e,ze,Ge)?e.createParenthesizedExpression($e):$e}function v(Be,$e){return d(Be,$e,!0)}function g(Be,$e,ze){return d(Be,ze,!1,$e)}function T(Be){return g4(Be)?e.createParenthesizedExpression(Be):Be}function C(Be){const $e=AR(224,57),ze=H_(Be),Ge=AP(ze);return qs(Ge,$e)!==1?e.createParenthesizedExpression(Be):Be}function L(Be){const $e=H_(Be);return g4($e)?e.createParenthesizedExpression(Be):Be}function I(Be){const $e=H_(Be);let ze=g4($e);if(!ze)switch(Bk($e,!1).kind){case 228:case 215:ze=!0}return ze?e.createParenthesizedExpression(Be):Be}function M(Be){const $e=Bk(Be,!0);switch($e.kind){case 210:return e.createParenthesizedExpression(Be);case 211:return $e.arguments?Be:e.createParenthesizedExpression(Be)}return k(Be)}function k(Be,$e){const ze=H_(Be);return Id(ze)&&(ze.kind!==211||ze.arguments)&&($e||!xu(ze))?Be:ht(e.createParenthesizedExpression(Be),Be)}function U(Be){return Id(Be)?Be:ht(e.createParenthesizedExpression(Be),Be)}function j(Be){return nq(Be)?Be:ht(e.createParenthesizedExpression(Be),Be)}function H(Be){const $e=Ui(Be,ee);return ht(e.createNodeArray($e,Be.hasTrailingComma),Be)}function ee(Be){const $e=H_(Be),ze=AP($e),Ge=AR(223,27);return ze>Ge?Be:ht(e.createParenthesizedExpression(Be),Be)}function X(Be){const $e=H_(Be);if(io($e)){const Ge=$e.expression,lt=H_(Ge).kind;if(lt===215||lt===216){const Ct=e.updateCallExpression($e,ht(e.createParenthesizedExpression(Ge),Ge),$e.typeArguments,$e.arguments);return e.restoreOuterExpressions(Be,Ct,8)}}const ze=Bk($e,!1).kind;return ze===207||ze===215?ht(e.createParenthesizedExpression(Be),Be):Be}function ne(Be){return!fo(Be)&&(g4(Be)||Bk(Be,!1).kind===207)?ht(e.createParenthesizedExpression(Be),Be):Be}function P(Be){switch(Be.kind){case 181:case 182:case 191:return e.createParenthesizedType(Be)}return Be}function ue(Be){switch(Be.kind){case 191:return e.createParenthesizedType(Be)}return Be}function re(Be){switch(Be.kind){case 189:case 190:return e.createParenthesizedType(Be)}return P(Be)}function be(Be){return e.createNodeArray(Ui(Be,re))}function ae(Be){switch(Be.kind){case 189:case 190:return e.createParenthesizedType(Be)}return re(Be)}function z(Be){return e.createNodeArray(Ui(Be,ae))}function ce(Be){switch(Be.kind){case 190:return e.createParenthesizedType(Be)}return ae(Be)}function he(Be){switch(Be.kind){case 195:return e.createParenthesizedType(Be)}return ce(Be)}function Ee(Be){switch(Be.kind){case 192:case 195:case 183:return e.createParenthesizedType(Be)}return ce(Be)}function Ae(Be){return e.createNodeArray(Ui(Be,te))}function te(Be){return Ze(Be)?e.createParenthesizedType(Be):Be}function Ze(Be){return KC(Be)?Be.postfix:o4(Be)||Ph(Be)||i4(Be)||nx(Be)?Ze(Be.type):VC(Be)?Ze(Be.falseType):ex(Be)||y6(Be)?Ze(Ko(Be.types)):jC(Be)?!!Be.typeParameter.constraint&&Ze(Be.typeParameter.constraint):!1}function je(Be){return Ze(Be)?e.createParenthesizedType(Be):Ee(Be)}function Ue(Be){return Nfe(Be)&&Be.typeParameters?e.createParenthesizedType(Be):Be}function Je(Be,$e){return $e===0?Ue(Be):Be}function Fe(Be){if(Dt(Be))return e.createNodeArray(Ui(Be,Je))}}var xK,WMe=b({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";Oa(),xK={getParenthesizeLeftSideOfBinaryForOperator:e=>gl,getParenthesizeRightSideOfBinaryForOperator:e=>gl,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:gl,parenthesizeConditionOfConditionalExpression:gl,parenthesizeBranchOfConditionalExpression:gl,parenthesizeExpressionOfExportDefault:gl,parenthesizeExpressionOfNew:e=>lo(e,Id),parenthesizeLeftSideOfAccess:e=>lo(e,Id),parenthesizeOperandOfPostfixUnary:e=>lo(e,Id),parenthesizeOperandOfPrefixUnary:e=>lo(e,nq),parenthesizeExpressionsOfCommaDelimitedList:e=>lo(e,Ob),parenthesizeExpressionForDisallowedComma:gl,parenthesizeExpressionOfExpressionStatement:gl,parenthesizeConciseBodyOfArrowFunction:gl,parenthesizeCheckTypeOfConditionalType:gl,parenthesizeExtendsTypeOfConditionalType:gl,parenthesizeConstituentTypesOfUnionType:e=>lo(e,Ob),parenthesizeConstituentTypeOfUnionType:gl,parenthesizeConstituentTypesOfIntersectionType:e=>lo(e,Ob),parenthesizeConstituentTypeOfIntersectionType:gl,parenthesizeOperandOfTypeOperator:gl,parenthesizeOperandOfReadonlyTypeOperator:gl,parenthesizeNonArrayTypeOfPostfixType:gl,parenthesizeElementTypesOfTupleType:e=>lo(e,Ob),parenthesizeElementTypeOfTupleType:gl,parenthesizeTypeOfOptionalType:gl,parenthesizeTypeArguments:e=>e&&lo(e,Ob),parenthesizeLeadingTypeArgument:gl}}});function Rme(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToArrayAssignmentElement:i,convertToObjectAssignmentElement:o,convertToAssignmentPattern:s,convertToObjectAssignmentPattern:c,convertToArrayAssignmentPattern:_,convertToAssignmentElementTarget:d};function t(v,g){if(fo(v))return v;const T=e.createReturnStatement(v);ht(T,v);const C=e.createBlock([T],g);return ht(C,v),C}function r(v){if(!v.body)return R.fail("Cannot convert a FunctionDeclaration without a body");const g=e.createFunctionExpression(ET(v),v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body);return zr(g,v),ht(g,v),l6(v)&&NK(g,!0),g}function i(v){if(ms(v)){if(v.dotDotDotToken)return R.assertNode(v.name,We),zr(ht(e.createSpreadElement(v.name),v),v);const g=d(v.name);return v.initializer?zr(ht(e.createAssignment(g,v.initializer),v),v):g}return lo(v,yt)}function o(v){if(ms(v)){if(v.dotDotDotToken)return R.assertNode(v.name,We),zr(ht(e.createSpreadAssignment(v.name),v),v);if(v.propertyName){const g=d(v.name);return zr(ht(e.createPropertyAssignment(v.propertyName,v.initializer?e.createAssignment(g,v.initializer):g),v),v)}return R.assertNode(v.name,We),zr(ht(e.createShorthandPropertyAssignment(v.name,v.initializer),v),v)}return lo(v,Iy)}function s(v){switch(v.kind){case 204:case 206:return _(v);case 203:case 207:return c(v)}}function c(v){return $m(v)?zr(ht(e.createObjectLiteralExpression(Pt(v.elements,o)),v),v):lo(v,Is)}function _(v){return WC(v)?zr(ht(e.createArrayLiteralExpression(Pt(v.elements,i)),v),v):lo(v,Ju)}function d(v){return $a(v)?s(v):lo(v,yt)}}var AK,HMe=b({"src/compiler/factory/nodeConverters.ts"(){"use strict";Oa(),AK={convertToFunctionBlock:qa,convertToFunctionExpression:qa,convertToArrayAssignmentElement:qa,convertToObjectAssignmentElement:qa,convertToAssignmentPattern:qa,convertToObjectAssignmentPattern:qa,convertToArrayAssignmentPattern:qa,convertToAssignmentElementTarget:qa}}});function zMe(e){wK.push(e)}function r6(e,t){const r=e&8?qMe:JMe,i=Ld(()=>e&1?xK:Dme(U)),o=Ld(()=>e&2?AK:Rme(U)),s=Mm(E=>(w,G)=>V(w,E,G)),c=Mm(E=>w=>D_(E,w)),_=Mm(E=>w=>op(w,E)),d=Mm(E=>()=>LE(E)),v=Mm(E=>w=>Yy(E,w)),g=Mm(E=>(w,G)=>Ns(E,w,G)),T=Mm(E=>(w,G)=>P2(E,w,G)),C=Mm(E=>(w,G)=>IE(E,w,G)),L=Mm(E=>(w,G)=>Kh(E,w,G)),I=Mm(E=>(w,G,se)=>S0(E,w,G,se)),M=Mm(E=>(w,G,se)=>x0(E,w,G,se)),k=Mm(E=>(w,G,se,Ke)=>hu(E,w,G,se,Ke)),U={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:j,createNumericLiteral:ne,createBigIntLiteral:P,createStringLiteral:re,createStringLiteralFromNode:be,createRegularExpressionLiteral:ae,createLiteralLikeNode:z,createIdentifier:Ee,createTempVariable:Ae,createLoopVariable:te,createUniqueName:Ze,getGeneratedNameForNode:je,createPrivateIdentifier:Je,createUniquePrivateName:Be,getGeneratedPrivateNameForNode:$e,createToken:Ge,createSuper:lt,createThis:Ct,createNull:bt,createTrue:zt,createFalse:nt,createModifier:ot,createModifiersFromModifierFlags:sn,createQualifiedName:pn,updateQualifiedName:gn,createComputedPropertyName:jn,updateComputedPropertyName:Ln,createTypeParameterDeclaration:Zt,updateTypeParameterDeclaration:pr,createParameterDeclaration:Ii,updateParameterDeclaration:ea,createDecorator:ta,updateDecorator:Or,createPropertySignature:Lt,updatePropertySignature:yn,createPropertyDeclaration:In,updatePropertyDeclaration:Bn,createMethodSignature:lr,updateMethodSignature:Oi,createMethodDeclaration:bi,updateMethodDeclaration:Rn,createConstructorDeclaration:Oe,updateConstructorDeclaration:gt,createGetAccessorDeclaration:Le,updateGetAccessorDeclaration:pt,createSetAccessorDeclaration:ie,updateSetAccessorDeclaration:ye,createCallSignature:He,updateCallSignature:et,createConstructSignature:Ye,updateConstructSignature:jt,createIndexSignature:cn,updateIndexSignature:Sn,createClassStaticBlockDeclaration:On,updateClassStaticBlockDeclaration:Ir,createTemplateLiteralTypeSpan:Er,updateTemplateLiteralTypeSpan:de,createKeywordTypeNode:mt,createTypePredicateNode:Jt,updateTypePredicateNode:at,createTypeReferenceNode:fe,updateTypeReferenceNode:Te,createFunctionTypeNode:Y,updateFunctionTypeNode:Ne,createConstructorTypeNode:wt,updateConstructorTypeNode:nn,createTypeQueryNode:gi,updateTypeQueryNode:ui,createTypeLiteralNode:Wi,updateTypeLiteralNode:go,createArrayTypeNode:xo,updateArrayTypeNode:oo,createTupleTypeNode:da,updateTupleTypeNode:Hi,createNamedTupleMember:$r,updateNamedTupleMember:ls,createOptionalTypeNode:mi,updateOptionalTypeNode:fa,createRestTypeNode:wn,updateRestTypeNode:pa,createUnionTypeNode:jl,updateUnionTypeNode:$l,createIntersectionTypeNode:Wl,updateIntersectionTypeNode:Io,createConditionalTypeNode:La,updateConditionalTypeNode:Qo,createInferTypeNode:Hl,updateInferTypeNode:ou,createImportTypeNode:Zc,updateImportTypeNode:Rs,createParenthesizedType:yl,updateParenthesizedType:nl,createThisTypeNode:Ys,createTypeOperatorNode:rn,updateTypeOperatorNode:zl,createIndexedAccessTypeNode:wu,updateIndexedAccessTypeNode:Zu,createMappedTypeNode:_e,updateMappedTypeNode:kt,createLiteralTypeNode:Ht,updateLiteralTypeNode:Z,createTemplateLiteralType:$d,updateTemplateLiteralType:lc,createObjectBindingPattern:st,updateObjectBindingPattern:At,createArrayBindingPattern:fn,updateArrayBindingPattern:Dr,createBindingElement:Mr,updateBindingElement:Sa,createArrayLiteralExpression:cs,updateArrayLiteralExpression:yo,createObjectLiteralExpression:Ho,updateObjectLiteralExpression:Qa,createPropertyAccessExpression:e&4?(E,w)=>sr(mc(E,w),262144):mc,updatePropertyAccessExpression:bd,createPropertyAccessChain:e&4?(E,w,G)=>sr(Ts(E,w,G),262144):Ts,updatePropertyAccessChain:fs,createElementAccessExpression:Qd,updateElementAccessExpression:ql,createElementAccessChain:Uf,updateElementAccessChain:Ce,createCallExpression:Nn,updateCallExpression:Qi,createCallChain:ko,updateCallChain:oe,createNewExpression:dt,updateNewExpression:Bt,createTaggedTemplateExpression:Ft,updateTaggedTemplateExpression:un,createTypeAssertion:Vn,updateTypeAssertion:Rr,createParenthesizedExpression:ri,updateParenthesizedExpression:Mi,createFunctionExpression:Wa,updateFunctionExpression:zo,createArrowFunction:Ss,updateArrowFunction:$s,createDeleteExpression:Ed,updateDeleteExpression:vf,createTypeOfExpression:rc,updateTypeOfExpression:Zd,createVoidExpression:Du,updateVoidExpression:bf,createAwaitExpression:w_,updateAwaitExpression:Zo,createPrefixUnaryExpression:D_,updatePrefixUnaryExpression:Ef,createPostfixUnaryExpression:op,updatePostfixUnaryExpression:Fp,createBinaryExpression:V,updateBinaryExpression:Kt,createConditionalExpression:Yn,updateConditionalExpression:Da,createTemplateExpression:Ia,updateTemplateExpression:De,createTemplateHead:En,createTemplateMiddle:Wn,createTemplateTail:Jr,createNoSubstitutionTemplateLiteral:Xi,createTemplateLiteralLikeNode:vn,createYieldExpression:nr,updateYieldExpression:_n,createSpreadElement:dr,updateSpreadElement:Aa,createClassExpression:Qs,updateClassExpression:cc,createOmittedExpression:ih,createExpressionWithTypeArguments:Mg,updateExpressionWithTypeArguments:sp,createAsExpression:w1,updateAsExpression:f0,createNonNullExpression:Vx,updateNonNullExpression:x2,createSatisfiesExpression:jx,updateSatisfiesExpression:Pg,createNonNullChain:lp,updateNonNullChain:_0,createMetaProperty:Hh,updateMetaProperty:Bp,createTemplateSpan:p0,updateTemplateSpan:gE,createSemicolonClassElement:D1,createBlock:Fg,updateBlock:A2,createVariableStatement:yE,updateVariableStatement:vE,createEmptyStatement:bE,createExpressionStatement:m0,updateExpressionStatement:Wx,createIfStatement:EE,updateIfStatement:TE,createDoStatement:h0,updateDoStatement:R1,createWhileStatement:g0,updateWhileStatement:C2,createForStatement:Bg,updateForStatement:es,createForInStatement:SE,updateForInStatement:NL,createForOfStatement:Ky,updateForOfStatement:Gg,createContinueStatement:ah,updateContinueStatement:cp,createBreakStatement:Md,updateBreakStatement:Pd,createReturnStatement:Fd,updateReturnStatement:N1,createWithStatement:O1,updateWithStatement:Hx,createSwitchStatement:M1,updateSwitchStatement:Ug,createLabeledStatement:P1,updateLabeledStatement:L2,createThrowStatement:F1,updateThrowStatement:OL,createTryStatement:zx,updateTryStatement:y0,createDebuggerStatement:xE,createVariableDeclaration:Xe,updateVariableDeclaration:Xy,createVariableDeclarationList:hm,updateVariableDeclarationList:v0,createFunctionDeclaration:B1,updateFunctionDeclaration:b0,createClassDeclaration:I2,updateClassDeclaration:rs,createInterfaceDeclaration:up,updateInterfaceDeclaration:AE,createTypeAliasDeclaration:xc,updateTypeAliasDeclaration:zh,createEnumDeclaration:G1,updateEnumDeclaration:dp,createModuleDeclaration:U1,updateModuleDeclaration:pu,createModuleBlock:jg,updateModuleBlock:Uc,createCaseBlock:k2,updateCaseBlock:ML,createNamespaceExportDeclaration:zi,updateNamespaceExportDeclaration:Xr,createImportEqualsDeclaration:ef,updateImportEqualsDeclaration:CE,createImportDeclaration:Wg,updateImportDeclaration:qh,createImportClause:sh,updateImportClause:ml,createAssertClause:V1,updateAssertClause:w2,createAssertEntry:j1,updateAssertEntry:D2,createImportTypeAssertionContainer:u_,updateImportTypeAssertionContainer:qx,createNamespaceImport:Jx,updateNamespaceImport:E0,createNamespaceExport:R2,updateNamespaceExport:N2,createNamedImports:Kx,updateNamedImports:W1,createImportSpecifier:O2,updateImportSpecifier:Vf,createExportAssignment:Hg,updateExportAssignment:Gp,createExportDeclaration:fp,updateExportDeclaration:Xx,createNamedExports:gm,updateNamedExports:M2,createExportSpecifier:Td,updateExportSpecifier:zg,createMissingDeclaration:ym,createExternalModuleReference:vm,updateExternalModuleReference:qg,get createJSDocAllType(){return d(315)},get createJSDocUnknownType(){return d(316)},get createJSDocNonNullableType(){return T(318)},get updateJSDocNonNullableType(){return C(318)},get createJSDocNullableType(){return T(317)},get updateJSDocNullableType(){return C(317)},get createJSDocOptionalType(){return v(319)},get updateJSDocOptionalType(){return g(319)},get createJSDocVariadicType(){return v(321)},get updateJSDocVariadicType(){return g(321)},get createJSDocNamepathType(){return v(322)},get updateJSDocNamepathType(){return g(322)},createJSDocFunctionType:$y,updateJSDocFunctionType:Yx,createJSDocTypeLiteral:z1,updateJSDocTypeLiteral:q1,createJSDocTypeExpression:$x,updateJSDocTypeExpression:PL,createJSDocSignature:Qx,updateJSDocSignature:mr,createJSDocTemplateTag:T0,updateJSDocTemplateTag:lh,createJSDocTypedefTag:ar,updateJSDocTypedefTag:Zx,createJSDocParameterTag:Qy,updateJSDocParameterTag:Nc,createJSDocPropertyTag:R_,updateJSDocPropertyTag:Up,createJSDocCallbackTag:Zy,updateJSDocCallbackTag:kE,createJSDocOverloadTag:_p,updateJSDocOverloadTag:ev,createJSDocAugmentsTag:Ql,updateJSDocAugmentsTag:ic,createJSDocImplementsTag:Jg,updateJSDocImplementsTag:Kg,createJSDocSeeTag:mu,updateJSDocSeeTag:N_,createJSDocNameReference:ch,updateJSDocNameReference:Bd,createJSDocMemberName:wE,updateJSDocMemberName:J1,createJSDocLink:K1,updateJSDocLink:Vp,createJSDocLinkCode:Jh,updateJSDocLinkCode:DE,createJSDocLinkPlain:tv,updateJSDocLinkPlain:Pl,get createJSDocTypeTag(){return M(347)},get updateJSDocTypeTag(){return k(347)},get createJSDocReturnTag(){return M(345)},get updateJSDocReturnTag(){return k(345)},get createJSDocThisTag(){return M(346)},get updateJSDocThisTag(){return k(346)},get createJSDocAuthorTag(){return L(333)},get updateJSDocAuthorTag(){return I(333)},get createJSDocClassTag(){return L(335)},get updateJSDocClassTag(){return I(335)},get createJSDocPublicTag(){return L(336)},get updateJSDocPublicTag(){return I(336)},get createJSDocPrivateTag(){return L(337)},get updateJSDocPrivateTag(){return I(337)},get createJSDocProtectedTag(){return L(338)},get updateJSDocProtectedTag(){return I(338)},get createJSDocReadonlyTag(){return L(339)},get updateJSDocReadonlyTag(){return I(339)},get createJSDocOverrideTag(){return L(340)},get updateJSDocOverrideTag(){return I(340)},get createJSDocDeprecatedTag(){return L(334)},get updateJSDocDeprecatedTag(){return I(334)},get createJSDocThrowsTag(){return M(352)},get updateJSDocThrowsTag(){return k(352)},get createJSDocSatisfiesTag(){return M(353)},get updateJSDocSatisfiesTag(){return k(353)},createJSDocEnumTag:RE,updateJSDocEnumTag:Yh,createJSDocUnknownTag:Xh,updateJSDocUnknownTag:Ac,createJSDocText:X1,updateJSDocText:Sd,createJSDocComment:uh,updateJSDocComment:Y1,createJsxElement:A0,updateJsxElement:NE,createJsxSelfClosingElement:nv,updateJsxSelfClosingElement:F2,createJsxOpeningElement:C0,updateJsxOpeningElement:Xg,createJsxClosingElement:Wf,updateJsxClosingElement:OE,createJsxFragment:Tf,createJsxText:L0,updateJsxText:eA,createJsxOpeningFragment:os,createJsxJsxClosingFragment:kr,updateJsxFragment:$h,createJsxAttribute:tf,updateJsxAttribute:xd,createJsxAttributes:B2,updateJsxAttributes:ME,createJsxSpreadAttribute:rv,updateJsxSpreadAttribute:tA,createJsxExpression:iv,updateJsxExpression:bm,createCaseClause:jp,updateCaseClause:Yg,createDefaultClause:I0,updateDefaultClause:Qh,createHeritageClause:Em,updateHeritageClause:G2,createCatchClause:Zl,updateCatchClause:Sf,createPropertyAssignment:dh,updatePropertyAssignment:Gd,createShorthandPropertyAssignment:av,updateShorthandPropertyAssignment:$g,createSpreadAssignment:Hf,updateSpreadAssignment:Os,createEnumMember:FE,updateEnumMember:BE,createSourceFile:Qg,updateSourceFile:jE,createRedirectedSourceFile:k0,createBundle:WE,updateBundle:ov,createUnparsedSource:nf,createUnparsedPrologue:FL,createUnparsedPrepend:Zg,createUnparsedTextLike:rA,createUnparsedSyntheticReference:iA,createInputFiles:x,createSyntheticExpression:le,createSyntaxList:Re,createNotEmittedStatement:on,createPartiallyEmittedExpression:Cr,updatePartiallyEmittedExpression:Ai,createCommaListExpression:Vi,updateCommaListExpression:mo,createEndOfDeclarationMarker:su,createMergeDeclarationMarker:rf,createSyntheticReferenceExpression:xf,updateSyntheticReferenceExpression:sv,cloneNode:O_,get createComma(){return s(27)},get createAssignment(){return s(63)},get createLogicalOr(){return s(56)},get createLogicalAnd(){return s(55)},get createBitwiseOr(){return s(51)},get createBitwiseXor(){return s(52)},get createBitwiseAnd(){return s(50)},get createStrictEquality(){return s(36)},get createStrictInequality(){return s(37)},get createEquality(){return s(34)},get createInequality(){return s(35)},get createLessThan(){return s(29)},get createLessThanEquals(){return s(32)},get createGreaterThan(){return s(31)},get createGreaterThanEquals(){return s(33)},get createLeftShift(){return s(47)},get createRightShift(){return s(48)},get createUnsignedRightShift(){return s(49)},get createAdd(){return s(39)},get createSubtract(){return s(40)},get createMultiply(){return s(41)},get createDivide(){return s(43)},get createModulo(){return s(44)},get createExponent(){return s(42)},get createPrefixPlus(){return c(39)},get createPrefixMinus(){return c(40)},get createPrefixIncrement(){return c(45)},get createPrefixDecrement(){return c(46)},get createBitwiseNot(){return c(54)},get createLogicalNot(){return c(53)},get createPostfixIncrement(){return _(45)},get createPostfixDecrement(){return _(46)},createImmediatelyInvokedFunctionExpression:HE,createImmediatelyInvokedArrowFunction:zf,createVoidZero:fh,createExportDefault:cv,createExternalModuleExport:d_,createTypeCheck:zE,createMethodCall:R0,createGlobalMethodCall:is,createFunctionBindCall:hc,createFunctionCallCall:e3,createFunctionApplyCall:xs,createArraySliceCall:aA,createArrayConcatCall:oA,createObjectDefinePropertyCall:q,createObjectGetOwnPropertyDescriptorCall:Se,createReflectGetCall:Qe,createReflectSetCall:Tt,createPropertyDescriptor:An,createCallBinding:ks,createAssignmentTargetWrapper:wo,inlineExpressions:as,getInternalName:Wp,getLocalName:Tm,getExportName:ey,getDeclarationName:M_,getNamespaceMemberName:uv,getExternalModuleOrNamespaceExportName:sA,restoreOuterExpressions:Ci,restoreEnclosingLabel:ki,createUseStrictPrologue:pp,copyPrologue:qE,copyStandardPrologue:N0,copyCustomPrologue:GL,ensureUseStrict:qf,liftToBlock:lA,mergeLexicalEnvironment:I8,updateModifiers:k8};return Ie(wK,E=>E(U)),U;function j(E,w){if(E===void 0||E===it)E=[];else if(Ob(E)){if(w===void 0||E.hasTrailingComma===w)return E.transformFlags===void 0&&Nme(E),R.attachNodeArrayDebugInfo(E),E;const Ke=E.slice();return Ke.pos=E.pos,Ke.end=E.end,Ke.hasTrailingComma=w,Ke.transformFlags=E.transformFlags,R.attachNodeArrayDebugInfo(Ke),Ke}const G=E.length,se=G>=1&&G<=4?E.slice():E;return se.pos=-1,se.end=-1,se.hasTrailingComma=!!w,se.transformFlags=0,Nme(se),R.attachNodeArrayDebugInfo(se),se}function H(E){return t.createBaseNode(E)}function ee(E){const w=H(E);return w.symbol=void 0,w.localSymbol=void 0,w}function X(E,w){return E!==w&&(E.typeArguments=w.typeArguments),r(E,w)}function ne(E,w=0){const G=ee(8);return G.text=typeof E=="number"?E+"":E,G.numericLiteralFlags=w,w&384&&(G.transformFlags|=1024),G}function P(E){const w=ze(9);return w.text=typeof E=="string"?E:Yb(E)+"n",w.transformFlags|=4,w}function ue(E,w){const G=ee(10);return G.text=E,G.singleQuote=w,G}function re(E,w,G){const se=ue(E,w);return se.hasExtendedUnicodeEscape=G,G&&(se.transformFlags|=1024),se}function be(E){const w=ue(K_(E),void 0);return w.textSourceNode=E,w}function ae(E){const w=ze(13);return w.text=E,w}function z(E,w){switch(E){case 8:return ne(w,0);case 9:return P(w);case 10:return re(w,void 0);case 11:return L0(w,!1);case 12:return L0(w,!0);case 13:return ae(w);case 14:return vn(E,w,void 0,0)}}function ce(E){const w=t.createBaseIdentifierNode(79);return w.escapedText=E,w.jsDoc=void 0,w.flowNode=void 0,w.symbol=void 0,w}function he(E,w,G,se){const Ke=ce(cl(E));return d6(Ke,{flags:w,id:a6,prefix:G,suffix:se}),a6++,Ke}function Ee(E,w,G){w===void 0&&E&&(w=bT(E)),w===79&&(w=void 0);const se=ce(cl(E));return G&&(se.flags|=128),se.escapedText==="await"&&(se.transformFlags|=67108864),se.flags&128&&(se.transformFlags|=1024),se}function Ae(E,w,G,se){let Ke=1;w&&(Ke|=8);const Xt=he("",Ke,G,se);return E&&E(Xt),Xt}function te(E){let w=2;return E&&(w|=8),he("",w,void 0,void 0)}function Ze(E,w=0,G,se){return R.assert(!(w&7),"Argument out of range: flags"),R.assert((w&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),he(E,3|w,G,se)}function je(E,w=0,G,se){R.assert(!(w&7),"Argument out of range: flags");const Ke=E?gg(E)?ZT(!1,G,E,se,Pr):`generated@${hs(E)}`:"";(G||se)&&(w|=16);const Xt=he(Ke,4|w,G,se);return Xt.original=E,Xt}function Ue(E){const w=t.createBasePrivateIdentifierNode(80);return w.escapedText=E,w.transformFlags|=16777216,w}function Je(E){return xa(E,"#")||R.fail("First character of private identifier must be #: "+E),Ue(cl(E))}function Fe(E,w,G,se){const Ke=Ue(cl(E));return d6(Ke,{flags:w,id:a6,prefix:G,suffix:se}),a6++,Ke}function Be(E,w,G){E&&!xa(E,"#")&&R.fail("First character of private identifier must be #: "+E);const se=8|(E?3:1);return Fe(E!=null?E:"",se,w,G)}function $e(E,w,G){const se=gg(E)?ZT(!0,w,E,G,Pr):`#generated@${hs(E)}`,Xt=Fe(se,4|(w||G?16:0),w,G);return Xt.original=E,Xt}function ze(E){return t.createBaseTokenNode(E)}function Ge(E){R.assert(E>=0&&E<=162,"Invalid token"),R.assert(E<=14||E>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),R.assert(E<=8||E>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),R.assert(E!==79,"Invalid token. Use 'createIdentifier' to create identifiers");const w=ze(E);let G=0;switch(E){case 132:G=384;break;case 123:case 121:case 122:case 146:case 126:case 136:case 85:case 131:case 148:case 160:case 144:case 149:case 101:case 145:case 161:case 152:case 134:case 153:case 114:case 157:case 155:G=1;break;case 106:G=134218752,w.flowNode=void 0;break;case 124:G=1024;break;case 127:G=16777216;break;case 108:G=16384,w.flowNode=void 0;break}return G&&(w.transformFlags|=G),w}function lt(){return Ge(106)}function Ct(){return Ge(108)}function bt(){return Ge(104)}function zt(){return Ge(110)}function nt(){return Ge(95)}function ot(E){return Ge(E)}function sn(E){const w=[];return E&1&&w.push(ot(93)),E&2&&w.push(ot(136)),E&1024&&w.push(ot(88)),E&2048&&w.push(ot(85)),E&4&&w.push(ot(123)),E&8&&w.push(ot(121)),E&16&&w.push(ot(122)),E&256&&w.push(ot(126)),E&32&&w.push(ot(124)),E&16384&&w.push(ot(161)),E&64&&w.push(ot(146)),E&128&&w.push(ot(127)),E&512&&w.push(ot(132)),E&32768&&w.push(ot(101)),E&65536&&w.push(ot(145)),w.length?w:void 0}function pn(E,w){const G=H(163);return G.left=E,G.right=Sl(w),G.transformFlags|=yr(G.left)|Qk(G.right),G.flowNode=void 0,G}function gn(E,w,G){return E.left!==w||E.right!==G?r(pn(w,G),E):E}function jn(E){const w=H(164);return w.expression=i().parenthesizeExpressionOfComputedPropertyName(E),w.transformFlags|=yr(w.expression)|1024|131072,w}function Ln(E,w){return E.expression!==w?r(jn(w),E):E}function Zt(E,w,G,se){const Ke=ee(165);return Ke.modifiers=Do(E),Ke.name=Sl(w),Ke.constraint=G,Ke.default=se,Ke.transformFlags=1,Ke.expression=void 0,Ke.jsDoc=void 0,Ke}function pr(E,w,G,se,Ke){return E.modifiers!==w||E.name!==G||E.constraint!==se||E.default!==Ke?r(Zt(w,G,se,Ke),E):E}function Ii(E,w,G,se,Ke,Xt){var Ur,ra;const Za=ee(166);return Za.modifiers=Do(E),Za.dotDotDotToken=w,Za.name=Sl(G),Za.questionToken=se,Za.type=Ke,Za.initializer=fv(Xt),GT(Za.name)?Za.transformFlags=1:Za.transformFlags=Fo(Za.modifiers)|yr(Za.dotDotDotToken)|Ny(Za.name)|yr(Za.questionToken)|yr(Za.initializer)|(((Ur=Za.questionToken)!=null?Ur:Za.type)?1:0)|(((ra=Za.dotDotDotToken)!=null?ra:Za.initializer)?1024:0)|(Jm(Za.modifiers)&16476?8192:0),Za.jsDoc=void 0,Za}function ea(E,w,G,se,Ke,Xt,Ur){return E.modifiers!==w||E.dotDotDotToken!==G||E.name!==se||E.questionToken!==Ke||E.type!==Xt||E.initializer!==Ur?r(Ii(w,G,se,Ke,Xt,Ur),E):E}function ta(E){const w=H(167);return w.expression=i().parenthesizeLeftSideOfAccess(E,!1),w.transformFlags|=yr(w.expression)|1|8192|33554432,w}function Or(E,w){return E.expression!==w?r(ta(w),E):E}function Lt(E,w,G,se){const Ke=ee(168);return Ke.modifiers=Do(E),Ke.name=Sl(w),Ke.type=se,Ke.questionToken=G,Ke.transformFlags=1,Ke.initializer=void 0,Ke.jsDoc=void 0,Ke}function yn(E,w,G,se,Ke){return E.modifiers!==w||E.name!==G||E.questionToken!==se||E.type!==Ke?Wt(Lt(w,G,se,Ke),E):E}function Wt(E,w){return E!==w&&(E.initializer=w.initializer),r(E,w)}function In(E,w,G,se,Ke){const Xt=ee(169);Xt.modifiers=Do(E),Xt.name=Sl(w),Xt.questionToken=G&&$v(G)?G:void 0,Xt.exclamationToken=G&&h6(G)?G:void 0,Xt.type=se,Xt.initializer=fv(Ke);const Ur=Xt.flags&16777216||Jm(Xt.modifiers)&2;return Xt.transformFlags=Fo(Xt.modifiers)|Ny(Xt.name)|yr(Xt.initializer)|(Ur||Xt.questionToken||Xt.exclamationToken||Xt.type?1:0)|(Cs(Xt.name)||Jm(Xt.modifiers)&32&&Xt.initializer?8192:0)|16777216,Xt.jsDoc=void 0,Xt}function Bn(E,w,G,se,Ke,Xt){return E.modifiers!==w||E.name!==G||E.questionToken!==(se!==void 0&&$v(se)?se:void 0)||E.exclamationToken!==(se!==void 0&&h6(se)?se:void 0)||E.type!==Ke||E.initializer!==Xt?r(In(w,G,se,Ke,Xt),E):E}function lr(E,w,G,se,Ke,Xt){const Ur=ee(170);return Ur.modifiers=Do(E),Ur.name=Sl(w),Ur.questionToken=G,Ur.typeParameters=Do(se),Ur.parameters=Do(Ke),Ur.type=Xt,Ur.transformFlags=1,Ur.jsDoc=void 0,Ur.locals=void 0,Ur.nextContainer=void 0,Ur.typeArguments=void 0,Ur}function Oi(E,w,G,se,Ke,Xt,Ur){return E.modifiers!==w||E.name!==G||E.questionToken!==se||E.typeParameters!==Ke||E.parameters!==Xt||E.type!==Ur?X(lr(w,G,se,Ke,Xt,Ur),E):E}function bi(E,w,G,se,Ke,Xt,Ur,ra){const Za=ee(171);if(Za.modifiers=Do(E),Za.asteriskToken=w,Za.name=Sl(G),Za.questionToken=se,Za.exclamationToken=void 0,Za.typeParameters=Do(Ke),Za.parameters=j(Xt),Za.type=Ur,Za.body=ra,!Za.body)Za.transformFlags=1;else{const Af=Jm(Za.modifiers)&512,ty=!!Za.asteriskToken,ny=Af&&ty;Za.transformFlags=Fo(Za.modifiers)|yr(Za.asteriskToken)|Ny(Za.name)|yr(Za.questionToken)|Fo(Za.typeParameters)|Fo(Za.parameters)|yr(Za.type)|yr(Za.body)&-67108865|(ny?128:Af?256:ty?2048:0)|(Za.questionToken||Za.typeParameters||Za.type?1:0)|1024}return Za.typeArguments=void 0,Za.jsDoc=void 0,Za.locals=void 0,Za.nextContainer=void 0,Za.flowNode=void 0,Za.endFlowNode=void 0,Za.returnFlowNode=void 0,Za}function Rn(E,w,G,se,Ke,Xt,Ur,ra,Za){return E.modifiers!==w||E.asteriskToken!==G||E.name!==se||E.questionToken!==Ke||E.typeParameters!==Xt||E.parameters!==Ur||E.type!==ra||E.body!==Za?an(bi(w,G,se,Ke,Xt,Ur,ra,Za),E):E}function an(E,w){return E!==w&&(E.exclamationToken=w.exclamationToken),r(E,w)}function On(E){const w=ee(172);return w.body=E,w.transformFlags=yr(E)|16777216,w.modifiers=void 0,w.jsDoc=void 0,w.locals=void 0,w.nextContainer=void 0,w.endFlowNode=void 0,w.returnFlowNode=void 0,w}function Ir(E,w){return E.body!==w?Hr(On(w),E):E}function Hr(E,w){return E!==w&&(E.modifiers=w.modifiers),r(E,w)}function Oe(E,w,G){const se=ee(173);return se.modifiers=Do(E),se.parameters=j(w),se.body=G,se.transformFlags=Fo(se.modifiers)|Fo(se.parameters)|yr(se.body)&-67108865|1024,se.typeParameters=void 0,se.type=void 0,se.typeArguments=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.returnFlowNode=void 0,se}function gt(E,w,G,se){return E.modifiers!==w||E.parameters!==G||E.body!==se?Ot(Oe(w,G,se),E):E}function Ot(E,w){return E!==w&&(E.typeParameters=w.typeParameters,E.type=w.type),X(E,w)}function Le(E,w,G,se,Ke){const Xt=ee(174);return Xt.modifiers=Do(E),Xt.name=Sl(w),Xt.parameters=j(G),Xt.type=se,Xt.body=Ke,Xt.body?Xt.transformFlags=Fo(Xt.modifiers)|Ny(Xt.name)|Fo(Xt.parameters)|yr(Xt.type)|yr(Xt.body)&-67108865|(Xt.type?1:0):Xt.transformFlags=1,Xt.typeArguments=void 0,Xt.typeParameters=void 0,Xt.jsDoc=void 0,Xt.locals=void 0,Xt.nextContainer=void 0,Xt.flowNode=void 0,Xt.endFlowNode=void 0,Xt.returnFlowNode=void 0,Xt}function pt(E,w,G,se,Ke,Xt){return E.modifiers!==w||E.name!==G||E.parameters!==se||E.type!==Ke||E.body!==Xt?me(Le(w,G,se,Ke,Xt),E):E}function me(E,w){return E!==w&&(E.typeParameters=w.typeParameters),X(E,w)}function ie(E,w,G,se){const Ke=ee(175);return Ke.modifiers=Do(E),Ke.name=Sl(w),Ke.parameters=j(G),Ke.body=se,Ke.body?Ke.transformFlags=Fo(Ke.modifiers)|Ny(Ke.name)|Fo(Ke.parameters)|yr(Ke.body)&-67108865|(Ke.type?1:0):Ke.transformFlags=1,Ke.typeArguments=void 0,Ke.typeParameters=void 0,Ke.type=void 0,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke.endFlowNode=void 0,Ke.returnFlowNode=void 0,Ke}function ye(E,w,G,se,Ke){return E.modifiers!==w||E.name!==G||E.parameters!==se||E.body!==Ke?W(ie(w,G,se,Ke),E):E}function W(E,w){return E!==w&&(E.typeParameters=w.typeParameters,E.type=w.type),X(E,w)}function He(E,w,G){const se=ee(176);return se.typeParameters=Do(E),se.parameters=Do(w),se.type=G,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function et(E,w,G,se){return E.typeParameters!==w||E.parameters!==G||E.type!==se?X(He(w,G,se),E):E}function Ye(E,w,G){const se=ee(177);return se.typeParameters=Do(E),se.parameters=Do(w),se.type=G,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function jt(E,w,G,se){return E.typeParameters!==w||E.parameters!==G||E.type!==se?X(Ye(w,G,se),E):E}function cn(E,w,G){const se=ee(178);return se.modifiers=Do(E),se.parameters=Do(w),se.type=G,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function Sn(E,w,G,se){return E.parameters!==G||E.type!==se||E.modifiers!==w?X(cn(w,G,se),E):E}function Er(E,w){const G=H(201);return G.type=E,G.literal=w,G.transformFlags=1,G}function de(E,w,G){return E.type!==w||E.literal!==G?r(Er(w,G),E):E}function mt(E){return Ge(E)}function Jt(E,w,G){const se=H(179);return se.assertsModifier=E,se.parameterName=Sl(w),se.type=G,se.transformFlags=1,se}function at(E,w,G,se){return E.assertsModifier!==w||E.parameterName!==G||E.type!==se?r(Jt(w,G,se),E):E}function fe(E,w){const G=H(180);return G.typeName=Sl(E),G.typeArguments=w&&i().parenthesizeTypeArguments(j(w)),G.transformFlags=1,G}function Te(E,w,G){return E.typeName!==w||E.typeArguments!==G?r(fe(w,G),E):E}function Y(E,w,G){const se=ee(181);return se.typeParameters=Do(E),se.parameters=Do(w),se.type=G,se.transformFlags=1,se.modifiers=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function Ne(E,w,G,se){return E.typeParameters!==w||E.parameters!==G||E.type!==se?J(Y(w,G,se),E):E}function J(E,w){return E!==w&&(E.modifiers=w.modifiers),X(E,w)}function wt(...E){return E.length===4?Et(...E):E.length===3?ut(...E):R.fail("Incorrect number of arguments specified.")}function Et(E,w,G,se){const Ke=ee(182);return Ke.modifiers=Do(E),Ke.typeParameters=Do(w),Ke.parameters=Do(G),Ke.type=se,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.typeArguments=void 0,Ke}function ut(E,w,G){return Et(void 0,E,w,G)}function nn(...E){return E.length===5?ir(...E):E.length===4?ai(...E):R.fail("Incorrect number of arguments specified.")}function ir(E,w,G,se,Ke){return E.modifiers!==w||E.typeParameters!==G||E.parameters!==se||E.type!==Ke?X(wt(w,G,se,Ke),E):E}function ai(E,w,G,se){return ir(E,E.modifiers,w,G,se)}function gi(E,w){const G=H(183);return G.exprName=E,G.typeArguments=w&&i().parenthesizeTypeArguments(w),G.transformFlags=1,G}function ui(E,w,G){return E.exprName!==w||E.typeArguments!==G?r(gi(w,G),E):E}function Wi(E){const w=ee(184);return w.members=j(E),w.transformFlags=1,w}function go(E,w){return E.members!==w?r(Wi(w),E):E}function xo(E){const w=H(185);return w.elementType=i().parenthesizeNonArrayTypeOfPostfixType(E),w.transformFlags=1,w}function oo(E,w){return E.elementType!==w?r(xo(w),E):E}function da(E){const w=H(186);return w.elements=j(i().parenthesizeElementTypesOfTupleType(E)),w.transformFlags=1,w}function Hi(E,w){return E.elements!==w?r(da(w),E):E}function $r(E,w,G,se){const Ke=ee(199);return Ke.dotDotDotToken=E,Ke.name=w,Ke.questionToken=G,Ke.type=se,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke}function ls(E,w,G,se,Ke){return E.dotDotDotToken!==w||E.name!==G||E.questionToken!==se||E.type!==Ke?r($r(w,G,se,Ke),E):E}function mi(E){const w=H(187);return w.type=i().parenthesizeTypeOfOptionalType(E),w.transformFlags=1,w}function fa(E,w){return E.type!==w?r(mi(w),E):E}function wn(E){const w=H(188);return w.type=E,w.transformFlags=1,w}function pa(E,w){return E.type!==w?r(wn(w),E):E}function nc(E,w,G){const se=H(E);return se.types=U.createNodeArray(G(w)),se.transformFlags=1,se}function al(E,w,G){return E.types!==w?r(nc(E.kind,w,G),E):E}function jl(E){return nc(189,E,i().parenthesizeConstituentTypesOfUnionType)}function $l(E,w){return al(E,w,i().parenthesizeConstituentTypesOfUnionType)}function Wl(E){return nc(190,E,i().parenthesizeConstituentTypesOfIntersectionType)}function Io(E,w){return al(E,w,i().parenthesizeConstituentTypesOfIntersectionType)}function La(E,w,G,se){const Ke=H(191);return Ke.checkType=i().parenthesizeCheckTypeOfConditionalType(E),Ke.extendsType=i().parenthesizeExtendsTypeOfConditionalType(w),Ke.trueType=G,Ke.falseType=se,Ke.transformFlags=1,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function Qo(E,w,G,se,Ke){return E.checkType!==w||E.extendsType!==G||E.trueType!==se||E.falseType!==Ke?r(La(w,G,se,Ke),E):E}function Hl(E){const w=H(192);return w.typeParameter=E,w.transformFlags=1,w}function ou(E,w){return E.typeParameter!==w?r(Hl(w),E):E}function $d(E,w){const G=H(200);return G.head=E,G.templateSpans=j(w),G.transformFlags=1,G}function lc(E,w,G){return E.head!==w||E.templateSpans!==G?r($d(w,G),E):E}function Zc(E,w,G,se,Ke=!1){const Xt=H(202);return Xt.argument=E,Xt.assertions=w,Xt.qualifier=G,Xt.typeArguments=se&&i().parenthesizeTypeArguments(se),Xt.isTypeOf=Ke,Xt.transformFlags=1,Xt}function Rs(E,w,G,se,Ke,Xt=E.isTypeOf){return E.argument!==w||E.assertions!==G||E.qualifier!==se||E.typeArguments!==Ke||E.isTypeOf!==Xt?r(Zc(w,G,se,Ke,Xt),E):E}function yl(E){const w=H(193);return w.type=E,w.transformFlags=1,w}function nl(E,w){return E.type!==w?r(yl(w),E):E}function Ys(){const E=H(194);return E.transformFlags=1,E}function rn(E,w){const G=H(195);return G.operator=E,G.type=E===146?i().parenthesizeOperandOfReadonlyTypeOperator(w):i().parenthesizeOperandOfTypeOperator(w),G.transformFlags=1,G}function zl(E,w){return E.type!==w?r(rn(E.operator,w),E):E}function wu(E,w){const G=H(196);return G.objectType=i().parenthesizeNonArrayTypeOfPostfixType(E),G.indexType=w,G.transformFlags=1,G}function Zu(E,w,G){return E.objectType!==w||E.indexType!==G?r(wu(w,G),E):E}function _e(E,w,G,se,Ke,Xt){const Ur=ee(197);return Ur.readonlyToken=E,Ur.typeParameter=w,Ur.nameType=G,Ur.questionToken=se,Ur.type=Ke,Ur.members=Xt&&j(Xt),Ur.transformFlags=1,Ur.locals=void 0,Ur.nextContainer=void 0,Ur}function kt(E,w,G,se,Ke,Xt,Ur){return E.readonlyToken!==w||E.typeParameter!==G||E.nameType!==se||E.questionToken!==Ke||E.type!==Xt||E.members!==Ur?r(_e(w,G,se,Ke,Xt,Ur),E):E}function Ht(E){const w=H(198);return w.literal=E,w.transformFlags=1,w}function Z(E,w){return E.literal!==w?r(Ht(w),E):E}function st(E){const w=H(203);return w.elements=j(E),w.transformFlags|=Fo(w.elements)|1024|524288,w.transformFlags&32768&&(w.transformFlags|=65664),w}function At(E,w){return E.elements!==w?r(st(w),E):E}function fn(E){const w=H(204);return w.elements=j(E),w.transformFlags|=Fo(w.elements)|1024|524288,w}function Dr(E,w){return E.elements!==w?r(fn(w),E):E}function Mr(E,w,G,se){const Ke=ee(205);return Ke.dotDotDotToken=E,Ke.propertyName=Sl(w),Ke.name=Sl(G),Ke.initializer=fv(se),Ke.transformFlags|=yr(Ke.dotDotDotToken)|Ny(Ke.propertyName)|Ny(Ke.name)|yr(Ke.initializer)|(Ke.dotDotDotToken?32768:0)|1024,Ke.flowNode=void 0,Ke}function Sa(E,w,G,se,Ke){return E.propertyName!==G||E.dotDotDotToken!==w||E.name!==se||E.initializer!==Ke?r(Mr(w,G,se,Ke),E):E}function cs(E,w){const G=H(206),se=E&&rl(E),Ke=j(E,se&&Fc(se)?!0:void 0);return G.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Ke),G.multiLine=w,G.transformFlags|=Fo(G.elements),G}function yo(E,w){return E.elements!==w?r(cs(w,E.multiLine),E):E}function Ho(E,w){const G=ee(207);return G.properties=j(E),G.multiLine=w,G.transformFlags|=Fo(G.properties),G.jsDoc=void 0,G}function Qa(E,w){return E.properties!==w?r(Ho(w,E.multiLine),E):E}function _l(E,w,G){const se=ee(208);return se.expression=E,se.questionDotToken=w,se.name=G,se.transformFlags=yr(se.expression)|yr(se.questionDotToken)|(We(se.name)?Qk(se.name):yr(se.name)|536870912),se.jsDoc=void 0,se.flowNode=void 0,se}function mc(E,w){const G=_l(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Sl(w));return n4(E)&&(G.transformFlags|=384),G}function bd(E,w,G){return wM(E)?fs(E,w,E.questionDotToken,lo(G,We)):E.expression!==w||E.name!==G?r(mc(w,G),E):E}function Ts(E,w,G){const se=_l(i().parenthesizeLeftSideOfAccess(E,!0),w,Sl(G));return se.flags|=32,se.transformFlags|=32,se}function fs(E,w,G,se){return R.assert(!!(E.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),E.expression!==w||E.questionDotToken!==G||E.name!==se?r(Ts(w,G,se),E):E}function pl(E,w,G){const se=ee(209);return se.expression=E,se.questionDotToken=w,se.argumentExpression=G,se.transformFlags|=yr(se.expression)|yr(se.questionDotToken)|yr(se.argumentExpression),se.jsDoc=void 0,se.flowNode=void 0,se}function Qd(E,w){const G=pl(i().parenthesizeLeftSideOfAccess(E,!1),void 0,O0(w));return n4(E)&&(G.transformFlags|=384),G}function ql(E,w,G){return Hz(E)?Ce(E,w,E.questionDotToken,G):E.expression!==w||E.argumentExpression!==G?r(Qd(w,G),E):E}function Uf(E,w,G){const se=pl(i().parenthesizeLeftSideOfAccess(E,!0),w,O0(G));return se.flags|=32,se.transformFlags|=32,se}function Ce(E,w,G,se){return R.assert(!!(E.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),E.expression!==w||E.questionDotToken!==G||E.argumentExpression!==se?r(Uf(w,G,se),E):E}function Nt(E,w,G,se){const Ke=ee(210);return Ke.expression=E,Ke.questionDotToken=w,Ke.typeArguments=G,Ke.arguments=se,Ke.transformFlags|=yr(Ke.expression)|yr(Ke.questionDotToken)|Fo(Ke.typeArguments)|Fo(Ke.arguments),Ke.typeArguments&&(Ke.transformFlags|=1),gd(Ke.expression)&&(Ke.transformFlags|=16384),Ke}function Nn(E,w,G){const se=Nt(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Do(w),i().parenthesizeExpressionsOfCommaDelimitedList(j(G)));return r4(se.expression)&&(se.transformFlags|=8388608),se}function Qi(E,w,G,se){return TT(E)?oe(E,w,E.questionDotToken,G,se):E.expression!==w||E.typeArguments!==G||E.arguments!==se?r(Nn(w,G,se),E):E}function ko(E,w,G,se){const Ke=Nt(i().parenthesizeLeftSideOfAccess(E,!0),w,Do(G),i().parenthesizeExpressionsOfCommaDelimitedList(j(se)));return Ke.flags|=32,Ke.transformFlags|=32,Ke}function oe(E,w,G,se,Ke){return R.assert(!!(E.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),E.expression!==w||E.questionDotToken!==G||E.typeArguments!==se||E.arguments!==Ke?r(ko(w,G,se,Ke),E):E}function dt(E,w,G){const se=ee(211);return se.expression=i().parenthesizeExpressionOfNew(E),se.typeArguments=Do(w),se.arguments=G?i().parenthesizeExpressionsOfCommaDelimitedList(G):void 0,se.transformFlags|=yr(se.expression)|Fo(se.typeArguments)|Fo(se.arguments)|32,se.typeArguments&&(se.transformFlags|=1),se}function Bt(E,w,G,se){return E.expression!==w||E.typeArguments!==G||E.arguments!==se?r(dt(w,G,se),E):E}function Ft(E,w,G){const se=H(212);return se.tag=i().parenthesizeLeftSideOfAccess(E,!1),se.typeArguments=Do(w),se.template=G,se.transformFlags|=yr(se.tag)|Fo(se.typeArguments)|yr(se.template)|1024,se.typeArguments&&(se.transformFlags|=1),sJ(se.template)&&(se.transformFlags|=128),se}function un(E,w,G,se){return E.tag!==w||E.typeArguments!==G||E.template!==se?r(Ft(w,G,se),E):E}function Vn(E,w){const G=H(213);return G.expression=i().parenthesizeOperandOfPrefixUnary(w),G.type=E,G.transformFlags|=yr(G.expression)|yr(G.type)|1,G}function Rr(E,w,G){return E.type!==w||E.expression!==G?r(Vn(w,G),E):E}function ri(E){const w=H(214);return w.expression=E,w.transformFlags=yr(w.expression),w.jsDoc=void 0,w}function Mi(E,w){return E.expression!==w?r(ri(w),E):E}function Wa(E,w,G,se,Ke,Xt,Ur){const ra=ee(215);ra.modifiers=Do(E),ra.asteriskToken=w,ra.name=Sl(G),ra.typeParameters=Do(se),ra.parameters=j(Ke),ra.type=Xt,ra.body=Ur;const Za=Jm(ra.modifiers)&512,Af=!!ra.asteriskToken,ty=Za&&Af;return ra.transformFlags=Fo(ra.modifiers)|yr(ra.asteriskToken)|Ny(ra.name)|Fo(ra.typeParameters)|Fo(ra.parameters)|yr(ra.type)|yr(ra.body)&-67108865|(ty?128:Za?256:Af?2048:0)|(ra.typeParameters||ra.type?1:0)|4194304,ra.typeArguments=void 0,ra.jsDoc=void 0,ra.locals=void 0,ra.nextContainer=void 0,ra.flowNode=void 0,ra.endFlowNode=void 0,ra.returnFlowNode=void 0,ra}function zo(E,w,G,se,Ke,Xt,Ur,ra){return E.name!==se||E.modifiers!==w||E.asteriskToken!==G||E.typeParameters!==Ke||E.parameters!==Xt||E.type!==Ur||E.body!==ra?X(Wa(w,G,se,Ke,Xt,Ur,ra),E):E}function Ss(E,w,G,se,Ke,Xt){const Ur=ee(216);Ur.modifiers=Do(E),Ur.typeParameters=Do(w),Ur.parameters=j(G),Ur.type=se,Ur.equalsGreaterThanToken=Ke!=null?Ke:Ge(38),Ur.body=i().parenthesizeConciseBodyOfArrowFunction(Xt);const ra=Jm(Ur.modifiers)&512;return Ur.transformFlags=Fo(Ur.modifiers)|Fo(Ur.typeParameters)|Fo(Ur.parameters)|yr(Ur.type)|yr(Ur.equalsGreaterThanToken)|yr(Ur.body)&-67108865|(Ur.typeParameters||Ur.type?1:0)|(ra?16640:0)|1024,Ur.typeArguments=void 0,Ur.jsDoc=void 0,Ur.locals=void 0,Ur.nextContainer=void 0,Ur.flowNode=void 0,Ur.endFlowNode=void 0,Ur.returnFlowNode=void 0,Ur}function $s(E,w,G,se,Ke,Xt,Ur){return E.modifiers!==w||E.typeParameters!==G||E.parameters!==se||E.type!==Ke||E.equalsGreaterThanToken!==Xt||E.body!==Ur?X(Ss(w,G,se,Ke,Xt,Ur),E):E}function Ed(E){const w=H(217);return w.expression=i().parenthesizeOperandOfPrefixUnary(E),w.transformFlags|=yr(w.expression),w}function vf(E,w){return E.expression!==w?r(Ed(w),E):E}function rc(E){const w=H(218);return w.expression=i().parenthesizeOperandOfPrefixUnary(E),w.transformFlags|=yr(w.expression),w}function Zd(E,w){return E.expression!==w?r(rc(w),E):E}function Du(E){const w=H(219);return w.expression=i().parenthesizeOperandOfPrefixUnary(E),w.transformFlags|=yr(w.expression),w}function bf(E,w){return E.expression!==w?r(Du(w),E):E}function w_(E){const w=H(220);return w.expression=i().parenthesizeOperandOfPrefixUnary(E),w.transformFlags|=yr(w.expression)|256|128|2097152,w}function Zo(E,w){return E.expression!==w?r(w_(w),E):E}function D_(E,w){const G=H(221);return G.operator=E,G.operand=i().parenthesizeOperandOfPrefixUnary(w),G.transformFlags|=yr(G.operand),(E===45||E===46)&&We(G.operand)&&!Ll(G.operand)&&!e0(G.operand)&&(G.transformFlags|=268435456),G}function Ef(E,w){return E.operand!==w?r(D_(E.operator,w),E):E}function op(E,w){const G=H(222);return G.operator=w,G.operand=i().parenthesizeOperandOfPostfixUnary(E),G.transformFlags|=yr(G.operand),We(G.operand)&&!Ll(G.operand)&&!e0(G.operand)&&(G.transformFlags|=268435456),G}function Fp(E,w){return E.operand!==w?r(op(w,E.operator),E):E}function V(E,w,G){const se=ee(223),Ke=w8(w),Xt=Ke.kind;return se.left=i().parenthesizeLeftSideOfBinary(Xt,E),se.operatorToken=Ke,se.right=i().parenthesizeRightSideOfBinary(Xt,se.left,G),se.transformFlags|=yr(se.left)|yr(se.operatorToken)|yr(se.right),Xt===60?se.transformFlags|=32:Xt===63?Is(se.left)?se.transformFlags|=5248|tt(se.left):Ju(se.left)&&(se.transformFlags|=5120|tt(se.left)):Xt===42||Xt===67?se.transformFlags|=512:kk(Xt)&&(se.transformFlags|=16),Xt===101&&Ri(se.left)&&(se.transformFlags|=536870912),se.jsDoc=void 0,se}function tt(E){return O6(E)?65536:0}function Kt(E,w,G,se){return E.left!==w||E.operatorToken!==G||E.right!==se?r(V(w,G,se),E):E}function Yn(E,w,G,se,Ke){const Xt=H(224);return Xt.condition=i().parenthesizeConditionOfConditionalExpression(E),Xt.questionToken=w!=null?w:Ge(57),Xt.whenTrue=i().parenthesizeBranchOfConditionalExpression(G),Xt.colonToken=se!=null?se:Ge(58),Xt.whenFalse=i().parenthesizeBranchOfConditionalExpression(Ke),Xt.transformFlags|=yr(Xt.condition)|yr(Xt.questionToken)|yr(Xt.whenTrue)|yr(Xt.colonToken)|yr(Xt.whenFalse),Xt}function Da(E,w,G,se,Ke,Xt){return E.condition!==w||E.questionToken!==G||E.whenTrue!==se||E.colonToken!==Ke||E.whenFalse!==Xt?r(Yn(w,G,se,Ke,Xt),E):E}function Ia(E,w){const G=H(225);return G.head=E,G.templateSpans=j(w),G.transformFlags|=yr(G.head)|Fo(G.templateSpans)|1024,G}function De(E,w,G){return E.head!==w||E.templateSpans!==G?r(Ia(w,G),E):E}function Ve(E,w,G,se=0){R.assert(!(se&-2049),"Unsupported template flags.");let Ke;if(G!==void 0&&G!==w&&(Ke=KMe(E,G),typeof Ke=="object"))return R.fail("Invalid raw text");if(w===void 0){if(Ke===void 0)return R.fail("Arguments 'text' and 'rawText' may not both be undefined.");w=Ke}else Ke!==void 0&&R.assert(w===Ke,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return w}function It(E){let w=1024;return E&&(w|=128),w}function Mt(E,w,G,se){const Ke=ze(E);return Ke.text=w,Ke.rawText=G,Ke.templateFlags=se&2048,Ke.transformFlags=It(Ke.templateFlags),Ke}function mn(E,w,G,se){const Ke=ee(E);return Ke.text=w,Ke.rawText=G,Ke.templateFlags=se&2048,Ke.transformFlags=It(Ke.templateFlags),Ke}function vn(E,w,G,se){return E===14?mn(E,w,G,se):Mt(E,w,G,se)}function En(E,w,G){return E=Ve(15,E,w,G),vn(15,E,w,G)}function Wn(E,w,G){return E=Ve(15,E,w,G),vn(16,E,w,G)}function Jr(E,w,G){return E=Ve(15,E,w,G),vn(17,E,w,G)}function Xi(E,w,G){return E=Ve(15,E,w,G),mn(14,E,w,G)}function nr(E,w){R.assert(!E||!!w,"A `YieldExpression` with an asteriskToken must have an expression.");const G=H(226);return G.expression=w&&i().parenthesizeExpressionForDisallowedComma(w),G.asteriskToken=E,G.transformFlags|=yr(G.expression)|yr(G.asteriskToken)|1024|128|1048576,G}function _n(E,w,G){return E.expression!==G||E.asteriskToken!==w?r(nr(w,G),E):E}function dr(E){const w=H(227);return w.expression=i().parenthesizeExpressionForDisallowedComma(E),w.transformFlags|=yr(w.expression)|1024|32768,w}function Aa(E,w){return E.expression!==w?r(dr(w),E):E}function Qs(E,w,G,se,Ke){const Xt=ee(228);return Xt.modifiers=Do(E),Xt.name=Sl(w),Xt.typeParameters=Do(G),Xt.heritageClauses=Do(se),Xt.members=j(Ke),Xt.transformFlags|=Fo(Xt.modifiers)|Ny(Xt.name)|Fo(Xt.typeParameters)|Fo(Xt.heritageClauses)|Fo(Xt.members)|(Xt.typeParameters?1:0)|1024,Xt.jsDoc=void 0,Xt}function cc(E,w,G,se,Ke,Xt){return E.modifiers!==w||E.name!==G||E.typeParameters!==se||E.heritageClauses!==Ke||E.members!==Xt?r(Qs(w,G,se,Ke,Xt),E):E}function ih(){return H(229)}function Mg(E,w){const G=H(230);return G.expression=i().parenthesizeLeftSideOfAccess(E,!1),G.typeArguments=w&&i().parenthesizeTypeArguments(w),G.transformFlags|=yr(G.expression)|Fo(G.typeArguments)|1024,G}function sp(E,w,G){return E.expression!==w||E.typeArguments!==G?r(Mg(w,G),E):E}function w1(E,w){const G=H(231);return G.expression=E,G.type=w,G.transformFlags|=yr(G.expression)|yr(G.type)|1,G}function f0(E,w,G){return E.expression!==w||E.type!==G?r(w1(w,G),E):E}function Vx(E){const w=H(232);return w.expression=i().parenthesizeLeftSideOfAccess(E,!1),w.transformFlags|=yr(w.expression)|1,w}function x2(E,w){return RM(E)?_0(E,w):E.expression!==w?r(Vx(w),E):E}function jx(E,w){const G=H(235);return G.expression=E,G.type=w,G.transformFlags|=yr(G.expression)|yr(G.type)|1,G}function Pg(E,w,G){return E.expression!==w||E.type!==G?r(jx(w,G),E):E}function lp(E){const w=H(232);return w.flags|=32,w.expression=i().parenthesizeLeftSideOfAccess(E,!0),w.transformFlags|=yr(w.expression)|1,w}function _0(E,w){return R.assert(!!(E.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),E.expression!==w?r(lp(w),E):E}function Hh(E,w){const G=H(233);switch(G.keywordToken=E,G.name=w,G.transformFlags|=yr(G.name),E){case 103:G.transformFlags|=1024;break;case 100:G.transformFlags|=4;break;default:return R.assertNever(E)}return G.flowNode=void 0,G}function Bp(E,w){return E.name!==w?r(Hh(E.keywordToken,w),E):E}function p0(E,w){const G=H(236);return G.expression=E,G.literal=w,G.transformFlags|=yr(G.expression)|yr(G.literal)|1024,G}function gE(E,w,G){return E.expression!==w||E.literal!==G?r(p0(w,G),E):E}function D1(){const E=H(237);return E.transformFlags|=1024,E}function Fg(E,w){const G=H(238);return G.statements=j(E),G.multiLine=w,G.transformFlags|=Fo(G.statements),G.jsDoc=void 0,G.locals=void 0,G.nextContainer=void 0,G}function A2(E,w){return E.statements!==w?r(Fg(w,E.multiLine),E):E}function yE(E,w){const G=H(240);return G.modifiers=Do(E),G.declarationList=ja(w)?hm(w):w,G.transformFlags|=Fo(G.modifiers)|yr(G.declarationList),Jm(G.modifiers)&2&&(G.transformFlags=1),G.jsDoc=void 0,G.flowNode=void 0,G}function vE(E,w,G){return E.modifiers!==w||E.declarationList!==G?r(yE(w,G),E):E}function bE(){const E=H(239);return E.jsDoc=void 0,E}function m0(E){const w=H(241);return w.expression=i().parenthesizeExpressionOfExpressionStatement(E),w.transformFlags|=yr(w.expression),w.jsDoc=void 0,w.flowNode=void 0,w}function Wx(E,w){return E.expression!==w?r(m0(w),E):E}function EE(E,w,G){const se=H(242);return se.expression=E,se.thenStatement=Vd(w),se.elseStatement=Vd(G),se.transformFlags|=yr(se.expression)|yr(se.thenStatement)|yr(se.elseStatement),se.jsDoc=void 0,se.flowNode=void 0,se}function TE(E,w,G,se){return E.expression!==w||E.thenStatement!==G||E.elseStatement!==se?r(EE(w,G,se),E):E}function h0(E,w){const G=H(243);return G.statement=Vd(E),G.expression=w,G.transformFlags|=yr(G.statement)|yr(G.expression),G.jsDoc=void 0,G.flowNode=void 0,G}function R1(E,w,G){return E.statement!==w||E.expression!==G?r(h0(w,G),E):E}function g0(E,w){const G=H(244);return G.expression=E,G.statement=Vd(w),G.transformFlags|=yr(G.expression)|yr(G.statement),G.jsDoc=void 0,G.flowNode=void 0,G}function C2(E,w,G){return E.expression!==w||E.statement!==G?r(g0(w,G),E):E}function Bg(E,w,G,se){const Ke=H(245);return Ke.initializer=E,Ke.condition=w,Ke.incrementor=G,Ke.statement=Vd(se),Ke.transformFlags|=yr(Ke.initializer)|yr(Ke.condition)|yr(Ke.incrementor)|yr(Ke.statement),Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke}function es(E,w,G,se,Ke){return E.initializer!==w||E.condition!==G||E.incrementor!==se||E.statement!==Ke?r(Bg(w,G,se,Ke),E):E}function SE(E,w,G){const se=H(246);return se.initializer=E,se.expression=w,se.statement=Vd(G),se.transformFlags|=yr(se.initializer)|yr(se.expression)|yr(se.statement),se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.flowNode=void 0,se}function NL(E,w,G,se){return E.initializer!==w||E.expression!==G||E.statement!==se?r(SE(w,G,se),E):E}function Ky(E,w,G,se){const Ke=H(247);return Ke.awaitModifier=E,Ke.initializer=w,Ke.expression=i().parenthesizeExpressionForDisallowedComma(G),Ke.statement=Vd(se),Ke.transformFlags|=yr(Ke.awaitModifier)|yr(Ke.initializer)|yr(Ke.expression)|yr(Ke.statement)|1024,E&&(Ke.transformFlags|=128),Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke}function Gg(E,w,G,se,Ke){return E.awaitModifier!==w||E.initializer!==G||E.expression!==se||E.statement!==Ke?r(Ky(w,G,se,Ke),E):E}function ah(E){const w=H(248);return w.label=Sl(E),w.transformFlags|=yr(w.label)|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function cp(E,w){return E.label!==w?r(ah(w),E):E}function Md(E){const w=H(249);return w.label=Sl(E),w.transformFlags|=yr(w.label)|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function Pd(E,w){return E.label!==w?r(Md(w),E):E}function Fd(E){const w=H(250);return w.expression=E,w.transformFlags|=yr(w.expression)|128|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function N1(E,w){return E.expression!==w?r(Fd(w),E):E}function O1(E,w){const G=H(251);return G.expression=E,G.statement=Vd(w),G.transformFlags|=yr(G.expression)|yr(G.statement),G.jsDoc=void 0,G.flowNode=void 0,G}function Hx(E,w,G){return E.expression!==w||E.statement!==G?r(O1(w,G),E):E}function M1(E,w){const G=H(252);return G.expression=i().parenthesizeExpressionForDisallowedComma(E),G.caseBlock=w,G.transformFlags|=yr(G.expression)|yr(G.caseBlock),G.jsDoc=void 0,G.flowNode=void 0,G.possiblyExhaustive=!1,G}function Ug(E,w,G){return E.expression!==w||E.caseBlock!==G?r(M1(w,G),E):E}function P1(E,w){const G=H(253);return G.label=Sl(E),G.statement=Vd(w),G.transformFlags|=yr(G.label)|yr(G.statement),G.jsDoc=void 0,G.flowNode=void 0,G}function L2(E,w,G){return E.label!==w||E.statement!==G?r(P1(w,G),E):E}function F1(E){const w=H(254);return w.expression=E,w.transformFlags|=yr(w.expression),w.jsDoc=void 0,w.flowNode=void 0,w}function OL(E,w){return E.expression!==w?r(F1(w),E):E}function zx(E,w,G){const se=H(255);return se.tryBlock=E,se.catchClause=w,se.finallyBlock=G,se.transformFlags|=yr(se.tryBlock)|yr(se.catchClause)|yr(se.finallyBlock),se.jsDoc=void 0,se.flowNode=void 0,se}function y0(E,w,G,se){return E.tryBlock!==w||E.catchClause!==G||E.finallyBlock!==se?r(zx(w,G,se),E):E}function xE(){const E=H(256);return E.jsDoc=void 0,E.flowNode=void 0,E}function Xe(E,w,G,se){var Ke;const Xt=ee(257);return Xt.name=Sl(E),Xt.exclamationToken=w,Xt.type=G,Xt.initializer=fv(se),Xt.transformFlags|=Ny(Xt.name)|yr(Xt.initializer)|(((Ke=Xt.exclamationToken)!=null?Ke:Xt.type)?1:0),Xt.jsDoc=void 0,Xt}function Xy(E,w,G,se,Ke){return E.name!==w||E.type!==se||E.exclamationToken!==G||E.initializer!==Ke?r(Xe(w,G,se,Ke),E):E}function hm(E,w=0){const G=H(258);return G.flags|=w&3,G.declarations=j(E),G.transformFlags|=Fo(G.declarations)|4194304,w&3&&(G.transformFlags|=263168),G}function v0(E,w){return E.declarations!==w?r(hm(w,E.flags),E):E}function B1(E,w,G,se,Ke,Xt,Ur){const ra=ee(259);if(ra.modifiers=Do(E),ra.asteriskToken=w,ra.name=Sl(G),ra.typeParameters=Do(se),ra.parameters=j(Ke),ra.type=Xt,ra.body=Ur,!ra.body||Jm(ra.modifiers)&2)ra.transformFlags=1;else{const Za=Jm(ra.modifiers)&512,Af=!!ra.asteriskToken,ty=Za&&Af;ra.transformFlags=Fo(ra.modifiers)|yr(ra.asteriskToken)|Ny(ra.name)|Fo(ra.typeParameters)|Fo(ra.parameters)|yr(ra.type)|yr(ra.body)&-67108865|(ty?128:Za?256:Af?2048:0)|(ra.typeParameters||ra.type?1:0)|4194304}return ra.typeArguments=void 0,ra.jsDoc=void 0,ra.locals=void 0,ra.nextContainer=void 0,ra.endFlowNode=void 0,ra.returnFlowNode=void 0,ra}function b0(E,w,G,se,Ke,Xt,Ur,ra){return E.modifiers!==w||E.asteriskToken!==G||E.name!==se||E.typeParameters!==Ke||E.parameters!==Xt||E.type!==Ur||E.body!==ra?Vg(B1(w,G,se,Ke,Xt,Ur,ra),E):E}function Vg(E,w){return E!==w&&E.modifiers===w.modifiers&&(E.modifiers=w.modifiers),X(E,w)}function I2(E,w,G,se,Ke){const Xt=ee(260);return Xt.modifiers=Do(E),Xt.name=Sl(w),Xt.typeParameters=Do(G),Xt.heritageClauses=Do(se),Xt.members=j(Ke),Jm(Xt.modifiers)&2?Xt.transformFlags=1:(Xt.transformFlags|=Fo(Xt.modifiers)|Ny(Xt.name)|Fo(Xt.typeParameters)|Fo(Xt.heritageClauses)|Fo(Xt.members)|(Xt.typeParameters?1:0)|1024,Xt.transformFlags&8192&&(Xt.transformFlags|=1)),Xt.jsDoc=void 0,Xt}function rs(E,w,G,se,Ke,Xt){return E.modifiers!==w||E.name!==G||E.typeParameters!==se||E.heritageClauses!==Ke||E.members!==Xt?r(I2(w,G,se,Ke,Xt),E):E}function up(E,w,G,se,Ke){const Xt=ee(261);return Xt.modifiers=Do(E),Xt.name=Sl(w),Xt.typeParameters=Do(G),Xt.heritageClauses=Do(se),Xt.members=j(Ke),Xt.transformFlags=1,Xt.jsDoc=void 0,Xt}function AE(E,w,G,se,Ke,Xt){return E.modifiers!==w||E.name!==G||E.typeParameters!==se||E.heritageClauses!==Ke||E.members!==Xt?r(up(w,G,se,Ke,Xt),E):E}function xc(E,w,G,se){const Ke=ee(262);return Ke.modifiers=Do(E),Ke.name=Sl(w),Ke.typeParameters=Do(G),Ke.type=se,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function zh(E,w,G,se,Ke){return E.modifiers!==w||E.name!==G||E.typeParameters!==se||E.type!==Ke?r(xc(w,G,se,Ke),E):E}function G1(E,w,G){const se=ee(263);return se.modifiers=Do(E),se.name=Sl(w),se.members=j(G),se.transformFlags|=Fo(se.modifiers)|yr(se.name)|Fo(se.members)|1,se.transformFlags&=-67108865,se.jsDoc=void 0,se}function dp(E,w,G,se){return E.modifiers!==w||E.name!==G||E.members!==se?r(G1(w,G,se),E):E}function U1(E,w,G,se=0){const Ke=ee(264);return Ke.modifiers=Do(E),Ke.flags|=se&1044,Ke.name=w,Ke.body=G,Jm(Ke.modifiers)&2?Ke.transformFlags=1:Ke.transformFlags|=Fo(Ke.modifiers)|yr(Ke.name)|yr(Ke.body)|1,Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function pu(E,w,G,se){return E.modifiers!==w||E.name!==G||E.body!==se?r(U1(w,G,se,E.flags),E):E}function jg(E){const w=H(265);return w.statements=j(E),w.transformFlags|=Fo(w.statements),w.jsDoc=void 0,w}function Uc(E,w){return E.statements!==w?r(jg(w),E):E}function k2(E){const w=H(266);return w.clauses=j(E),w.transformFlags|=Fo(w.clauses),w.locals=void 0,w.nextContainer=void 0,w}function ML(E,w){return E.clauses!==w?r(k2(w),E):E}function zi(E){const w=ee(267);return w.name=Sl(E),w.transformFlags|=Qk(w.name)|1,w.modifiers=void 0,w.jsDoc=void 0,w}function Xr(E,w){return E.name!==w?oh(zi(w),E):E}function oh(E,w){return E!==w&&(E.modifiers=w.modifiers),r(E,w)}function ef(E,w,G,se){const Ke=ee(268);return Ke.modifiers=Do(E),Ke.name=Sl(G),Ke.isTypeOnly=w,Ke.moduleReference=se,Ke.transformFlags|=Fo(Ke.modifiers)|Qk(Ke.name)|yr(Ke.moduleReference),Zm(Ke.moduleReference)||(Ke.transformFlags|=1),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function CE(E,w,G,se,Ke){return E.modifiers!==w||E.isTypeOnly!==G||E.name!==se||E.moduleReference!==Ke?r(ef(w,G,se,Ke),E):E}function Wg(E,w,G,se){const Ke=H(269);return Ke.modifiers=Do(E),Ke.importClause=w,Ke.moduleSpecifier=G,Ke.assertClause=se,Ke.transformFlags|=yr(Ke.importClause)|yr(Ke.moduleSpecifier),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function qh(E,w,G,se,Ke){return E.modifiers!==w||E.importClause!==G||E.moduleSpecifier!==se||E.assertClause!==Ke?r(Wg(w,G,se,Ke),E):E}function sh(E,w,G){const se=ee(270);return se.isTypeOnly=E,se.name=w,se.namedBindings=G,se.transformFlags|=yr(se.name)|yr(se.namedBindings),E&&(se.transformFlags|=1),se.transformFlags&=-67108865,se}function ml(E,w,G,se){return E.isTypeOnly!==w||E.name!==G||E.namedBindings!==se?r(sh(w,G,se),E):E}function V1(E,w){const G=H(296);return G.elements=j(E),G.multiLine=w,G.transformFlags|=4,G}function w2(E,w,G){return E.elements!==w||E.multiLine!==G?r(V1(w,G),E):E}function j1(E,w){const G=H(297);return G.name=E,G.value=w,G.transformFlags|=4,G}function D2(E,w,G){return E.name!==w||E.value!==G?r(j1(w,G),E):E}function u_(E,w){const G=H(298);return G.assertClause=E,G.multiLine=w,G}function qx(E,w,G){return E.assertClause!==w||E.multiLine!==G?r(u_(w,G),E):E}function Jx(E){const w=ee(271);return w.name=E,w.transformFlags|=yr(w.name),w.transformFlags&=-67108865,w}function E0(E,w){return E.name!==w?r(Jx(w),E):E}function R2(E){const w=ee(277);return w.name=E,w.transformFlags|=yr(w.name)|4,w.transformFlags&=-67108865,w}function N2(E,w){return E.name!==w?r(R2(w),E):E}function Kx(E){const w=H(272);return w.elements=j(E),w.transformFlags|=Fo(w.elements),w.transformFlags&=-67108865,w}function W1(E,w){return E.elements!==w?r(Kx(w),E):E}function O2(E,w,G){const se=ee(273);return se.isTypeOnly=E,se.propertyName=w,se.name=G,se.transformFlags|=yr(se.propertyName)|yr(se.name),se.transformFlags&=-67108865,se}function Vf(E,w,G,se){return E.isTypeOnly!==w||E.propertyName!==G||E.name!==se?r(O2(w,G,se),E):E}function Hg(E,w,G){const se=ee(274);return se.modifiers=Do(E),se.isExportEquals=w,se.expression=w?i().parenthesizeRightSideOfBinary(63,void 0,G):i().parenthesizeExpressionOfExportDefault(G),se.transformFlags|=Fo(se.modifiers)|yr(se.expression),se.transformFlags&=-67108865,se.jsDoc=void 0,se}function Gp(E,w,G){return E.modifiers!==w||E.expression!==G?r(Hg(w,E.isExportEquals,G),E):E}function fp(E,w,G,se,Ke){const Xt=ee(275);return Xt.modifiers=Do(E),Xt.isTypeOnly=w,Xt.exportClause=G,Xt.moduleSpecifier=se,Xt.assertClause=Ke,Xt.transformFlags|=Fo(Xt.modifiers)|yr(Xt.exportClause)|yr(Xt.moduleSpecifier),Xt.transformFlags&=-67108865,Xt.jsDoc=void 0,Xt}function Xx(E,w,G,se,Ke,Xt){return E.modifiers!==w||E.isTypeOnly!==G||E.exportClause!==se||E.moduleSpecifier!==Ke||E.assertClause!==Xt?H1(fp(w,G,se,Ke,Xt),E):E}function H1(E,w){return E!==w&&E.modifiers===w.modifiers&&(E.modifiers=w.modifiers),r(E,w)}function gm(E){const w=H(276);return w.elements=j(E),w.transformFlags|=Fo(w.elements),w.transformFlags&=-67108865,w}function M2(E,w){return E.elements!==w?r(gm(w),E):E}function Td(E,w,G){const se=H(278);return se.isTypeOnly=E,se.propertyName=Sl(w),se.name=Sl(G),se.transformFlags|=yr(se.propertyName)|yr(se.name),se.transformFlags&=-67108865,se.jsDoc=void 0,se}function zg(E,w,G,se){return E.isTypeOnly!==w||E.propertyName!==G||E.name!==se?r(Td(w,G,se),E):E}function ym(){const E=ee(279);return E.jsDoc=void 0,E}function vm(E){const w=H(280);return w.expression=E,w.transformFlags|=yr(w.expression),w.transformFlags&=-67108865,w}function qg(E,w){return E.expression!==w?r(vm(w),E):E}function LE(E){return H(E)}function P2(E,w,G=!1){const se=Yy(E,G?w&&i().parenthesizeNonArrayTypeOfPostfixType(w):w);return se.postfix=G,se}function Yy(E,w){const G=H(E);return G.type=w,G}function IE(E,w,G){return w.type!==G?r(P2(E,G,w.postfix),w):w}function Ns(E,w,G){return w.type!==G?r(Yy(E,G),w):w}function $y(E,w){const G=ee(320);return G.parameters=Do(E),G.type=w,G.transformFlags=Fo(G.parameters)|(G.type?1:0),G.jsDoc=void 0,G.locals=void 0,G.nextContainer=void 0,G.typeArguments=void 0,G}function Yx(E,w,G){return E.parameters!==w||E.type!==G?r($y(w,G),E):E}function z1(E,w=!1){const G=ee(325);return G.jsDocPropertyTags=Do(E),G.isArrayType=w,G}function q1(E,w,G){return E.jsDocPropertyTags!==w||E.isArrayType!==G?r(z1(w,G),E):E}function $x(E){const w=H(312);return w.type=E,w}function PL(E,w){return E.type!==w?r($x(w),E):E}function Qx(E,w,G){const se=ee(326);return se.typeParameters=Do(E),se.parameters=j(w),se.type=G,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se}function mr(E,w,G,se){return E.typeParameters!==w||E.parameters!==G||E.type!==se?r(Qx(w,G,se),E):E}function Ml(E){const w=a5(E.kind);return E.tagName.escapedText===cl(w)?E.tagName:Ee(w)}function _a(E,w,G){const se=H(E);return se.tagName=w,se.comment=G,se}function jf(E,w,G){const se=ee(E);return se.tagName=w,se.comment=G,se}function T0(E,w,G,se){const Ke=_a(348,E!=null?E:Ee("template"),se);return Ke.constraint=w,Ke.typeParameters=j(G),Ke}function lh(E,w=Ml(E),G,se,Ke){return E.tagName!==w||E.constraint!==G||E.typeParameters!==se||E.comment!==Ke?r(T0(w,G,se,Ke),E):E}function ar(E,w,G,se){const Ke=jf(349,E!=null?E:Ee("typedef"),se);return Ke.typeExpression=w,Ke.fullName=G,Ke.name=yX(G),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function Zx(E,w=Ml(E),G,se,Ke){return E.tagName!==w||E.typeExpression!==G||E.fullName!==se||E.comment!==Ke?r(ar(w,G,se,Ke),E):E}function Qy(E,w,G,se,Ke,Xt){const Ur=jf(344,E!=null?E:Ee("param"),Xt);return Ur.typeExpression=se,Ur.name=w,Ur.isNameFirst=!!Ke,Ur.isBracketed=G,Ur}function Nc(E,w=Ml(E),G,se,Ke,Xt,Ur){return E.tagName!==w||E.name!==G||E.isBracketed!==se||E.typeExpression!==Ke||E.isNameFirst!==Xt||E.comment!==Ur?r(Qy(w,G,se,Ke,Xt,Ur),E):E}function R_(E,w,G,se,Ke,Xt){const Ur=jf(351,E!=null?E:Ee("prop"),Xt);return Ur.typeExpression=se,Ur.name=w,Ur.isNameFirst=!!Ke,Ur.isBracketed=G,Ur}function Up(E,w=Ml(E),G,se,Ke,Xt,Ur){return E.tagName!==w||E.name!==G||E.isBracketed!==se||E.typeExpression!==Ke||E.isNameFirst!==Xt||E.comment!==Ur?r(R_(w,G,se,Ke,Xt,Ur),E):E}function Zy(E,w,G,se){const Ke=jf(341,E!=null?E:Ee("callback"),se);return Ke.typeExpression=w,Ke.fullName=G,Ke.name=yX(G),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function kE(E,w=Ml(E),G,se,Ke){return E.tagName!==w||E.typeExpression!==G||E.fullName!==se||E.comment!==Ke?r(Zy(w,G,se,Ke),E):E}function _p(E,w,G){const se=_a(342,E!=null?E:Ee("overload"),G);return se.typeExpression=w,se}function ev(E,w=Ml(E),G,se){return E.tagName!==w||E.typeExpression!==G||E.comment!==se?r(_p(w,G,se),E):E}function Ql(E,w,G){const se=_a(331,E!=null?E:Ee("augments"),G);return se.class=w,se}function ic(E,w=Ml(E),G,se){return E.tagName!==w||E.class!==G||E.comment!==se?r(Ql(w,G,se),E):E}function Jg(E,w,G){const se=_a(332,E!=null?E:Ee("implements"),G);return se.class=w,se}function mu(E,w,G){const se=_a(350,E!=null?E:Ee("see"),G);return se.name=w,se}function N_(E,w,G,se){return E.tagName!==w||E.name!==G||E.comment!==se?r(mu(w,G,se),E):E}function ch(E){const w=H(313);return w.name=E,w}function Bd(E,w){return E.name!==w?r(ch(w),E):E}function wE(E,w){const G=H(314);return G.left=E,G.right=w,G.transformFlags|=yr(G.left)|yr(G.right),G}function J1(E,w,G){return E.left!==w||E.right!==G?r(wE(w,G),E):E}function K1(E,w){const G=H(327);return G.name=E,G.text=w,G}function Vp(E,w,G){return E.name!==w?r(K1(w,G),E):E}function Jh(E,w){const G=H(328);return G.name=E,G.text=w,G}function DE(E,w,G){return E.name!==w?r(Jh(w,G),E):E}function tv(E,w){const G=H(329);return G.name=E,G.text=w,G}function Pl(E,w,G){return E.name!==w?r(tv(w,G),E):E}function Kg(E,w=Ml(E),G,se){return E.tagName!==w||E.class!==G||E.comment!==se?r(Jg(w,G,se),E):E}function Kh(E,w,G){return _a(E,w!=null?w:Ee(a5(E)),G)}function S0(E,w,G=Ml(w),se){return w.tagName!==G||w.comment!==se?r(Kh(E,G,se),w):w}function x0(E,w,G,se){const Ke=_a(E,w!=null?w:Ee(a5(E)),se);return Ke.typeExpression=G,Ke}function hu(E,w,G=Ml(w),se,Ke){return w.tagName!==G||w.typeExpression!==se||w.comment!==Ke?r(x0(E,G,se,Ke),w):w}function Xh(E,w){return _a(330,E,w)}function Ac(E,w,G){return E.tagName!==w||E.comment!==G?r(Xh(w,G),E):E}function RE(E,w,G){const se=jf(343,E!=null?E:Ee(a5(343)),G);return se.typeExpression=w,se.locals=void 0,se.nextContainer=void 0,se}function Yh(E,w=Ml(E),G,se){return E.tagName!==w||E.typeExpression!==G||E.comment!==se?r(RE(w,G,se),E):E}function X1(E){const w=H(324);return w.text=E,w}function Sd(E,w){return E.text!==w?r(X1(w),E):E}function uh(E,w){const G=H(323);return G.comment=E,G.tags=Do(w),G}function Y1(E,w,G){return E.comment!==w||E.tags!==G?r(uh(w,G),E):E}function A0(E,w,G){const se=H(281);return se.openingElement=E,se.children=j(w),se.closingElement=G,se.transformFlags|=yr(se.openingElement)|Fo(se.children)|yr(se.closingElement)|2,se}function NE(E,w,G,se){return E.openingElement!==w||E.children!==G||E.closingElement!==se?r(A0(w,G,se),E):E}function nv(E,w,G){const se=H(282);return se.tagName=E,se.typeArguments=Do(w),se.attributes=G,se.transformFlags|=yr(se.tagName)|Fo(se.typeArguments)|yr(se.attributes)|2,se.typeArguments&&(se.transformFlags|=1),se}function F2(E,w,G,se){return E.tagName!==w||E.typeArguments!==G||E.attributes!==se?r(nv(w,G,se),E):E}function C0(E,w,G){const se=H(283);return se.tagName=E,se.typeArguments=Do(w),se.attributes=G,se.transformFlags|=yr(se.tagName)|Fo(se.typeArguments)|yr(se.attributes)|2,w&&(se.transformFlags|=1),se}function Xg(E,w,G,se){return E.tagName!==w||E.typeArguments!==G||E.attributes!==se?r(C0(w,G,se),E):E}function Wf(E){const w=H(284);return w.tagName=E,w.transformFlags|=yr(w.tagName)|2,w}function OE(E,w){return E.tagName!==w?r(Wf(w),E):E}function Tf(E,w,G){const se=H(285);return se.openingFragment=E,se.children=j(w),se.closingFragment=G,se.transformFlags|=yr(se.openingFragment)|Fo(se.children)|yr(se.closingFragment)|2,se}function $h(E,w,G,se){return E.openingFragment!==w||E.children!==G||E.closingFragment!==se?r(Tf(w,G,se),E):E}function L0(E,w){const G=H(11);return G.text=E,G.containsOnlyTriviaWhiteSpaces=!!w,G.transformFlags|=2,G}function eA(E,w,G){return E.text!==w||E.containsOnlyTriviaWhiteSpaces!==G?r(L0(w,G),E):E}function os(){const E=H(286);return E.transformFlags|=2,E}function kr(){const E=H(287);return E.transformFlags|=2,E}function tf(E,w){const G=ee(288);return G.name=E,G.initializer=w,G.transformFlags|=yr(G.name)|yr(G.initializer)|2,G}function xd(E,w,G){return E.name!==w||E.initializer!==G?r(tf(w,G),E):E}function B2(E){const w=ee(289);return w.properties=j(E),w.transformFlags|=Fo(w.properties)|2,w}function ME(E,w){return E.properties!==w?r(B2(w),E):E}function rv(E){const w=H(290);return w.expression=E,w.transformFlags|=yr(w.expression)|2,w}function tA(E,w){return E.expression!==w?r(rv(w),E):E}function iv(E,w){const G=H(291);return G.dotDotDotToken=E,G.expression=w,G.transformFlags|=yr(G.dotDotDotToken)|yr(G.expression)|2,G}function bm(E,w){return E.expression!==w?r(iv(E.dotDotDotToken,w),E):E}function jp(E,w){const G=H(292);return G.expression=i().parenthesizeExpressionForDisallowedComma(E),G.statements=j(w),G.transformFlags|=yr(G.expression)|Fo(G.statements),G.jsDoc=void 0,G}function Yg(E,w,G){return E.expression!==w||E.statements!==G?r(jp(w,G),E):E}function I0(E){const w=H(293);return w.statements=j(E),w.transformFlags=Fo(w.statements),w}function Qh(E,w){return E.statements!==w?r(I0(w),E):E}function Em(E,w){const G=H(294);switch(G.token=E,G.types=j(w),G.transformFlags|=Fo(G.types),E){case 94:G.transformFlags|=1024;break;case 117:G.transformFlags|=1;break;default:return R.assertNever(E)}return G}function G2(E,w){return E.types!==w?r(Em(E.token,w),E):E}function Zl(E,w){const G=H(295);return G.variableDeclaration=D8(E),G.block=w,G.transformFlags|=yr(G.variableDeclaration)|yr(G.block)|(E?0:64),G.locals=void 0,G.nextContainer=void 0,G}function Sf(E,w,G){return E.variableDeclaration!==w||E.block!==G?r(Zl(w,G),E):E}function dh(E,w){const G=ee(299);return G.name=Sl(E),G.initializer=i().parenthesizeExpressionForDisallowedComma(w),G.transformFlags|=Ny(G.name)|yr(G.initializer),G.modifiers=void 0,G.questionToken=void 0,G.exclamationToken=void 0,G.jsDoc=void 0,G}function Gd(E,w,G){return E.name!==w||E.initializer!==G?PE(dh(w,G),E):E}function PE(E,w){return E!==w&&(E.modifiers=w.modifiers,E.questionToken=w.questionToken,E.exclamationToken=w.exclamationToken),r(E,w)}function av(E,w){const G=ee(300);return G.name=Sl(E),G.objectAssignmentInitializer=w&&i().parenthesizeExpressionForDisallowedComma(w),G.transformFlags|=Qk(G.name)|yr(G.objectAssignmentInitializer)|1024,G.equalsToken=void 0,G.modifiers=void 0,G.questionToken=void 0,G.exclamationToken=void 0,G.jsDoc=void 0,G}function $g(E,w,G){return E.name!==w||E.objectAssignmentInitializer!==G?nA(av(w,G),E):E}function nA(E,w){return E!==w&&(E.modifiers=w.modifiers,E.questionToken=w.questionToken,E.exclamationToken=w.exclamationToken,E.equalsToken=w.equalsToken),r(E,w)}function Hf(E){const w=ee(301);return w.expression=i().parenthesizeExpressionForDisallowedComma(E),w.transformFlags|=yr(w.expression)|128|65536,w.jsDoc=void 0,w}function Os(E,w){return E.expression!==w?r(Hf(w),E):E}function FE(E,w){const G=ee(302);return G.name=Sl(E),G.initializer=w&&i().parenthesizeExpressionForDisallowedComma(w),G.transformFlags|=yr(G.name)|yr(G.initializer)|1,G.jsDoc=void 0,G}function BE(E,w,G){return E.name!==w||E.initializer!==G?r(FE(w,G),E):E}function Qg(E,w,G){const se=t.createBaseSourceFileNode(308);return se.statements=j(E),se.endOfFileToken=w,se.flags|=G,se.text="",se.fileName="",se.path="",se.resolvedPath="",se.originalFileName="",se.languageVersion=0,se.languageVariant=0,se.scriptKind=0,se.isDeclarationFile=!1,se.hasNoDefaultLib=!1,se.transformFlags|=Fo(se.statements)|yr(se.endOfFileToken),se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.nodeCount=0,se.identifierCount=0,se.symbolCount=0,se.parseDiagnostics=void 0,se.bindDiagnostics=void 0,se.bindSuggestionDiagnostics=void 0,se.lineMap=void 0,se.externalModuleIndicator=void 0,se.setExternalModuleIndicator=void 0,se.pragmas=void 0,se.checkJsDirective=void 0,se.referencedFiles=void 0,se.typeReferenceDirectives=void 0,se.libReferenceDirectives=void 0,se.amdDependencies=void 0,se.commentDirectives=void 0,se.identifiers=void 0,se.packageJsonLocations=void 0,se.packageJsonScope=void 0,se.imports=void 0,se.moduleAugmentations=void 0,se.ambientModuleNames=void 0,se.resolvedModules=void 0,se.classifiableNames=void 0,se.impliedNodeFormat=void 0,se}function k0(E){const w=Object.create(E.redirectTarget);return Object.defineProperties(w,{id:{get(){return this.redirectInfo.redirectTarget.id},set(G){this.redirectInfo.redirectTarget.id=G}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(G){this.redirectInfo.redirectTarget.symbol=G}}}),w.redirectInfo=E,w}function U2(E){const w=k0(E.redirectInfo);return w.flags|=E.flags&-9,w.fileName=E.fileName,w.path=E.path,w.resolvedPath=E.resolvedPath,w.originalFileName=E.originalFileName,w.packageJsonLocations=E.packageJsonLocations,w.packageJsonScope=E.packageJsonScope,w.emitNode=void 0,w}function GE(E){const w=t.createBaseSourceFileNode(308);w.flags|=E.flags&-9;for(const G in E)if(!(Fs(w,G)||!Fs(E,G))){if(G==="emitNode"){w.emitNode=void 0;continue}w[G]=E[G]}return w}function UE(E){const w=E.redirectInfo?U2(E):GE(E);return zr(w,E),w}function VE(E,w,G,se,Ke,Xt,Ur){const ra=UE(E);return ra.statements=j(w),ra.isDeclarationFile=G,ra.referencedFiles=se,ra.typeReferenceDirectives=Ke,ra.hasNoDefaultLib=Xt,ra.libReferenceDirectives=Ur,ra.transformFlags=Fo(ra.statements)|yr(ra.endOfFileToken),ra}function jE(E,w,G=E.isDeclarationFile,se=E.referencedFiles,Ke=E.typeReferenceDirectives,Xt=E.hasNoDefaultLib,Ur=E.libReferenceDirectives){return E.statements!==w||E.isDeclarationFile!==G||E.referencedFiles!==se||E.typeReferenceDirectives!==Ke||E.hasNoDefaultLib!==Xt||E.libReferenceDirectives!==Ur?r(VE(E,w,G,se,Ke,Xt,Ur),E):E}function WE(E,w=it){const G=H(309);return G.prepends=w,G.sourceFiles=E,G.syntheticFileReferences=void 0,G.syntheticTypeReferences=void 0,G.syntheticLibReferences=void 0,G.hasNoDefaultLib=void 0,G}function ov(E,w,G=it){return E.sourceFiles!==w||E.prepends!==G?r(WE(w,G),E):E}function nf(E,w,G){const se=H(310);return se.prologues=E,se.syntheticReferences=w,se.texts=G,se.fileName="",se.text="",se.referencedFiles=it,se.libReferenceDirectives=it,se.getLineAndCharacterOfPosition=Ke=>ll(se,Ke),se}function Zh(E,w){const G=H(E);return G.data=w,G}function FL(E){return Zh(303,E)}function Zg(E,w){const G=Zh(304,E);return G.texts=w,G}function rA(E,w){return Zh(w?306:305,E)}function iA(E){const w=H(307);return w.data=E.data,w.section=E,w}function x(){const E=H(311);return E.javascriptText="",E.declarationText="",E}function le(E,w=!1,G){const se=H(234);return se.type=E,se.isSpread=w,se.tupleNameSource=G,se}function Re(E){const w=H(354);return w._children=E,w}function on(E){const w=H(355);return w.original=E,ht(w,E),w}function Cr(E,w){const G=H(356);return G.expression=E,G.original=w,G.transformFlags|=yr(G.expression)|1,ht(G,w),G}function Ai(E,w){return E.expression!==w?r(Cr(w,E.original),E):E}function di(E){if(tl(E)&&!$I(E)&&!E.original&&!E.emitNode&&!E.id){if(c4(E))return E.elements;if(Tr(E)&&Yme(E.operatorToken))return[E.left,E.right]}return E}function Vi(E){const w=H(357);return w.elements=j(U_(E,di)),w.transformFlags|=Fo(w.elements),w}function mo(E,w){return E.elements!==w?r(Vi(w),E):E}function su(E){const w=H(359);return w.emitNode={},w.original=E,w}function rf(E){const w=H(358);return w.emitNode={},w.original=E,w}function xf(E,w){const G=H(360);return G.expression=E,G.thisArg=w,G.transformFlags|=yr(G.expression)|yr(G.thisArg),G}function sv(E,w,G){return E.expression!==w||E.thisArg!==G?r(xf(w,G),E):E}function af(E){const w=ce(E.escapedText);return w.flags|=E.flags&-9,w.transformFlags=E.transformFlags,zr(w,E),d6(w,Li({},E.emitNode.autoGenerate)),w}function w0(E){const w=ce(E.escapedText);w.flags|=E.flags&-9,w.jsDoc=E.jsDoc,w.flowNode=E.flowNode,w.symbol=E.symbol,w.transformFlags=E.transformFlags,zr(w,E);const G=zT(E);return G&&My(w,G),w}function D0(E){const w=Ue(E.escapedText);return w.flags|=E.flags&-9,w.transformFlags=E.transformFlags,zr(w,E),d6(w,Li({},E.emitNode.autoGenerate)),w}function lv(E){const w=Ue(E.escapedText);return w.flags|=E.flags&-9,w.transformFlags=E.transformFlags,zr(w,E),w}function O_(E){if(E===void 0)return E;if(Ki(E))return UE(E);if(Ll(E))return af(E);if(We(E))return w0(E);if(AS(E))return D0(E);if(Ri(E))return lv(E);const w=OD(E.kind)?t.createBaseNode(E.kind):t.createBaseTokenNode(E.kind);w.flags|=E.flags&-9,w.transformFlags=E.transformFlags,zr(w,E);for(const G in E)Fs(w,G)||!Fs(E,G)||(w[G]=E[G]);return w}function HE(E,w,G){return Nn(Wa(void 0,void 0,void 0,void 0,w?[w]:[],void 0,Fg(E,!0)),void 0,G?[G]:[])}function zf(E,w,G){return Nn(Ss(void 0,void 0,w?[w]:[],void 0,void 0,Fg(E,!0)),void 0,G?[G]:[])}function fh(){return Du(ne("0"))}function cv(E){return Hg(void 0,!1,E)}function d_(E){return fp(void 0,!1,gm([Td(!1,void 0,E)]))}function zE(E,w){return w==="undefined"?U.createStrictEquality(E,fh()):U.createStrictEquality(rc(E),re(w))}function R0(E,w,G){return TT(E)?ko(Ts(E,void 0,w),void 0,void 0,G):Nn(mc(E,w),void 0,G)}function hc(E,w,G){return R0(E,"bind",[w,...G])}function e3(E,w,G){return R0(E,"call",[w,...G])}function xs(E,w,G){return R0(E,"apply",[w,G])}function is(E,w,G){return R0(Ee(E),w,G)}function aA(E,w){return R0(E,"slice",w===void 0?[]:[O0(w)])}function oA(E,w){return R0(E,"concat",w)}function q(E,w,G){return is("Object","defineProperty",[E,O0(w),G])}function Se(E,w){return is("Object","getOwnPropertyDescriptor",[E,O0(w)])}function Qe(E,w,G){return is("Reflect","get",G?[E,w,G]:[E,w])}function Tt(E,w,G,se){return is("Reflect","set",se?[E,w,G,se]:[E,w,G])}function Vt(E,w,G){return G?(E.push(dh(w,G)),!0):!1}function An(E,w){const G=[];Vt(G,"enumerable",O0(E.enumerable)),Vt(G,"configurable",O0(E.configurable));let se=Vt(G,"writable",O0(E.writable));se=Vt(G,"value",E.value)||se;let Ke=Vt(G,"get",E.get);return Ke=Vt(G,"set",E.set)||Ke,R.assert(!(se&&Ke),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ho(G,!w)}function Gr(E,w){switch(E.kind){case 214:return Mi(E,w);case 213:return Rr(E,E.type,w);case 231:return f0(E,w,E.type);case 235:return Pg(E,w,E.type);case 232:return x2(E,w);case 356:return Ai(E,w)}}function Ei(E){return qd(E)&&tl(E)&&tl(y1(E))&&tl(Ym(E))&&!Dt(MC(E))&&!Dt(u6(E))}function Ci(E,w,G=15){return E&&$5(E,G)&&!Ei(E)?Gr(E,Ci(E.expression,w)):w}function ki(E,w,G){if(!w)return E;const se=L2(w,w.label,eE(w.statement)?ki(E,w.statement):E);return G&&G(w),se}function Fa(E,w){const G=Hs(E);switch(G.kind){case 79:return w;case 108:case 8:case 9:case 10:return!1;case 206:return G.elements.length!==0;case 207:return G.properties.length>0;default:return!0}}function ks(E,w,G,se=!1){const Ke=Cu(E,15);let Xt,Ur;return gd(Ke)?(Xt=Ct(),Ur=Ke):n4(Ke)?(Xt=Ct(),Ur=G!==void 0&&G<2?ht(Ee("_super"),Ke):Ke):Eo(Ke)&8192?(Xt=fh(),Ur=i().parenthesizeLeftSideOfAccess(Ke,!1)):Br(Ke)?Fa(Ke.expression,se)?(Xt=Ae(w),Ur=mc(ht(U.createAssignment(Xt,Ke.expression),Ke.expression),Ke.name),ht(Ur,Ke)):(Xt=Ke.expression,Ur=Ke):dl(Ke)?Fa(Ke.expression,se)?(Xt=Ae(w),Ur=Qd(ht(U.createAssignment(Xt,Ke.expression),Ke.expression),Ke.argumentExpression),ht(Ur,Ke)):(Xt=Ke.expression,Ur=Ke):(Xt=fh(),Ur=i().parenthesizeLeftSideOfAccess(E,!1)),{target:Ur,thisArg:Xt}}function wo(E,w){return mc(ri(Ho([ie(void 0,"value",[Ii(void 0,void 0,E,void 0,void 0,void 0)],Fg([m0(w)]))])),"value")}function as(E){return E.length>10?Vi(E):Vu(E,U.createComma)}function Ud(E,w,G,se=0){const Ke=ka(E);if(Ke&&We(Ke)&&!Ll(Ke)){const Xt=jo(ht(O_(Ke),Ke),Ke.parent);return se|=Eo(Ke),G||(se|=96),w||(se|=3072),se&&sr(Xt,se),Xt}return je(E)}function Wp(E,w,G){return Ud(E,w,G,98304)}function Tm(E,w,G){return Ud(E,w,G,32768)}function ey(E,w,G){return Ud(E,w,G,16384)}function M_(E,w,G){return Ud(E,w,G)}function uv(E,w,G,se){const Ke=mc(E,tl(w)?w:O_(w));ht(Ke,w);let Xt=0;return se||(Xt|=96),G||(Xt|=3072),Xt&&sr(Ke,Xt),Ke}function sA(E,w,G,se){return E&&Qr(w,1)?uv(E,Ud(w),G,se):ey(w,G,se)}function qE(E,w,G,se){const Ke=N0(E,w,0,G);return GL(E,w,Ke,se)}function BL(E){return Wo(E.expression)&&E.expression.text==="use strict"}function pp(){return Yu(m0(re("use strict")))}function N0(E,w,G=0,se){R.assert(w.length===0,"Prologue directives should be at the first statement in the target statements array");let Ke=!1;const Xt=E.length;for(;G<Xt;){const Ur=E[G];if(Cp(Ur))BL(Ur)&&(Ke=!0),w.push(Ur);else break;G++}return se&&!Ke&&w.push(pp()),G}function GL(E,w,G,se,Ke=xb){const Xt=E.length;for(;G!==void 0&&G<Xt;){const Ur=E[G];if(Eo(Ur)&2097152&&Ke(Ur))Pn(w,se?ct(Ur,se,wa):Ur);else break;G++}return G}function qf(E){return mX(E)?E:ht(j([pp(),...E]),E)}function lA(E){return R.assert(Qn(E,zfe),"Cannot lift nodes to a Block."),Nm(E)||Fg(E)}function dv(E,w,G){let se=G;for(;se<E.length&&w(E[se]);)se++;return se}function I8(E,w){if(!Dt(w))return E;const G=dv(E,Cp,0),se=dv(E,eP,G),Ke=dv(E,tP,se),Xt=dv(w,Cp,0),Ur=dv(w,eP,Xt),ra=dv(w,tP,Ur),Za=dv(w,ZM,ra);R.assert(Za===w.length,"Expected declarations to be valid standard or custom prologues");const Af=Ob(E)?E.slice():E;if(Za>ra&&Af.splice(Ke,0,...w.slice(ra,Za)),ra>Ur&&Af.splice(se,0,...w.slice(Ur,ra)),Ur>Xt&&Af.splice(G,0,...w.slice(Xt,Ur)),Xt>0)if(G===0)Af.splice(0,0,...w.slice(0,Xt));else{const ty=new Map;for(let ny=0;ny<G;ny++){const ry=E[ny];ty.set(ry.expression.text,!0)}for(let ny=Xt-1;ny>=0;ny--){const ry=w[ny];ty.has(ry.expression.text)||Af.unshift(ry)}}return Ob(E)?ht(j(Af,E.hasTrailingComma),E):E}function k8(E,w){var G;let se;return typeof w=="number"?se=sn(w):se=w,Ul(E)?pr(E,se,E.name,E.constraint,E.default):Ba(E)?ea(E,se,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):i4(E)?ir(E,se,E.typeParameters,E.parameters,E.type):Mf(E)?yn(E,se,E.name,E.questionToken,E.type):ro(E)?Bn(E,se,E.name,(G=E.questionToken)!=null?G:E.exclamationToken,E.type,E.initializer):Mh(E)?Oi(E,se,E.name,E.questionToken,E.typeParameters,E.parameters,E.type):sc(E)?Rn(E,se,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):Kl(E)?gt(E,se,E.parameters,E.body):Z_(E)?pt(E,se,E.name,E.parameters,E.type,E.body):s_(E)?ye(E,se,E.name,E.parameters,E.body):ZS(E)?Sn(E,se,E.parameters,E.type):Us(E)?zo(E,se,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Xs(E)?$s(E,se,E.typeParameters,E.parameters,E.type,E.equalsGreaterThanToken,E.body):Ku(E)?cc(E,se,E.name,E.typeParameters,E.heritageClauses,E.members):pc(E)?vE(E,se,E.declarationList):Sc(E)?b0(E,se,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Bc(E)?rs(E,se,E.name,E.typeParameters,E.heritageClauses,E.members):dd(E)?AE(E,se,E.name,E.typeParameters,E.heritageClauses,E.members):um(E)?zh(E,se,E.name,E.typeParameters,E.type):b1(E)?dp(E,se,E.name,E.members):Xl(E)?pu(E,se,E.name,E.body):fu(E)?CE(E,se,E.isTypeOnly,E.name,E.moduleReference):Yc(E)?qh(E,se,E.importClause,E.moduleSpecifier,E.assertClause):Vl(E)?Gp(E,se,E.expression):au(E)?Xx(E,se,E.isTypeOnly,E.exportClause,E.moduleSpecifier,E.assertClause):R.assertNever(E)}function Do(E){return E?j(E):void 0}function Sl(E){return typeof E=="string"?Ee(E):E}function O0(E){return typeof E=="string"?re(E):typeof E=="number"?ne(E):typeof E=="boolean"?E?zt():nt():E}function fv(E){return E&&i().parenthesizeExpressionForDisallowedComma(E)}function w8(E){return typeof E=="number"?Ge(E):E}function Vd(E){return E&&QK(E)?ht(zr(bE(),E),E):E}function D8(E){return typeof E=="string"||E&&!$i(E)?Xe(E,void 0,void 0,void 0):E}}function qMe(e,t){return e!==t&&ht(e,t),e}function JMe(e,t){return e!==t&&(zr(e,t),ht(e,t)),e}function a5(e){switch(e){case 347:return"type";case 345:return"returns";case 346:return"this";case 343:return"enum";case 333:return"author";case 335:return"class";case 336:return"public";case 337:return"private";case 338:return"protected";case 339:return"readonly";case 340:return"override";case 348:return"template";case 349:return"typedef";case 344:return"param";case 351:return"prop";case 341:return"callback";case 342:return"overload";case 331:return"augments";case 332:return"implements";default:return R.fail(`Unsupported kind: ${R.formatSyntaxKind(e)}`)}}function KMe(e,t){switch(Lg||(Lg=xy(99,!1,0)),e){case 14:Lg.setText("`"+t+"`");break;case 15:Lg.setText("`"+t+"${");break;case 16:Lg.setText("}"+t+"${");break;case 17:Lg.setText("}"+t+"`");break}let r=Lg.scan();if(r===19&&(r=Lg.reScanTemplateToken(!1)),Lg.isUnterminated())return Lg.setText(void 0),DK;let i;switch(r){case 14:case 15:case 16:case 17:i=Lg.getTokenValue();break}return i===void 0||Lg.scan()!==1?(Lg.setText(void 0),DK):(Lg.setText(void 0),i)}function Ny(e){return e&&We(e)?Qk(e):yr(e)}function Qk(e){return yr(e)&-67108865}function XMe(e,t){return t|e.transformFlags&134234112}function yr(e){if(!e)return 0;const t=e.transformFlags&~Ome(e.kind);return Su(e)&&bl(e.name)?XMe(e.name,t):t}function Fo(e){return e?e.transformFlags:0}function Nme(e){let t=0;for(const r of e)t|=yr(r);e.transformFlags=t}function Ome(e){if(e>=179&&e<=202)return-2;switch(e){case 210:case 211:case 206:return-2147450880;case 264:return-1941676032;case 166:return-2147483648;case 216:return-2072174592;case 215:case 259:return-1937940480;case 258:return-2146893824;case 260:case 228:return-2147344384;case 173:return-1937948672;case 169:return-2013249536;case 171:case 174:case 175:return-2005057536;case 131:case 148:case 160:case 144:case 152:case 149:case 134:case 153:case 114:case 165:case 168:case 170:case 176:case 177:case 178:case 261:case 262:return-2;case 207:return-2147278848;case 295:return-2147418112;case 203:case 204:return-2147450880;case 213:case 235:case 231:case 356:case 214:case 106:return-2147483648;case 208:case 209:return-2147483648;default:return-2147483648}}function i6(e){return e.flags|=8,e}function CK(e,t,r){let i,o,s,c,_,d,v,g,T,C;za(e)?(s="",c=e,_=e.length,d=t,v=r):(R.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",d=t==="js"?e.javascriptMapPath:e.declarationMapPath,g=()=>t==="js"?e.javascriptText:e.declarationText,T=()=>t==="js"?e.javascriptMapText:e.declarationMapText,_=()=>g().length,e.buildInfo&&e.buildInfo.bundle&&(R.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,C=e.oldFileOfCurrentEmit));const L=C?$Me(R.checkDefined(o)):YMe(o,i,_);return L.fileName=s,L.sourceMapPath=d,L.oldFileOfCurrentEmit=C,g&&T?(Object.defineProperty(L,"text",{get:g}),Object.defineProperty(L,"sourceMapText",{get:T})):(R.assert(!C),L.text=c!=null?c:"",L.sourceMapText=v),L}function YMe(e,t,r){let i,o,s,c,_,d,v,g;for(const C of e?e.sections:it)switch(C.kind){case"prologue":i=Pn(i,ht(O.createUnparsedPrologue(C.data),C));break;case"emitHelpers":o=Pn(o,BK().get(C.data));break;case"no-default-lib":g=!0;break;case"reference":s=Pn(s,{pos:-1,end:-1,fileName:C.data});break;case"type":c=Pn(c,{pos:-1,end:-1,fileName:C.data});break;case"type-import":c=Pn(c,{pos:-1,end:-1,fileName:C.data,resolutionMode:99});break;case"type-require":c=Pn(c,{pos:-1,end:-1,fileName:C.data,resolutionMode:1});break;case"lib":_=Pn(_,{pos:-1,end:-1,fileName:C.data});break;case"prepend":let L;for(const I of C.texts)(!t||I.kind!=="internal")&&(L=Pn(L,ht(O.createUnparsedTextLike(I.data,I.kind==="internal"),I)));d=xi(d,L),v=Pn(v,O.createUnparsedPrepend(C.data,L!=null?L:it));break;case"internal":if(t){v||(v=[]);break}case"text":v=Pn(v,ht(O.createUnparsedTextLike(C.data,C.kind==="internal"),C));break;default:R.assertNever(C)}if(!v){const C=O.createUnparsedTextLike(void 0,!1);qk(C,0,typeof r=="function"?r():r),v=[C]}const T=th.createUnparsedSource(i!=null?i:it,void 0,v);return wC(i,T),wC(v,T),wC(d,T),T.hasNoDefaultLib=g,T.helpers=o,T.referencedFiles=s||it,T.typeReferenceDirectives=c,T.libReferenceDirectives=_||it,T}function $Me(e){let t,r;for(const o of e.sections)switch(o.kind){case"internal":case"text":t=Pn(t,ht(O.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=Pn(r,ht(O.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:R.assertNever(o)}const i=O.createUnparsedSource(it,r,t!=null?t:it);return wC(r,i),wC(t,i),i.helpers=Pt(e.sources&&e.sources.helpers,o=>BK().get(o)),i}function QMe(e,t,r,i,o,s){return za(e)?IK(void 0,e,r,i,void 0,t,o,s):LK(e,t,r,i,o,s)}function LK(e,t,r,i,o,s,c,_){const d=th.createInputFiles();d.javascriptPath=t,d.javascriptMapPath=r,d.declarationPath=i,d.declarationMapPath=o,d.buildInfoPath=s;const v=new Map,g=I=>{if(I===void 0)return;let M=v.get(I);return M===void 0&&(M=e(I),v.set(I,M!==void 0?M:!1)),M!==!1?M:void 0},T=I=>{const M=g(I);return M!==void 0?M:`/* Input file ${I} was missing */\r
`};let C;return Object.defineProperties(d,{javascriptText:{get:()=>T(t)},javascriptMapText:{get:()=>g(r)},declarationText:{get:()=>T(R.checkDefined(i))},declarationMapText:{get:()=>g(o)},buildInfo:{get:()=>{var I,M;if(C===void 0&&s)if(c!=null&&c.getBuildInfo)C=(I=c.getBuildInfo(s,_.configFilePath))!=null?I:!1;else{const k=g(s);C=k!==void 0&&(M=tF(s,k))!=null?M:!1}return C||void 0}}}),d}function IK(e,t,r,i,o,s,c,_,d,v,g){const T=th.createInputFiles();return T.javascriptPath=e,T.javascriptText=t,T.javascriptMapPath=r,T.javascriptMapText=i,T.declarationPath=o,T.declarationText=s,T.declarationMapPath=c,T.declarationMapText=_,T.buildInfoPath=d,T.buildInfo=v,T.oldFileOfCurrentEmit=g,T}function ZMe(e,t,r){return new(Pme||(Pme=Kc.getSourceMapSourceConstructor()))(e,t,r)}function zr(e,t){if(e.original=t,t){const r=t.emitNode;r&&(e.emitNode=ePe(r,e.emitNode))}return e}function ePe(e,t){const{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:c,sourceMapRange:_,tokenSourceMapRanges:d,constantValue:v,helpers:g,startsOnNewLine:T,snippetElement:C}=e;if(t||(t={}),o&&(t.leadingComments=xi(o.slice(),t.leadingComments)),s&&(t.trailingComments=xi(s.slice(),t.trailingComments)),r&&(t.flags=r),i&&(t.internalFlags=i&-9),c&&(t.commentRange=c),_&&(t.sourceMapRange=_),d&&(t.tokenSourceMapRanges=tPe(d,t.tokenSourceMapRanges)),v!==void 0&&(t.constantValue=v),g)for(const L of g)t.helpers=vy(t.helpers,L);return T!==void 0&&(t.startsOnNewLine=T),C!==void 0&&(t.snippetElement=C),t}function tPe(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}var a6,kK,wK,Lg,DK,Zk,Mme,O,Pme,nPe=b({"src/compiler/factory/nodeFactory.ts"(){"use strict";Oa(),a6=0,kK=(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))(kK||{}),wK=[],DK={},Zk=wme(),Mme={createBaseSourceFileNode:e=>i6(Zk.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>i6(Zk.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>i6(Zk.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>i6(Zk.createBaseTokenNode(e)),createBaseNode:e=>i6(Zk.createBaseNode(e))},O=r6(4,Mme)}});function ud(e){var t;if(e.emitNode)R.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if($I(e)){if(e.kind===308)return e.emitNode={annotatedNodes:[e]};const r=(t=Zn(Ea(Zn(e))))!=null?t:R.fail("Could not determine parsed source file.");ud(r).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function RK(e){var t,r;const i=(r=(t=Zn(Ea(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const o of i)o.emitNode=void 0}function o6(e){const t=ud(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function sr(e,t){return ud(e).flags=t,e}function cm(e,t){const r=ud(e);return r.flags=r.flags|t,e}function s6(e,t){return ud(e).internalFlags=t,e}function JS(e,t){const r=ud(e);return r.internalFlags=r.internalFlags|t,e}function y1(e){var t,r;return(r=(t=e.emitNode)==null?void 0:t.sourceMapRange)!=null?r:e}function ps(e,t){return ud(e).sourceMapRange=t,e}function rPe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function Fme(e,t,r){var i;const o=ud(e),s=(i=o.tokenSourceMapRanges)!=null?i:o.tokenSourceMapRanges=[];return s[t]=r,e}function l6(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function NK(e,t){return ud(e).startsOnNewLine=t,e}function Ym(e){var t,r;return(r=(t=e.emitNode)==null?void 0:t.commentRange)!=null?r:e}function Xc(e,t){return ud(e).commentRange=t,e}function MC(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function Qb(e,t){return ud(e).leadingComments=t,e}function c6(e,t,r,i){return Qb(e,Pn(MC(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function u6(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function PC(e,t){return ud(e).trailingComments=t,e}function o5(e,t,r,i){return PC(e,Pn(u6(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Bme(e,t){Qb(e,MC(t)),PC(e,u6(t));const r=ud(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function Gme(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Ume(e,t){const r=ud(e);return r.constantValue=t,e}function KS(e,t){const r=ud(e);return r.helpers=Pn(r.helpers,t),e}function Oy(e,t){if(Dt(t)){const r=ud(e);for(const i of t)r.helpers=vy(r.helpers,i)}return e}function iPe(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?W7(i,t):!1}function s5(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function Vme(e,t,r){const i=e.emitNode,o=i&&i.helpers;if(!Dt(o))return;const s=ud(t);let c=0;for(let _=0;_<o.length;_++){const d=o[_];r(d)?(c++,s.helpers=vy(s.helpers,d)):c>0&&(o[_-c]=d)}c>0&&(o.length-=c)}function OK(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function MK(e,t){const r=ud(e);return r.snippetElement=t,e}function PK(e){return ud(e).internalFlags|=4,e}function jme(e,t){const r=ud(e);return r.typeNode=t,e}function Wme(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function My(e,t){return ud(e).identifierTypeArguments=t,e}function zT(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function d6(e,t){return ud(e).autoGenerate=t,e}function aPe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function Hme(e,t){return ud(e).generatedImportReference=t,e}function zme(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var oPe=b({"src/compiler/factory/emitNode.ts"(){"use strict";Oa()}});function qme(e){const t=e.factory,r=Ld(()=>s6(t.createTrue(),8)),i=Ld(()=>s6(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:c,createParamHelper:_,createESDecorateHelper:M,createRunInitializersHelper:k,createAssignHelper:U,createAwaitHelper:j,createAsyncGeneratorHelper:H,createAsyncDelegatorHelper:ee,createAsyncValuesHelper:X,createRestHelper:ne,createAwaiterHelper:P,createExtendsHelper:ue,createTemplateObjectHelper:re,createSpreadArrayHelper:be,createPropKeyHelper:ae,createSetFunctionNameHelper:z,createValuesHelper:ce,createReadHelper:he,createGeneratorHelper:Ee,createCreateBindingHelper:Ae,createImportStarHelper:te,createImportStarCallbackHelper:Ze,createImportDefaultHelper:je,createExportStarHelper:Ue,createClassPrivateFieldGetHelper:Je,createClassPrivateFieldSetHelper:Fe,createClassPrivateFieldInHelper:Be};function o($e){return sr(t.createIdentifier($e),8196)}function s($e,ze,Ge,lt){e.requestEmitHelper(l5);const Ct=[];return Ct.push(t.createArrayLiteralExpression($e,!0)),Ct.push(ze),Ge&&(Ct.push(Ge),lt&&Ct.push(lt)),t.createCallExpression(o("__decorate"),void 0,Ct)}function c($e,ze){return e.requestEmitHelper(c5),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral($e),ze])}function _($e,ze,Ge){return e.requestEmitHelper(u5),ht(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(ze+""),$e]),Ge)}function d($e){return t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),$e.name)])}function v($e){const ze=$e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),$e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),$e.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,ze))}function g($e){const ze=$e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),$e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),$e.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(ze,t.createIdentifier("value")))])))}function T($e){const ze=$e.computed?$e.name:We($e.name)?t.createStringLiteralFromNode($e.name):$e.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(ze,101,t.createIdentifier("obj"))))}function C($e,ze){const Ge=[];return Ge.push(T($e)),ze.get&&Ge.push(v($e)),ze.set&&Ge.push(g($e)),t.createObjectLiteralExpression(Ge)}function L($e){return t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral($e.kind)),t.createPropertyAssignment(t.createIdentifier("name"),$e.name.computed?$e.name.name:t.createStringLiteralFromNode($e.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),$e.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),$e.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),C($e.name,$e.access))])}function I($e){return $e.kind==="class"?d($e):L($e)}function M($e,ze,Ge,lt,Ct,bt){return e.requestEmitHelper(d5),t.createCallExpression(o("__esDecorate"),void 0,[$e!=null?$e:t.createNull(),ze!=null?ze:t.createNull(),Ge,I(lt),Ct,bt])}function k($e,ze,Ge){return e.requestEmitHelper(f5),t.createCallExpression(o("__runInitializers"),void 0,Ge?[$e,ze,Ge]:[$e,ze])}function U($e){return ns(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,$e):(e.requestEmitHelper(_5),t.createCallExpression(o("__assign"),void 0,$e))}function j($e){return e.requestEmitHelper(XS),t.createCallExpression(o("__await"),void 0,[$e])}function H($e,ze){return e.requestEmitHelper(XS),e.requestEmitHelper(p5),($e.emitNode||($e.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[ze?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),$e])}function ee($e){return e.requestEmitHelper(XS),e.requestEmitHelper(m5),t.createCallExpression(o("__asyncDelegator"),void 0,[$e])}function X($e){return e.requestEmitHelper(h5),t.createCallExpression(o("__asyncValues"),void 0,[$e])}function ne($e,ze,Ge,lt){e.requestEmitHelper(g5);const Ct=[];let bt=0;for(let zt=0;zt<ze.length-1;zt++){const nt=gX(ze[zt]);if(nt)if(Cs(nt)){R.assertIsDefined(Ge,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const ot=Ge[bt];bt++,Ct.push(t.createConditionalExpression(t.createTypeCheck(ot,"symbol"),void 0,ot,void 0,t.createAdd(ot,t.createStringLiteral(""))))}else Ct.push(t.createStringLiteralFromNode(nt))}return t.createCallExpression(o("__rest"),void 0,[$e,ht(t.createArrayLiteralExpression(Ct),lt)])}function P($e,ze,Ge,lt){e.requestEmitHelper(y5);const Ct=t.createFunctionExpression(void 0,t.createToken(41),void 0,void 0,[],void 0,lt);return(Ct.emitNode||(Ct.emitNode={})).flags|=1572864,t.createCallExpression(o("__awaiter"),void 0,[$e?t.createThis():t.createVoidZero(),ze?t.createIdentifier("arguments"):t.createVoidZero(),Ge?I6(t,Ge):t.createVoidZero(),Ct])}function ue($e){return e.requestEmitHelper(v5),t.createCallExpression(o("__extends"),void 0,[$e,t.createUniqueName("_super",48)])}function re($e,ze){return e.requestEmitHelper(b5),t.createCallExpression(o("__makeTemplateObject"),void 0,[$e,ze])}function be($e,ze,Ge){return e.requestEmitHelper(T5),t.createCallExpression(o("__spreadArray"),void 0,[$e,ze,Ge?r():i()])}function ae($e){return e.requestEmitHelper(S5),t.createCallExpression(o("__propKey"),void 0,[$e])}function z($e,ze,Ge){return e.requestEmitHelper(x5),e.factory.createCallExpression(o("__setFunctionName"),void 0,Ge?[$e,ze,e.factory.createStringLiteral(Ge)]:[$e,ze])}function ce($e){return e.requestEmitHelper(A5),t.createCallExpression(o("__values"),void 0,[$e])}function he($e,ze){return e.requestEmitHelper(E5),t.createCallExpression(o("__read"),void 0,ze!==void 0?[$e,t.createNumericLiteral(ze+"")]:[$e])}function Ee($e){return e.requestEmitHelper(C5),t.createCallExpression(o("__generator"),void 0,[t.createThis(),$e])}function Ae($e,ze,Ge){return e.requestEmitHelper(FC),t.createCallExpression(o("__createBinding"),void 0,[t.createIdentifier("exports"),$e,ze,...Ge?[Ge]:[]])}function te($e){return e.requestEmitHelper(f6),t.createCallExpression(o("__importStar"),void 0,[$e])}function Ze(){return e.requestEmitHelper(f6),o("__importStar")}function je($e){return e.requestEmitHelper(I5),t.createCallExpression(o("__importDefault"),void 0,[$e])}function Ue($e,ze=t.createIdentifier("exports")){return e.requestEmitHelper(k5),e.requestEmitHelper(FC),t.createCallExpression(o("__exportStar"),void 0,[$e,ze])}function Je($e,ze,Ge,lt){e.requestEmitHelper(w5);let Ct;return lt?Ct=[$e,ze,t.createStringLiteral(Ge),lt]:Ct=[$e,ze,t.createStringLiteral(Ge)],t.createCallExpression(o("__classPrivateFieldGet"),void 0,Ct)}function Fe($e,ze,Ge,lt,Ct){e.requestEmitHelper(D5);let bt;return Ct?bt=[$e,ze,Ge,t.createStringLiteral(lt),Ct]:bt=[$e,ze,Ge,t.createStringLiteral(lt)],t.createCallExpression(o("__classPrivateFieldSet"),void 0,bt)}function Be($e,ze){return e.requestEmitHelper(R5),t.createCallExpression(o("__classPrivateFieldIn"),void 0,[$e,ze])}}function Jme(e,t){return e===t||e.priority===t.priority?0:e.priority===void 0?1:t.priority===void 0?-1:qs(e.priority,t.priority)}function FK(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 BK(){return Kme||(Kme=Tb([l5,c5,u5,d5,f5,_5,XS,p5,m5,h5,g5,y5,v5,b5,T5,A5,E5,S5,x5,C5,f6,I5,k5,w5,D5,R5,FC,L5],e=>e.name))}function e4(e,t){return io(e)&&We(e.expression)&&(Eo(e.expression)&8192)!==0&&e.expression.escapedText===t}var GK,l5,c5,u5,d5,f5,_5,XS,p5,m5,h5,g5,y5,v5,b5,E5,T5,S5,x5,A5,C5,FC,L5,f6,I5,k5,w5,D5,R5,Kme,_6,p6,sPe=b({"src/compiler/factory/emitHelpers.ts"(){"use strict";Oa(),GK=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(GK||{}),l5={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
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;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};`},c5={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};`},u5={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};`},d5={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:`
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
var _, done = false;
for (var i = decorators.length - 1; i >= 0; i--) {
var context = {};
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
if (kind === "accessor") {
if (result === void 0) continue;
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
if (_ = accept(result.get)) descriptor.get = _;
if (_ = accept(result.set)) descriptor.set = _;
if (_ = accept(result.init)) initializers.push(_);
}
else if (_ = accept(result)) {
if (kind === "field") initializers.push(_);
else descriptor[key] = _;
}
}
if (target) Object.defineProperty(target, contextIn.name, descriptor);
done = true;
};`},f5={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:`
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
var useValue = arguments.length > 2;
for (var i = 0; i < initializers.length; i++) {
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
}
return useValue ? value : void 0;
};`},_5={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};`},XS={name:"typescript:await",importName:"__await",scoped:!1,text:`
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},p5={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[XS],text:`
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
};`},m5={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[XS],text:`
var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
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; }
};`},h5={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
var __asyncValues = (this && this.__asyncValues) || function (o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
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);
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); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
};`},g5={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};`},y5={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};`},v5={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();`},b5={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};`},E5={name:"typescript:read",importName:"__read",scoped:!1,text:`
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};`},T5={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};`},S5={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:`
var __propKey = (this && this.__propKey) || function (x) {
return typeof x === "symbol" ? x : "".concat(x);
};`},x5={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:`
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
};`},A5={name:"typescript:values",importName:"__values",scoped:!1,text:`
var __values = (this && this.__values) || function(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};`},C5={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
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;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};`},FC={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));`},L5={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});`},f6={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[FC,L5],priority:2,text:`
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};`},I5={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};`},k5={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[FC],priority:2,text:`
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};`},w5={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};`},D5={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
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");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};`},R5={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
return typeof state === "function" ? receiver === state : state.has(receiver);
};`},_6={name:"typescript:async-super",scoped:!0,text:FK`
const ${"_superIndex"} = name => super[name];`},p6={name:"typescript:advanced-async-super",scoped:!0,text:FK`
const ${"_superIndex"} = (function (geti, seti) {
const cache = Object.create(null);
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
})(name => super[name], (name, value) => super[name] = value);`}}});function C_(e){return e.kind===8}function N5(e){return e.kind===9}function Wo(e){return e.kind===10}function YS(e){return e.kind===11}function UK(e){return e.kind===13}function $S(e){return e.kind===14}function BC(e){return e.kind===15}function Xme(e){return e.kind===16}function VK(e){return e.kind===17}function O5(e){return e.kind===25}function Yme(e){return e.kind===27}function jK(e){return e.kind===39}function WK(e){return e.kind===40}function m6(e){return e.kind===41}function h6(e){return e.kind===53}function $v(e){return e.kind===57}function $me(e){return e.kind===58}function M5(e){return e.kind===28}function Qme(e){return e.kind===38}function We(e){return e.kind===79}function Ri(e){return e.kind===80}function P5(e){return e.kind===93}function Zme(e){return e.kind===88}function t4(e){return e.kind===132}function ehe(e){return e.kind===129}function HK(e){return e.kind===133}function the(e){return e.kind===146}function QS(e){return e.kind===124}function nhe(e){return e.kind===126}function rhe(e){return e.kind===161}function ihe(e){return e.kind===127}function n4(e){return e.kind===106}function r4(e){return e.kind===100}function ahe(e){return e.kind===82}function Rd(e){return e.kind===163}function Cs(e){return e.kind===164}function Ul(e){return e.kind===165}function Ba(e){return e.kind===166}function qu(e){return e.kind===167}function Mf(e){return e.kind===168}function ro(e){return e.kind===169}function Mh(e){return e.kind===170}function sc(e){return e.kind===171}function Rl(e){return e.kind===172}function Kl(e){return e.kind===173}function Z_(e){return e.kind===174}function s_(e){return e.kind===175}function GC(e){return e.kind===176}function g6(e){return e.kind===177}function ZS(e){return e.kind===178}function F5(e){return e.kind===179}function ep(e){return e.kind===180}function Ph(e){return e.kind===181}function i4(e){return e.kind===182}function a4(e){return e.kind===183}function hf(e){return e.kind===184}function zK(e){return e.kind===185}function UC(e){return e.kind===186}function o4(e){return e.kind===199}function qK(e){return e.kind===187}function JK(e){return e.kind===188}function ex(e){return e.kind===189}function y6(e){return e.kind===190}function VC(e){return e.kind===191}function jC(e){return e.kind===192}function tx(e){return e.kind===193}function B5(e){return e.kind===194}function nx(e){return e.kind===195}function rx(e){return e.kind===196}function s4(e){return e.kind===197}function v1(e){return e.kind===198}function Ig(e){return e.kind===202}function ohe(e){return e.kind===201}function lPe(e){return e.kind===200}function $m(e){return e.kind===203}function WC(e){return e.kind===204}function ms(e){return e.kind===205}function Ju(e){return e.kind===206}function Is(e){return e.kind===207}function Br(e){return e.kind===208}function dl(e){return e.kind===209}function io(e){return e.kind===210}function Zb(e){return e.kind===211}function qT(e){return e.kind===212}function she(e){return e.kind===213}function qd(e){return e.kind===214}function Us(e){return e.kind===215}function Xs(e){return e.kind===216}function lhe(e){return e.kind===217}function HC(e){return e.kind===218}function ix(e){return e.kind===219}function zC(e){return e.kind===220}function Qv(e){return e.kind===221}function KK(e){return e.kind===222}function Tr(e){return e.kind===223}function qC(e){return e.kind===224}function G5(e){return e.kind===225}function U5(e){return e.kind===226}function Fh(e){return e.kind===227}function Ku(e){return e.kind===228}function Fc(e){return e.kind===229}function Py(e){return e.kind===230}function v6(e){return e.kind===231}function cPe(e){return e.kind===235}function ax(e){return e.kind===232}function l4(e){return e.kind===233}function uPe(e){return e.kind===234}function V5(e){return e.kind===356}function c4(e){return e.kind===357}function u4(e){return e.kind===236}function che(e){return e.kind===237}function fo(e){return e.kind===238}function pc(e){return e.kind===240}function XK(e){return e.kind===239}function du(e){return e.kind===241}function JT(e){return e.kind===242}function dPe(e){return e.kind===243}function fPe(e){return e.kind===244}function KT(e){return e.kind===245}function YK(e){return e.kind===246}function b6(e){return e.kind===247}function _Pe(e){return e.kind===248}function pPe(e){return e.kind===249}function kp(e){return e.kind===250}function uhe(e){return e.kind===251}function E6(e){return e.kind===252}function eE(e){return e.kind===253}function $K(e){return e.kind===254}function T6(e){return e.kind===255}function mPe(e){return e.kind===256}function $i(e){return e.kind===257}function Xu(e){return e.kind===258}function Sc(e){return e.kind===259}function Bc(e){return e.kind===260}function dd(e){return e.kind===261}function um(e){return e.kind===262}function b1(e){return e.kind===263}function Xl(e){return e.kind===264}function dm(e){return e.kind===265}function S6(e){return e.kind===266}function x6(e){return e.kind===267}function fu(e){return e.kind===268}function Yc(e){return e.kind===269}function Qm(e){return e.kind===270}function dhe(e){return e.kind===298}function j5(e){return e.kind===296}function fhe(e){return e.kind===297}function Zv(e){return e.kind===271}function Bh(e){return e.kind===277}function Fy(e){return e.kind===272}function Nd(e){return e.kind===273}function Vl(e){return e.kind===274}function au(e){return e.kind===275}function tp(e){return e.kind===276}function yd(e){return e.kind===278}function hPe(e){return e.kind===279}function QK(e){return e.kind===355}function ox(e){return e.kind===360}function gPe(e){return e.kind===358}function yPe(e){return e.kind===359}function Zm(e){return e.kind===280}function By(e){return e.kind===281}function sx(e){return e.kind===282}function Gh(e){return e.kind===283}function lx(e){return e.kind===284}function cx(e){return e.kind===285}function ux(e){return e.kind===286}function _he(e){return e.kind===287}function fm(e){return e.kind===288}function tE(e){return e.kind===289}function XT(e){return e.kind===290}function d4(e){return e.kind===291}function f4(e){return e.kind===292}function A6(e){return e.kind===293}function Jd(e){return e.kind===294}function JC(e){return e.kind===295}function $c(e){return e.kind===299}function l_(e){return e.kind===300}function dx(e){return e.kind===301}function nE(e){return e.kind===302}function phe(e){return e.kind===304}function Ki(e){return e.kind===308}function ZK(e){return e.kind===309}function YT(e){return e.kind===310}function $T(e){return e.kind===312}function _4(e){return e.kind===313}function E1(e){return e.kind===314}function mhe(e){return e.kind===327}function hhe(e){return e.kind===328}function vPe(e){return e.kind===329}function ghe(e){return e.kind===315}function yhe(e){return e.kind===316}function KC(e){return e.kind===317}function W5(e){return e.kind===318}function eX(e){return e.kind===319}function XC(e){return e.kind===320}function H5(e){return e.kind===321}function bPe(e){return e.kind===322}function eh(e){return e.kind===323}function p4(e){return e.kind===325}function rE(e){return e.kind===326}function YC(e){return e.kind===331}function EPe(e){return e.kind===333}function vhe(e){return e.kind===335}function tX(e){return e.kind===341}function nX(e){return e.kind===336}function rX(e){return e.kind===337}function iX(e){return e.kind===338}function aX(e){return e.kind===339}function z5(e){return e.kind===340}function m4(e){return e.kind===342}function oX(e){return e.kind===334}function TPe(e){return e.kind===350}function C6(e){return e.kind===343}function _m(e){return e.kind===344}function q5(e){return e.kind===345}function bhe(e){return e.kind===346}function h4(e){return e.kind===347}function wp(e){return e.kind===348}function sX(e){return e.kind===349}function SPe(e){return e.kind===330}function Ehe(e){return e.kind===351}function lX(e){return e.kind===332}function J5(e){return e.kind===353}function xPe(e){return e.kind===352}function $C(e){return e.kind===354}var APe=b({"src/compiler/factory/nodeTests.ts"(){"use strict";Oa()}});function L6(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function QT(e,t,r,i){if(Cs(r))return ht(e.createElementAccessExpression(t,r.expression),i);{const o=ht(gg(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return cm(o,128),o}}function cX(e,t){const r=th.createIdentifier(e||"React");return jo(r,Ea(t)),r}function uX(e,t,r){if(Rd(t)){const i=uX(e,t.left,r),o=e.createIdentifier(Pr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return cX(Pr(t),r)}function dX(e,t,r,i){return t?uX(e,t,i):e.createPropertyAccessExpression(cX(r,i),"createElement")}function CPe(e,t,r,i){return t?uX(e,t,i):e.createPropertyAccessExpression(cX(r,i),"Fragment")}function The(e,t,r,i,o,s){const c=[r];if(i&&c.push(i),o&&o.length>0)if(i||c.push(e.createNull()),o.length>1)for(const _ of o)Yu(_),c.push(_);else c.push(o[0]);return ht(e.createCallExpression(t,void 0,c),s)}function She(e,t,r,i,o,s,c){const d=[CPe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(const v of o)Yu(v),d.push(v);else d.push(o[0]);return ht(e.createCallExpression(dX(e,t,i,s),void 0,d),c)}function fX(e,t,r){if(Xu(t)){const i=ds(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return ht(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{const i=ht(e.createAssignment(t,r),t);return ht(e.createExpressionStatement(i),t)}}function LPe(e,t,r){return fo(t)?e.updateBlock(t,ht(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function I6(e,t){if(Rd(t)){const r=I6(e,t.left),i=jo(ht(e.cloneNode(t.right),t.right),t.right.parent);return ht(e.createPropertyAccessExpression(r,i),t)}else return jo(ht(e.cloneNode(t),t),t.parent)}function _X(e,t){return We(t)?e.createStringLiteralFromNode(t):Cs(t)?jo(ht(e.cloneNode(t.expression),t.expression),t.expression.parent):jo(ht(e.cloneNode(t),t),t.parent)}function IPe(e,t,r,i,o){const{firstAccessor:s,getAccessor:c,setAccessor:_}=UT(t,r);if(r===s)return ht(e.createObjectDefinePropertyCall(i,_X(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:c&&ht(zr(e.createFunctionExpression(ET(c),void 0,void 0,void 0,c.parameters,void 0,c.body),c),c),set:_&&ht(zr(e.createFunctionExpression(ET(_),void 0,void 0,void 0,_.parameters,void 0,_.body),_),_)},!o)),s)}function kPe(e,t,r){return zr(ht(e.createAssignment(QT(e,r,t.name,t.name),t.initializer),t),t)}function wPe(e,t,r){return zr(ht(e.createAssignment(QT(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function DPe(e,t,r){return zr(ht(e.createAssignment(QT(e,r,t.name,t.name),zr(ht(e.createFunctionExpression(ET(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function xhe(e,t,r,i){switch(r.name&&Ri(r.name)&&R.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 174:case 175:return IPe(e,t.properties,r,i,!!t.multiLine);case 299:return kPe(e,r,i);case 300:return wPe(e,r,i);case 171:return DPe(e,r,i)}}function K5(e,t,r,i,o){const s=t.operator;R.assert(s===45||s===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const c=e.createTempVariable(i);r=e.createAssignment(c,r),ht(r,t.operand);let _=Qv(t)?e.createPrefixUnaryExpression(s,c):e.createPostfixUnaryExpression(c,s);return ht(_,t),o&&(_=e.createAssignment(o,_),ht(_,t)),r=e.createComma(r,_),ht(r,t),KK(t)&&(r=e.createComma(r,c),ht(r,t)),r}function pX(e){return(Eo(e)&65536)!==0}function e0(e){return(Eo(e)&32768)!==0}function X5(e){return(Eo(e)&16384)!==0}function Ahe(e){return Wo(e.expression)&&e.expression.text==="use strict"}function mX(e){for(const t of e)if(Cp(t)){if(Ahe(t))return t}else break}function Che(e){const t=tu(e);return t!==void 0&&Cp(t)&&Ahe(t)}function k6(e){return e.kind===223&&e.operatorToken.kind===27}function g4(e){return k6(e)||c4(e)}function y4(e){return qd(e)&&_r(e)&&!!Rb(e)}function Y5(e){const t=Bv(e);return R.assertIsDefined(t),t}function $5(e,t=15){switch(e.kind){case 214:return t&16&&y4(e)?!1:(t&1)!==0;case 213:case 231:case 230:case 235:return(t&2)!==0;case 232:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function Cu(e,t=15){for(;$5(e,t);)e=e.expression;return e}function Lhe(e,t=15){let r=e.parent;for(;$5(r,t);)r=r.parent,R.assert(r);return r}function RPe(e){return Cu(e,6)}function Yu(e){return NK(e,!0)}function w6(e){const t=Cl(e,Ki),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Ihe(e){const t=Cl(e,Ki),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function hX(e,t,r,i,o,s,c){if(i.importHelpers&&kS(r,i)){let _;const d=uu(i);if(d>=5&&d<=99||r.impliedNodeFormat===99){const v=s5(r);if(v){const g=[];for(const T of v)if(!T.scoped){const C=T.importName;C&&y_(g,C)}if(Dt(g)){g.sort(ju),_=e.createNamedImports(Pt(g,L=>zM(r,L)?e.createImportSpecifier(!1,void 0,e.createIdentifier(L)):e.createImportSpecifier(!1,e.createIdentifier(L),t.getUnscopedHelperName(L))));const T=Cl(r,Ki),C=ud(T);C.externalHelpers=!0}}}else{const v=khe(e,r,i,o,s||c);v&&(_=e.createNamespaceImport(v))}if(_){const v=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,_),e.createStringLiteral(g1),void 0);return JS(v,2),v}}}function khe(e,t,r,i,o){if(r.importHelpers&&kS(t,r)){const s=w6(t);if(s)return s;const c=uu(r);let _=(i||$_(r)&&o)&&c!==4&&(c<5||t.impliedNodeFormat===1);if(!_){const d=s5(t);if(d){for(const v of d)if(!v.scoped){_=!0;break}}}if(_){const d=Cl(t,Ki),v=ud(d);return v.externalHelpersModuleName||(v.externalHelpersModuleName=e.createUniqueName(g1))}}}function QC(e,t,r){const i=_C(t);if(i&&!NS(t)&&!JM(t)){const o=i.name;return Ll(o)?o:e.createIdentifier(Fb(r,o)||Pr(o))}if(t.kind===269&&t.importClause||t.kind===275&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function fx(e,t,r,i,o,s){const c=fC(t);if(c&&Wo(c))return OPe(t,i,e,o,s)||NPe(e,c,r)||e.cloneNode(c)}function NPe(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function D6(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Ks(i))return e.createStringLiteral(uJ(r,t.fileName))}}function OPe(e,t,r,i,o){return D6(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function R6(e){if(MD(e))return e.initializer;if($c(e)){const t=e.initializer;return cd(t,!0)?t.right:void 0}if(l_(e))return e.objectAssignmentInitializer;if(cd(e,!0))return e.right;if(Fh(e))return R6(e.expression)}function t0(e){if(MD(e))return e.name;if(Iy(e)){switch(e.kind){case 299:return t0(e.initializer);case 300:return e.name;case 301:return t0(e.expression)}return}return cd(e,!0)?t0(e.left):Fh(e)?t0(e.expression):e}function Q5(e){switch(e.kind){case 166:case 205:return e.dotDotDotToken;case 227:case 301:return e}}function gX(e){const t=Z5(e);return R.assert(!!t||dx(e),"Invalid property name for binding element."),t}function Z5(e){switch(e.kind){case 205:if(e.propertyName){const r=e.propertyName;return Ri(r)?R.failBadSyntaxKind(r):Cs(r)&&whe(r.expression)?r.expression:r}break;case 299:if(e.name){const r=e.name;return Ri(r)?R.failBadSyntaxKind(r):Cs(r)&&whe(r.expression)?r.expression:r}break;case 301:return e.name&&Ri(e.name)?R.failBadSyntaxKind(e.name):e.name}const t=t0(e);if(t&&bl(t))return t}function whe(e){const t=e.kind;return t===10||t===8}function ZC(e){switch(e.kind){case 203:case 204:case 206:return e.elements;case 207:return e.properties}}function yX(e){if(e){let t=e;for(;;){if(We(t)||!t.body)return We(t)?t:t.name;t=t.body}}}function MPe(e){const t=e.kind;return t===173||t===175}function Dhe(e){const t=e.kind;return t===173||t===174||t===175}function vX(e){const t=e.kind;return t===299||t===300||t===259||t===173||t===178||t===172||t===279||t===240||t===261||t===262||t===263||t===264||t===268||t===269||t===267||t===275||t===274}function Rhe(e){const t=e.kind;return t===172||t===299||t===300||t===279||t===267}function Nhe(e){return $v(e)||h6(e)}function Ohe(e){return We(e)||B5(e)}function Mhe(e){return the(e)||jK(e)||WK(e)}function Phe(e){return $v(e)||jK(e)||WK(e)}function Fhe(e){return We(e)||Wo(e)}function PPe(e){const t=e.kind;return t===104||t===110||t===95||ST(e)||Qv(e)}function FPe(e){return e===42}function BPe(e){return e===41||e===43||e===44}function GPe(e){return FPe(e)||BPe(e)}function UPe(e){return e===39||e===40}function VPe(e){return UPe(e)||GPe(e)}function jPe(e){return e===47||e===48||e===49}function WPe(e){return jPe(e)||VPe(e)}function HPe(e){return e===29||e===32||e===31||e===33||e===102||e===101}function zPe(e){return HPe(e)||WPe(e)}function qPe(e){return e===34||e===36||e===35||e===37}function JPe(e){return qPe(e)||zPe(e)}function KPe(e){return e===50||e===51||e===52}function XPe(e){return KPe(e)||JPe(e)}function YPe(e){return e===55||e===56}function $Pe(e){return YPe(e)||XPe(e)}function QPe(e){return e===60||$Pe(e)||Dy(e)}function ZPe(e){return QPe(e)||e===27}function Bhe(e){return ZPe(e.kind)}function e9(e,t,r,i,o,s){const c=new Hhe(e,t,r,i,o,s);return _;function _(d,v){const g={value:void 0},T=[r9.enter],C=[d],L=[void 0];let I=0;for(;T[I]!==r9.done;)I=T[I](c,I,T,C,L,g,v);return R.assertEqual(I,0),g.value}}function Ghe(e){return e===93||e===88}function bX(e){const t=e.kind;return Ghe(t)}function e5e(e){const t=e.kind;return Ly(t)&&!Ghe(t)}function Uhe(e,t){if(t!==void 0)return t.length===0?t:ht(e.createNodeArray([],t.hasTrailingComma),t)}function t9(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 c=(t=o.emitNode)==null?void 0:t.autoGenerate;if(gg(o)&&(c===void 0||c.flags&4&&c.id!==i))break;s=o.original}return o}return e}function eL(e,t){return typeof e=="object"?ZT(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function t5e(e,t){return typeof e=="string"?e:n5e(e,R.checkDefined(t))}function n5e(e,t){return AS(e)?t(e).slice(1):Ll(e)?t(e):Ri(e)?e.escapedText.slice(1):Pr(e)}function ZT(e,t,r,i,o){return t=eL(t,o),i=eL(i,o),r=t5e(r,o),`${e?"#":""}${t}${r}${i}`}function EX(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function Vhe(e,t,r,i){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function jhe(e,t,r,i){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function n9(e){let t=e.expression;for(;;){if(t=Cu(t),c4(t)){t=Ko(t.elements);continue}if(k6(t)){t=t.right;continue}if(cd(t,!0)&&Ll(t.left))return t;break}}function r5e(e){return qd(e)&&tl(e)&&!e.emitNode}function N6(e,t){if(r5e(e))N6(e.expression,t);else if(k6(e))N6(e.left,t),N6(e.right,t);else if(c4(e))for(const r of e.elements)N6(r,t);else t.push(e)}function Whe(e){const t=[];return N6(e,t),t}function O6(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of ZC(e)){const r=t0(t);if(r&&ak(r)&&(r.transformFlags&65536||r.transformFlags&128&&O6(r)))return!0}return!1}var r9,Hhe,i5e=b({"src/compiler/factory/utilities.ts"(){"use strict";Oa(),(e=>{function t(g,T,C,L,I,M,k){const U=T>0?I[T-1]:void 0;return R.assertEqual(C[T],t),I[T]=g.onEnter(L[T],U,k),C[T]=_(g,t),T}e.enter=t;function r(g,T,C,L,I,M,k){R.assertEqual(C[T],r),R.assertIsDefined(g.onLeft),C[T]=_(g,r);const U=g.onLeft(L[T].left,I[T],L[T]);return U?(v(T,L,U),d(T,C,L,I,U)):T}e.left=r;function i(g,T,C,L,I,M,k){return R.assertEqual(C[T],i),R.assertIsDefined(g.onOperator),C[T]=_(g,i),g.onOperator(L[T].operatorToken,I[T],L[T]),T}e.operator=i;function o(g,T,C,L,I,M,k){R.assertEqual(C[T],o),R.assertIsDefined(g.onRight),C[T]=_(g,o);const U=g.onRight(L[T].right,I[T],L[T]);return U?(v(T,L,U),d(T,C,L,I,U)):T}e.right=o;function s(g,T,C,L,I,M,k){R.assertEqual(C[T],s),C[T]=_(g,s);const U=g.onExit(L[T],I[T]);if(T>0){if(T--,g.foldState){const j=C[T]===s?"right":"left";I[T]=g.foldState(I[T],U,j)}}else M.value=U;return T}e.exit=s;function c(g,T,C,L,I,M,k){return R.assertEqual(C[T],c),T}e.done=c;function _(g,T){switch(T){case t:if(g.onLeft)return r;case r:if(g.onOperator)return i;case i:if(g.onRight)return o;case o:return s;case s:return c;case c:return c;default:R.fail("Invalid state")}}e.nextState=_;function d(g,T,C,L,I){return g++,T[g]=t,C[g]=I,L[g]=void 0,g}function v(g,T,C){if(R.shouldAssert(2))for(;g>=0;)R.assert(T[g]!==C,"Circular traversal detected."),g--}})(r9||(r9={})),Hhe=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 ht(e,t){return t?Xm(e,t.pos,t.end):e}function np(e){const t=e.kind;return t===165||t===166||t===168||t===169||t===170||t===171||t===173||t===174||t===175||t===178||t===182||t===215||t===216||t===228||t===240||t===259||t===260||t===261||t===262||t===263||t===264||t===268||t===269||t===274||t===275}function _x(e){const t=e.kind;return t===166||t===169||t===171||t===174||t===175||t===228||t===260}var a5e=b({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";Oa()}});function Yt(e,t){return t&&e(t)}function wi(e,t,r){if(r){if(t)return t(r);for(const i of r){const o=e(i);if(o)return o}}}function TX(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function M6(e){return Ie(e.statements,o5e)||s5e(e)}function o5e(e){return np(e)&&l5e(e,93)||fu(e)&&Zm(e.moduleReference)||Yc(e)||Vl(e)||au(e)?e:void 0}function s5e(e){return e.flags&4194304?zhe(e):void 0}function zhe(e){return c5e(e)?e:Pa(e,zhe)}function l5e(e,t){return Dt(e.modifiers,r=>r.kind===t)}function c5e(e){return l4(e)&&e.keywordToken===100&&e.name.escapedText==="meta"}function qhe(e,t,r){return wi(t,r,e.typeParameters)||wi(t,r,e.parameters)||Yt(t,e.type)}function Jhe(e,t,r){return wi(t,r,e.types)}function Khe(e,t,r){return Yt(t,e.type)}function Xhe(e,t,r){return wi(t,r,e.elements)}function Yhe(e,t,r){return Yt(t,e.expression)||Yt(t,e.questionDotToken)||wi(t,r,e.typeArguments)||wi(t,r,e.arguments)}function $he(e,t,r){return wi(t,r,e.statements)}function Qhe(e,t,r){return Yt(t,e.label)}function Zhe(e,t,r){return wi(t,r,e.modifiers)||Yt(t,e.name)||wi(t,r,e.typeParameters)||wi(t,r,e.heritageClauses)||wi(t,r,e.members)}function ege(e,t,r){return wi(t,r,e.elements)}function tge(e,t,r){return Yt(t,e.propertyName)||Yt(t,e.name)}function nge(e,t,r){return Yt(t,e.tagName)||wi(t,r,e.typeArguments)||Yt(t,e.attributes)}function tL(e,t,r){return Yt(t,e.type)}function rge(e,t,r){return Yt(t,e.tagName)||(e.isNameFirst?Yt(t,e.name)||Yt(t,e.typeExpression):Yt(t,e.typeExpression)||Yt(t,e.name))||(typeof e.comment=="string"?void 0:wi(t,r,e.comment))}function nL(e,t,r){return Yt(t,e.tagName)||Yt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:wi(t,r,e.comment))}function SX(e,t,r){return Yt(t,e.name)}function px(e,t,r){return Yt(t,e.tagName)||(typeof e.comment=="string"?void 0:wi(t,r,e.comment))}function u5e(e,t,r){return Yt(t,e.expression)}function Pa(e,t,r){if(e===void 0||e.kind<=162)return;const i=_ge[e.kind];return i===void 0?void 0:i(e,t,r)}function P6(e,t,r){const i=ige(e),o=[];for(;o.length<i.length;)o.push(e);for(;i.length!==0;){const s=i.pop(),c=o.pop();if(ja(s)){if(r){const _=r(s,c);if(_){if(_==="skip")continue;return _}}for(let _=s.length-1;_>=0;--_)i.push(s[_]),o.push(c)}else{const _=t(s,c);if(_){if(_==="skip")continue;return _}if(s.kind>=163)for(const d of ige(s))i.push(d),o.push(s)}}}function ige(e){const t=[];return Pa(e,r,r),t;function r(i){t.unshift(i)}}function age(e){e.externalModuleIndicator=M6(e)}function F6(e,t,r,i=!1,o){var s,c;(s=Ti)==null||s.push(Ti.Phase.Parse,"createSourceFile",{path:e},!0),sl("beforeParse");let _;tm.logStartParseSourceFile(e);const{languageVersion:d,setExternalModuleIndicator:v,impliedNodeFormat:g}=typeof r=="object"?r:{languageVersion:r};if(d===100)_=n0.parseSourceFile(e,t,d,void 0,i,6,co);else{const T=g===void 0?v:C=>(C.impliedNodeFormat=g,(v||age)(C));_=n0.parseSourceFile(e,t,d,void 0,i,o,T)}return tm.logStopParseSourceFile(),sl("afterParse"),e_("Parse","beforeParse","afterParse"),(c=Ti)==null||c.pop(),_}function mx(e,t){return n0.parseIsolatedEntityName(e,t)}function B6(e,t){return n0.parseJsonText(e,t)}function tc(e){return e.externalModuleIndicator!==void 0}function xX(e,t,r,i=!1){const o=i9.updateSourceFile(e,t,r,i);return o.flags|=e.flags&6291456,o}function oge(e,t,r){const i=n0.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&n0.fixupParentReferences(i.jsDoc),i}function d5e(e,t,r){return n0.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function vd(e){return Ic(e,t5)||_c(e,".ts")&&bu(Eu(e),".d.")}function f5e(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 AX(e,t){const r=[];for(const i of xh(t,0)||it){const o=t.substring(i.pos,i.end);p5e(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 CX(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,c=e.libReferenceDirectives;Ie(tD(r),_=>{const{types:d,lib:v,path:g,["resolution-mode"]:T}=_.arguments;if(_.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(d){const C=f5e(T,d.pos,d.end,t);s.push(Li({pos:d.pos,end:d.end,fileName:d.value},C?{resolutionMode:C}:{}))}else v?c.push({pos:v.pos,end:v.end,fileName:v.value}):g?o.push({pos:g.pos,end:g.end,fileName:g.value}):t(_.range.pos,_.range.end-_.range.pos,m.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Pt(tD(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":{Ie(tD(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:R.fail("Unhandled pragma kind")}})}function _5e(e){if(a9.has(e))return a9.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return a9.set(e,t),t}function p5e(e,t,r){const i=t.kind===2&&pge.exec(r);if(i){const s=i[1].toLowerCase(),c=dD[s];if(!c||!(c.kind&1))return;if(c.args){const _={};for(const d of c.args){const g=_5e(d.name).exec(r);if(!g&&!d.optional)return;if(g){const T=g[2]||g[3];if(d.captureSpan){const C=t.pos+g.index+g[1].length+1;_[d.name]={value:T,pos:C,end:C+T.length}}else _[d.name]=T}}e.push({name:s,args:{arguments:_,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}const o=t.kind===2&&mge.exec(r);if(o)return sge(e,t,2,o);if(t.kind===3){const s=/@(\S+)(\s+.*)?$/gim;let c;for(;c=s.exec(r);)sge(e,t,4,c)}}function sge(e,t,r,i){if(!i)return;const o=i[1].toLowerCase(),s=dD[o];if(!s||!(s.kind&r))return;const c=i[2],_=m5e(s,c);_!=="fail"&&e.push({name:o,args:{arguments:_,range:t}})}function m5e(e,t){if(!t)return{};if(!e.args)return{};const r=Lb(t).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 R.fail("Capture spans not yet implemented for non-xml pragmas");i[s.name]=r[o]}return i}function T1(e,t){return e.kind!==t.kind?!1:e.kind===79?e.escapedText===t.escapedText:e.kind===108?!0:e.name.escapedText===t.name.escapedText&&T1(e.expression,t.expression)}var lge,cge,uge,dge,fge,LX,th,_ge,n0,i9,a9,pge,mge,h5e=b({"src/compiler/parser.ts"(){"use strict";Oa(),Oa(),kb(),LX={createBaseSourceFileNode:e=>new(fge||(fge=Kc.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(uge||(uge=Kc.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(dge||(dge=Kc.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(cge||(cge=Kc.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(lge||(lge=Kc.getNodeConstructor()))(e,-1,-1)},th=r6(1,LX),_ge={163:function(t,r,i){return Yt(r,t.left)||Yt(r,t.right)},165:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.constraint)||Yt(r,t.default)||Yt(r,t.expression)},300:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.equalsToken)||Yt(r,t.objectAssignmentInitializer)},301:function(t,r,i){return Yt(r,t.expression)},166:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.dotDotDotToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)||Yt(r,t.initializer)},169:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.type)||Yt(r,t.initializer)},168:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)||Yt(r,t.initializer)},299:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.initializer)},257:function(t,r,i){return Yt(r,t.name)||Yt(r,t.exclamationToken)||Yt(r,t.type)||Yt(r,t.initializer)},205:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.propertyName)||Yt(r,t.name)||Yt(r,t.initializer)},178:function(t,r,i){return wi(r,i,t.modifiers)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)},182:function(t,r,i){return wi(r,i,t.modifiers)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)},181:function(t,r,i){return wi(r,i,t.modifiers)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)},176:qhe,177:qhe,171:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},170:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)},173:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},174:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},175:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},259:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},215:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},216:function(t,r,i){return wi(r,i,t.modifiers)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.equalsGreaterThanToken)||Yt(r,t.body)},172:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.body)},180:function(t,r,i){return Yt(r,t.typeName)||wi(r,i,t.typeArguments)},179:function(t,r,i){return Yt(r,t.assertsModifier)||Yt(r,t.parameterName)||Yt(r,t.type)},183:function(t,r,i){return Yt(r,t.exprName)||wi(r,i,t.typeArguments)},184:function(t,r,i){return wi(r,i,t.members)},185:function(t,r,i){return Yt(r,t.elementType)},186:function(t,r,i){return wi(r,i,t.elements)},189:Jhe,190:Jhe,191:function(t,r,i){return Yt(r,t.checkType)||Yt(r,t.extendsType)||Yt(r,t.trueType)||Yt(r,t.falseType)},192:function(t,r,i){return Yt(r,t.typeParameter)},202:function(t,r,i){return Yt(r,t.argument)||Yt(r,t.assertions)||Yt(r,t.qualifier)||wi(r,i,t.typeArguments)},298:function(t,r,i){return Yt(r,t.assertClause)},193:Khe,195:Khe,196:function(t,r,i){return Yt(r,t.objectType)||Yt(r,t.indexType)},197:function(t,r,i){return Yt(r,t.readonlyToken)||Yt(r,t.typeParameter)||Yt(r,t.nameType)||Yt(r,t.questionToken)||Yt(r,t.type)||wi(r,i,t.members)},198:function(t,r,i){return Yt(r,t.literal)},199:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)},203:Xhe,204:Xhe,206:function(t,r,i){return wi(r,i,t.elements)},207:function(t,r,i){return wi(r,i,t.properties)},208:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.questionDotToken)||Yt(r,t.name)},209:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.questionDotToken)||Yt(r,t.argumentExpression)},210:Yhe,211:Yhe,212:function(t,r,i){return Yt(r,t.tag)||Yt(r,t.questionDotToken)||wi(r,i,t.typeArguments)||Yt(r,t.template)},213:function(t,r,i){return Yt(r,t.type)||Yt(r,t.expression)},214:function(t,r,i){return Yt(r,t.expression)},217:function(t,r,i){return Yt(r,t.expression)},218:function(t,r,i){return Yt(r,t.expression)},219:function(t,r,i){return Yt(r,t.expression)},221:function(t,r,i){return Yt(r,t.operand)},226:function(t,r,i){return Yt(r,t.asteriskToken)||Yt(r,t.expression)},220:function(t,r,i){return Yt(r,t.expression)},222:function(t,r,i){return Yt(r,t.operand)},223:function(t,r,i){return Yt(r,t.left)||Yt(r,t.operatorToken)||Yt(r,t.right)},231:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.type)},232:function(t,r,i){return Yt(r,t.expression)},235:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.type)},233:function(t,r,i){return Yt(r,t.name)},224:function(t,r,i){return Yt(r,t.condition)||Yt(r,t.questionToken)||Yt(r,t.whenTrue)||Yt(r,t.colonToken)||Yt(r,t.whenFalse)},227:function(t,r,i){return Yt(r,t.expression)},238:$he,265:$he,308:function(t,r,i){return wi(r,i,t.statements)||Yt(r,t.endOfFileToken)},240:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.declarationList)},258:function(t,r,i){return wi(r,i,t.declarations)},241:function(t,r,i){return Yt(r,t.expression)},242:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.thenStatement)||Yt(r,t.elseStatement)},243:function(t,r,i){return Yt(r,t.statement)||Yt(r,t.expression)},244:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.statement)},245:function(t,r,i){return Yt(r,t.initializer)||Yt(r,t.condition)||Yt(r,t.incrementor)||Yt(r,t.statement)},246:function(t,r,i){return Yt(r,t.initializer)||Yt(r,t.expression)||Yt(r,t.statement)},247:function(t,r,i){return Yt(r,t.awaitModifier)||Yt(r,t.initializer)||Yt(r,t.expression)||Yt(r,t.statement)},248:Qhe,249:Qhe,250:function(t,r,i){return Yt(r,t.expression)},251:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.statement)},252:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.caseBlock)},266:function(t,r,i){return wi(r,i,t.clauses)},292:function(t,r,i){return Yt(r,t.expression)||wi(r,i,t.statements)},293:function(t,r,i){return wi(r,i,t.statements)},253:function(t,r,i){return Yt(r,t.label)||Yt(r,t.statement)},254:function(t,r,i){return Yt(r,t.expression)},255:function(t,r,i){return Yt(r,t.tryBlock)||Yt(r,t.catchClause)||Yt(r,t.finallyBlock)},295:function(t,r,i){return Yt(r,t.variableDeclaration)||Yt(r,t.block)},167:function(t,r,i){return Yt(r,t.expression)},260:Zhe,228:Zhe,261:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||wi(r,i,t.typeParameters)||wi(r,i,t.heritageClauses)||wi(r,i,t.members)},262:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||wi(r,i,t.typeParameters)||Yt(r,t.type)},263:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||wi(r,i,t.members)},302:function(t,r,i){return Yt(r,t.name)||Yt(r,t.initializer)},264:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.body)},268:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.moduleReference)},269:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.importClause)||Yt(r,t.moduleSpecifier)||Yt(r,t.assertClause)},270:function(t,r,i){return Yt(r,t.name)||Yt(r,t.namedBindings)},296:function(t,r,i){return wi(r,i,t.elements)},297:function(t,r,i){return Yt(r,t.name)||Yt(r,t.value)},267:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)},271:function(t,r,i){return Yt(r,t.name)},277:function(t,r,i){return Yt(r,t.name)},272:ege,276:ege,275:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.exportClause)||Yt(r,t.moduleSpecifier)||Yt(r,t.assertClause)},273:tge,278:tge,274:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.expression)},225:function(t,r,i){return Yt(r,t.head)||wi(r,i,t.templateSpans)},236:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.literal)},200:function(t,r,i){return Yt(r,t.head)||wi(r,i,t.templateSpans)},201:function(t,r,i){return Yt(r,t.type)||Yt(r,t.literal)},164:function(t,r,i){return Yt(r,t.expression)},294:function(t,r,i){return wi(r,i,t.types)},230:function(t,r,i){return Yt(r,t.expression)||wi(r,i,t.typeArguments)},280:function(t,r,i){return Yt(r,t.expression)},279:function(t,r,i){return wi(r,i,t.modifiers)},357:function(t,r,i){return wi(r,i,t.elements)},281:function(t,r,i){return Yt(r,t.openingElement)||wi(r,i,t.children)||Yt(r,t.closingElement)},285:function(t,r,i){return Yt(r,t.openingFragment)||wi(r,i,t.children)||Yt(r,t.closingFragment)},282:nge,283:nge,289:function(t,r,i){return wi(r,i,t.properties)},288:function(t,r,i){return Yt(r,t.name)||Yt(r,t.initializer)},290:function(t,r,i){return Yt(r,t.expression)},291:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.expression)},284:function(t,r,i){return Yt(r,t.tagName)},187:tL,188:tL,312:tL,318:tL,317:tL,319:tL,321:tL,320:function(t,r,i){return wi(r,i,t.parameters)||Yt(r,t.type)},323:function(t,r,i){return(typeof t.comment=="string"?void 0:wi(r,i,t.comment))||wi(r,i,t.tags)},350:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.name)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment))},313:function(t,r,i){return Yt(r,t.name)},314:function(t,r,i){return Yt(r,t.left)||Yt(r,t.right)},344:rge,351:rge,333:function(t,r,i){return Yt(r,t.tagName)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment))},332:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.class)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment))},331:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.class)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment))},348:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.constraint)||wi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment))},349:function(t,r,i){return Yt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===312?Yt(r,t.typeExpression)||Yt(r,t.fullName)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment)):Yt(r,t.fullName)||Yt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment)))},341:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.fullName)||Yt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment))},345:nL,347:nL,346:nL,343:nL,353:nL,352:nL,342:nL,326:function(t,r,i){return Ie(t.typeParameters,r)||Ie(t.parameters,r)||Yt(r,t.type)},327:SX,328:SX,329:SX,325:function(t,r,i){return Ie(t.jsDocPropertyTags,r)},330:px,335:px,336:px,337:px,338:px,339:px,334:px,340:px,356:u5e},(e=>{var t=xy(99,!0),r=20480,i,o,s,c,_;function d(q){return nt++,q}var v={createBaseSourceFileNode:q=>d(new _(q,0,0)),createBaseIdentifierNode:q=>d(new s(q,0,0)),createBasePrivateIdentifierNode:q=>d(new c(q,0,0)),createBaseTokenNode:q=>d(new o(q,0,0)),createBaseNode:q=>d(new i(q,0,0))},g=r6(11,v),{createNodeArray:T,createNumericLiteral:C,createStringLiteral:L,createLiteralLikeNode:I,createIdentifier:M,createPrivateIdentifier:k,createToken:U,createArrayLiteralExpression:j,createObjectLiteralExpression:H,createPropertyAccessExpression:ee,createPropertyAccessChain:X,createElementAccessExpression:ne,createElementAccessChain:P,createCallExpression:ue,createCallChain:re,createNewExpression:be,createParenthesizedExpression:ae,createBlock:z,createVariableStatement:ce,createExpressionStatement:he,createIfStatement:Ee,createWhileStatement:Ae,createForStatement:te,createForOfStatement:Ze,createVariableDeclaration:je,createVariableDeclarationList:Ue}=g,Je,Fe,Be,$e,ze,Ge,lt,Ct,bt,zt,nt,ot,sn,pn,gn,jn,Ln=!0,Zt=!1;function pr(q,Se,Qe,Tt,Vt=!1,An,Gr){var Ei;if(An=HP(q,An),An===6){const ki=ea(q,Se,Qe,Tt,Vt);return j6(ki,(Ei=ki.statements[0])==null?void 0:Ei.expression,ki.parseDiagnostics,!1,void 0,void 0),ki.referencedFiles=it,ki.typeReferenceDirectives=it,ki.libReferenceDirectives=it,ki.amdDependencies=it,ki.hasNoDefaultLib=!1,ki.pragmas=K7,ki}ta(q,Se,Qe,Tt,An);const Ci=Lt(Qe,Vt,An,Gr||age);return Or(),Ci}e.parseSourceFile=pr;function Ii(q,Se){ta("",q,Se,void 0,1),ut();const Qe=Zo(!0),Tt=J()===1&&!lt.length;return Or(),Tt?Qe:void 0}e.parseIsolatedEntityName=Ii;function ea(q,Se,Qe=2,Tt,Vt=!1){ta(q,Se,Qe,Tt,6),Fe=jn,ut();const An=Y();let Gr,Ei;if(J()===1)Gr=Ys([],An,An),Ei=lc();else{let Fa;for(;J()!==1;){let as;switch(J()){case 22:as=ev();break;case 110:case 95:case 104:as=lc();break;case 40:$r(()=>ut()===8&&ut()!==58)?as=N2():as=ic();break;case 8:case 10:if($r(()=>ut()!==58)){as=Ia();break}default:as=ic();break}Fa&&ja(Fa)?Fa.push(as):Fa?Fa=[Fa,as]:(Fa=as,J()!==1&&mt(m.Unexpected_token))}const ks=ja(Fa)?rn(j(Fa),An):R.checkDefined(Fa),wo=he(ks);rn(wo,An),Gr=Ys([wo],An),Ei=ou(1,m.Unexpected_token)}const Ci=Oi(q,2,6,!1,Gr,Ei,Fe,co);Vt&&lr(Ci),Ci.nodeCount=nt,Ci.identifierCount=sn,Ci.identifiers=ot,Ci.parseDiagnostics=WS(lt,Ci),Ct&&(Ci.jsDocDiagnostics=WS(Ct,Ci));const ki=Ci;return Or(),ki}e.parseJsonText=ea;function ta(q,Se,Qe,Tt,Vt){switch(i=Kc.getNodeConstructor(),o=Kc.getTokenConstructor(),s=Kc.getIdentifierConstructor(),c=Kc.getPrivateIdentifierConstructor(),_=Kc.getSourceFileConstructor(),Je=Xo(q),Be=Se,$e=Qe,bt=Tt,ze=Vt,Ge=GR(Vt),lt=[],pn=0,ot=new Map,sn=0,nt=0,Fe=0,Ln=!0,ze){case 1:case 2:jn=262144;break;case 6:jn=67371008;break;default:jn=0;break}Zt=!1,t.setText(Be),t.setOnError(Te),t.setScriptTarget($e),t.setLanguageVariant(Ge)}function Or(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),Be=void 0,$e=void 0,bt=void 0,ze=void 0,Ge=void 0,Fe=0,lt=void 0,Ct=void 0,pn=0,ot=void 0,gn=void 0,Ln=!0}function Lt(q,Se,Qe,Tt){const Vt=vd(Je);Vt&&(jn|=16777216),Fe=jn,ut();const An=oe(0,Wf);R.assert(J()===1);const Gr=In(lc()),Ei=Oi(Je,q,Qe,Vt,An,Gr,Fe,Tt);return AX(Ei,Be),CX(Ei,Ci),Ei.commentDirectives=t.getCommentDirectives(),Ei.nodeCount=nt,Ei.identifierCount=sn,Ei.identifiers=ot,Ei.parseDiagnostics=WS(lt,Ei),Ct&&(Ei.jsDocDiagnostics=WS(Ct,Ei)),Se&&lr(Ei),Ei;function Ci(ki,Fa,ks){lt.push(LC(Je,ki,Fa,ks))}}function yn(q,Se){return Se?In(q):q}let Wt=!1;function In(q){R.assert(!q.jsDoc);const Se=ua(Mq(q,Be),Qe=>oA.parseJSDocComment(q,Qe.pos,Qe.end-Qe.pos));return Se.length&&(q.jsDoc=Se),Wt&&(Wt=!1,q.flags|=268435456),q}function Bn(q){const Se=bt,Qe=i9.createSyntaxCursor(q);bt={currentNode:Fa};const Tt=[],Vt=lt;lt=[];let An=0,Gr=Ci(q.statements,0);for(;Gr!==-1;){const ks=q.statements[An],wo=q.statements[Gr];xi(Tt,q.statements,An,Gr),An=ki(q.statements,Gr);const as=ii(Vt,Wp=>Wp.start>=ks.pos),Ud=as>=0?ii(Vt,Wp=>Wp.start>=wo.pos,as):-1;as>=0&&xi(lt,Vt,as,Ud>=0?Ud:void 0),Hi(()=>{const Wp=jn;for(jn|=32768,t.setTextPos(wo.pos),ut();J()!==1;){const Tm=t.getStartPos(),ey=dt(0,Wf);if(Tt.push(ey),Tm===t.getStartPos()&&ut(),An>=0){const M_=q.statements[An];if(ey.end===M_.pos)break;ey.end>M_.pos&&(An=ki(q.statements,An+1))}}jn=Wp},2),Gr=An>=0?Ci(q.statements,An):-1}if(An>=0){const ks=q.statements[An];xi(Tt,q.statements,An);const wo=ii(Vt,as=>as.start>=ks.pos);wo>=0&&xi(lt,Vt,wo)}return bt=Se,g.updateSourceFile(q,ht(T(Tt),q.statements));function Ei(ks){return!(ks.flags&32768)&&!!(ks.transformFlags&67108864)}function Ci(ks,wo){for(let as=wo;as<ks.length;as++)if(Ei(ks[as]))return as;return-1}function ki(ks,wo){for(let as=wo;as<ks.length;as++)if(!Ei(ks[as]))return as;return-1}function Fa(ks){const wo=Qe.currentNode(ks);return Ln&&wo&&Ei(wo)&&(wo.intersectsChange=!0),wo}}function lr(q){Yv(q,!0)}e.fixupParentReferences=lr;function Oi(q,Se,Qe,Tt,Vt,An,Gr,Ei){let Ci=g.createSourceFile(Vt,An,Gr);return qk(Ci,0,Be.length),ki(Ci),!Tt&&tc(Ci)&&Ci.transformFlags&67108864&&(Ci=Bn(Ci),ki(Ci)),Ci;function ki(Fa){Fa.text=Be,Fa.bindDiagnostics=[],Fa.bindSuggestionDiagnostics=void 0,Fa.languageVersion=Se,Fa.fileName=q,Fa.languageVariant=GR(Qe),Fa.isDeclarationFile=Tt,Fa.scriptKind=Qe,Ei(Fa),Fa.setExternalModuleIndicator=Ei}}function bi(q,Se){q?jn|=Se:jn&=~Se}function Rn(q){bi(q,4096)}function an(q){bi(q,8192)}function On(q){bi(q,16384)}function Ir(q){bi(q,32768)}function Hr(q,Se){const Qe=q&jn;if(Qe){bi(!1,Qe);const Tt=Se();return bi(!0,Qe),Tt}return Se()}function Oe(q,Se){const Qe=q&~jn;if(Qe){bi(!0,Qe);const Tt=Se();return bi(!1,Qe),Tt}return Se()}function gt(q){return Hr(4096,q)}function Ot(q){return Oe(4096,q)}function Le(q){return Hr(65536,q)}function pt(q){return Oe(65536,q)}function me(q){return Oe(8192,q)}function ie(q){return Oe(16384,q)}function ye(q){return Oe(32768,q)}function W(q){return Hr(32768,q)}function He(q){return Oe(40960,q)}function et(q){return Hr(40960,q)}function Ye(q){return(jn&q)!==0}function jt(){return Ye(8192)}function cn(){return Ye(4096)}function Sn(){return Ye(65536)}function Er(){return Ye(16384)}function de(){return Ye(32768)}function mt(q,Se){return at(t.getTokenPos(),t.getTextPos(),q,Se)}function Jt(q,Se,Qe,Tt){const Vt=rl(lt);let An;return(!Vt||q!==Vt.start)&&(An=LC(Je,q,Se,Qe,Tt),lt.push(An)),Zt=!0,An}function at(q,Se,Qe,Tt){return Jt(q,Se-q,Qe,Tt)}function fe(q,Se,Qe){at(q.pos,q.end,Se,Qe)}function Te(q,Se){Jt(t.getTextPos(),Se,q)}function Y(){return t.getStartPos()}function Ne(){return t.hasPrecedingJSDocComment()}function J(){return zt}function wt(){return zt=t.scan()}function Et(q){return ut(),q()}function ut(){return Dd(zt)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&at(t.getTokenPos(),t.getTextPos(),m.Keywords_cannot_contain_escape_characters),wt()}function nn(){return zt=t.scanJsDocToken()}function ir(){return zt=t.reScanGreaterToken()}function ai(){return zt=t.reScanSlashToken()}function gi(q){return zt=t.reScanTemplateToken(q)}function ui(){return zt=t.reScanTemplateHeadOrNoSubstitutionTemplate()}function Wi(){return zt=t.reScanLessThanToken()}function go(){return zt=t.reScanHashToken()}function xo(){return zt=t.scanJsxIdentifier()}function oo(){return zt=t.scanJsxToken()}function da(){return zt=t.scanJsxAttributeValue()}function Hi(q,Se){const Qe=zt,Tt=lt.length,Vt=Zt,An=jn,Gr=Se!==0?t.lookAhead(q):t.tryScan(q);return R.assert(An===jn),(!Gr||Se!==0)&&(zt=Qe,Se!==2&&(lt.length=Tt),Zt=Vt),Gr}function $r(q){return Hi(q,1)}function ls(q){return Hi(q,0)}function mi(){return J()===79?!0:J()>116}function fa(){return J()===79?!0:J()===125&&jt()||J()===133&&de()?!1:J()>116}function wn(q,Se,Qe=!0){return J()===q?(Qe&&ut(),!0):(Se?mt(Se):mt(m._0_expected,bo(q)),!1)}const pa=Object.keys(ID).filter(q=>q.length>2);function nc(q){var Se;if(qT(q)){at(Yo(Be,q.template.pos),q.template.end,m.Module_declaration_names_may_only_use_or_quoted_strings);return}const Qe=We(q)?Pr(q):void 0;if(!Qe||!W_(Qe,$e)){mt(m._0_expected,bo(26));return}const Tt=Yo(Be,q.pos);switch(Qe){case"const":case"let":case"var":at(Tt,q.end,m.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":al(m.Interface_name_cannot_be_0,m.Interface_must_be_given_a_name,18);return;case"is":at(Tt,t.getTextPos(),m.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":al(m.Namespace_name_cannot_be_0,m.Namespace_must_be_given_a_name,18);return;case"type":al(m.Type_alias_name_cannot_be_0,m.Type_alias_must_be_given_a_name,63);return}const Vt=(Se=FI(Qe,pa,An=>An))!=null?Se:jl(Qe);if(Vt){at(Tt,q.end,m.Unknown_keyword_or_identifier_Did_you_mean_0,Vt);return}J()!==0&&at(Tt,q.end,m.Unexpected_keyword_or_identifier)}function al(q,Se,Qe){J()===Qe?mt(Se):mt(q,t.getTokenValue())}function jl(q){for(const Se of pa)if(q.length>Se.length+2&&xa(q,Se))return`${Se} ${q.slice(Se.length)}`}function $l(q,Se,Qe){if(J()===59&&!t.hasPrecedingLineBreak()){mt(m.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(J()===20){mt(m.Cannot_start_a_function_call_in_a_type_annotation),ut();return}if(Se&&!Rs()){Qe?mt(m._0_expected,bo(26)):mt(m.Expected_for_property_initializer);return}if(!yl()){if(Qe){mt(m._0_expected,bo(26));return}nc(q)}}function Wl(q){return J()===q?(nn(),!0):(mt(m._0_expected,bo(q)),!1)}function Io(q,Se,Qe,Tt){if(J()===Se){ut();return}const Vt=mt(m._0_expected,bo(Se));Qe&&Vt&&$o(Vt,LC(Je,Tt,1,m.The_parser_expected_to_find_a_1_to_match_the_0_token_here,bo(q),bo(Se)))}function La(q){return J()===q?(ut(),!0):!1}function Qo(q){if(J()===q)return lc()}function Hl(q){if(J()===q)return Zc()}function ou(q,Se,Qe){return Qo(q)||zl(q,!1,Se||m._0_expected,Qe||bo(q))}function $d(q){return Hl(q)||zl(q,!1,m._0_expected,bo(q))}function lc(){const q=Y(),Se=J();return ut(),rn(U(Se),q)}function Zc(){const q=Y(),Se=J();return nn(),rn(U(Se),q)}function Rs(){return J()===26?!0:J()===19||J()===1||t.hasPrecedingLineBreak()}function yl(){return Rs()?(J()===26&&ut(),!0):!1}function nl(){return yl()||wn(26)}function Ys(q,Se,Qe,Tt){const Vt=T(q,Tt);return Xm(Vt,Se,Qe!=null?Qe:t.getStartPos()),Vt}function rn(q,Se,Qe){return Xm(q,Se,Qe!=null?Qe:t.getStartPos()),jn&&(q.flags|=jn),Zt&&(Zt=!1,q.flags|=131072),q}function zl(q,Se,Qe,Tt){Se?Jt(t.getStartPos(),0,Qe,Tt):Qe&&mt(Qe,Tt);const Vt=Y(),An=q===79?M("",void 0):Uv(q)?g.createTemplateLiteralLikeNode(q,"","",void 0):q===8?C("",void 0):q===10?L("",void 0):q===279?g.createMissingDeclaration():U(q);return rn(An,Vt)}function wu(q){let Se=ot.get(q);return Se===void 0&&ot.set(q,Se=q),Se}function Zu(q,Se,Qe){if(q){sn++;const Ei=Y(),Ci=J(),ki=wu(t.getTokenValue()),Fa=t.hasExtendedUnicodeEscape();return wt(),rn(M(ki,Ci,Fa),Ei)}if(J()===80)return mt(Qe||m.Private_identifiers_are_not_allowed_outside_class_bodies),Zu(!0);if(J()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===79))return Zu(!0);sn++;const Tt=J()===1,Vt=t.isReservedWord(),An=t.getTokenText(),Gr=Vt?m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:m.Identifier_expected;return zl(79,Tt,Se||Gr,An)}function _e(q){return Zu(mi(),void 0,q)}function kt(q,Se){return Zu(fa(),q,Se)}function Ht(q){return Zu(ad(J()),q)}function Z(){return ad(J())||J()===10||J()===8}function st(){return ad(J())||J()===10}function At(q){if(J()===10||J()===8){const Se=Ia();return Se.text=wu(Se.text),Se}return q&&J()===22?Dr():J()===80?Mr():Ht()}function fn(){return At(!0)}function Dr(){const q=Y();wn(22);const Se=gt(pu);return wn(23),rn(g.createComputedPropertyName(Se),q)}function Mr(){const q=Y(),Se=k(wu(t.getTokenValue()));return ut(),rn(Se,q)}function Sa(q){return J()===q&&ls(yo)}function cs(){return ut(),t.hasPrecedingLineBreak()?!1:mc()}function yo(){switch(J()){case 85:return ut()===92;case 93:return ut(),J()===88?$r(bd):J()===154?$r(Qa):Ho();case 88:return bd();case 124:case 137:case 151:return ut(),mc();default:return cs()}}function Ho(){return J()===59||J()!==41&&J()!==128&&J()!==18&&mc()}function Qa(){return ut(),Ho()}function _l(){return Ly(J())&&ls(yo)}function mc(){return J()===22||J()===18||J()===41||J()===25||Z()}function bd(){return ut(),J()===84||J()===98||J()===118||J()===59||J()===126&&$r(uh)||J()===132&&$r(Y1)}function Ts(q,Se){if(Bt(q))return!0;switch(q){case 0:case 1:case 3:return!(J()===26&&Se)&&F2();case 2:return J()===82||J()===88;case 4:return $r(vE);case 5:return $r(Gd)||J()===26&&!Se;case 6:return J()===22||Z();case 12:switch(J()){case 22:case 41:case 25:case 24:return!0;default:return Z()}case 18:return Z();case 9:return J()===22||J()===25||Z();case 24:return st();case 7:return J()===18?$r(fs):Se?fa()&&!Uf():G1()&&!Uf();case 8:return ME();case 10:return J()===27||J()===25||ME();case 19:return J()===101||J()===85||fa();case 15:switch(J()){case 27:case 24:return!0}case 11:return J()===25||dp();case 16:return w1(!1);case 17:return w1(!0);case 20:case 21:return J()===27||Ug();case 22:return Zh();case 23:return ad(J());case 13:return ad(J())||J()===18;case 14:return!0}return R.fail("Non-exhaustive case in 'isListElement'.")}function fs(){if(R.assert(J()===18),ut()===19){const q=ut();return q===27||q===18||q===94||q===117}return!0}function pl(){return ut(),fa()}function Qd(){return ut(),ad(J())}function ql(){return ut(),Gde(J())}function Uf(){return J()===117||J()===94?$r(Ce):!1}function Ce(){return ut(),dp()}function Nt(){return ut(),Ug()}function Nn(q){if(J()===1)return!0;switch(q){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return J()===19;case 3:return J()===19||J()===82||J()===88;case 7:return J()===18||J()===94||J()===117;case 8:return Qi();case 19:return J()===31||J()===20||J()===18||J()===94||J()===117;case 11:return J()===21||J()===26;case 15:case 21:case 10:return J()===23;case 17:case 16:case 18:return J()===21||J()===23;case 20:return J()!==27;case 22:return J()===18||J()===19;case 13:return J()===31||J()===43;case 14:return J()===29&&$r(mo);default:return!1}}function Qi(){return!!(Rs()||D2(J())||J()===38)}function ko(){for(let q=0;q<25;q++)if(pn&1<<q&&(Ts(q,!0)||Nn(q)))return!0;return!1}function oe(q,Se){const Qe=pn;pn|=1<<q;const Tt=[],Vt=Y();for(;!Nn(q);){if(Ts(q,!1)){Tt.push(dt(q,Se));continue}if(Ed(q))break}return pn=Qe,Ys(Tt,Vt)}function dt(q,Se){const Qe=Bt(q);return Qe?Ft(Qe):Se()}function Bt(q,Se){var Qe;if(!bt||!un(q)||Zt)return;const Tt=bt.currentNode(Se!=null?Se:t.getStartPos());if(!(kl(Tt)||Tt.intersectsChange||zD(Tt)||(Tt.flags&50720768)!==jn)&&Vn(Tt,q))return hR(Tt)&&((Qe=Tt.jsDoc)!=null&&Qe.jsDocCache)&&(Tt.jsDoc.jsDocCache=void 0),Tt}function Ft(q){return t.setTextPos(q.end),ut(),q}function un(q){switch(q){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 Vn(q,Se){switch(Se){case 5:return Rr(q);case 2:return ri(q);case 0:case 1:case 3:return Mi(q);case 6:return Wa(q);case 4:return zo(q);case 8:return Ss(q);case 17:case 16:return $s(q)}return!1}function Rr(q){if(q)switch(q.kind){case 173:case 178:case 174:case 175:case 169:case 237:return!0;case 171:const Se=q;return!(Se.name.kind===79&&Se.name.escapedText==="constructor")}return!1}function ri(q){if(q)switch(q.kind){case 292:case 293:return!0}return!1}function Mi(q){if(q)switch(q.kind){case 259:case 240:case 238:case 242:case 241:case 254:case 250:case 252:case 249:case 248:case 246:case 247:case 245:case 244:case 251:case 239:case 255:case 253:case 243:case 256:case 269:case 268:case 275:case 274:case 264:case 260:case 261:case 263:case 262:return!0}return!1}function Wa(q){return q.kind===302}function zo(q){if(q)switch(q.kind){case 177:case 170:case 178:case 168:case 176:return!0}return!1}function Ss(q){return q.kind!==257?!1:q.initializer===void 0}function $s(q){return q.kind!==166?!1:q.initializer===void 0}function Ed(q){return vf(q),ko()?!0:(ut(),!1)}function vf(q){switch(q){case 0:return J()===88?mt(m._0_expected,bo(93)):mt(m.Declaration_or_statement_expected);case 1:return mt(m.Declaration_or_statement_expected);case 2:return mt(m.case_or_default_expected);case 3:return mt(m.Statement_expected);case 18:case 4:return mt(m.Property_or_signature_expected);case 5:return mt(m.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return mt(m.Enum_member_expected);case 7:return mt(m.Expression_expected);case 8:return Dd(J())?mt(m._0_is_not_allowed_as_a_variable_declaration_name,bo(J())):mt(m.Variable_declaration_expected);case 9:return mt(m.Property_destructuring_pattern_expected);case 10:return mt(m.Array_element_destructuring_pattern_expected);case 11:return mt(m.Argument_expression_expected);case 12:return mt(m.Property_assignment_expected);case 15:return mt(m.Expression_or_comma_expected);case 17:return mt(m.Parameter_declaration_expected);case 16:return Dd(J())?mt(m._0_is_not_allowed_as_a_parameter_name,bo(J())):mt(m.Parameter_declaration_expected);case 19:return mt(m.Type_parameter_declaration_expected);case 20:return mt(m.Type_argument_expected);case 21:return mt(m.Type_expected);case 22:return mt(m.Unexpected_token_expected);case 23:return mt(m.Identifier_expected);case 13:return mt(m.Identifier_expected);case 14:return mt(m.Identifier_expected);case 24:return mt(m.Identifier_or_string_literal_expected);case 25:return R.fail("ParsingContext.Count used as a context");default:R.assertNever(q)}}function rc(q,Se,Qe){const Tt=pn;pn|=1<<q;const Vt=[],An=Y();let Gr=-1;for(;;){if(Ts(q,!1)){const Ei=t.getStartPos(),Ci=dt(q,Se);if(!Ci){pn=Tt;return}if(Vt.push(Ci),Gr=t.getTokenPos(),La(27))continue;if(Gr=-1,Nn(q))break;wn(27,Zd(q)),Qe&&J()===26&&!t.hasPrecedingLineBreak()&&ut(),Ei===t.getStartPos()&&ut();continue}if(Nn(q)||Ed(q))break}return pn=Tt,Ys(Vt,An,void 0,Gr>=0)}function Zd(q){return q===6?m.An_enum_member_name_must_be_followed_by_a_or:void 0}function Du(){const q=Ys([],Y());return q.isMissingList=!0,q}function bf(q){return!!q.isMissingList}function w_(q,Se,Qe,Tt){if(wn(Qe)){const Vt=rc(q,Se);return wn(Tt),Vt}return Du()}function Zo(q,Se){const Qe=Y();let Tt=q?Ht(Se):kt(Se);for(;La(24)&&J()!==29;)Tt=rn(g.createQualifiedName(Tt,Ef(q,!1)),Qe);return Tt}function D_(q,Se){return rn(g.createQualifiedName(q,Se),q.pos)}function Ef(q,Se){if(t.hasPrecedingLineBreak()&&ad(J())&&$r(Sd))return zl(79,!0,m.Identifier_expected);if(J()===80){const Qe=Mr();return Se?Qe:zl(79,!0,m.Identifier_expected)}return q?Ht():kt()}function op(q){const Se=Y(),Qe=[];let Tt;do Tt=Da(q),Qe.push(Tt);while(Tt.literal.kind===16);return Ys(Qe,Se)}function Fp(q){const Se=Y();return rn(g.createTemplateExpression(De(q),op(q)),Se)}function V(){const q=Y();return rn(g.createTemplateLiteralType(De(!1),tt()),q)}function tt(){const q=Y(),Se=[];let Qe;do Qe=Kt(),Se.push(Qe);while(Qe.literal.kind===16);return Ys(Se,q)}function Kt(){const q=Y();return rn(g.createTemplateLiteralTypeSpan(xc(),Yn(!1)),q)}function Yn(q){return J()===19?(gi(q),Ve()):ou(17,m._0_expected,bo(19))}function Da(q){const Se=Y();return rn(g.createTemplateSpan(gt(pu),Yn(q)),Se)}function Ia(){return Mt(J())}function De(q){q&&ui();const Se=Mt(J());return R.assert(Se.kind===15,"Template head has wrong token kind"),Se}function Ve(){const q=Mt(J());return R.assert(q.kind===16||q.kind===17,"Template fragment has wrong token kind"),q}function It(q){const Se=q===14||q===17,Qe=t.getTokenText();return Qe.substring(1,Qe.length-(t.isUnterminated()?0:Se?1:2))}function Mt(q){const Se=Y(),Qe=Uv(q)?g.createTemplateLiteralLikeNode(q,t.getTokenValue(),It(q),t.getTokenFlags()&2048):q===8?C(t.getTokenValue(),t.getNumericLiteralFlags()):q===10?L(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):rk(q)?I(q,t.getTokenValue()):R.fail();return t.hasExtendedUnicodeEscape()&&(Qe.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Qe.isUnterminated=!0),ut(),rn(Qe,Se)}function mn(){return Zo(!0,m.Type_expected)}function vn(){if(!t.hasPrecedingLineBreak()&&Wi()===29)return w_(20,xc,29,31)}function En(){const q=Y();return rn(g.createTypeReferenceNode(mn(),vn()),q)}function Wn(q){switch(q.kind){case 180:return kl(q.typeName);case 181:case 182:{const{parameters:Se,type:Qe}=q;return bf(Se)||Wn(Qe)}case 193:return Wn(q.type);default:return!1}}function Jr(q){return ut(),rn(g.createTypePredicateNode(void 0,q,xc()),q.pos)}function Xi(){const q=Y();return ut(),rn(g.createThisTypeNode(),q)}function nr(){const q=Y();return ut(),rn(g.createJSDocAllType(),q)}function _n(){const q=Y();return ut(),rn(g.createJSDocNonNullableType(M1(),!1),q)}function dr(){const q=Y();return ut(),J()===27||J()===19||J()===21||J()===31||J()===63||J()===51?rn(g.createJSDocUnknownType(),q):rn(g.createJSDocNullableType(xc(),!1),q)}function Aa(){const q=Y(),Se=Ne();if($r(di)){ut();const Qe=Bp(36),Tt=lp(58,!1);return yn(rn(g.createJSDocFunctionType(Qe,Tt),q),Se)}return rn(g.createTypeReferenceNode(Ht(),void 0),q)}function Qs(){const q=Y();let Se;return(J()===108||J()===103)&&(Se=Ht(),wn(58)),rn(g.createParameterDeclaration(void 0,void 0,Se,void 0,cc(),void 0),q)}function cc(){t.setInJSDocType(!0);const q=Y();if(La(142)){const Tt=g.createJSDocNamepathType(void 0);e:for(;;)switch(J()){case 19:case 1:case 27:case 5:break e;default:nn()}return t.setInJSDocType(!1),rn(Tt,q)}const Se=La(25);let Qe=rs();return t.setInJSDocType(!1),Se&&(Qe=rn(g.createJSDocVariadicType(Qe),q)),J()===63?(ut(),rn(g.createJSDocOptionalType(Qe),q)):Qe}function ih(){const q=Y();wn(112);const Se=Zo(!0),Qe=t.hasPrecedingLineBreak()?void 0:nf();return rn(g.createTypeQueryNode(Se,Qe),q)}function Mg(){const q=Y(),Se=Os(!1,!0),Qe=kt();let Tt,Vt;La(94)&&(Ug()||!dp()?Tt=xc():Vt=Gp());const An=La(63)?xc():void 0,Gr=g.createTypeParameterDeclaration(Se,Qe,Tt,An);return Gr.expression=Vt,rn(Gr,q)}function sp(){if(J()===29)return w_(19,Mg,29,31)}function w1(q){return J()===25||ME()||Ly(J())||J()===59||Ug(!q)}function f0(q){const Se=rv(m.Private_identifiers_cannot_be_used_as_parameters);return HD(Se)===0&&!Dt(q)&&Ly(J())&&ut(),Se}function Vx(){return mi()||J()===22||J()===18}function x2(q){return Pg(q)}function jx(q){return Pg(q,!1)}function Pg(q,Se=!0){const Qe=Y(),Tt=Ne(),Vt=q?ye(()=>Os(!0)):W(()=>Os(!0));if(J()===108){const Ci=g.createParameterDeclaration(Vt,void 0,Zu(!0),void 0,zh(),void 0),ki=tu(Vt);return ki&&fe(ki,m.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),yn(rn(Ci,Qe),Tt)}const An=Ln;Ln=!1;const Gr=Qo(25);if(!Se&&!Vx())return;const Ei=yn(rn(g.createParameterDeclaration(Vt,Gr,f0(Vt),Qo(57),zh(),jg()),Qe),Tt);return Ln=An,Ei}function lp(q,Se){if(_0(q,Se))return Le(rs)}function _0(q,Se){return q===38?(wn(q),!0):La(58)?!0:Se&&J()===38?(mt(m._0_expected,bo(58)),ut(),!0):!1}function Hh(q,Se){const Qe=jt(),Tt=de();an(!!(q&1)),Ir(!!(q&2));const Vt=q&32?rc(17,Qs):rc(16,()=>Se?x2(Tt):jx(Tt));return an(Qe),Ir(Tt),Vt}function Bp(q){if(!wn(20))return Du();const Se=Hh(q,!0);return wn(21),Se}function p0(){La(27)||nl()}function gE(q){const Se=Y(),Qe=Ne();q===177&&wn(103);const Tt=sp(),Vt=Bp(4),An=lp(58,!0);p0();const Gr=q===176?g.createCallSignature(Tt,Vt,An):g.createConstructSignature(Tt,Vt,An);return yn(rn(Gr,Se),Qe)}function D1(){return J()===22&&$r(Fg)}function Fg(){if(ut(),J()===25||J()===23)return!0;if(Ly(J())){if(ut(),fa())return!0}else if(fa())ut();else return!1;return J()===58||J()===27?!0:J()!==57?!1:(ut(),J()===58||J()===27||J()===23)}function A2(q,Se,Qe){const Tt=w_(16,()=>x2(!1),22,23),Vt=zh();p0();const An=g.createIndexSignature(Qe,Tt,Vt);return yn(rn(An,q),Se)}function yE(q,Se,Qe){const Tt=fn(),Vt=Qo(57);let An;if(J()===20||J()===29){const Gr=sp(),Ei=Bp(4),Ci=lp(58,!0);An=g.createMethodSignature(Qe,Tt,Vt,Gr,Ei,Ci)}else{const Gr=zh();An=g.createPropertySignature(Qe,Tt,Vt,Gr),J()===63&&(An.initializer=jg())}return p0(),yn(rn(An,q),Se)}function vE(){if(J()===20||J()===29||J()===137||J()===151)return!0;let q=!1;for(;Ly(J());)q=!0,ut();return J()===22?!0:(Z()&&(q=!0,ut()),q?J()===20||J()===29||J()===57||J()===58||J()===27||Rs():!1)}function bE(){if(J()===20||J()===29)return gE(176);if(J()===103&&$r(m0))return gE(177);const q=Y(),Se=Ne(),Qe=Os(!1);return Sa(137)?dh(q,Se,Qe,174,4):Sa(151)?dh(q,Se,Qe,175,4):D1()?A2(q,Se,Qe):yE(q,Se,Qe)}function m0(){return ut(),J()===20||J()===29}function Wx(){return ut()===24}function EE(){switch(ut()){case 20:case 29:case 24:return!0}return!1}function TE(){const q=Y();return rn(g.createTypeLiteralNode(h0()),q)}function h0(){let q;return wn(18)?(q=oe(4,bE),wn(19)):q=Du(),q}function R1(){return ut(),J()===39||J()===40?ut()===146:(J()===146&&ut(),J()===22&&pl()&&ut()===101)}function g0(){const q=Y(),Se=Ht();wn(101);const Qe=xc();return rn(g.createTypeParameterDeclaration(void 0,Se,Qe,void 0),q)}function C2(){const q=Y();wn(18);let Se;(J()===146||J()===39||J()===40)&&(Se=lc(),Se.kind!==146&&wn(146)),wn(22);const Qe=g0(),Tt=La(128)?xc():void 0;wn(23);let Vt;(J()===57||J()===39||J()===40)&&(Vt=lc(),Vt.kind!==57&&wn(57));const An=zh();nl();const Gr=oe(4,bE);return wn(19),rn(g.createMappedTypeNode(Se,Qe,Tt,Vt,An,Gr),q)}function Bg(){const q=Y();if(La(25))return rn(g.createRestTypeNode(xc()),q);const Se=xc();if(KC(Se)&&Se.pos===Se.type.pos){const Qe=g.createOptionalTypeNode(Se.type);return ht(Qe,Se),Qe.flags=Se.flags,Qe}return Se}function es(){return ut()===58||J()===57&&ut()===58}function SE(){return J()===25?ad(ut())&&es():ad(J())&&es()}function NL(){if($r(SE)){const q=Y(),Se=Ne(),Qe=Qo(25),Tt=Ht(),Vt=Qo(57);wn(58);const An=Bg(),Gr=g.createNamedTupleMember(Qe,Tt,Vt,An);return yn(rn(Gr,q),Se)}return Bg()}function Ky(){const q=Y();return rn(g.createTupleTypeNode(w_(21,NL,22,23)),q)}function Gg(){const q=Y();wn(20);const Se=xc();return wn(21),rn(g.createParenthesizedType(Se),q)}function ah(){let q;if(J()===126){const Se=Y();ut();const Qe=rn(U(126),Se);q=Ys([Qe],Se)}return q}function cp(){const q=Y(),Se=Ne(),Qe=ah(),Tt=La(103);R.assert(!Qe||Tt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Vt=sp(),An=Bp(4),Gr=lp(38,!1),Ei=Tt?g.createConstructorTypeNode(Qe,Vt,An,Gr):g.createFunctionTypeNode(Vt,An,Gr);return yn(rn(Ei,q),Se)}function Md(){const q=lc();return J()===24?void 0:q}function Pd(q){const Se=Y();q&&ut();let Qe=J()===110||J()===95||J()===104?lc():Mt(J());return q&&(Qe=rn(g.createPrefixUnaryExpression(40,Qe),Se)),rn(g.createLiteralTypeNode(Qe),Se)}function Fd(){return ut(),J()===100}function N1(){const q=Y(),Se=t.getTokenPos();wn(18);const Qe=t.hasPrecedingLineBreak();wn(130),wn(58);const Tt=sv(!0);if(!wn(19)){const Vt=rl(lt);Vt&&Vt.code===m._0_expected.code&&$o(Vt,LC(Je,Se,1,m.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return rn(g.createImportTypeAssertionContainer(Tt,Qe),q)}function O1(){Fe|=2097152;const q=Y(),Se=La(112);wn(100),wn(20);const Qe=xc();let Tt;La(27)&&(Tt=N1()),wn(21);const Vt=La(24)?mn():void 0,An=vn();return rn(g.createImportTypeNode(Qe,Tt,Vt,An,Se),q)}function Hx(){return ut(),J()===8||J()===9}function M1(){switch(J()){case 131:case 157:case 152:case 148:case 160:case 153:case 134:case 155:case 144:case 149:return ls(Md)||En();case 66:t.reScanAsteriskEqualsToken();case 41:return nr();case 60:t.reScanQuestionToken();case 57:return dr();case 98:return Aa();case 53:return _n();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Pd();case 40:return $r(Hx)?Pd(!0):En();case 114:return lc();case 108:{const q=Xi();return J()===140&&!t.hasPrecedingLineBreak()?Jr(q):q}case 112:return $r(Fd)?O1():ih();case 18:return $r(R1)?C2():TE();case 22:return Ky();case 20:return Gg();case 100:return O1();case 129:return $r(Sd)?AE():En();case 15:return V();default:return En()}}function Ug(q){switch(J()){case 131:case 157:case 152:case 148:case 160:case 134:case 146:case 153:case 156:case 114:case 155:case 104:case 108:case 112:case 144:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 149:case 41:case 57:case 53:case 25:case 138:case 100:case 129:case 14:case 15:return!0;case 98:return!q;case 40:return!q&&$r(Hx);case 20:return!q&&$r(P1);default:return fa()}}function P1(){return ut(),J()===21||w1(!1)||Ug()}function L2(){const q=Y();let Se=M1();for(;!t.hasPrecedingLineBreak();)switch(J()){case 53:ut(),Se=rn(g.createJSDocNonNullableType(Se,!0),q);break;case 57:if($r(Nt))return Se;ut(),Se=rn(g.createJSDocNullableType(Se,!0),q);break;case 22:if(wn(22),Ug()){const Qe=xc();wn(23),Se=rn(g.createIndexedAccessTypeNode(Se,Qe),q)}else wn(23),Se=rn(g.createArrayTypeNode(Se),q);break;default:return Se}return Se}function F1(q){const Se=Y();return wn(q),rn(g.createTypeOperatorNode(q,xE()),Se)}function OL(){if(La(94)){const q=pt(xc);if(Sn()||J()!==57)return q}}function zx(){const q=Y(),Se=kt(),Qe=ls(OL),Tt=g.createTypeParameterDeclaration(void 0,Se,Qe);return rn(Tt,q)}function y0(){const q=Y();return wn(138),rn(g.createInferTypeNode(zx()),q)}function xE(){const q=J();switch(q){case 141:case 156:case 146:return F1(q);case 138:return y0()}return Le(L2)}function Xe(q){if(b0()){const Se=cp();let Qe;return Ph(Se)?Qe=q?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:Qe=q?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,fe(Se,Qe),Se}}function Xy(q,Se,Qe){const Tt=Y(),Vt=q===51,An=La(q);let Gr=An&&Xe(Vt)||Se();if(J()===q||An){const Ei=[Gr];for(;La(q);)Ei.push(Xe(Vt)||Se());Gr=rn(Qe(Ys(Ei,Tt)),Tt)}return Gr}function hm(){return Xy(50,xE,g.createIntersectionTypeNode)}function v0(){return Xy(51,hm,g.createUnionTypeNode)}function B1(){return ut(),J()===103}function b0(){return J()===29||J()===20&&$r(I2)?!0:J()===103||J()===126&&$r(B1)}function Vg(){if(Ly(J())&&Os(!1),fa()||J()===108)return ut(),!0;if(J()===22||J()===18){const q=lt.length;return rv(),q===lt.length}return!1}function I2(){return ut(),!!(J()===21||J()===25||Vg()&&(J()===58||J()===27||J()===57||J()===63||J()===21&&(ut(),J()===38)))}function rs(){const q=Y(),Se=fa()&&ls(up),Qe=xc();return Se?rn(g.createTypePredicateNode(void 0,Se,Qe),q):Qe}function up(){const q=kt();if(J()===140&&!t.hasPrecedingLineBreak())return ut(),q}function AE(){const q=Y(),Se=ou(129),Qe=J()===108?Xi():kt(),Tt=La(140)?xc():void 0;return rn(g.createTypePredicateNode(Se,Qe,Tt),q)}function xc(){if(jn&40960)return Hr(40960,xc);if(b0())return cp();const q=Y(),Se=v0();if(!Sn()&&!t.hasPrecedingLineBreak()&&La(94)){const Qe=pt(xc);wn(57);const Tt=Le(xc);wn(58);const Vt=Le(xc);return rn(g.createConditionalTypeNode(Se,Qe,Tt,Vt),q)}return Se}function zh(){return La(58)?xc():void 0}function G1(){switch(J()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return $r(EE);default:return fa()}}function dp(){if(G1())return!0;switch(J()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 133:case 125:case 80:case 59:return!0;default:return qx()?!0:fa()}}function U1(){return J()!==18&&J()!==98&&J()!==84&&J()!==59&&dp()}function pu(){const q=Er();q&&On(!1);const Se=Y();let Qe=Uc(!0),Tt;for(;Tt=Qo(27);)Qe=E0(Qe,Tt,Uc(!0),Se);return q&&On(!0),Qe}function jg(){return La(63)?Uc(!0):void 0}function Uc(q){if(k2())return zi();const Se=oh(q)||qh(q);if(Se)return Se;const Qe=Y(),Tt=j1(0);return Tt.kind===79&&J()===38?Xr(Qe,Tt,q,void 0):Id(Tt)&&Dy(ir())?E0(Tt,lc(),Uc(q),Qe):w2(Tt,Qe,q)}function k2(){return J()===125?jt()?!0:$r(A0):!1}function ML(){return ut(),!t.hasPrecedingLineBreak()&&fa()}function zi(){const q=Y();return ut(),!t.hasPrecedingLineBreak()&&(J()===41||dp())?rn(g.createYieldExpression(Qo(41),Uc(!0)),q):rn(g.createYieldExpression(void 0,void 0),q)}function Xr(q,Se,Qe,Tt){R.assert(J()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Vt=g.createParameterDeclaration(void 0,void 0,Se,void 0,void 0,void 0);rn(Vt,Se.pos);const An=Ys([Vt],Vt.pos,Vt.end),Gr=ou(38),Ei=V1(!!Tt,Qe),Ci=g.createArrowFunction(Tt,void 0,An,void 0,Gr,Ei);return In(rn(Ci,q))}function oh(q){const Se=ef();if(Se!==0)return Se===1?ml(!0,!0):ls(()=>Wg(q))}function ef(){return J()===20||J()===29||J()===132?$r(CE):J()===38?1:0}function CE(){if(J()===132&&(ut(),t.hasPrecedingLineBreak()||J()!==20&&J()!==29))return 0;const q=J(),Se=ut();if(q===20){if(Se===21)switch(ut()){case 38:case 58:case 18:return 1;default:return 0}if(Se===22||Se===18)return 2;if(Se===25)return 1;if(Ly(Se)&&Se!==132&&$r(pl))return ut()===128?0:1;if(!fa()&&Se!==108)return 0;switch(ut()){case 58:return 1;case 57:return ut(),J()===58||J()===27||J()===63||J()===21?1:0;case 27:case 63:case 21:return 2}return 0}else return R.assert(q===29),!fa()&&J()!==85?0:Ge===1?$r(()=>{La(85);const Tt=ut();if(Tt===94)switch(ut()){case 63:case 31:case 43:return!1;default:return!0}else if(Tt===27||Tt===63)return!0;return!1})?1:0:2}function Wg(q){const Se=t.getTokenPos();if(gn!=null&&gn.has(Se))return;const Qe=ml(!1,q);return Qe||(gn||(gn=new Set)).add(Se),Qe}function qh(q){if(J()===132&&$r(sh)===1){const Se=Y(),Qe=FE(),Tt=j1(0);return Xr(Se,Tt,q,Qe)}}function sh(){if(J()===132){if(ut(),t.hasPrecedingLineBreak()||J()===38)return 0;const q=j1(0);if(!t.hasPrecedingLineBreak()&&q.kind===79&&J()===38)return 1}return 0}function ml(q,Se){const Qe=Y(),Tt=Ne(),Vt=FE(),An=Dt(Vt,t4)?2:0,Gr=sp();let Ei;if(wn(20)){if(q)Ei=Hh(An,q);else{const Tm=Hh(An,q);if(!Tm)return;Ei=Tm}if(!wn(21)&&!q)return}else{if(!q)return;Ei=Du()}const Ci=J()===58,ki=lp(58,!1);if(ki&&!q&&Wn(ki))return;let Fa=ki;for(;(Fa==null?void 0:Fa.kind)===193;)Fa=Fa.type;const ks=Fa&&XC(Fa);if(!q&&J()!==38&&(ks||J()!==18))return;const wo=J(),as=ou(38),Ud=wo===38||wo===18?V1(Dt(Vt,t4),Se):kt();if(!Se&&Ci&&J()!==58)return;const Wp=g.createArrowFunction(Vt,Gr,Ei,ki,as,Ud);return yn(rn(Wp,Qe),Tt)}function V1(q,Se){if(J()===18)return Bd(q?2:0);if(J()!==26&&J()!==98&&J()!==84&&F2()&&!U1())return Bd(16|(q?2:0));const Qe=Ln;Ln=!1;const Tt=q?ye(()=>Uc(Se)):W(()=>Uc(Se));return Ln=Qe,Tt}function w2(q,Se,Qe){const Tt=Qo(57);if(!Tt)return q;let Vt;return rn(g.createConditionalExpression(q,Tt,Hr(r,()=>Uc(!1)),Vt=ou(58),b_(Vt)?Uc(Qe):zl(79,!1,m._0_expected,bo(58))),Se)}function j1(q){const Se=Y(),Qe=Gp();return u_(q,Qe,Se)}function D2(q){return q===101||q===162}function u_(q,Se,Qe){for(;;){ir();const Tt=CR(J());if(!(J()===42?Tt>=q:Tt>q)||J()===101&&cn())break;if(J()===128||J()===150){if(t.hasPrecedingLineBreak())break;{const An=J();ut(),Se=An===150?Jx(Se,xc()):R2(Se,xc())}}else Se=E0(Se,lc(),j1(Tt),Qe)}return Se}function qx(){return cn()&&J()===101?!1:CR(J())>0}function Jx(q,Se){return rn(g.createSatisfiesExpression(q,Se),q.pos)}function E0(q,Se,Qe,Tt){return rn(g.createBinaryExpression(q,Se,Qe),Tt)}function R2(q,Se){return rn(g.createAsExpression(q,Se),q.pos)}function N2(){const q=Y();return rn(g.createPrefixUnaryExpression(J(),Et(fp)),q)}function Kx(){const q=Y();return rn(g.createDeleteExpression(Et(fp)),q)}function W1(){const q=Y();return rn(g.createTypeOfExpression(Et(fp)),q)}function O2(){const q=Y();return rn(g.createVoidExpression(Et(fp)),q)}function Vf(){return J()===133?de()?!0:$r(A0):!1}function Hg(){const q=Y();return rn(g.createAwaitExpression(Et(fp)),q)}function Gp(){if(Xx()){const Qe=Y(),Tt=H1();return J()===42?u_(CR(J()),Tt,Qe):Tt}const q=J(),Se=fp();if(J()===42){const Qe=Yo(Be,Se.pos),{end:Tt}=Se;Se.kind===213?at(Qe,Tt,m.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):at(Qe,Tt,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,bo(q))}return Se}function fp(){switch(J()){case 39:case 40:case 54:case 53:return N2();case 89:return Kx();case 112:return W1();case 114:return O2();case 29:return Ge===1?zg(!0):$x();case 133:if(Vf())return Hg();default:return H1()}}function Xx(){switch(J()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 133:return!1;case 29:if(Ge!==1)return!1;default:return!0}}function H1(){if(J()===45||J()===46){const Se=Y();return rn(g.createPrefixUnaryExpression(J(),Et(gm)),Se)}else if(Ge===1&&J()===29&&$r(ql))return zg(!0);const q=gm();if(R.assert(Id(q)),(J()===45||J()===46)&&!t.hasPrecedingLineBreak()){const Se=J();return ut(),rn(g.createPostfixUnaryExpression(q,Se),q.pos)}return q}function gm(){const q=Y();let Se;return J()===100?$r(m0)?(Fe|=2097152,Se=lc()):$r(Wx)?(ut(),ut(),Se=rn(g.createMetaProperty(100,Ht()),q),Fe|=4194304):Se=M2():Se=J()===106?Td():M2(),ar(q,Se)}function M2(){const q=Y(),Se=R_();return jf(q,Se,!0)}function Td(){const q=Y();let Se=lc();if(J()===29){const Qe=Y(),Tt=ls(Qy);Tt!==void 0&&(at(Qe,Y(),m.super_may_not_use_type_arguments),T0()||(Se=g.createExpressionWithTypeArguments(Se,Tt)))}return J()===20||J()===24||J()===22?Se:(ou(24,m.super_must_be_followed_by_an_argument_list_or_member_access),rn(ee(Se,Ef(!0,!0)),q))}function zg(q,Se,Qe){const Tt=Y(),Vt=P2(q);let An;if(Vt.kind===283){let Gr=qg(Vt),Ei;const Ci=Gr[Gr.length-1];if((Ci==null?void 0:Ci.kind)===281&&!T1(Ci.openingElement.tagName,Ci.closingElement.tagName)&&T1(Vt.tagName,Ci.closingElement.tagName)){const ki=Ci.children.end,Fa=rn(g.createJsxElement(Ci.openingElement,Ci.children,rn(g.createJsxClosingElement(rn(M(""),ki,ki)),ki,ki)),Ci.openingElement.pos,ki);Gr=Ys([...Gr.slice(0,Gr.length-1),Fa],Gr.pos,ki),Ei=Ci.closingElement}else Ei=z1(Vt,q),T1(Vt.tagName,Ei.tagName)||(Qe&&Gh(Qe)&&T1(Ei.tagName,Qe.tagName)?fe(Vt.tagName,m.JSX_element_0_has_no_corresponding_closing_tag,dk(Be,Vt.tagName)):fe(Ei.tagName,m.Expected_corresponding_JSX_closing_tag_for_0,dk(Be,Vt.tagName)));An=rn(g.createJsxElement(Vt,Gr,Ei),Tt)}else Vt.kind===286?An=rn(g.createJsxFragment(Vt,qg(Vt),q1(q)),Tt):(R.assert(Vt.kind===282),An=Vt);if(q&&J()===29){const Gr=typeof Se=="undefined"?An.pos:Se,Ei=ls(()=>zg(!0,Gr));if(Ei){const Ci=zl(27,!1);return qk(Ci,Ei.pos,0),at(Yo(Be,Gr),Ei.end,m.JSX_expressions_must_have_one_parent_element),rn(g.createBinaryExpression(An,Ci,Ei),Tt)}}return An}function ym(){const q=Y(),Se=g.createJsxText(t.getTokenValue(),zt===12);return zt=t.scanJsxToken(),rn(Se,q)}function vm(q,Se){switch(Se){case 1:if(ux(q))fe(q,m.JSX_fragment_has_no_corresponding_closing_tag);else{const Qe=q.tagName,Tt=Yo(Be,Qe.pos);at(Tt,Qe.end,m.JSX_element_0_has_no_corresponding_closing_tag,dk(Be,q.tagName))}return;case 30:case 7:return;case 11:case 12:return ym();case 18:return IE(!1);case 29:return zg(!1,void 0,q);default:return R.assertNever(Se)}}function qg(q){const Se=[],Qe=Y(),Tt=pn;for(pn|=16384;;){const Vt=vm(q,zt=t.reScanJsxToken());if(!Vt||(Se.push(Vt),Gh(q)&&(Vt==null?void 0:Vt.kind)===281&&!T1(Vt.openingElement.tagName,Vt.closingElement.tagName)&&T1(q.tagName,Vt.closingElement.tagName)))break}return pn=Tt,Ys(Se,Qe)}function LE(){const q=Y();return rn(g.createJsxAttributes(oe(13,Ns)),q)}function P2(q){const Se=Y();if(wn(29),J()===31)return oo(),rn(g.createJsxOpeningFragment(),Se);const Qe=Yy(),Tt=jn&262144?void 0:nf(),Vt=LE();let An;return J()===31?(oo(),An=g.createJsxOpeningElement(Qe,Tt,Vt)):(wn(43),wn(31,void 0,!1)&&(q?ut():oo()),An=g.createJsxSelfClosingElement(Qe,Tt,Vt)),rn(An,Se)}function Yy(){const q=Y();xo();let Se=J()===108?lc():Ht();for(;La(24);)Se=rn(ee(Se,Ef(!0,!1)),q);return Se}function IE(q){const Se=Y();if(!wn(18))return;let Qe,Tt;return J()!==19&&(Qe=Qo(25),Tt=pu()),q?wn(19):wn(19,void 0,!1)&&oo(),rn(g.createJsxExpression(Qe,Tt),Se)}function Ns(){if(J()===18)return Yx();xo();const q=Y();return rn(g.createJsxAttribute(Ht(),$y()),q)}function $y(){if(J()===63){if(da()===10)return Ia();if(J()===18)return IE(!0);if(J()===29)return zg(!0);mt(m.or_JSX_element_expected)}}function Yx(){const q=Y();wn(18),wn(25);const Se=pu();return wn(19),rn(g.createJsxSpreadAttribute(Se),q)}function z1(q,Se){const Qe=Y();wn(30);const Tt=Yy();return wn(31,void 0,!1)&&(Se||!T1(q.tagName,Tt)?ut():oo()),rn(g.createJsxClosingElement(Tt),Qe)}function q1(q){const Se=Y();return wn(30),wn(31,m.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(q?ut():oo()),rn(g.createJsxJsxClosingFragment(),Se)}function $x(){R.assert(Ge!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const q=Y();wn(29);const Se=xc();wn(31);const Qe=fp();return rn(g.createTypeAssertion(Se,Qe),q)}function PL(){return ut(),ad(J())||J()===22||T0()}function Qx(){return J()===28&&$r(PL)}function mr(q){if(q.flags&32)return!0;if(ax(q)){let Se=q.expression;for(;ax(Se)&&!(Se.flags&32);)Se=Se.expression;if(Se.flags&32){for(;ax(q);)q.flags|=32,q=q.expression;return!0}}return!1}function Ml(q,Se,Qe){const Tt=Ef(!0,!0),Vt=Qe||mr(Se),An=Vt?X(Se,Qe,Tt):ee(Se,Tt);if(Vt&&Ri(An.name)&&fe(An.name,m.An_optional_chain_cannot_contain_private_identifiers),Py(Se)&&Se.typeArguments){const Gr=Se.typeArguments.pos-1,Ei=Yo(Be,Se.typeArguments.end)+1;at(Gr,Ei,m.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return rn(An,q)}function _a(q,Se,Qe){let Tt;if(J()===23)Tt=zl(79,!0,m.An_element_access_expression_should_take_an_argument);else{const An=gt(pu);n_(An)&&(An.text=wu(An.text)),Tt=An}wn(23);const Vt=Qe||mr(Se)?P(Se,Qe,Tt):ne(Se,Tt);return rn(Vt,q)}function jf(q,Se,Qe){for(;;){let Tt,Vt=!1;if(Qe&&Qx()?(Tt=ou(28),Vt=ad(J())):Vt=La(24),Vt){Se=Ml(q,Se,Tt);continue}if((Tt||!Er())&&La(22)){Se=_a(q,Se,Tt);continue}if(T0()){Se=!Tt&&Se.kind===230?lh(q,Se.expression,Tt,Se.typeArguments):lh(q,Se,Tt,void 0);continue}if(!Tt){if(J()===53&&!t.hasPrecedingLineBreak()){ut(),Se=rn(g.createNonNullExpression(Se),q);continue}const An=ls(Qy);if(An){Se=rn(g.createExpressionWithTypeArguments(Se,An),q);continue}}return Se}}function T0(){return J()===14||J()===15}function lh(q,Se,Qe,Tt){const Vt=g.createTaggedTemplateExpression(Se,Tt,J()===14?(ui(),Ia()):Fp(!0));return(Qe||Se.flags&32)&&(Vt.flags|=32),Vt.questionDotToken=Qe,rn(Vt,q)}function ar(q,Se){for(;;){Se=jf(q,Se,!0);let Qe;const Tt=Qo(28);if(Tt&&(Qe=ls(Qy),T0())){Se=lh(q,Se,Tt,Qe);continue}if(Qe||J()===20){!Tt&&Se.kind===230&&(Qe=Se.typeArguments,Se=Se.expression);const Vt=Zx(),An=Tt||mr(Se)?re(Se,Tt,Qe,Vt):ue(Se,Qe,Vt);Se=rn(An,q);continue}if(Tt){const Vt=zl(79,!1,m.Identifier_expected);Se=rn(X(Se,Tt,Vt),q)}break}return Se}function Zx(){wn(20);const q=rc(11,_p);return wn(21),q}function Qy(){if(jn&262144||Wi()!==29)return;ut();const q=rc(20,xc);if(ir()===31)return ut(),q&&Nc()?q:void 0}function Nc(){switch(J()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return t.hasPrecedingLineBreak()||qx()||!dp()}function R_(){switch(J()){case 8:case 9:case 10:case 14:return Ia();case 108:case 106:case 104:case 110:case 95:return lc();case 20:return Up();case 22:return ev();case 18:return ic();case 132:if(!$r(Y1))break;return Jg();case 59:return Qg();case 84:return k0();case 98:return Jg();case 103:return N_();case 43:case 68:if(ai()===13)return Ia();break;case 15:return Fp(!1);case 80:return Mr()}return kt(m.Expression_expected)}function Up(){const q=Y(),Se=Ne();wn(20);const Qe=gt(pu);return wn(21),yn(rn(ae(Qe),q),Se)}function Zy(){const q=Y();wn(25);const Se=Uc(!0);return rn(g.createSpreadElement(Se),q)}function kE(){return J()===25?Zy():J()===27?rn(g.createOmittedExpression(),Y()):Uc(!0)}function _p(){return Hr(r,kE)}function ev(){const q=Y(),Se=t.getTokenPos(),Qe=wn(22),Tt=t.hasPrecedingLineBreak(),Vt=rc(15,kE);return Io(22,23,Qe,Se),rn(j(Vt,Tt),q)}function Ql(){const q=Y(),Se=Ne();if(Qo(25)){const Fa=Uc(!0);return yn(rn(g.createSpreadAssignment(Fa),q),Se)}const Qe=Os(!0);if(Sa(137))return dh(q,Se,Qe,174,0);if(Sa(151))return dh(q,Se,Qe,175,0);const Tt=Qo(41),Vt=fa(),An=fn(),Gr=Qo(57),Ei=Qo(53);if(Tt||J()===20||J()===29)return G2(q,Se,Qe,Tt,An,Gr,Ei);let Ci;if(Vt&&J()!==58){const Fa=Qo(63),ks=Fa?gt(()=>Uc(!0)):void 0;Ci=g.createShorthandPropertyAssignment(An,ks),Ci.equalsToken=Fa}else{wn(58);const Fa=gt(()=>Uc(!0));Ci=g.createPropertyAssignment(An,Fa)}return Ci.modifiers=Qe,Ci.questionToken=Gr,Ci.exclamationToken=Ei,yn(rn(Ci,q),Se)}function ic(){const q=Y(),Se=t.getTokenPos(),Qe=wn(18),Tt=t.hasPrecedingLineBreak(),Vt=rc(12,Ql,!0);return Io(18,19,Qe,Se),rn(H(Vt,Tt),q)}function Jg(){const q=Er();On(!1);const Se=Y(),Qe=Ne(),Tt=Os(!1);wn(98);const Vt=Qo(41),An=Vt?1:0,Gr=Dt(Tt,t4)?2:0,Ei=An&&Gr?He(mu):An?me(mu):Gr?ye(mu):mu(),Ci=sp(),ki=Bp(An|Gr),Fa=lp(58,!1),ks=Bd(An|Gr);On(q);const wo=g.createFunctionExpression(Tt,Vt,Ei,Ci,ki,Fa,ks);return yn(rn(wo,Se),Qe)}function mu(){return mi()?_e():void 0}function N_(){const q=Y();if(wn(103),La(24)){const An=Ht();return rn(g.createMetaProperty(103,An),q)}const Se=Y();let Qe=jf(Se,R_(),!1),Tt;Qe.kind===230&&(Tt=Qe.typeArguments,Qe=Qe.expression),J()===28&&mt(m.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,dk(Be,Qe));const Vt=J()===20?Zx():void 0;return rn(be(Qe,Tt,Vt),q)}function ch(q,Se){const Qe=Y(),Tt=Ne(),Vt=t.getTokenPos(),An=wn(18,Se);if(An||q){const Gr=t.hasPrecedingLineBreak(),Ei=oe(1,Wf);Io(18,19,An,Vt);const Ci=yn(rn(z(Ei,Gr),Qe),Tt);return J()===63&&(mt(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),ut()),Ci}else{const Gr=Du();return yn(rn(z(Gr,void 0),Qe),Tt)}}function Bd(q,Se){const Qe=jt();an(!!(q&1));const Tt=de();Ir(!!(q&2));const Vt=Ln;Ln=!1;const An=Er();An&&On(!1);const Gr=ch(!!(q&16),Se);return An&&On(!0),Ln=Vt,an(Qe),Ir(Tt),Gr}function wE(){const q=Y(),Se=Ne();return wn(26),yn(rn(g.createEmptyStatement(),q),Se)}function J1(){const q=Y(),Se=Ne();wn(99);const Qe=t.getTokenPos(),Tt=wn(20),Vt=gt(pu);Io(20,21,Tt,Qe);const An=Wf(),Gr=La(91)?Wf():void 0;return yn(rn(Ee(Vt,An,Gr),q),Se)}function K1(){const q=Y(),Se=Ne();wn(90);const Qe=Wf();wn(115);const Tt=t.getTokenPos(),Vt=wn(20),An=gt(pu);return Io(20,21,Vt,Tt),La(26),yn(rn(g.createDoStatement(Qe,An),q),Se)}function Vp(){const q=Y(),Se=Ne();wn(115);const Qe=t.getTokenPos(),Tt=wn(20),Vt=gt(pu);Io(20,21,Tt,Qe);const An=Wf();return yn(rn(Ae(Vt,An),q),Se)}function Jh(){const q=Y(),Se=Ne();wn(97);const Qe=Qo(133);wn(20);let Tt;J()!==26&&(J()===113||J()===119||J()===85?Tt=bm(!0):Tt=Ot(pu));let Vt;if(Qe?wn(162):La(162)){const An=gt(()=>Uc(!0));wn(21),Vt=Ze(Qe,Tt,An,Wf())}else if(La(101)){const An=gt(pu);wn(21),Vt=g.createForInStatement(Tt,An,Wf())}else{wn(26);const An=J()!==26&&J()!==21?gt(pu):void 0;wn(26);const Gr=J()!==21?gt(pu):void 0;wn(21),Vt=te(Tt,An,Gr,Wf())}return yn(rn(Vt,q),Se)}function DE(q){const Se=Y(),Qe=Ne();wn(q===249?81:86);const Tt=Rs()?void 0:kt();nl();const Vt=q===249?g.createBreakStatement(Tt):g.createContinueStatement(Tt);return yn(rn(Vt,Se),Qe)}function tv(){const q=Y(),Se=Ne();wn(105);const Qe=Rs()?void 0:gt(pu);return nl(),yn(rn(g.createReturnStatement(Qe),q),Se)}function Pl(){const q=Y(),Se=Ne();wn(116);const Qe=t.getTokenPos(),Tt=wn(20),Vt=gt(pu);Io(20,21,Tt,Qe);const An=Oe(33554432,Wf);return yn(rn(g.createWithStatement(Vt,An),q),Se)}function Kg(){const q=Y(),Se=Ne();wn(82);const Qe=gt(pu);wn(58);const Tt=oe(3,Wf);return yn(rn(g.createCaseClause(Qe,Tt),q),Se)}function Kh(){const q=Y();wn(88),wn(58);const Se=oe(3,Wf);return rn(g.createDefaultClause(Se),q)}function S0(){return J()===82?Kg():Kh()}function x0(){const q=Y();wn(18);const Se=oe(2,S0);return wn(19),rn(g.createCaseBlock(Se),q)}function hu(){const q=Y(),Se=Ne();wn(107),wn(20);const Qe=gt(pu);wn(21);const Tt=x0();return yn(rn(g.createSwitchStatement(Qe,Tt),q),Se)}function Xh(){const q=Y(),Se=Ne();wn(109);let Qe=t.hasPrecedingLineBreak()?void 0:gt(pu);return Qe===void 0&&(sn++,Qe=rn(M(""),Y())),yl()||nc(Qe),yn(rn(g.createThrowStatement(Qe),q),Se)}function Ac(){const q=Y(),Se=Ne();wn(111);const Qe=ch(!1),Tt=J()===83?RE():void 0;let Vt;return(!Tt||J()===96)&&(wn(96,m.catch_or_finally_expected),Vt=ch(!1)),yn(rn(g.createTryStatement(Qe,Tt,Vt),q),Se)}function RE(){const q=Y();wn(83);let Se;La(20)?(Se=iv(),wn(21)):Se=void 0;const Qe=ch(!1);return rn(g.createCatchClause(Se,Qe),q)}function Yh(){const q=Y(),Se=Ne();return wn(87),nl(),yn(rn(g.createDebuggerStatement(),q),Se)}function X1(){const q=Y();let Se=Ne(),Qe;const Tt=J()===20,Vt=gt(pu);return We(Vt)&&La(58)?Qe=g.createLabeledStatement(Vt,Wf()):(yl()||nc(Vt),Qe=he(Vt),Tt&&(Se=!1)),yn(rn(Qe,q),Se)}function Sd(){return ut(),ad(J())&&!t.hasPrecedingLineBreak()}function uh(){return ut(),J()===84&&!t.hasPrecedingLineBreak()}function Y1(){return ut(),J()===98&&!t.hasPrecedingLineBreak()}function A0(){return ut(),(ad(J())||J()===8||J()===9||J()===10)&&!t.hasPrecedingLineBreak()}function NE(){for(;;)switch(J()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 154:return ML();case 142:case 143:return eA();case 126:case 127:case 132:case 136:case 121:case 122:case 123:case 146:if(ut(),t.hasPrecedingLineBreak())return!1;continue;case 159:return ut(),J()===18||J()===79||J()===93;case 100:return ut(),J()===10||J()===41||J()===18||ad(J());case 93:let q=ut();if(q===154&&(q=$r(ut)),q===63||q===41||q===18||q===88||q===128||q===59)return!0;continue;case 124:ut();continue;default:return!1}}function nv(){return $r(NE)}function F2(){switch(J()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return nv()||$r(EE);case 85:case 93:return nv();case 132:case 136:case 118:case 142:case 143:case 154:case 159:return!0;case 127:case 123:case 121:case 122:case 124:case 146:return nv()||!$r(Sd);default:return dp()}}function C0(){return ut(),mi()||J()===18||J()===22}function Xg(){return $r(C0)}function Wf(){switch(J()){case 26:return wE();case 18:return ch(!1);case 113:return Yg(Y(),Ne(),void 0);case 119:if(Xg())return Yg(Y(),Ne(),void 0);break;case 98:return I0(Y(),Ne(),void 0);case 84:return U2(Y(),Ne(),void 0);case 99:return J1();case 90:return K1();case 115:return Vp();case 97:return Jh();case 86:return DE(248);case 81:return DE(249);case 105:return tv();case 116:return Pl();case 107:return hu();case 109:return Xh();case 111:case 83:case 96:return Ac();case 87:return Yh();case 59:return Tf();case 132:case 118:case 154:case 142:case 143:case 136:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 127:case 124:case 146:case 159:if(nv())return Tf();break}return X1()}function OE(q){return q.kind===136}function Tf(){const q=Y(),Se=Ne(),Qe=Os(!0);if(Dt(Qe,OE)){const Vt=$h(q);if(Vt)return Vt;for(const An of Qe)An.flags|=16777216;return Oe(16777216,()=>L0(q,Se,Qe))}else return L0(q,Se,Qe)}function $h(q){return Oe(16777216,()=>{const Se=Bt(pn,q);if(Se)return Ft(Se)})}function L0(q,Se,Qe){switch(J()){case 113:case 119:case 85:return Yg(q,Se,Qe);case 98:return I0(q,Se,Qe);case 84:return U2(q,Se,Qe);case 118:return Zg(q,Se,Qe);case 154:return rA(q,Se,Qe);case 92:return x(q,Se,Qe);case 159:case 142:case 143:return Cr(q,Se,Qe);case 100:return rf(q,Se,Qe);case 93:switch(ut(),J()){case 88:case 63:return xs(q,Se,Qe);case 128:return su(q,Se,Qe);default:return e3(q,Se,Qe)}default:if(Qe){const Tt=zl(279,!0,m.Declaration_expected);return zk(Tt,q),Tt.modifiers=Qe,Tt}return}}function eA(){return ut(),!t.hasPrecedingLineBreak()&&(fa()||J()===10)}function os(q,Se){if(J()!==18){if(q&4){p0();return}if(Rs()){nl();return}}return Bd(q,Se)}function kr(){const q=Y();if(J()===27)return rn(g.createOmittedExpression(),q);const Se=Qo(25),Qe=rv(),Tt=jg();return rn(g.createBindingElement(Se,void 0,Qe,Tt),q)}function tf(){const q=Y(),Se=Qo(25),Qe=mi();let Tt=fn(),Vt;Qe&&J()!==58?(Vt=Tt,Tt=void 0):(wn(58),Vt=rv());const An=jg();return rn(g.createBindingElement(Se,Tt,Vt,An),q)}function xd(){const q=Y();wn(18);const Se=rc(9,tf);return wn(19),rn(g.createObjectBindingPattern(Se),q)}function B2(){const q=Y();wn(22);const Se=rc(10,kr);return wn(23),rn(g.createArrayBindingPattern(Se),q)}function ME(){return J()===18||J()===22||J()===80||mi()}function rv(q){return J()===22?B2():J()===18?xd():_e(q)}function tA(){return iv(!0)}function iv(q){const Se=Y(),Qe=Ne(),Tt=rv(m.Private_identifiers_are_not_allowed_in_variable_declarations);let Vt;q&&Tt.kind===79&&J()===53&&!t.hasPrecedingLineBreak()&&(Vt=lc());const An=zh(),Gr=D2(J())?void 0:jg(),Ei=je(Tt,Vt,An,Gr);return yn(rn(Ei,Se),Qe)}function bm(q){const Se=Y();let Qe=0;switch(J()){case 113:break;case 119:Qe|=1;break;case 85:Qe|=2;break;default:R.fail()}ut();let Tt;if(J()===162&&$r(jp))Tt=Du();else{const Vt=cn();Rn(q),Tt=rc(8,q?iv:tA),Rn(Vt)}return rn(Ue(Tt,Qe),Se)}function jp(){return pl()&&ut()===21}function Yg(q,Se,Qe){const Tt=bm(!1);nl();const Vt=ce(Qe,Tt);return yn(rn(Vt,q),Se)}function I0(q,Se,Qe){const Tt=de(),Vt=Jm(Qe);wn(98);const An=Qo(41),Gr=Vt&1024?mu():_e(),Ei=An?1:0,Ci=Vt&512?2:0,ki=sp();Vt&1&&Ir(!0);const Fa=Bp(Ei|Ci),ks=lp(58,!1),wo=os(Ei|Ci,m.or_expected);Ir(Tt);const as=g.createFunctionDeclaration(Qe,An,Gr,ki,Fa,ks,wo);return yn(rn(as,q),Se)}function Qh(){if(J()===135)return wn(135);if(J()===10&&$r(ut)===20)return ls(()=>{const q=Ia();return q.text==="constructor"?q:void 0})}function Em(q,Se,Qe){return ls(()=>{if(Qh()){const Tt=sp(),Vt=Bp(0),An=lp(58,!1),Gr=os(0,m.or_expected),Ei=g.createConstructorDeclaration(Qe,Vt,Gr);return Ei.typeParameters=Tt,Ei.type=An,yn(rn(Ei,q),Se)}})}function G2(q,Se,Qe,Tt,Vt,An,Gr,Ei){const Ci=Tt?1:0,ki=Dt(Qe,t4)?2:0,Fa=sp(),ks=Bp(Ci|ki),wo=lp(58,!1),as=os(Ci|ki,Ei),Ud=g.createMethodDeclaration(Qe,Tt,Vt,An,Fa,ks,wo,as);return Ud.exclamationToken=Gr,yn(rn(Ud,q),Se)}function Zl(q,Se,Qe,Tt,Vt){const An=!Vt&&!t.hasPrecedingLineBreak()?Qo(53):void 0,Gr=zh(),Ei=Hr(45056,jg);$l(Tt,Gr,Ei);const Ci=g.createPropertyDeclaration(Qe,Tt,Vt||An,Gr,Ei);return yn(rn(Ci,q),Se)}function Sf(q,Se,Qe){const Tt=Qo(41),Vt=fn(),An=Qo(57);return Tt||J()===20||J()===29?G2(q,Se,Qe,Tt,Vt,An,void 0,m.or_expected):Zl(q,Se,Qe,Vt,An)}function dh(q,Se,Qe,Tt,Vt){const An=fn(),Gr=sp(),Ei=Bp(0),Ci=lp(58,!1),ki=os(Vt),Fa=Tt===174?g.createGetAccessorDeclaration(Qe,An,Ei,Ci,ki):g.createSetAccessorDeclaration(Qe,An,Ei,ki);return Fa.typeParameters=Gr,s_(Fa)&&(Fa.type=Ci),yn(rn(Fa,q),Se)}function Gd(){let q;if(J()===59)return!0;for(;Ly(J());){if(q=J(),Qz(q))return!0;ut()}if(J()===41||(Z()&&(q=J(),ut()),J()===22))return!0;if(q!==void 0){if(!Dd(q)||q===151||q===137)return!0;switch(J()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return Rs()}}return!1}function PE(q,Se,Qe){ou(124);const Tt=av(),Vt=yn(rn(g.createClassStaticBlockDeclaration(Tt),q),Se);return Vt.modifiers=Qe,Vt}function av(){const q=jt(),Se=de();an(!1),Ir(!0);const Qe=ch(!1);return an(q),Ir(Se),Qe}function $g(){if(de()&&J()===133){const q=Y(),Se=kt(m.Expression_expected);ut();const Qe=jf(q,Se,!0);return ar(q,Qe)}return gm()}function nA(){const q=Y();if(!La(59))return;const Se=ie($g);return rn(g.createDecorator(Se),q)}function Hf(q,Se,Qe){const Tt=Y(),Vt=J();if(J()===85&&Se){if(!ls(cs))return}else{if(Qe&&J()===124&&$r(Vi))return;if(q&&J()===124)return;if(!_l())return}return rn(U(Vt),Tt)}function Os(q,Se,Qe){const Tt=Y();let Vt,An,Gr,Ei=!1,Ci=!1,ki=!1;if(q&&J()===59)for(;An=nA();)Vt=Pn(Vt,An);for(;Gr=Hf(Ei,Se,Qe);)Gr.kind===124&&(Ei=!0),Vt=Pn(Vt,Gr),Ci=!0;if(Ci&&q&&J()===59)for(;An=nA();)Vt=Pn(Vt,An),ki=!0;if(ki)for(;Gr=Hf(Ei,Se,Qe);)Gr.kind===124&&(Ei=!0),Vt=Pn(Vt,Gr);return Vt&&Ys(Vt,Tt)}function FE(){let q;if(J()===132){const Se=Y();ut();const Qe=rn(U(132),Se);q=Ys([Qe],Se)}return q}function BE(){const q=Y();if(J()===26)return ut(),rn(g.createSemicolonClassElement(),q);const Se=Ne(),Qe=Os(!0,!0,!0);if(J()===124&&$r(Vi))return PE(q,Se,Qe);if(Sa(137))return dh(q,Se,Qe,174,0);if(Sa(151))return dh(q,Se,Qe,175,0);if(J()===135||J()===10){const Tt=Em(q,Se,Qe);if(Tt)return Tt}if(D1())return A2(q,Se,Qe);if(ad(J())||J()===10||J()===8||J()===41||J()===22)if(Dt(Qe,OE)){for(const Vt of Qe)Vt.flags|=16777216;return Oe(16777216,()=>Sf(q,Se,Qe))}else return Sf(q,Se,Qe);if(Qe){const Tt=zl(79,!0,m.Declaration_expected);return Zl(q,Se,Qe,Tt,void 0)}return R.fail("Should not have attempted to parse class member declaration.")}function Qg(){const q=Y(),Se=Ne(),Qe=Os(!0);if(J()===84)return GE(q,Se,Qe,228);const Tt=zl(279,!0,m.Expression_expected);return zk(Tt,q),Tt.modifiers=Qe,Tt}function k0(){return GE(Y(),Ne(),void 0,228)}function U2(q,Se,Qe){return GE(q,Se,Qe,260)}function GE(q,Se,Qe,Tt){const Vt=de();wn(84);const An=UE(),Gr=sp();Dt(Qe,P5)&&Ir(!0);const Ei=jE();let Ci;wn(18)?(Ci=FL(),wn(19)):Ci=Du(),Ir(Vt);const ki=Tt===260?g.createClassDeclaration(Qe,An,Gr,Ei,Ci):g.createClassExpression(Qe,An,Gr,Ei,Ci);return yn(rn(ki,q),Se)}function UE(){return mi()&&!VE()?Zu(mi()):void 0}function VE(){return J()===117&&$r(Qd)}function jE(){if(Zh())return oe(22,WE)}function WE(){const q=Y(),Se=J();R.assert(Se===94||Se===117),ut();const Qe=rc(7,ov);return rn(g.createHeritageClause(Se,Qe),q)}function ov(){const q=Y(),Se=gm();if(Se.kind===230)return Se;const Qe=nf();return rn(g.createExpressionWithTypeArguments(Se,Qe),q)}function nf(){return J()===29?w_(20,xc,29,31):void 0}function Zh(){return J()===94||J()===117}function FL(){return oe(5,BE)}function Zg(q,Se,Qe){wn(118);const Tt=kt(),Vt=sp(),An=jE(),Gr=h0(),Ei=g.createInterfaceDeclaration(Qe,Tt,Vt,An,Gr);return yn(rn(Ei,q),Se)}function rA(q,Se,Qe){wn(154);const Tt=kt(),Vt=sp();wn(63);const An=J()===139&&ls(Md)||xc();nl();const Gr=g.createTypeAliasDeclaration(Qe,Tt,Vt,An);return yn(rn(Gr,q),Se)}function iA(){const q=Y(),Se=Ne(),Qe=fn(),Tt=gt(jg);return yn(rn(g.createEnumMember(Qe,Tt),q),Se)}function x(q,Se,Qe){wn(92);const Tt=kt();let Vt;wn(18)?(Vt=et(()=>rc(6,iA)),wn(19)):Vt=Du();const An=g.createEnumDeclaration(Qe,Tt,Vt);return yn(rn(An,q),Se)}function le(){const q=Y();let Se;return wn(18)?(Se=oe(1,Wf),wn(19)):Se=Du(),rn(g.createModuleBlock(Se),q)}function Re(q,Se,Qe,Tt){const Vt=Tt&16,An=kt(),Gr=La(24)?Re(Y(),!1,void 0,4|Vt):le(),Ei=g.createModuleDeclaration(Qe,An,Gr,Tt);return yn(rn(Ei,q),Se)}function on(q,Se,Qe){let Tt=0,Vt;J()===159?(Vt=kt(),Tt|=1024):(Vt=Ia(),Vt.text=wu(Vt.text));let An;J()===18?An=le():nl();const Gr=g.createModuleDeclaration(Qe,Vt,An,Tt);return yn(rn(Gr,q),Se)}function Cr(q,Se,Qe){let Tt=0;if(J()===159)return on(q,Se,Qe);if(La(143))Tt|=16;else if(wn(142),J()===10)return on(q,Se,Qe);return Re(q,Se,Qe,Tt)}function Ai(){return J()===147&&$r(di)}function di(){return ut()===20}function Vi(){return ut()===18}function mo(){return ut()===43}function su(q,Se,Qe){wn(128),wn(143);const Tt=kt();nl();const Vt=g.createNamespaceExportDeclaration(Tt);return Vt.modifiers=Qe,yn(rn(Vt,q),Se)}function rf(q,Se,Qe){wn(100);const Tt=t.getStartPos();let Vt;fa()&&(Vt=kt());let An=!1;if(J()!==158&&(Vt==null?void 0:Vt.escapedText)==="type"&&(fa()||af())&&(An=!0,Vt=fa()?kt():void 0),Vt&&!w0())return D0(q,Se,Qe,Vt,An);let Gr;(Vt||J()===41||J()===18)&&(Gr=lv(Vt,Tt,An),wn(158));const Ei=zf();let Ci;J()===130&&!t.hasPrecedingLineBreak()&&(Ci=sv()),nl();const ki=g.createImportDeclaration(Qe,Gr,Ei,Ci);return yn(rn(ki,q),Se)}function xf(){const q=Y(),Se=ad(J())?Ht():Mt(10);wn(58);const Qe=Uc(!0);return rn(g.createAssertEntry(Se,Qe),q)}function sv(q){const Se=Y();q||wn(130);const Qe=t.getTokenPos();if(wn(18)){const Tt=t.hasPrecedingLineBreak(),Vt=rc(24,xf,!0);if(!wn(19)){const An=rl(lt);An&&An.code===m._0_expected.code&&$o(An,LC(Je,Qe,1,m.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return rn(g.createAssertClause(Vt,Tt),Se)}else{const Tt=Ys([],Y(),void 0,!1);return rn(g.createAssertClause(Tt,!1),Se)}}function af(){return J()===41||J()===18}function w0(){return J()===27||J()===158}function D0(q,Se,Qe,Tt,Vt){wn(63);const An=O_();nl();const Gr=g.createImportEqualsDeclaration(Qe,Vt,Tt,An);return yn(rn(Gr,q),Se)}function lv(q,Se,Qe){let Tt;return(!q||La(27))&&(Tt=J()===41?fh():cv(272)),rn(g.createImportClause(Qe,q,Tt),Se)}function O_(){return Ai()?HE():Zo(!1)}function HE(){const q=Y();wn(147),wn(20);const Se=zf();return wn(21),rn(g.createExternalModuleReference(Se),q)}function zf(){if(J()===10){const q=Ia();return q.text=wu(q.text),q}else return pu()}function fh(){const q=Y();wn(41),wn(128);const Se=kt();return rn(g.createNamespaceImport(Se),q)}function cv(q){const Se=Y(),Qe=q===272?g.createNamedImports(w_(23,zE,18,19)):g.createNamedExports(w_(23,d_,18,19));return rn(Qe,Se)}function d_(){const q=Ne();return yn(R0(278),q)}function zE(){return R0(273)}function R0(q){const Se=Y();let Qe=Dd(J())&&!fa(),Tt=t.getTokenPos(),Vt=t.getTextPos(),An=!1,Gr,Ei=!0,Ci=Ht();if(Ci.escapedText==="type")if(J()===128){const ks=Ht();if(J()===128){const wo=Ht();ad(J())?(An=!0,Gr=ks,Ci=Fa(),Ei=!1):(Gr=Ci,Ci=wo,Ei=!1)}else ad(J())?(Gr=Ci,Ei=!1,Ci=Fa()):(An=!0,Ci=ks)}else ad(J())&&(An=!0,Ci=Fa());Ei&&J()===128&&(Gr=Ci,wn(128),Ci=Fa()),q===273&&Qe&&at(Tt,Vt,m.Identifier_expected);const ki=q===273?g.createImportSpecifier(An,Gr,Ci):g.createExportSpecifier(An,Gr,Ci);return rn(ki,Se);function Fa(){return Qe=Dd(J())&&!fa(),Tt=t.getTokenPos(),Vt=t.getTextPos(),Ht()}}function hc(q){return rn(g.createNamespaceExport(Ht()),q)}function e3(q,Se,Qe){const Tt=de();Ir(!0);let Vt,An,Gr;const Ei=La(154),Ci=Y();La(41)?(La(128)&&(Vt=hc(Ci)),wn(158),An=zf()):(Vt=cv(276),(J()===158||J()===10&&!t.hasPrecedingLineBreak())&&(wn(158),An=zf())),An&&J()===130&&!t.hasPrecedingLineBreak()&&(Gr=sv()),nl(),Ir(Tt);const ki=g.createExportDeclaration(Qe,Ei,Vt,An,Gr);return yn(rn(ki,q),Se)}function xs(q,Se,Qe){const Tt=de();Ir(!0);let Vt;La(63)?Vt=!0:wn(88);const An=Uc(!0);nl(),Ir(Tt);const Gr=g.createExportAssignment(Qe,Vt,An);return yn(rn(Gr,q),Se)}let is;(q=>{q[q.SourceElements=0]="SourceElements",q[q.BlockStatements=1]="BlockStatements",q[q.SwitchClauses=2]="SwitchClauses",q[q.SwitchClauseStatements=3]="SwitchClauseStatements",q[q.TypeMembers=4]="TypeMembers",q[q.ClassMembers=5]="ClassMembers",q[q.EnumMembers=6]="EnumMembers",q[q.HeritageClauseElement=7]="HeritageClauseElement",q[q.VariableDeclarations=8]="VariableDeclarations",q[q.ObjectBindingElements=9]="ObjectBindingElements",q[q.ArrayBindingElements=10]="ArrayBindingElements",q[q.ArgumentExpressions=11]="ArgumentExpressions",q[q.ObjectLiteralMembers=12]="ObjectLiteralMembers",q[q.JsxAttributes=13]="JsxAttributes",q[q.JsxChildren=14]="JsxChildren",q[q.ArrayLiteralMembers=15]="ArrayLiteralMembers",q[q.Parameters=16]="Parameters",q[q.JSDocParameters=17]="JSDocParameters",q[q.RestProperties=18]="RestProperties",q[q.TypeParameters=19]="TypeParameters",q[q.TypeArguments=20]="TypeArguments",q[q.TupleElementTypes=21]="TupleElementTypes",q[q.HeritageClauses=22]="HeritageClauses",q[q.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",q[q.AssertEntries=24]="AssertEntries",q[q.Count=25]="Count"})(is||(is={}));let aA;(q=>{q[q.False=0]="False",q[q.True=1]="True",q[q.Unknown=2]="Unknown"})(aA||(aA={}));let oA;(q=>{function Se(ki,Fa,ks){ta("file.js",ki,99,void 0,1),t.setText(ki,Fa,ks),zt=t.scan();const wo=Qe(),as=Oi("file.js",99,1,!1,[],U(1),0,co),Ud=WS(lt,as);return Ct&&(as.jsDocDiagnostics=WS(Ct,as)),Or(),wo?{jsDocTypeExpression:wo,diagnostics:Ud}:void 0}q.parseJSDocTypeExpressionForTests=Se;function Qe(ki){const Fa=Y(),ks=(ki?La:wn)(18),wo=Oe(8388608,cc);(!ki||ks)&&Wl(19);const as=g.createJSDocTypeExpression(wo);return lr(as),rn(as,Fa)}q.parseJSDocTypeExpression=Qe;function Tt(){const ki=Y(),Fa=La(18),ks=Y();let wo=Zo(!1);for(;J()===80;)go(),nn(),wo=rn(g.createJSDocMemberName(wo,kt()),ks);Fa&&Wl(19);const as=g.createJSDocNameReference(wo);return lr(as),rn(as,ki)}q.parseJSDocNameReference=Tt;function Vt(ki,Fa,ks){ta("",ki,99,void 0,1);const wo=Oe(8388608,()=>Ci(Fa,ks)),Ud=WS(lt,{languageVariant:0,text:ki});return Or(),wo?{jsDoc:wo,diagnostics:Ud}:void 0}q.parseIsolatedJSDocComment=Vt;function An(ki,Fa,ks){const wo=zt,as=lt.length,Ud=Zt,Wp=Oe(8388608,()=>Ci(Fa,ks));return jo(Wp,ki),jn&262144&&(Ct||(Ct=[]),Ct.push(...lt)),zt=wo,lt.length=as,Zt=Ud,Wp}q.parseJSDocComment=An;let Gr;(ki=>{ki[ki.BeginningOfLine=0]="BeginningOfLine",ki[ki.SawAsterisk=1]="SawAsterisk",ki[ki.SavingComments=2]="SavingComments",ki[ki.SavingBackticks=3]="SavingBackticks"})(Gr||(Gr={}));let Ei;(ki=>{ki[ki.Property=1]="Property",ki[ki.Parameter=2]="Parameter",ki[ki.CallbackParameter=4]="CallbackParameter"})(Ei||(Ei={}));function Ci(ki=0,Fa){const ks=Be,wo=Fa===void 0?ks.length:ki+Fa;if(Fa=wo-ki,R.assert(ki>=0),R.assert(ki<=wo),R.assert(wo<=ks.length),!TX(ks,ki))return;let as,Ud,Wp,Tm,ey,M_=[];const uv=[];return t.scanRange(ki+3,Fa-5,()=>{let Dn=1,Yr,jr=ki-(ks.lastIndexOf(`
`,ki)+1)+4;function si(Ao){Yr||(Yr=jr),M_.push(Ao),jr+=Ao.length}for(nn();V2(5););V2(4)&&(Dn=0,jr=0);e:for(;;){switch(J()){case 59:Dn===0||Dn===1?(qE(M_),ey||(ey=Y()),O0(GL(jr)),Dn=0,Yr=void 0):si(t.getTokenText());break;case 4:M_.push(t.getTokenText()),Dn=0,jr=0;break;case 41:const Ao=t.getTokenText();Dn===1||Dn===2?(Dn=2,si(Ao)):(Dn=1,jr+=Ao.length);break;case 5:const Bo=t.getTokenText();Dn===2?M_.push(Bo):Yr!==void 0&&jr+Bo.length>Yr&&M_.push(Bo.slice(Yr-jr)),jr+=Bo.length;break;case 1:break e;case 18:Dn=2;const Cf=t.getStartPos(),mp=t.getTextPos()-1,eg=I8(mp);if(eg){Tm||sA(M_),uv.push(rn(g.createJSDocText(M_.join("")),Tm!=null?Tm:ki,Cf)),uv.push(eg),M_=[],Tm=t.getTextPos();break}default:Dn=2,si(t.getTokenText());break}nn()}qE(M_),uv.length&&M_.length&&uv.push(rn(g.createJSDocText(M_.join("")),Tm!=null?Tm:ki,ey)),uv.length&&as&&R.assertIsDefined(ey,"having parsed tags implies that the end of the comment span should be set");const qi=as&&Ys(as,Ud,Wp);return rn(g.createJSDocComment(uv.length?Ys(uv,ki,ey):M_.length?M_.join(""):void 0,qi),ki,wo)});function sA(Dn){for(;Dn.length&&(Dn[0]===`
`||Dn[0]==="\r");)Dn.shift()}function qE(Dn){for(;Dn.length&&Dn[Dn.length-1].trim()==="";)Dn.pop()}function BL(){for(;;){if(nn(),J()===1)return!0;if(!(J()===5||J()===4))return!1}}function pp(){if(!((J()===5||J()===4)&&$r(BL)))for(;J()===5||J()===4;)nn()}function N0(){if((J()===5||J()===4)&&$r(BL))return"";let Dn=t.hasPrecedingLineBreak(),Yr=!1,jr="";for(;Dn&&J()===41||J()===5||J()===4;)jr+=t.getTokenText(),J()===4?(Dn=!0,Yr=!0,jr=""):J()===41&&(Dn=!1),nn();return Yr?jr:""}function GL(Dn){R.assert(J()===59);const Yr=t.getTokenPos();nn();const jr=F0(void 0),si=N0();let qi;switch(jr.escapedText){case"author":qi=Xt(Yr,jr,Dn,si);break;case"implements":qi=ra(Yr,jr,Dn,si);break;case"augments":case"extends":qi=Za(Yr,jr,Dn,si);break;case"class":case"constructor":qi=ry(Yr,g.createJSDocClassTag,jr,Dn,si);break;case"public":qi=ry(Yr,g.createJSDocPublicTag,jr,Dn,si);break;case"private":qi=ry(Yr,g.createJSDocPrivateTag,jr,Dn,si);break;case"protected":qi=ry(Yr,g.createJSDocProtectedTag,jr,Dn,si);break;case"readonly":qi=ry(Yr,g.createJSDocReadonlyTag,jr,Dn,si);break;case"override":qi=ry(Yr,g.createJSDocOverrideTag,jr,Dn,si);break;case"deprecated":Wt=!0,qi=ry(Yr,g.createJSDocDeprecatedTag,jr,Dn,si);break;case"this":qi=zie(Yr,jr,Dn,si);break;case"enum":qi=qie(Yr,jr,Dn,si);break;case"arg":case"argument":case"param":return D8(Yr,jr,2,Dn);case"return":case"returns":qi=w(Yr,jr,Dn,si);break;case"template":qi=_v(Yr,jr,Dn,si);break;case"type":qi=G(Yr,jr,Dn,si);break;case"typedef":qi=UL(Yr,jr,Dn,si);break;case"callback":qi=or(Yr,jr,Dn,si);break;case"overload":qi=M0(Yr,jr,Dn,si);break;case"satisfies":qi=Af(Yr,jr,Dn,si);break;case"see":qi=se(Yr,jr,Dn,si);break;case"exception":case"throws":qi=Ke(Yr,jr,Dn,si);break;default:qi=Sl(Yr,jr,Dn,si);break}return qi}function qf(Dn,Yr,jr,si){return si||(jr+=Yr-Dn),lA(jr,si.slice(jr))}function lA(Dn,Yr){const jr=Y();let si=[];const qi=[];let Ao,Bo=0,Cf=!0,mp;function eg(tg){mp||(mp=Dn),si.push(tg),Dn+=tg.length}Yr!==void 0&&(Yr!==""&&eg(Yr),Bo=1);let _h=J();e:for(;;){switch(_h){case 4:Bo=0,si.push(t.getTokenText()),Dn=0;break;case 59:if(Bo===3||Bo===2&&(!Cf||$r(dv))){si.push(t.getTokenText());break}t.setTextPos(t.getTextPos()-1);case 1:break e;case 5:if(Bo===2||Bo===3)eg(t.getTokenText());else{const $1=t.getTokenText();mp!==void 0&&Dn+$1.length>mp&&si.push($1.slice(mp-Dn)),Dn+=$1.length}break;case 18:Bo=2;const tg=t.getStartPos(),WL=t.getTextPos()-1,ed=I8(WL);ed?(qi.push(rn(g.createJSDocText(si.join("")),Ao!=null?Ao:jr,tg)),qi.push(ed),si=[],Ao=t.getTextPos()):eg(t.getTokenText());break;case 61:Bo===3?Bo=2:Bo=3,eg(t.getTokenText());break;case 41:if(Bo===0){Bo=1,Dn+=1;break}default:Bo!==3&&(Bo=2),eg(t.getTokenText());break}Cf=J()===5,_h=nn()}if(sA(si),qE(si),qi.length)return si.length&&qi.push(rn(g.createJSDocText(si.join("")),Ao!=null?Ao:jr)),Ys(qi,jr,t.getTextPos());if(si.length)return si.join("")}function dv(){const Dn=nn();return Dn===5||Dn===4}function I8(Dn){const Yr=ls(k8);if(!Yr)return;nn(),pp();const jr=Y();let si=ad(J())?Zo(!0):void 0;if(si)for(;J()===80;)go(),nn(),si=rn(g.createJSDocMemberName(si,kt()),jr);const qi=[];for(;J()!==19&&J()!==4&&J()!==1;)qi.push(t.getTokenText()),nn();const Ao=Yr==="link"?g.createJSDocLink:Yr==="linkcode"?g.createJSDocLinkCode:g.createJSDocLinkPlain;return rn(Ao(si,qi.join("")),Dn,t.getTextPos())}function k8(){if(N0(),J()===18&&nn()===59&&ad(nn())){const Dn=t.getTokenValue();if(Do(Dn))return Dn}}function Do(Dn){return Dn==="link"||Dn==="linkcode"||Dn==="linkplain"}function Sl(Dn,Yr,jr,si){return rn(g.createJSDocUnknownTag(Yr,qf(Dn,Y(),jr,si)),Dn)}function O0(Dn){Dn&&(as?as.push(Dn):(as=[Dn],Ud=Dn.pos),Wp=Dn.end)}function fv(){return N0(),J()===18?Qe():void 0}function w8(){const Dn=V2(22);Dn&&pp();const Yr=V2(61),jr=n3();return Yr&&$d(61),Dn&&(pp(),Qo(63)&&pu(),wn(23)),{name:jr,isBracketed:Dn}}function Vd(Dn){switch(Dn.kind){case 149:return!0;case 185:return Vd(Dn.elementType);default:return ep(Dn)&&We(Dn.typeName)&&Dn.typeName.escapedText==="Object"&&!Dn.typeArguments}}function D8(Dn,Yr,jr,si){let qi=fv(),Ao=!qi;N0();const{name:Bo,isBracketed:Cf}=w8(),mp=N0();Ao&&!$r(k8)&&(qi=fv());const eg=qf(Dn,Y(),si,mp),_h=jr!==4&&E(qi,Bo,jr,si);_h&&(qi=_h,Ao=!0);const tg=jr===1?g.createJSDocPropertyTag(Yr,Bo,Cf,qi,Ao,eg):g.createJSDocParameterTag(Yr,Bo,Cf,qi,Ao,eg);return rn(tg,Dn)}function E(Dn,Yr,jr,si){if(Dn&&Vd(Dn.type)){const qi=Y();let Ao,Bo;for(;Ao=ls(()=>JE(jr,si,Yr));)(Ao.kind===344||Ao.kind===351)&&(Bo=Pn(Bo,Ao));if(Bo){const Cf=rn(g.createJSDocTypeLiteral(Bo,Dn.type.kind===185),qi);return rn(g.createJSDocTypeExpression(Cf),qi)}}}function w(Dn,Yr,jr,si){Dt(as,q5)&&at(Yr.pos,t.getTokenPos(),m._0_tag_already_specified,Yr.escapedText);const qi=fv();return rn(g.createJSDocReturnTag(Yr,qi,qf(Dn,Y(),jr,si)),Dn)}function G(Dn,Yr,jr,si){Dt(as,h4)&&at(Yr.pos,t.getTokenPos(),m._0_tag_already_specified,Yr.escapedText);const qi=Qe(!0),Ao=jr!==void 0&&si!==void 0?qf(Dn,Y(),jr,si):void 0;return rn(g.createJSDocTypeTag(Yr,qi,Ao),Dn)}function se(Dn,Yr,jr,si){const Ao=J()===22||$r(()=>nn()===59&&ad(nn())&&Do(t.getTokenValue()))?void 0:Tt(),Bo=jr!==void 0&&si!==void 0?qf(Dn,Y(),jr,si):void 0;return rn(g.createJSDocSeeTag(Yr,Ao,Bo),Dn)}function Ke(Dn,Yr,jr,si){const qi=fv(),Ao=qf(Dn,Y(),jr,si);return rn(g.createJSDocThrowsTag(Yr,qi,Ao),Dn)}function Xt(Dn,Yr,jr,si){const qi=Y(),Ao=Ur();let Bo=t.getStartPos();const Cf=qf(Dn,Bo,jr,si);Cf||(Bo=t.getStartPos());const mp=typeof Cf!="string"?Ys(ba([rn(Ao,qi,Bo)],Cf),qi):Ao.text+Cf;return rn(g.createJSDocAuthorTag(Yr,mp),Dn)}function Ur(){const Dn=[];let Yr=!1,jr=t.getToken();for(;jr!==1&&jr!==4;){if(jr===29)Yr=!0;else{if(jr===59&&!Yr)break;if(jr===31&&Yr){Dn.push(t.getTokenText()),t.setTextPos(t.getTokenPos()+1);break}}Dn.push(t.getTokenText()),jr=nn()}return g.createJSDocText(Dn.join(""))}function ra(Dn,Yr,jr,si){const qi=ty();return rn(g.createJSDocImplementsTag(Yr,qi,qf(Dn,Y(),jr,si)),Dn)}function Za(Dn,Yr,jr,si){const qi=ty();return rn(g.createJSDocAugmentsTag(Yr,qi,qf(Dn,Y(),jr,si)),Dn)}function Af(Dn,Yr,jr,si){const qi=Qe(!1),Ao=jr!==void 0&&si!==void 0?qf(Dn,Y(),jr,si):void 0;return rn(g.createJSDocSatisfiesTag(Yr,qi,Ao),Dn)}function ty(){const Dn=La(18),Yr=Y(),jr=ny(),si=nf(),qi=g.createExpressionWithTypeArguments(jr,si),Ao=rn(qi,Yr);return Dn&&wn(19),Ao}function ny(){const Dn=Y();let Yr=F0();for(;La(24);){const jr=F0();Yr=rn(ee(Yr,jr),Dn)}return Yr}function ry(Dn,Yr,jr,si,qi){return rn(Yr(jr,qf(Dn,Y(),si,qi)),Dn)}function zie(Dn,Yr,jr,si){const qi=Qe(!0);return pp(),rn(g.createJSDocThisTag(Yr,qi,qf(Dn,Y(),jr,si)),Dn)}function qie(Dn,Yr,jr,si){const qi=Qe(!0);return pp(),rn(g.createJSDocEnumTag(Yr,qi,qf(Dn,Y(),jr,si)),Dn)}function UL(Dn,Yr,jr,si){var qi;let Ao=fv();N0();const Bo=R8();pp();let Cf=lA(jr),mp;if(!Ao||Vd(Ao.type)){let _h,tg,WL,ed=!1;for(;_h=ls(()=>cA(jr));)if(ed=!0,_h.kind===347)if(tg){const $1=mt(m.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);$1&&$o($1,LC(Je,0,0,m.The_tag_was_first_specified_here));break}else tg=_h;else WL=Pn(WL,_h);if(ed){const $1=Ao&&Ao.type.kind===185,N8=g.createJSDocTypeLiteral(WL,$1);Ao=tg&&tg.typeExpression&&!Vd(tg.typeExpression.type)?tg.typeExpression:rn(N8,Dn),mp=Ao.end}}mp=mp||Cf!==void 0?Y():((qi=Bo!=null?Bo:Ao)!=null?qi:Yr).end,Cf||(Cf=qf(Dn,mp,jr,si));const eg=g.createJSDocTypedefTag(Yr,Ao,Bo,Cf);return rn(eg,Dn,mp)}function R8(Dn){const Yr=t.getTokenPos();if(!ad(J()))return;const jr=F0();if(La(24)){const si=R8(!0),qi=g.createModuleDeclaration(void 0,jr,si,Dn?4:void 0);return rn(qi,Yr)}return Dn&&(jr.flags|=2048),jr}function Jie(Dn){const Yr=Y();let jr,si;for(;jr=ls(()=>JE(4,Dn));)si=Pn(si,jr);return Ys(si||[],Yr)}function VL(Dn,Yr){const jr=Jie(Yr),si=ls(()=>{if(V2(59)){const qi=GL(Yr);if(qi&&qi.kind===345)return qi}});return rn(g.createJSDocSignature(void 0,jr,si),Dn)}function or(Dn,Yr,jr,si){const qi=R8();pp();let Ao=lA(jr);const Bo=VL(Dn,jr);Ao||(Ao=qf(Dn,Y(),jr,si));const Cf=Ao!==void 0?Y():Bo.end;return rn(g.createJSDocCallbackTag(Yr,Bo,qi,Ao),Dn,Cf)}function M0(Dn,Yr,jr,si){pp();let qi=lA(jr);const Ao=VL(Dn,jr);qi||(qi=qf(Dn,Y(),jr,si));const Bo=qi!==void 0?Y():Ao.end;return rn(g.createJSDocOverloadTag(Yr,Ao,qi),Dn,Bo)}function P0(Dn,Yr){for(;!We(Dn)||!We(Yr);)if(!We(Dn)&&!We(Yr)&&Dn.right.escapedText===Yr.right.escapedText)Dn=Dn.left,Yr=Yr.left;else return!1;return Dn.escapedText===Yr.escapedText}function cA(Dn){return JE(1,Dn)}function JE(Dn,Yr,jr){let si=!0,qi=!1;for(;;)switch(nn()){case 59:if(si){const Ao=t3(Dn,Yr);return Ao&&(Ao.kind===344||Ao.kind===351)&&Dn!==4&&jr&&(We(Ao.name)||!P0(jr,Ao.name.left))?!1:Ao}qi=!1;break;case 4:si=!0,qi=!1;break;case 41:qi&&(si=!1),qi=!0;break;case 79:si=!1;break;case 1:return!1}}function t3(Dn,Yr){R.assert(J()===59);const jr=t.getStartPos();nn();const si=F0();pp();let qi;switch(si.escapedText){case"type":return Dn===1&&G(jr,si);case"prop":case"property":qi=1;break;case"arg":case"argument":case"param":qi=6;break;default:return!1}return Dn&qi?D8(jr,si,Dn,Yr):!1}function jL(){const Dn=Y(),Yr=V2(22);Yr&&pp();const jr=F0(m.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let si;if(Yr&&(pp(),wn(63),si=Oe(8388608,cc),wn(23)),!kl(jr))return rn(g.createTypeParameterDeclaration(void 0,jr,void 0,si),Dn)}function yV(){const Dn=Y(),Yr=[];do{pp();const jr=jL();jr!==void 0&&Yr.push(jr),N0()}while(V2(27));return Ys(Yr,Dn)}function _v(Dn,Yr,jr,si){const qi=J()===18?Qe():void 0,Ao=yV();return rn(g.createJSDocTemplateTag(Yr,qi,Ao,qf(Dn,Y(),jr,si)),Dn)}function V2(Dn){return J()===Dn?(nn(),!0):!1}function n3(){let Dn=F0();for(La(22)&&wn(23);La(24);){const Yr=F0();La(22)&&wn(23),Dn=D_(Dn,Yr)}return Dn}function F0(Dn){if(!ad(J()))return zl(79,!Dn,Dn||m.Identifier_expected);sn++;const Yr=t.getTokenPos(),jr=t.getTextPos(),si=J(),qi=wu(t.getTokenValue()),Ao=rn(M(qi,si),Yr,jr);return nn(),Ao}}})(oA=e.JSDocParser||(e.JSDocParser={}))})(n0||(n0={})),(e=>{function t(L,I,M,k){if(k=k||R.shouldAssert(2),g(L,I,M,k),ofe(M))return L;if(L.statements.length===0)return n0.parseSourceFile(L.fileName,I,L.languageVersion,void 0,!0,L.scriptKind,L.setExternalModuleIndicator);const U=L;R.assert(!U.hasBeenIncrementallyParsed),U.hasBeenIncrementallyParsed=!0,n0.fixupParentReferences(U);const j=L.text,H=T(L),ee=d(L,M);g(L,I,ee,k),R.assert(ee.span.start<=M.span.start),R.assert(cu(ee.span)===cu(M.span)),R.assert(cu(YI(ee))===cu(YI(M)));const X=YI(ee).length-ee.span.length;_(U,ee.span.start,cu(ee.span),cu(YI(ee)),X,j,I,k);const ne=n0.parseSourceFile(L.fileName,I,L.languageVersion,H,!0,L.scriptKind,L.setExternalModuleIndicator);return ne.commentDirectives=r(L.commentDirectives,ne.commentDirectives,ee.span.start,cu(ee.span),X,j,I,k),ne.impliedNodeFormat=L.impliedNodeFormat,ne}e.updateSourceFile=t;function r(L,I,M,k,U,j,H,ee){if(!L)return I;let X,ne=!1;for(const ue of L){const{range:re,type:be}=ue;if(re.end<M)X=Pn(X,ue);else if(re.pos>k){P();const ae={range:{pos:re.pos+U,end:re.end+U},type:be};X=Pn(X,ae),ee&&R.assert(j.substring(re.pos,re.end)===H.substring(ae.range.pos,ae.range.end))}}return P(),X;function P(){ne||(ne=!0,X?I&&X.push(...I):X=I)}}function i(L,I,M,k,U,j){I?ee(L):H(L);return;function H(X){let ne="";if(j&&o(X)&&(ne=k.substring(X.pos,X.end)),X._children&&(X._children=void 0),Xm(X,X.pos+M,X.end+M),j&&o(X)&&R.assert(ne===U.substring(X.pos,X.end)),Pa(X,H,ee),Df(X))for(const P of X.jsDoc)H(P);c(X,j)}function ee(X){X._children=void 0,Xm(X,X.pos+M,X.end+M);for(const ne of X)H(ne)}}function o(L){switch(L.kind){case 10:case 8:case 79:return!0}return!1}function s(L,I,M,k,U){R.assert(L.end>=I,"Adjusting an element that was entirely before the change range"),R.assert(L.pos<=M,"Adjusting an element that was entirely after the change range"),R.assert(L.pos<=L.end);const j=Math.min(L.pos,k),H=L.end>=M?L.end+U:Math.min(L.end,k);R.assert(j<=H),L.parent&&(R.assertGreaterThanOrEqual(j,L.parent.pos),R.assertLessThanOrEqual(H,L.parent.end)),Xm(L,j,H)}function c(L,I){if(I){let M=L.pos;const k=U=>{R.assert(U.pos>=M),M=U.end};if(Df(L))for(const U of L.jsDoc)k(U);Pa(L,k),R.assert(M<=L.end)}}function _(L,I,M,k,U,j,H,ee){X(L);return;function X(P){if(R.assert(P.pos<=P.end),P.pos>M){i(P,!1,U,j,H,ee);return}const ue=P.end;if(ue>=I){if(P.intersectsChange=!0,P._children=void 0,s(P,I,M,k,U),Pa(P,X,ne),Df(P))for(const re of P.jsDoc)X(re);c(P,ee);return}R.assert(ue<I)}function ne(P){if(R.assert(P.pos<=P.end),P.pos>M){i(P,!0,U,j,H,ee);return}const ue=P.end;if(ue>=I){P.intersectsChange=!0,P._children=void 0,s(P,I,M,k,U);for(const re of P)X(re);return}R.assert(ue<I)}}function d(L,I){let k=I.span.start;for(let H=0;k>0&&H<=1;H++){const ee=v(L,k);R.assert(ee.pos<=k);const X=ee.pos;k=Math.max(0,X-1)}const U=Ec(k,cu(I.span)),j=I.newLength+(I.span.start-k);return wD(U,j)}function v(L,I){let M=L,k;if(Pa(L,j),k){const H=U(k);H.pos>M.pos&&(M=H)}return M;function U(H){for(;;){const ee=RJ(H);if(ee)H=ee;else return H}}function j(H){if(!kl(H))if(H.pos<=I){if(H.pos>=M.pos&&(M=H),I<H.end)return Pa(H,j),!0;R.assert(H.end<=I),k=H}else return R.assert(H.pos>I),!0}}function g(L,I,M,k){const U=L.text;if(M&&(R.assert(U.length-M.span.length+M.newLength===I.length),k||R.shouldAssert(3))){const j=U.substr(0,M.span.start),H=I.substr(0,M.span.start);R.assert(j===H);const ee=U.substring(cu(M.span),U.length),X=I.substring(cu(YI(M)),I.length);R.assert(ee===X)}}function T(L){let I=L.statements,M=0;R.assert(M<I.length);let k=I[M],U=-1;return{currentNode(H){return H!==U&&(k&&k.end===H&&M<I.length-1&&(M++,k=I[M]),(!k||k.pos!==H)&&j(H)),U=H,R.assert(!k||k.pos===H),k}};function j(H){I=void 0,M=-1,k=void 0,Pa(L,ee,X);return;function ee(ne){return H>=ne.pos&&H<ne.end?(Pa(ne,ee,X),!0):!1}function X(ne){if(H>=ne.pos&&H<ne.end)for(let P=0;P<ne.length;P++){const ue=ne[P];if(ue){if(ue.pos===H)return I=ne,M=P,k=ue,!0;if(ue.pos<H&&H<ue.end)return Pa(ue,ee,X),!0}}return!1}}}e.createSyntaxCursor=T;let C;(L=>{L[L.Value=-1]="Value"})(C||(C={}))})(i9||(i9={})),a9=new Map,pge=/^\/\/\/\s*<(\S+)\s.*?\/>/im,mge=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im}});function o9(e){const t=new Map,r=new Map;return Ie(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function rL(){return zge||(zge=o9(kg))}function IX(e){return hge(e,Gs)}function hge(e,t){const r=Oo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(m.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function s9(e,t,r){return Gge(e,Lb(t||""),r)}function gge(e,t="",r){if(t=Lb(t),xa(t,"-"))return;if(e.type==="listOrElement"&&!bu(t,","))return e2(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return ua(i,o=>e2(e.element,parseInt(o),r));case"string":return ua(i,o=>e2(e.element,o||"",r));case"boolean":case"object":return R.fail(`List of ${e.element.type} is not yet supported.`);default:return ua(i,o=>s9(e.element,o,r))}}function yge(e){return e.name}function kX(e,t,r,i){var o;if((o=t.alternateMode)!=null&&o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return r(t.alternateMode.diagnostic,e);const s=FI(e,t.optionDeclarations,yge);return s?r(t.unknownDidYouMeanDiagnostic,i||e,s.name):r(t.unknownOptionDiagnostic,i||e)}function wX(e,t,r){const i={};let o;const s=[],c=[];return _(t),{options:i,watchOptions:o,fileNames:s,errors:c};function _(v){let g=0;for(;g<v.length;){const T=v[g];if(g++,T.charCodeAt(0)===64)d(T.slice(1));else if(T.charCodeAt(0)===45){const C=T.slice(T.charCodeAt(1)===45?2:1),L=RX(e.getOptionsNameMap,C,!0);if(L)g=vge(v,g,e,L,i,c);else{const I=RX(eN.getOptionsNameMap,C,!0);I?g=vge(v,g,eN,I,o||(o={}),c):c.push(kX(C,e,Gs,T))}}else s.push(T)}}function d(v){const g=V6(v,r||(L=>nu.readFile(L)));if(!za(g)){c.push(g);return}const T=[];let C=0;for(;;){for(;C<g.length&&g.charCodeAt(C)<=32;)C++;if(C>=g.length)break;const L=C;if(g.charCodeAt(L)===34){for(C++;C<g.length&&g.charCodeAt(C)!==34;)C++;C<g.length?(T.push(g.substring(L+1,C)),C++):c.push(Gs(m.Unterminated_quoted_string_in_response_file_0,v))}else{for(;g.charCodeAt(C)>32;)C++;T.push(g.substring(L,C))}}_(T)}}function vge(e,t,r,i,o,s){if(i.isTSConfigOnly){const c=e[t];c==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?c==="false"?(o[i.name]=e2(i,!1,s),t++):(c==="true"&&t++,s.push(Gs(m.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Gs(m.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),c&&!xa(c,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(Gs(r.optionTypeMismatchDiagnostic,i.name,v4(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=e2(i,parseInt(e[t]),s),t++;break;case"boolean":const c=e[t];o[i.name]=e2(i,c!=="false",s),(c==="false"||c==="true")&&t++;break;case"string":o[i.name]=e2(i,e[t]||"",s),t++;break;case"list":const _=gge(i,e[t],s);o[i.name]=_||[],_&&t++;break;case"listOrElement":R.fail("listOrElement not supported here");break;default:o[i.name]=s9(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function g5e(e,t){return wX(Z6,e,t)}function DX(e,t){return RX(rL,e,t)}function RX(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 bge(){return Jge||(Jge=o9(h9))}function y5e(e){const{options:t,watchOptions:r,fileNames:i,errors:o}=wX(Xge,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Gs(m.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Gs(m.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Gs(m.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Gs(m.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function v5e(e,...t){return Gs.apply(void 0,arguments).messageText}function G6(e,t,r,i,o,s){const c=V6(e,v=>r.readFile(v));if(!za(c)){r.onUnRecoverableConfigFileDiagnostic(c);return}const _=B6(e,c),d=r.getCurrentDirectory();return _.path=Js(e,d,lu(r.useCaseSensitiveFileNames)),_.resolvedPath=_.path,_.originalFileName=_.fileName,W6(_,r,Ma(vi(e),d),t,Ma(e,d),void 0,s,i,o)}function U6(e,t){const r=V6(e,t);return za(r)?NX(e,r):{config:{},error:r}}function NX(e,t){const r=B6(e,t);return{config:Cge(r,r.parseDiagnostics,!1,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function Ege(e,t){const r=V6(e,t);return za(r)?B6(e,r):{fileName:e,parseDiagnostics:[r]}}function V6(e,t){let r;try{r=t(e)}catch(i){return Gs(m.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Gs(m.Cannot_read_file_0,e):r}function l9(e){return Tb(e,yge)}function Tge(){return Yge||(Yge=o9(Y6))}function Sge(){return $ge||($ge=l9(kg))}function xge(){return Qge||(Qge=l9(Y6))}function Age(){return Zge||(Zge=l9(g9))}function b5e(){return nY===void 0&&(nY={name:void 0,type:"object",elementOptions:l9([{name:"compilerOptions",type:"object",elementOptions:Sge(),extraKeyDiagnostics:Z6},{name:"watchOptions",type:"object",elementOptions:xge(),extraKeyDiagnostics:eN},{name:"typeAcquisition",type:"object",elementOptions:Age(),extraKeyDiagnostics:tY},tN,{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},J6])}),nY}function Cge(e,t,r,i){var o;const s=(o=e.statements[0])==null?void 0:o.expression,c=r?b5e():void 0;if(s&&s.kind!==207){if(t.push(hd(e,s,m.The_root_value_of_a_0_file_must_be_an_object,Eu(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Ju(s)){const _=$t(s.elements,Is);if(_)return j6(e,_,t,!0,c,i)}return{}}return j6(e,s,t,!0,c,i)}function Lge(e,t){var r;return j6(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0,void 0)}function j6(e,t,r,i,o,s){if(!t)return i?{}:void 0;return v(t,o);function c(T){return o&&o.elementOptions===T}function _(T,C,L,I){const M=i?{}:void 0;for(const k of T.properties){if(k.kind!==299){r.push(hd(e,k,m.Property_assignment_expected));continue}k.questionToken&&r.push(hd(e,k.questionToken,m.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),g(k.name)||r.push(hd(e,k.name,m.String_literal_with_double_quotes_expected));const U=KD(k.name)?void 0:rC(k.name),j=U&&ia(U),H=j&&C?C.get(j):void 0;j&&L&&!H&&(C?r.push(kX(j,L,(X,ne,P)=>hd(e,k.name,X,ne,P))):r.push(hd(e,k.name,L.unknownOptionDiagnostic,j)));const ee=v(k.initializer,H);if(typeof j!="undefined"&&(i&&(M[j]=ee),s&&(I||c(C)))){const X=c9(H,ee);I?X&&s.onSetValidOptionKeyValueInParent(I,H,ee):c(C)&&(X?s.onSetValidOptionKeyValueInRoot(j,k.name,ee,k.initializer):H||s.onSetUnknownOptionKeyValueInRoot(j,k.name,ee,k.initializer))}}return M}function d(T,C){if(!i){T.forEach(L=>v(L,C));return}return ur(T.map(L=>v(L,C)),L=>L!==void 0)}function v(T,C){let L;switch(T.kind){case 110:return M(C&&C.type!=="boolean"&&(C.type!=="listOrElement"||C.element.type!=="boolean")),I(!0);case 95:return M(C&&C.type!=="boolean"&&(C.type!=="listOrElement"||C.element.type!=="boolean")),I(!1);case 104:return M(C&&C.name==="extends"),I(null);case 10:g(T)||r.push(hd(e,T,m.String_literal_with_double_quotes_expected)),M(C&&za(C.type)&&C.type!=="string"&&(C.type!=="listOrElement"||za(C.element.type)&&C.element.type!=="string"));const k=T.text;if(C&&R.assert(C.type!=="listOrElement"||C.element.type==="string","Only string or array of string is handled for now"),C&&!za(C.type)){const j=C;j.type.has(k.toLowerCase())||(r.push(hge(j,(H,ee,X)=>hd(e,T,H,ee,X))),L=!0)}return I(k);case 8:return M(C&&C.type!=="number"&&(C.type!=="listOrElement"||C.element.type!=="number")),I(Number(T.text));case 221:if(T.operator!==40||T.operand.kind!==8)break;return M(C&&C.type!=="number"&&(C.type!=="listOrElement"||C.element.type!=="number")),I(-Number(T.operand.text));case 207:M(C&&C.type!=="object"&&(C.type!=="listOrElement"||C.element.type!=="object"));const U=T;if(C){const{elementOptions:j,extraKeyDiagnostics:H,name:ee}=C;return I(_(U,j,H,ee))}else return I(_(U,void 0,void 0,void 0));case 206:return M(C&&C.type!=="list"&&C.type!=="listOrElement"),I(d(T.elements,C&&C.element))}C?M(!0):r.push(hd(e,T,m.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function I(k){var U;if(!L){const j=(U=C==null?void 0:C.extraValidation)==null?void 0:U.call(C,k);if(j){r.push(hd(e,T,...j));return}}return k}function M(k){k&&(r.push(hd(e,T,m.Compiler_option_0_requires_a_value_of_type_1,C.name,v4(C))),L=!0)}}function g(T){return Wo(T)&&mP(T,e)}}function v4(e){return e.type==="listOrElement"?`${v4(e.element)} or Array`:e.type==="list"?"Array":za(e.type)?e.type:"string"}function c9(e,t){if(e){if(iL(t))return!0;if(e.type==="list")return ja(t);if(e.type==="listOrElement")return ja(t)||c9(e.element,t);const r=za(e.type)?e.type:"string";return typeof t===r}return!1}function E5e(e,t,r){var i,o,s;const c=lu(r.useCaseSensitiveFileNames),_=Pt(ur(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?S5e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):xb),T=>bD(Ma(t,r.getCurrentDirectory()),Ma(T,r.getCurrentDirectory()),c)),d=PX(e.options,{configFilePath:Ma(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),v=e.watchOptions&&x5e(e.watchOptions);return so(Li({compilerOptions:so(Li({},OX(d)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:v&&OX(v),references:Pt(e.projectReferences,T=>so(Li({},T),{path:T.originalPath?T.originalPath:"",originalPath:void 0})),files:ge(_)?_:void 0},(s=e.options.configFile)!=null&&s.configFileSpecs?{include:T5e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:e.compileOnSave?!0:void 0})}function OX(e){return Li({},Oo(e.entries()).reduce((t,r)=>so(Li({},t),{[r[0]]:r[1]}),{}))}function T5e(e){if(ge(e)){if(ge(e)!==1)return e;if(e[0]!==v9)return e}}function S5e(e,t,r,i){if(!t)return xb;const o=Vk(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&Xv(o.excludePattern,i.useCaseSensitiveFileNames),c=o.includeFilePattern&&Xv(o.includeFilePattern,i.useCaseSensitiveFileNames);return c?s?_=>!(c.test(_)&&!s.test(_)):_=>!c.test(_):s?_=>s.test(_):xb}function Ige(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return Ige(e.element);default:return e.type}}function MX(e,t){return ff(t,(r,i)=>{if(r===e)return i})}function PX(e,t){return kge(e,rL(),t)}function x5e(e){return kge(e,Tge())}function kge(e,{optionsNameMap:t},r){const i=new Map,o=r&&lu(r.useCaseSensitiveFileNames);for(const s in e)if(Fs(e,s)){if(t.has(s)&&(t.get(s).category===m.Command_line_Options||t.get(s).category===m.Output_Formatting))continue;const c=e[s],_=t.get(s.toLowerCase());if(_){R.assert(_.type!=="listOrElement");const d=Ige(_);d?_.type==="list"?i.set(s,c.map(v=>MX(v,d))):i.set(s,MX(c,d)):r&&_.isFilePath?i.set(s,bD(r.configFilePath,Ma(c,vi(r.configFilePath)),o)):i.set(s,c)}}return i}function A5e(e,t){const r=wge(e);return o();function i(s){return Array(s+1).join(" ")}function o(){const s=[],c=i(2);return _9.forEach(_=>{if(!r.has(_.name))return;const d=r.get(_.name),v=zX(_);d!==v?s.push(`${c}${_.name}: ${d}`):Fs(y9,_.name)&&s.push(`${c}${_.name}: ${v}`)}),s.join(t)+t}}function wge(e){const t=G7(e,y9);return PX(t)}function C5e(e,t,r){const i=wge(e);return c();function o(_){return Array(_+1).join(" ")}function s({category:_,name:d,isCommandLineOnly:v}){const g=[m.Command_line_Options,m.Editor_Support,m.Compiler_Diagnostics,m.Backwards_Compatibility,m.Watch_and_Build_Modes,m.Output_Formatting];return!v&&_!==void 0&&(!g.includes(_)||i.has(d))}function c(){const _=new Map;_.set(m.Projects,[]),_.set(m.Language_and_Environment,[]),_.set(m.Modules,[]),_.set(m.JavaScript_Support,[]),_.set(m.Emit,[]),_.set(m.Interop_Constraints,[]),_.set(m.Type_Checking,[]),_.set(m.Completeness,[]);for(const L of kg)if(s(L)){let I=_.get(L.category);I||_.set(L.category,I=[]),I.push(L)}let d=0,v=0;const g=[];_.forEach((L,I)=>{g.length!==0&&g.push({value:""}),g.push({value:`/* ${Po(I)} */`});for(const M of L){let k;i.has(M.name)?k=`"${M.name}": ${JSON.stringify(i.get(M.name))}${(v+=1)===i.size?"":","}`:k=`// "${M.name}": ${JSON.stringify(zX(M))},`,g.push({value:k,description:`/* ${M.description&&Po(M.description)||M.name} */`}),d=Math.max(k.length,d)}});const T=o(2),C=[];C.push("{"),C.push(`${T}"compilerOptions": {`),C.push(`${T}${T}/* ${Po(m.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),C.push("");for(const L of g){const{value:I,description:M=""}=L;C.push(I&&`${T}${T}${I}${M&&o(d-I.length+2)+M}`)}if(t.length){C.push(`${T}},`),C.push(`${T}"files": [`);for(let L=0;L<t.length;L++)C.push(`${T}${T}${JSON.stringify(t[L])}${L===t.length-1?"":","}`);C.push(`${T}]`)}else C.push(`${T}}`);return C.push("}"),C.join(r)+r}}function FX(e,t){const r={},i=rL().optionsNameMap;for(const o in e)Fs(e,o)&&(r[o]=L5e(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function L5e(e,t,r){if(e&&!iL(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);R.assert(e.type!=="listOrElement")}return t}function I5e(e,t,r,i,o,s,c,_,d){return Dge(e,void 0,t,r,i,d,o,s,c,_)}function W6(e,t,r,i,o,s,c,_,d){var v,g;(v=Ti)==null||v.push(Ti.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const T=Dge(void 0,e,t,r,i,d,o,s,c,_);return(g=Ti)==null||g.pop(),T}function BX(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function iL(e){return e==null}function GX(e,t){return vi(Ma(e,t))}function Dge(e,t,r,i,o={},s,c,_=[],d=[],v){R.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);const g=[],T=Oge(e,t,r,i,c,_,g,v),{raw:C}=T,L=G7(o,T.options||{}),I=s&&T.watchOptions?G7(s,T.watchOptions):T.watchOptions||s;L.configFilePath=c&&ru(c);const M=U();t&&(t.configFileSpecs=M),BX(L,t);const k=Xo(c?GX(c,i):i);return{options:L,watchOptions:I,fileNames:j(k),projectReferences:H(k),typeAcquisition:T.typeAcquisition||d9(),raw:C,errors:g,wildcardDirectories:B5e(M,k,r.useCaseSensitiveFileNames),compileOnSave:!!C.compileOnSave};function U(){const ue=ne("references",Ae=>typeof Ae=="object","object"),re=ee(X("files"));if(re){const Ae=ue==="no-prop"||ja(ue)&&ue.length===0,te=Fs(C,"extends");if(re.length===0&&Ae&&!te)if(t){const Ze=c||"tsconfig.json",je=m.The_files_list_in_config_file_0_is_empty,Ue=qt(YD(t,"files"),Fe=>Fe.initializer),Je=Ue?hd(t,Ue,je,Ze):Gs(je,Ze);g.push(Je)}else P(m.The_files_list_in_config_file_0_is_empty,c||"tsconfig.json")}let be=ee(X("include"));const ae=X("exclude");let z=!1,ce=ee(ae);if(ae==="no-prop"&&C.compilerOptions){const Ae=C.compilerOptions.outDir,te=C.compilerOptions.declarationDir;(Ae||te)&&(ce=[Ae,te].filter(Ze=>!!Ze))}re===void 0&&be===void 0&&(be=[v9],z=!0);let he,Ee;return be&&(he=Hge(be,g,!0,t,"include")),ce&&(Ee=Hge(ce,g,!1,t,"exclude")),{filesSpecs:re,includeSpecs:be,excludeSpecs:ce,validatedFilesSpec:ur(re,za),validatedIncludeSpecs:he,validatedExcludeSpecs:Ee,pathPatterns:void 0,isDefaultIncludeSpec:z}}function j(ue){const re=q6(M,ue,L,r,d);return Nge(re,H6(C),_)&&g.push(Rge(M,c)),re}function H(ue){let re;const be=ne("references",ae=>typeof ae=="object","object");if(ja(be))for(const ae of be)typeof ae.path!="string"?P(m.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(re||(re=[])).push({path:Ma(ae.path,ue),originalPath:ae.path,prepend:ae.prepend,circular:ae.circular});return re}function ee(ue){return ja(ue)?ue:void 0}function X(ue){return ne(ue,za,"string")}function ne(ue,re,be){if(Fs(C,ue)&&!iL(C[ue]))if(ja(C[ue])){const ae=C[ue];return!t&&!Qn(ae,re)&&g.push(Gs(m.Compiler_option_0_requires_a_value_of_type_1,ue,be)),ae}else return P(m.Compiler_option_0_requires_a_value_of_type_1,ue,"Array"),"not-array";return"no-prop"}function P(ue,re,be){t||g.push(Gs(ue,re,be))}}function k5e(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 Rge({includeSpecs:e,excludeSpecs:t},r){return Gs(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 Nge(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function H6(e){return!Fs(e,"files")&&!Fs(e,"references")}function UX(e,t,r,i,o){const s=i.length;return Nge(e,o)?i.push(Rge(r,t)):Ws(i,c=>!k5e(c)),s!==i.length}function w5e(e){return!!e.options}function Oge(e,t,r,i,o,s,c,_){var d;i=ru(i);const v=Ma(o||"",i);if(s.indexOf(v)>=0)return c.push(Gs(m.Circularity_detected_while_resolving_configuration_Colon_0,[...s,v].join(" -> "))),{raw:e||Lge(t,c)};const g=e?D5e(e,r,i,o,c):R5e(t,r,i,o,c);if((d=g.options)!=null&&d.paths&&(g.options.pathsBasePath=i),g.extendedConfigPath){s=s.concat([v]);const C={options:{}};za(g.extendedConfigPath)?T(C,g.extendedConfigPath):g.extendedConfigPath.forEach(L=>T(C,L)),!g.raw.include&&C.include&&(g.raw.include=C.include),!g.raw.exclude&&C.exclude&&(g.raw.exclude=C.exclude),!g.raw.files&&C.files&&(g.raw.files=C.files),g.raw.compileOnSave===void 0&&C.compileOnSave&&(g.raw.compileOnSave=C.compileOnSave),t&&C.extendedSourceFiles&&(t.extendedSourceFiles=Oo(C.extendedSourceFiles.keys())),g.options=Zw(C.options,g.options),g.watchOptions=g.watchOptions&&C.watchOptions?Zw(C.watchOptions,g.watchOptions):g.watchOptions||C.watchOptions}return g;function T(C,L){const I=N5e(t,L,r,s,c,_,C);if(I&&w5e(I)){const M=I.raw;let k;const U=j=>{M[j]&&(C[j]=Pt(M[j],H=>Fm(H)?H:Fi(k||(k=WI(vi(L),i,lu(r.useCaseSensitiveFileNames))),H)))};U("include"),U("exclude"),U("files"),M.compileOnSave!==void 0&&(C.compileOnSave=M.compileOnSave),Zw(C.options,I.options),C.watchOptions=C.watchOptions&&I.watchOptions?Zw({},C.watchOptions,I.watchOptions):C.watchOptions||I.watchOptions}}}function D5e(e,t,r,i,o){Fs(e,"excludes")&&o.push(Gs(m.Unknown_option_excludes_Did_you_mean_exclude));const s=Pge(e.compilerOptions,r,o,i),c=Fge(e.typeAcquisition,r,o,i),_=F5e(e.watchOptions,r,o);e.compileOnSave=O5e(e,r,o);let d;if(e.extends||e.extends==="")if(!c9(tN,e.extends))o.push(Gs(m.Compiler_option_0_requires_a_value_of_type_1,"extends",v4(tN)));else{const v=i?GX(i,r):r;if(za(e.extends))d=u9(e.extends,t,v,o,Gs);else{d=[];for(const g of e.extends)za(g)?d=Pn(d,u9(g,t,v,o,Gs)):o.push(Gs(m.Compiler_option_0_requires_a_value_of_type_1,"extends",v4(tN.element)))}}return{raw:e,options:s,watchOptions:_,typeAcquisition:c,extendedConfigPath:d}}function R5e(e,t,r,i,o){const s=Mge(i);let c,_,d,v;const T=Cge(e,o,!0,{onSetValidOptionKeyValueInParent(C,L,I){let M;switch(C){case"compilerOptions":M=s;break;case"watchOptions":M=_||(_={});break;case"typeAcquisition":M=c||(c=d9(i));break;default:R.fail("Unknown option")}M[L.name]=jX(L,r,I)},onSetValidOptionKeyValueInRoot(C,L,I,M){switch(C){case"extends":const k=i?GX(i,r):r;if(za(I))d=u9(I,t,k,o,(U,j)=>hd(e,M,U,j));else{d=[];for(let U=0;U<I.length;U++){const j=I[U];za(j)&&(d=Pn(d,u9(j,t,k,o,(H,ee)=>hd(e,M.elements[U],H,ee))))}}return}},onSetUnknownOptionKeyValueInRoot(C,L,I,M){C==="excludes"&&o.push(hd(e,L,m.Unknown_option_excludes_Did_you_mean_exclude)),$t(_9,k=>k.name===C)&&(v=Pn(v,L))}});return c||(c=d9(i)),v&&T&&T.compilerOptions===void 0&&o.push(hd(e,v[0],m._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,rC(v[0]))),{raw:T,options:s,watchOptions:_,typeAcquisition:c,extendedConfigPath:d}}function u9(e,t,r,i,o){if(e=ru(e),Fm(e)||xa(e,"./")||xa(e,"../")){let c=Ma(e,r);if(!t.fileExists(c)&&!oc(c,".json")&&(c=`${c}.json`,!t.fileExists(c))){i.push(o(m.File_0_not_found,e));return}return c}const s=hye(e,Fi(r,"tsconfig.json"),t);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;e===""?i.push(o(m.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(o(m.File_0_not_found,e))}function N5e(e,t,r,i,o,s,c){var _;const d=r.useCaseSensitiveFileNames?t:V_(t);let v,g,T;if(s&&(v=s.get(d))?{extendedResult:g,extendedConfig:T}=v:(g=Ege(t,C=>r.readFile(C)),g.parseDiagnostics.length||(T=Oge(void 0,g,r,vi(t),Eu(t),i,o,s)),s&&s.set(d,{extendedResult:g,extendedConfig:T})),e&&(((_=c.extendedSourceFiles)!=null?_:c.extendedSourceFiles=new Set).add(g.fileName),g.extendedSourceFiles))for(const C of g.extendedSourceFiles)c.extendedSourceFiles.add(C);if(g.parseDiagnostics.length){o.push(...g.parseDiagnostics);return}return T}function O5e(e,t,r){if(!Fs(e,J6.name))return!1;const i=z6(J6,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function M5e(e,t,r){const i=[];return{options:Pge(e,t,i,r),errors:i}}function P5e(e,t,r){const i=[];return{options:Fge(e,t,i,r),errors:i}}function Mge(e){return e&&Eu(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function Pge(e,t,r,i){const o=Mge(i);return VX(Sge(),e,t,o,Z6,r),i&&(o.configFilePath=ru(i)),o}function d9(e){return{enable:!!e&&Eu(e)==="jsconfig.json",include:[],exclude:[]}}function Fge(e,t,r,i){const o=d9(i);return VX(Age(),e,t,o,tY,r),o}function F5e(e,t,r){return VX(xge(),e,t,void 0,eN,r)}function VX(e,t,r,i,o,s){if(t){for(const c in t){const _=e.get(c);_?(i||(i={}))[_.name]=z6(_,t[c],r,s):s.push(kX(c,o,Gs))}return i}}function z6(e,t,r,i){if(c9(e,t)){const o=e.type;if(o==="list"&&ja(t))return Uge(e,t,r,i);if(o==="listOrElement")return ja(t)?Uge(e,t,r,i):z6(e.element,t,r,i);if(!za(e.type))return Gge(e,t,i);const s=e2(e,t,i);return iL(s)?s:Bge(e,r,s)}else i.push(Gs(m.Compiler_option_0_requires_a_value_of_type_1,e.name,v4(e)))}function jX(e,t,r){if(!iL(r)){if(e.type==="listOrElement"&&!ja(r))return jX(e.element,t,r);if(e.type==="list"||e.type==="listOrElement"){const i=e;return i.element.isFilePath||!za(i.element.type)?ur(Pt(r,o=>jX(i.element,t,o)),o=>i.listPreserveFalsyValues?!0:!!o):r}else if(!za(e.type))return e.type.get(za(r)?r.toLowerCase():r);return Bge(e,t,r)}}function Bge(e,t,r){return e.isFilePath&&(r=Ma(r,t),r===""&&(r=".")),r}function e2(e,t,r){var i;if(iL(t))return;const o=(i=e.extraValidation)==null?void 0:i.call(e,t);if(!o)return t;r.push(Gs(...o))}function Gge(e,t,r){if(iL(t))return;const i=t.toLowerCase(),o=e.type.get(i);if(o!==void 0)return e2(e,o,r);r.push(IX(e))}function Uge(e,t,r,i){return ur(Pt(t,o=>z6(e.element,o,r,i)),o=>e.listPreserveFalsyValues?!0:!!o)}function q6(e,t,r,i,o=it){t=Xo(t);const s=lu(i.useCaseSensitiveFileNames),c=new Map,_=new Map,d=new Map,{validatedFilesSpec:v,validatedIncludeSpecs:g,validatedExcludeSpecs:T}=e,C=jk(r,o),L=HR(r,C);if(v)for(const U of v){const j=Ma(U,t);c.set(s(j),j)}let I;if(g&&g.length>0)for(const U of i.readDirectory(t,Ha(L),T,g,void 0)){if(_c(U,".json")){if(!I){const ee=g.filter(ne=>oc(ne,".json")),X=Pt(WP(ee,t,"files"),ne=>`^${ne}$`);I=X?X.map(ne=>Xv(ne,i.useCaseSensitiveFileNames)):it}if(ii(I,ee=>ee.test(U))!==-1){const ee=s(U);!c.has(ee)&&!d.has(ee)&&d.set(ee,U)}continue}if(U5e(U,c,_,C,s))continue;V5e(U,_,C,s);const j=s(U);!c.has(j)&&!_.has(j)&&_.set(j,U)}const M=Oo(c.values()),k=Oo(_.values());return M.concat(k,Oo(d.values()))}function Vge(e,t,r,i,o){const{validatedFilesSpec:s,validatedIncludeSpecs:c,validatedExcludeSpecs:_}=t;if(!ge(c)||!ge(_))return!1;r=Xo(r);const d=lu(i);if(s){for(const v of s)if(d(Ma(v,r))===e)return!1}return Wge(e,_,i,o,r)}function jge(e){const t=xa(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(oc(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function f9(e,t,r,i){return Wge(e,ur(t,o=>!jge(o)),r,i)}function Wge(e,t,r,i,o){const s=Uk(t,Fi(Xo(i),o),"exclude"),c=s&&Xv(s,r);return c?c.test(e)?!0:!WA(e)&&c.test(Wu(e)):!1}function Hge(e,t,r,i,o){return e.filter(c=>{if(!za(c))return!1;const _=WX(c,r);return _!==void 0&&t.push(s(..._)),_===void 0});function s(c,_){const d=aP(i,o,_);return d?hd(i,d,c,_):Gs(c,_)}}function WX(e,t){if(R.assert(typeof e=="string"),t&&eye.test(e))return[m.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(jge(e))return[m.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function B5e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const o=Uk(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),c={};if(e!==void 0){const _=[];for(const d of e){const v=Xo(Fi(r,d));if(s&&s.test(v))continue;const g=G5e(v,i);if(g){const{key:T,flags:C}=g,L=c[T];(L===void 0||L<C)&&(c[T]=C,C===1&&_.push(T))}}for(const d in c)if(Fs(c,d))for(const v of _)d!==v&&Mv(v,d,r,!i)&&delete c[d]}return c}function G5e(e,t){const r=tye.exec(e);if(r){const i=e.indexOf("?"),o=e.indexOf("*"),s=e.lastIndexOf(Bs);return{key:t?r[0]:V_(r[0]),flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(jJ(e.substring(e.lastIndexOf(Bs)+1)))return{key:yT(t?e:V_(e)),flags:1}}function U5e(e,t,r,i,o){const s=Ie(i,c=>Ic(e,c)?c:void 0);if(!s)return!1;for(const c of s){if(_c(e,c))return!1;const _=o(Xb(e,c));if(t.has(_)||r.has(_)){if(c===".d.ts"&&(_c(e,".js")||_c(e,".jsx")))continue;return!0}}return!1}function V5e(e,t,r,i){const o=Ie(r,s=>Ic(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){const c=o[s];if(_c(e,c))return;const _=i(Xb(e,c));t.delete(_)}}function j5e(e){const t={};for(const r in e)if(Fs(e,r)){const i=DX(r);i!==void 0&&(t[r]=HX(e[r],i))}return t}function HX(e,t){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(!ja(e))return HX(e,t.element);case"list":const r=t.element;return ja(e)?e.map(i=>HX(i,r)):"";default:return ff(t.type,(i,o)=>{if(i===e)return o})}}function zX(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return zX(e.element);case"object":return{};default:const r=B7(e.type.keys());return r!==void 0?r:R.fail("Expected 'option.type' to have entries.")}}var J6,qX,b4,JX,K6,X6,Y6,$6,Q6,KX,_9,kg,XX,YX,$X,p9,m9,QX,ZX,eY,h9,g9,zge,qge,y9,Z6,Jge,Kge,Xge,tY,Yge,eN,$ge,Qge,Zge,tN,nY,v9,eye,tye,W5e=b({"src/compiler/commandLineParser.ts"(){"use strict";Oa(),J6={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},qX=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),b4=new Map(Ua(qX.entries(),([e,t])=>[""+t,e])),JX=[["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"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["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"],["esnext.array","lib.es2023.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],K6=JX.map(e=>e[0]),X6=new Map(JX),Y6=[{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:WX},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:WX},category:m.Watch_and_Build_Modes,description:m.Remove_a_list_of_files_from_the_watch_mode_s_processing}],$6=[{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}],Q6={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,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},KX={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})),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},_9=[{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},Q6,KX,{name:"lib",type:"list",element:{name:"lib",type:X6,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",affectsModuleResolution:!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",showInSimplifiedHelpView:!0,category:m.JavaScript_Support,description:m.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:qX,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!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:!1},{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"]),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,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},{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})),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}],kg=[...$6,..._9],XX=kg.filter(e=>!!e.affectsSemanticDiagnostics),YX=kg.filter(e=>!!e.affectsEmit),$X=kg.filter(e=>!!e.affectsDeclarationPath),p9=kg.filter(e=>!!e.affectsModuleResolution),m9=kg.filter(e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics),QX=kg.filter(e=>!!e.affectsProgramStructure),ZX=kg.filter(e=>Fs(e,"transpileOptionValue")),eY=[{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}],h9=[...$6,...eY],g9=[{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}],qge={diagnostic:m.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:bge},y9={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},Z6={alternateMode:qge,getOptionsNameMap:rL,optionDeclarations:kg,unknownOptionDiagnostic:m.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:m.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:m.Compiler_option_0_expects_an_argument},Kge={diagnostic:m.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:rL},Xge={alternateMode:Kge,getOptionsNameMap:bge,optionDeclarations:h9,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},tY={optionDeclarations:g9,unknownOptionDiagnostic:m.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:m.Unknown_type_acquisition_option_0_Did_you_mean_1},eN={getOptionsNameMap:Tge,optionDeclarations:Y6,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},tN={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:m.File_Management},v9="**/*",eye=/(^|\/)\*\*\/?$/,tye=/^[^*?]*(?=\/[^/]*[*?])/}});function ha(e){e.trace(PJ.apply(void 0,arguments))}function r0(e,t){return!!e.traceResolution&&t.trace!==void 0}function aL(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+Bs.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function b9(e){return aL(void 0,e)}function nye(e){if(e)return R.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function rye(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 iye(e){if(e)return R.assert(qP(e.extension)),{fileName:e.path,packageId:e.packageId}}function aye(e,t,r,i,o,s,c,_){if(!c.resultFromCache&&!c.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!zc(e)){const{resolvedFileName:d,originalPath:v}=lye(t.path,c.host,c.traceEnabled);v&&(t=so(Li({},t),{path:d,originalPath:v}))}return oye(t,r,i,o,s,c.resultFromCache,_)}function oye(e,t,r,i,o,s,c){return s?(s.failedLookupLocations=oL(s.failedLookupLocations,r),s.affectingLocations=oL(s.affectingLocations,i),s.resolutionDiagnostics=oL(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:E4(r),affectingLocations:E4(i),resolutionDiagnostics:E4(o),node10Result:c}}function E4(e){return e.length?e:void 0}function oL(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function sye(e,t,r,i){if(!Fs(e,t)){i.traceEnabled&&ha(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&&ha(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 E9(e,t,r,i){const o=sye(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&ha(i.host,m.package_json_had_a_falsy_0_field,t);return}const s=Xo(Fi(r,o));return i.traceEnabled&&ha(i.host,m.package_json_has_0_field_1_that_references_2,t,o,s),s}function H5e(e,t,r){return E9(e,"typings",t,r)||E9(e,"types",t,r)}function z5e(e,t,r){return E9(e,"tsconfig",t,r)}function q5e(e,t,r){return E9(e,"main",t,r)}function J5e(e,t){const r=sye(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&ha(t.host,m.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function K5e(e,t){const r=J5e(e,t);if(r===void 0)return;if(t.traceEnabled)for(const c in r)Fs(r,c)&&!VA.tryParse(c)&&ha(t.host,m.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,c);const i=T9(r);if(!i){t.traceEnabled&&ha(t.host,m.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,$);return}const{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&ha(t.host,m.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}function T9(e){gY||(gY=new j_(pe));for(const t in e){if(!Fs(e,t))continue;const r=VA.tryParse(t);if(r!==void 0&&r.test(gY))return{version:t,paths:e[t]}}}function nN(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=vi(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return X5e(r,t)}function X5e(e,t){if(!t.directoryExists)return[Fi(e,yY)];let r;return pg(Xo(e),i=>{const o=Fi(i,yY);t.directoryExists(o)&&(r||(r=[])).push(o)}),r}function Y5e(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return vT(e,t,!i)===0}function lye(e,t,r){const i=u9e(e,t,r),o=Y5e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function rY(e,t,r,i,o,s,c){R.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 _=r0(r,i);o&&(r=o.commandLine.options);const d=t?vi(t):void 0;let v=d?s==null?void 0:s.getFromDirectoryCache(e,c,d,o):void 0;if(!v&&d&&!zc(e)&&(v=s==null?void 0:s.getFromNonRelativeNameCache(e,c,d,o)),v)return _&&(ha(i,m.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&ha(i,m.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),ha(i,m.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,d),ee(v)),v;const g=nN(r,i);_&&(t===void 0?g===void 0?ha(i,m.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):ha(i,m.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,g):g===void 0?ha(i,m.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):ha(i,m.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,g),o&&ha(i,m.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const T=[],C=[];let L=iY(r);c===99&&(El(r)===3||El(r)===99)&&(L|=32);const I=L&8?sL(r,!!(L&32)):[],M=[],k={compilerOptions:r,host:i,traceEnabled:_,failedLookupLocations:T,affectingLocations:C,packageJsonInfoCache:s,features:L,conditions:I,requestContainingDirectory:d,reportDiagnostic:P=>void M.push(P),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let U=X(),j=!0;U||(U=ne(),j=!1);let H;if(U){const{fileName:P,packageId:ue}=U;let re=P,be;r.preserveSymlinks||({resolvedFileName:re,originalPath:be}=lye(P,i,_)),H={primary:j,resolvedFileName:re,originalPath:be,packageId:ue,isExternalLibraryImport:hx(P)}}return v={resolvedTypeReferenceDirective:H,failedLookupLocations:E4(T),affectingLocations:E4(C),resolutionDiagnostics:E4(M)},d&&(s==null||s.getOrCreateCacheForDirectory(d,o).set(e,c,v),zc(e)||s==null||s.getOrCreateCacheForNonRelativeName(e,c,o).set(d,v)),_&&ee(v),v;function ee(P){var ue;(ue=P.resolvedTypeReferenceDirective)!=null&&ue.resolvedFileName?P.resolvedTypeReferenceDirective.packageId?ha(i,m.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,P.resolvedTypeReferenceDirective.resolvedFileName,LT(P.resolvedTypeReferenceDirective.packageId),P.resolvedTypeReferenceDirective.primary):ha(i,m.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,P.resolvedTypeReferenceDirective.resolvedFileName,P.resolvedTypeReferenceDirective.primary):ha(i,m.Type_reference_directive_0_was_not_resolved,e)}function X(){if(g&&g.length)return _&&ha(i,m.Resolving_with_primary_search_path_0,g.join(", ")),qt(g,P=>{const ue=Fi(P,e),re=vi(ue),be=om(re,i);return!be&&_&&ha(i,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,re),iye(Tye(4,ue,!be,k))});_&&ha(i,m.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ne(){const P=t&&vi(t);if(P!==void 0){_&&ha(i,m.Looking_up_in_node_modules_folder_initial_location_0,P);let ue;if(zc(e)){const{path:re}=gye(P,e);ue=C9(4,re,!1,k,!0)}else{const re=Aye(4,e,P,k,void 0,void 0);ue=re&&re.value}return iye(ue)}else _&&ha(i,m.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function iY(e){let t=0;switch(El(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 sL(e,t){const r=t||El(e)===100?["import"]:["require"];return e.noDtsResolution||r.push("types"),El(e)!==100&&r.push("node"),ba(r,e.customConditions)}function $5e(e,t,r,i,o){const s=L9(o==null?void 0:o.getPackageJsonInfoCache(),i,r);return pg(t,c=>{if(Eu(c)!=="node_modules"){const _=Fi(c,"node_modules"),d=Fi(_,e);return gx(d,!1,s)}})}function S9(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=nN(e,t);if(i){for(const o of i)if(t.directoryExists(o))for(const s of t.getDirectories(o)){const c=Xo(s),_=Fi(o,c,"package.json");if(!(t.fileExists(_)&&Rk(_,t).typings===null)){const v=Eu(c);v.charCodeAt(0)!==46&&r.push(v)}}}}return r}function aY(e){var t;if(e===null||typeof e!="object")return""+e;if(ja(e))return`[${(t=e.map(i=>aY(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)Fs(e,i)&&(r+=`${i}: ${aY(e[i])}`);return r+"}"}function oY(e,t){return t.map(r=>aY(UP(e,r))).join("|")+(e.pathsBasePath?`|${e.pathsBasePath}`:void 0)}function sY(e){const t=new Map,r=new Map,i=new Map;let o=new Map;return e&&t.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:c,update:_,clear:v};function s(T){return T?d(T.commandLine.options,!1):o}function c(T){return T?d(T.commandLine.options,!0):o}function _(T){e!==T&&(e?o=d(T,!0):t.set(T,o),e=T)}function d(T,C){let L=t.get(T);if(L)return L;const I=g(T);if(L=i.get(I),!L){if(e){const M=g(e);M===I?L=o:i.has(M)||i.set(M,o)}C&&(L!=null||(L=new Map)),L&&i.set(I,L)}return L&&t.set(T,L),L}function v(){const T=e&&r.get(e);o.clear(),t.clear(),r.clear(),i.clear(),e&&(T&&r.set(e,T),t.set(e,o))}function g(T){let C=r.get(T);return C||r.set(T,C=oY(T,p9)),C}}function Q5e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,entries:c,getInternalMap:_};function i(d){return r==null?void 0:r.get(Js(d,e,t))}function o(d,v){(r||(r=new Map)).set(Js(d,e,t),v)}function s(){r=void 0}function c(){const d=r==null?void 0:r.entries();return d?Oo(d):[]}function _(){return r}}function cye(e,t,r,i){const o=e.getOrCreateMapOfCacheRedirects(t);let s=o.get(r);return s||(s=i(),o.set(r,s)),s}function Z5e(e,t,r){const i=sY(r);return{getFromDirectoryCache:_,getOrCreateCacheForDirectory:c,clear:o,update:s};function o(){i.clear()}function s(d){i.update(d)}function c(d,v){const g=Js(d,e,t);return cye(i,v,g,()=>t2())}function _(d,v,g,T){var C,L;const I=Js(g,e,t);return(L=(C=i.getMapOfCacheRedirects(T))==null?void 0:C.get(I))==null?void 0:L.get(d,v)}}function T4(e,t){return t===void 0?e:`${t}|${e}`}function t2(){const e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,c){return e.set(i(o,s),c),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,c)=>{const[_,d]=t.get(c);return o(s,_,d)})},size(){return e.size}};return r;function i(o,s){const c=T4(o,s);return t.set(c,[o,s]),c}}function lY(e,t,r,i){R.assert(t.length===r.length);const o=t2();for(let s=0;s<t.length;++s){const c=t[s];o.set(i.getName(c),i.getMode(c,e),r[s])}return o}function e9e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function t9e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function n9e(e,t,r,i){const o=sY(r);return{getFromNonRelativeNameCache:_,getOrCreateCacheForNonRelativeName:d,clear:s,update:c};function s(){o.clear()}function c(g){o.update(g)}function _(g,T,C,L){var I,M;return R.assert(!zc(g)),(M=(I=o.getMapOfCacheRedirects(L))==null?void 0:I.get(T4(g,T)))==null?void 0:M.get(C)}function d(g,T,C){return R.assert(!zc(g)),cye(o,C,T4(g,T),v)}function v(){const g=new Map;return{get:T,set:C};function T(I){return g.get(Js(I,e,t))}function C(I,M){const k=Js(I,e,t);if(g.has(k))return;g.set(k,M);const U=i(M),j=U&&L(k,U);let H=k;for(;H!==j;){const ee=vi(H);if(ee===H||g.has(ee))break;g.set(ee,M),H=ee}}function L(I,M){const k=Js(vi(M),e,t);let U=0;const j=Math.min(I.length,k.length);for(;U<j&&I.charCodeAt(U)===k.charCodeAt(U);)U++;if(U===I.length&&(k.length===U||k[U]===Bs))return I;const H=nm(I);if(U<H)return;const ee=I.lastIndexOf(Bs,U-1);if(ee!==-1)return I.substr(0,Math.max(ee,H))}}}function uye(e,t,r,i,o){const s=Z5e(e,t,r),c=n9e(e,t,r,o);return i!=null||(i=Q5e(e,t)),so(Li(Li(Li({},i),s),c),{clear:_,update:v,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:d});function _(){d(),i.clear()}function d(){s.clear(),c.clear()}function v(g){s.update(g),c.update(g)}}function x9(e,t,r){const i=uye(e,t,r,void 0,e9e);return i.getOrCreateCacheForModuleName=(o,s,c)=>i.getOrCreateCacheForNonRelativeName(o,s,c),i}function A9(e,t,r,i){return uye(e,t,r,i,t9e)}function r9e(e,t,r,i){const o=vi(t);return r.getFromDirectoryCache(e,i,o,void 0)}function S4(e,t,r,i,o,s,c){const _=r0(r,i);s&&(r=s.commandLine.options),_&&(ha(i,m.Resolving_module_0_from_1,e,t),s&&ha(i,m.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const d=vi(t);let v=o==null?void 0:o.getFromDirectoryCache(e,c,d,s);if(v)_&&ha(i,m.Resolution_for_module_0_was_found_in_cache_from_location_1,e,d);else{let g=r.moduleResolution;if(g===void 0){switch(uu(r)){case 1:g=2;break;case 100:g=3;break;case 199:g=99;break;default:g=1;break}_&&ha(i,m.Module_resolution_kind_is_not_specified_using_0,uD[g])}else _&&ha(i,m.Explicitly_specified_module_resolution_kind_Colon_0,uD[g]);switch(tm.logStartResolveModule(e),g){case 3:v=s9e(e,t,r,i,o,s,c);break;case 99:v=l9e(e,t,r,i,o,s,c);break;case 2:v=mye(e,t,r,i,o,s);break;case 1:v=wye(e,t,r,i,o,s);break;case 100:v=pye(e,t,r,i,o,s);break;default:return R.fail(`Unexpected moduleResolution: ${g}`)}v&&v.resolvedModule&&tm.logInfoEvent(`Module "${e}" resolved to "${v.resolvedModule.resolvedFileName}"`),tm.logStopResolveModule(v&&v.resolvedModule?""+v.resolvedModule.resolvedFileName:"null"),o==null||o.getOrCreateCacheForDirectory(d,s).set(e,c,v),zc(e)||o==null||o.getOrCreateCacheForNonRelativeName(e,c,s).set(d,v)}return _&&(v.resolvedModule?v.resolvedModule.packageId?ha(i,m.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,v.resolvedModule.resolvedFileName,LT(v.resolvedModule.packageId)):ha(i,m.Module_name_0_was_successfully_resolved_to_1,e,v.resolvedModule.resolvedFileName):ha(i,m.Module_name_0_was_not_resolved,e)),v}function dye(e,t,r,i,o){const s=i9e(e,t,i,o);return s?s.value:zc(t)?a9e(e,t,r,i,o):o9e(e,t,i,o)}function i9e(e,t,r,i){var o;const{baseUrl:s,paths:c,configFile:_}=i.compilerOptions;if(c&&!wf(t)){i.traceEnabled&&(s&&ha(i.host,m.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),ha(i.host,m.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const d=_J(i.compilerOptions,i.host),v=_!=null&&_.configFileSpecs?(o=_.configFileSpecs).pathPatterns||(o.pathPatterns=zP(c)):void 0;return hY(e,t,d,c,v,r,!1,i)}}function a9e(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&ha(o.host,m.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const s=Xo(Fi(r,t));let c,_;for(const d of o.compilerOptions.rootDirs){let v=Xo(d);oc(v,Bs)||(v+=Bs);const g=xa(s,v)&&(_===void 0||_.length<v.length);o.traceEnabled&&ha(o.host,m.Checking_if_0_is_the_longest_matching_prefix_for_1_2,v,s,g),g&&(_=v,c=d)}if(_){o.traceEnabled&&ha(o.host,m.Longest_matching_prefix_for_0_is_1,s,_);const d=s.substr(_.length);o.traceEnabled&&ha(o.host,m.Loading_0_from_the_root_dir_1_candidate_location_2,d,_,s);const v=i(e,s,!om(r,o.host),o);if(v)return v;o.traceEnabled&&ha(o.host,m.Trying_other_entries_in_rootDirs);for(const g of o.compilerOptions.rootDirs){if(g===c)continue;const T=Fi(Xo(g),d);o.traceEnabled&&ha(o.host,m.Loading_0_from_the_root_dir_1_candidate_location_2,d,g,T);const C=vi(T),L=i(e,T,!om(C,o.host),o);if(L)return L}o.traceEnabled&&ha(o.host,m.Module_resolution_using_rootDirs_has_failed)}}function o9e(e,t,r,i){const{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&ha(i.host,m.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);const s=Xo(Fi(o,t));return i.traceEnabled&&ha(i.host,m.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!om(vi(s),i.host),i)}function fye(e,t,r){const{resolvedModule:i,failedLookupLocations:o}=c9e(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o==null?void 0:o.join(", ")}`);return i.resolvedFileName}function s9e(e,t,r,i,o,s,c){return _ye(30,e,t,r,i,o,s,c)}function l9e(e,t,r,i,o,s,c){return _ye(30,e,t,r,i,o,s,c)}function _ye(e,t,r,i,o,s,c,_){const d=vi(r),v=_===99?32:0;let g=i.noDtsResolution?3:7;return WT(i)&&(g|=8),x4(e|v,t,d,i,o,s,g,!1,c)}function c9e(e,t,r){return x4(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0)}function pye(e,t,r,i,o,s){const c=vi(t);let _=r.noDtsResolution?3:7;return WT(r)&&(_|=8),x4(iY(r),e,c,r,i,o,_,!1,s)}function mye(e,t,r,i,o,s,c){let _;return c?_=8:r.noDtsResolution?(_=3,WT(r)&&(_|=8)):_=WT(r)?15:7,x4(0,e,vi(t),r,i,o,_,!!c,s)}function hye(e,t,r){return x4(8,e,vi(t),{moduleResolution:99},r,void 0,8,!0,void 0)}function x4(e,t,r,i,o,s,c,_,d){var v,g,T,C;const L=r0(i,o),I=[],M=[],k=sL(i,!!(e&32)),U=[],j={compilerOptions:i,host:o,traceEnabled:L,failedLookupLocations:I,affectingLocations:M,packageJsonInfoCache:s,features:e,conditions:k,requestContainingDirectory:r,reportDiagnostic:ne=>void U.push(ne),isConfigLookup:_,candidateIsFromPackageJsonField:!1};L&&HS(El(i))&&ha(o,m.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",k.map(ne=>`'${ne}'`).join(", "));let H;if(El(i)===2){const ne=c&5,P=c&-6;H=ne&&X(ne,j)||P&&X(P,j)||void 0}else H=X(c,j);let ee;if((v=H==null?void 0:H.value)!=null&&v.isExternalLibraryImport&&!_&&c&5&&e&8&&!zc(t)&&!fY(5,H.value.resolved.extension)&&k.indexOf("import")>-1){iE(j,m.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ne=so(Li({},j),{features:j.features&-9,failedLookupLocations:[],affectingLocations:[],reportDiagnostic:co}),P=X(c&5,ne);(g=P==null?void 0:P.value)!=null&&g.isExternalLibraryImport&&(ee=P.value.resolved.path)}return aye(t,(T=H==null?void 0:H.value)==null?void 0:T.resolved,(C=H==null?void 0:H.value)==null?void 0:C.isExternalLibraryImport,I,M,U,j,ee);function X(ne,P){const re=dye(ne,t,r,(be,ae,z,ce)=>C9(be,ae,z,ce,!0),P);if(re)return c_({resolved:re,isExternalLibraryImport:hx(re.path)});if(zc(t)){const{path:be,parts:ae}=gye(r,t),z=C9(ne,be,!1,P,!0);return z&&c_({resolved:z,isExternalLibraryImport:Fr(ae,"node_modules")})}else{let be;return e&2&&xa(t,"#")&&(be=h9e(ne,t,r,P,s,d)),!be&&e&4&&(be=m9e(ne,t,r,P,s,d)),be||(L&&ha(o,m.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,rye(ne)),be=Aye(ne,t,r,P,s,d)),be&&{value:be.value&&{resolved:be.value,isExternalLibraryImport:!0}}}}}function gye(e,t){const r=Fi(e,t),i=md(r),o=rl(i);return{path:o==="."||o===".."?Wu(Xo(r)):Xo(r),parts:i}}function u9e(e,t,r){if(!t.realpath)return e;const i=Xo(t.realpath(e));return r&&ha(t,m.Resolving_real_path_for_0_result_1,e,i),R.assert(t.fileExists(i),`${e} linked to nonexistent file ${i}`),i}function C9(e,t,r,i,o){if(i.traceEnabled&&ha(i.host,m.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,rye(e)),!Nv(t)){if(!r){const c=vi(t);om(c,i.host)||(i.traceEnabled&&ha(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),r=!0)}const s=A4(e,t,r,i);if(s){const c=o?cY(s.path):void 0,_=c?gx(c,!1,i):void 0;return aL(_,s)}}if(r||om(t,i.host)||(i.traceEnabled&&ha(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Tye(e,t,r,i,o)}function hx(e){return bu(e,Gy)}function cY(e){const t=Xo(e),r=t.lastIndexOf(Gy);if(r===-1)return;const i=r+Gy.length;let o=yye(t,i);return t.charCodeAt(i)===64&&(o=yye(t,o)),t.slice(0,o)}function yye(e,t){const r=e.indexOf(Bs,t+1);return r===-1?t:r}function uY(e,t,r,i){return b9(A4(e,t,r,i))}function A4(e,t,r,i){const o=vye(e,t,r,i);if(o)return o;if(!(i.features&32)){const s=bye(t,e,"",r,i);if(s)return s}}function vye(e,t,r,i){if(Eu(t).indexOf(".")===-1)return;let s=zd(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));const c=t.substring(s.length);return i.traceEnabled&&ha(i.host,m.File_name_0_has_a_1_extension_stripping_it,t,c),bye(s,e,c,r,i)}function dY(e,t,r,i){return e&1&&Ic(t,n5)||e&4&&Ic(t,t5)?rN(t,r,i)!==void 0?{path:t,ext:DP(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&_c(t,".json")?rN(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:vye(e,t,r,i)}function bye(e,t,r,i,o){if(!i){const c=vi(e);c&&(i=!om(c,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&&!vd(e+r)&&s(`.d${r}.ts`)||void 0}function s(c,_){const d=rN(e+c,i,o);return d===void 0?void 0:{path:d,ext:c,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&_}}}function rN(e,t,r){var i,o;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return Eye(e,t,r);const s=(o=Nh(e))!=null?o:"",c=s?JR(e,s):e;return Ie(r.compilerOptions.moduleSuffixes,_=>Eye(c+_+s,t,r))}function Eye(e,t,r){if(!t){if(r.host.fileExists(e))return r.traceEnabled&&ha(r.host,m.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&ha(r.host,m.File_0_does_not_exist,e)}r.failedLookupLocations.push(e)}function Tye(e,t,r,i,o=!0){const s=o?gx(t,r,i):void 0,c=s&&s.contents.packageJsonContent,_=s&&iN(s,i);return aL(s,k9(e,t,r,i,c,_))}function d9e(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s;const c=5|(o?2:0),_=iY(t),d=L9(i==null?void 0:i.getPackageJsonInfoCache(),r,t);d.conditions=sL(t),d.requestContainingDirectory=e.packageDirectory;const v=k9(c,e.packageDirectory,!1,d,e.contents.packageJsonContent,iN(e,d));if(s=Pn(s,v==null?void 0:v.path),_&8&&e.contents.packageJsonContent.exports){const g=BA([sL(t,!0),sL(t,!1)],Zp);for(const T of g){const C=so(Li({},d),{failedLookupLocations:[],conditions:T}),L=f9e(e,e.contents.packageJsonContent.exports,C,c);if(L)for(const I of L)s=vy(s,I.path)}}return e.contents.resolvedEntrypoints=s||!1}function f9e(e,t,r,i){let o;if(ja(t))for(const c of t)s(c);else if(typeof t=="object"&&t!==null&&w9(t))for(const c in t)s(t[c]);else s(t);return o;function s(c){var _,d;if(typeof c=="string"&&xa(c,"./")&&c.indexOf("*")===-1){const v=md(c).slice(2);if(v.indexOf("..")>=0||v.indexOf(".")>=0||v.indexOf("node_modules")>=0)return!1;const g=Fi(e.packageDirectory,c),T=Ma(g,(d=(_=r.host).getCurrentDirectory)==null?void 0:d.call(_)),C=dY(i,T,!1,r);if(C)return o=vy(o,C,(L,I)=>L.path===I.path),!0}else if(Array.isArray(c)){for(const v of c)if(s(v))return!0}else if(typeof c=="object"&&c!==null)return Ie(fg(c),v=>{if(v==="default"||Fr(r.conditions,v)||aN(r.conditions,v))return s(c[v]),!0})}}function L9(e,t,r){return{host:t,compilerOptions:r,traceEnabled:r0(r,t),failedLookupLocations:X7,affectingLocations:X7,packageJsonInfoCache:e,features:0,conditions:it,requestContainingDirectory:void 0,reportDiagnostic:co,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function I9(e,t){const r=md(e);for(r.pop();r.length>0;){const i=gx(wb(r),!1,t);if(i)return i;r.pop()}}function iN(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=K5e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function gx(e,t,r){var i,o,s;const{host:c,traceEnabled:_}=r,d=Fi(e,"package.json");if(t){r.failedLookupLocations.push(d);return}const v=(i=r.packageJsonInfoCache)==null?void 0:i.getPackageJsonInfo(d);if(v!==void 0){if(typeof v!="boolean")return _&&ha(c,m.File_0_exists_according_to_earlier_cached_lookups,d),r.affectingLocations.push(d),v.packageDirectory===e?v:{packageDirectory:e,contents:v.contents};v&&_&&ha(c,m.File_0_does_not_exist_according_to_earlier_cached_lookups,d),r.failedLookupLocations.push(d);return}const g=om(e,c);if(g&&c.fileExists(d)){const T=Rk(d,c);_&&ha(c,m.Found_package_json_at_0,d);const C={packageDirectory:e,contents:{packageJsonContent:T,versionPaths:void 0,resolvedEntrypoints:void 0}};return(o=r.packageJsonInfoCache)==null||o.setPackageJsonInfo(d,C),r.affectingLocations.push(d),C}else g&&_&&ha(c,m.File_0_does_not_exist,d),(s=r.packageJsonInfoCache)==null||s.setPackageJsonInfo(d,g),r.failedLookupLocations.push(d)}function k9(e,t,r,i,o,s){let c;o&&(i.isConfigLookup?c=z5e(o,t,i):c=e&4&&H5e(o,t,i)||e&7&&q5e(o,t,i)||void 0);const _=(C,L,I,M)=>{const k=rN(L,I,M);if(k){const X=_9e(C,k);if(X)return b9(X);M.traceEnabled&&ha(M.host,m.File_0_has_an_unsupported_extension_so_skipping_it,k)}const U=C===4?5:C,j=M.features,H=M.candidateIsFromPackageJsonField;M.candidateIsFromPackageJsonField=!0,(o==null?void 0:o.type)!=="module"&&(M.features&=-33);const ee=C9(U,L,I,M,!1);return M.features=j,M.candidateIsFromPackageJsonField=H,ee},d=c?!om(vi(c),i.host):void 0,v=r||!om(t,i.host),g=Fi(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!c||Mv(t,c))){const C=Bm(t,c||g,!1);i.traceEnabled&&ha(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,pe,C);const L=hY(e,C,t,s.paths,void 0,_,d||v,i);if(L)return nye(L.value)}const T=c&&nye(_(e,c,d,i));if(T)return T;if(!(i.features&32))return A4(e,g,v,i)}function _9e(e,t,r){const i=Nh(t);return i!==void 0&&fY(e,i)?{path:t,ext:i,resolvedUsingTsExtension:r}:void 0}function fY(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 _Y(e){let t=e.indexOf(Bs);return e[0]==="@"&&(t=e.indexOf(Bs,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function w9(e){return Qn(fg(e),t=>xa(t,"."))}function p9e(e){return!Dt(fg(e),t=>xa(t,"."))}function m9e(e,t,r,i,o,s){var c,_;const d=Ma(Fi(r,"dummy"),(_=(c=i.host).getCurrentDirectory)==null?void 0:_.call(c)),v=I9(d,i);if(!v||!v.contents.packageJsonContent.exports||typeof v.contents.packageJsonContent.name!="string")return;const g=md(t),T=md(v.contents.packageJsonContent.name);if(!Qn(T,(k,U)=>g[U]===k))return;const C=g.slice(T.length),L=ge(C)?`.${Bs}${C.join(Bs)}`:".",I=e&5,M=e&-6;return pY(v,I,L,i,o,s)||pY(v,M,L,i,o,s)}function pY(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r==="."){let c;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&p9e(e.contents.packageJsonContent.exports)?c=e.contents.packageJsonContent.exports:Fs(e.contents.packageJsonContent.exports,".")&&(c=e.contents.packageJsonContent.exports["."]),c)return xye(t,i,o,s,r,e,!1)(c,"",!1,".")}else if(w9(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&ha(i.host,m.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),c_(void 0);const c=Sye(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(c)return c}return i.traceEnabled&&ha(i.host,m.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),c_(void 0)}}function h9e(e,t,r,i,o,s){var c,_;if(t==="#"||xa(t,"#/"))return i.traceEnabled&&ha(i.host,m.Invalid_import_specifier_0_has_no_possible_resolutions,t),c_(void 0);const d=Ma(Fi(r,"dummy"),(_=(c=i.host).getCurrentDirectory)==null?void 0:_.call(c)),v=I9(d,i);if(!v)return i.traceEnabled&&ha(i.host,m.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),c_(void 0);if(!v.contents.packageJsonContent.imports)return i.traceEnabled&&ha(i.host,m.package_json_scope_0_has_no_imports_defined,v.packageDirectory),c_(void 0);const g=Sye(e,i,o,s,t,v.contents.packageJsonContent.imports,v,!0);return g||(i.traceEnabled&&ha(i.host,m.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,v.packageDirectory),c_(void 0))}function mY(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 Sye(e,t,r,i,o,s,c,_){const d=xye(e,t,r,i,o,c,_);if(!oc(o,Bs)&&o.indexOf("*")===-1&&Fs(s,o)){const T=s[o];return d(T,"",!1,o)}const v=MI(ur(fg(s),T=>T.indexOf("*")!==-1||oc(T,"/")),mY);for(const T of v)if(t.features&16&&g(T,o)){const C=s[T],L=T.indexOf("*"),I=o.substring(T.substring(0,L).length,o.length-(T.length-1-L));return d(C,I,!0,T)}else if(oc(T,"*")&&xa(o,T.substring(0,T.length-1))){const C=s[T],L=o.substring(T.length-1);return d(C,L,!0,T)}else if(xa(o,T)){const C=s[T],L=o.substring(T.length);return d(C,L,!1,T)}function g(T,C){if(oc(T,"*"))return!1;const L=T.indexOf("*");return L===-1?!1:xa(C,T.substring(0,L))&&oc(C,T.substring(L+1))}}function xye(e,t,r,i,o,s,c){return _;function _(d,v,g,T){if(typeof d=="string"){if(!g&&v.length>0&&!oc(d,"/"))return t.traceEnabled&&ha(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),c_(void 0);if(!xa(d,"./")){if(c&&!xa(d,"../")&&!xa(d,"/")&&!Fm(d)){const ne=g?d.replace(/\*/g,v):d+v;iE(t,m.Using_0_subpath_1_with_target_2,"imports",T,ne),iE(t,m.Resolving_module_0_from_1,ne,s.packageDirectory+"/");const P=x4(t.features,ne,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i);return c_(P.resolvedModule?{path:P.resolvedModule.resolvedFileName,extension:P.resolvedModule.extension,packageId:P.resolvedModule.packageId,originalPath:P.resolvedModule.originalPath,resolvedUsingTsExtension:P.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&ha(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),c_(void 0)}const U=(wf(d)?md(d).slice(1):md(d)).slice(1);if(U.indexOf("..")>=0||U.indexOf(".")>=0||U.indexOf("node_modules")>=0)return t.traceEnabled&&ha(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),c_(void 0);const j=Fi(s.packageDirectory,d),H=md(v);if(H.indexOf("..")>=0||H.indexOf(".")>=0||H.indexOf("node_modules")>=0)return t.traceEnabled&&ha(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),c_(void 0);t.traceEnabled&&ha(t.host,m.Using_0_subpath_1_with_target_2,c?"imports":"exports",T,g?d.replace(/\*/g,v):d+v);const ee=C(g?j.replace(/\*/g,v):j+v),X=M(ee,v,Fi(s.packageDirectory,"package.json"),c);return X||c_(aL(s,dY(e,ee,!1,t)))}else if(typeof d=="object"&&d!==null)if(Array.isArray(d)){if(!ge(d))return t.traceEnabled&&ha(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),c_(void 0);for(const k of d){const U=_(k,v,g,T);if(U)return U}}else{iE(t,m.Entering_conditional_exports);for(const k of fg(d))if(k==="default"||t.conditions.indexOf(k)>=0||aN(t.conditions,k)){iE(t,m.Matched_0_condition_1,c?"imports":"exports",k);const U=d[k],j=_(U,v,g,T);if(j)return iE(t,m.Resolved_under_condition_0,k),iE(t,m.Exiting_conditional_exports),j;iE(t,m.Failed_to_resolve_under_condition_0,k)}else iE(t,m.Saw_non_matching_condition_0,k);iE(t,m.Exiting_conditional_exports);return}else if(d===null)return t.traceEnabled&&ha(t.host,m.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),c_(void 0);return t.traceEnabled&&ha(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),c_(void 0);function C(k){var U,j;return k===void 0?k:Ma(k,(j=(U=t.host).getCurrentDirectory)==null?void 0:j.call(U))}function L(k,U){return Wu(Fi(k,U))}function I(){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}function M(k,U,j,H){var ee,X,ne,P;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&k.indexOf("/node_modules/")===-1&&(!t.compilerOptions.configFile||Mv(s.packageDirectory,C(t.compilerOptions.configFile.fileName),!I()))){const re=_1({useCaseSensitiveFileNames:I}),be=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const ae=C(gN(t.compilerOptions,()=>[],((X=(ee=t.host).getCurrentDirectory)==null?void 0:X.call(ee))||"",re));be.push(ae)}else if(t.requestContainingDirectory){const ae=C(Fi(t.requestContainingDirectory,"index.ts")),z=C(gN(t.compilerOptions,()=>[ae,C(j)],((P=(ne=t.host).getCurrentDirectory)==null?void 0:P.call(ne))||"",re));be.push(z);let ce=Wu(z);for(;ce&&ce.length>1;){const he=md(ce);he.pop();const Ee=wb(he);be.unshift(Ee),ce=Wu(Ee)}}be.length>1&&t.reportDiagnostic(Gs(H?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,U===""?".":U,j));for(const ae of be){const z=ue(ae);for(const ce of z)if(Mv(ce,k,!I())){const he=k.slice(ce.length+1),Ee=Fi(ae,he),Ae=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const te of Ae)if(_c(Ee,te)){const Ze=rpe(Ee);for(const je of Ze){if(!fY(e,je))continue;const Ue=xz(Ee,je,te,!I());if(t.host.fileExists(Ue))return c_(aL(s,dY(e,Ue,!1,t)))}}}}}return;function ue(re){var be,ae;const z=t.compilerOptions.configFile?((ae=(be=t.host).getCurrentDirectory)==null?void 0:ae.call(be))||"":re,ce=[];return t.compilerOptions.declarationDir&&ce.push(C(L(z,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&ce.push(C(L(z,t.compilerOptions.outDir))),ce}}}}function aN(e,t){if(e.indexOf("types")===-1||!xa(t,"types@"))return!1;const r=VA.tryParse(t.substring(6));return r?r.test(pe):!1}function Aye(e,t,r,i,o,s){return Cye(e,t,r,i,!1,o,s)}function g9e(e,t,r){return Cye(4,e,t,r,!0,void 0,void 0)}function Cye(e,t,r,i,o,s,c){const _=i.features===0?void 0:i.features&32?99:1,d=e&5,v=e&-6;if(d){const T=g(d);if(T)return T}if(v&&!o)return g(v);function g(T){return pg(ru(r),C=>{if(Eu(C)!=="node_modules"){const L=kye(s,t,_,C,c,i);return L||c_(Lye(T,t,C,i,o,s,c))}})}}function Lye(e,t,r,i,o,s,c){const _=Fi(r,"node_modules"),d=om(_,i.host);if(!d&&i.traceEnabled&&ha(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),!o){const v=Iye(e,t,_,d,i,s,c);if(v)return v}if(e&4){const v=Fi(_,"@types");let g=d;return d&&!om(v,i.host)&&(i.traceEnabled&&ha(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,v),g=!1),Iye(4,y9e(t,i),v,g,i,s,c)}}function Iye(e,t,r,i,o,s,c){var _,d,v;const g=Xo(Fi(r,t)),{packageName:T,rest:C}=_Y(t),L=Fi(r,T);let I,M=gx(g,!i,o);if(C!==""&&M&&(!(o.features&8)||!Fs((d=(_=I=gx(L,!i,o))==null?void 0:_.contents.packageJsonContent)!=null?d:it,"exports"))){const j=A4(e,g,!i,o);if(j)return b9(j);const H=k9(e,g,!i,o,M.contents.packageJsonContent,iN(M,o));return aL(M,H)}const k=(j,H,ee,X)=>{let ne=A4(j,H,ee,X)||k9(j,H,ee,X,M&&M.contents.packageJsonContent,M&&iN(M,X));return!ne&&M&&(M.contents.packageJsonContent.exports===void 0||M.contents.packageJsonContent.exports===null)&&X.features&32&&(ne=A4(j,Fi(H,"index.js"),ee,X)),aL(M,ne)};if(C!==""&&(M=I!=null?I:gx(L,!i,o)),M&&M.contents.packageJsonContent.exports&&o.features&8)return(v=pY(M,e,Fi(".",C),o,s,c))==null?void 0:v.value;const U=C!==""&&M?iN(M,o):void 0;if(U){o.traceEnabled&&ha(o.host,m.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,U.version,pe,C);const j=i&&om(L,o.host),H=hY(e,C,L,U.paths,void 0,k,!j,o);if(H)return H.value}return k(e,g,!i,o)}function hY(e,t,r,i,o,s,c,_){o||(o=zP(i));const d=KJ(o,t);if(d){const v=za(d)?void 0:ede(d,t),g=za(d)?d:Zue(d);return _.traceEnabled&&ha(_.host,m.Module_name_0_matched_pattern_1,t,g),{value:Ie(i[g],C=>{const L=v?C.replace("*",v):C,I=Xo(Fi(r,L));_.traceEnabled&&ha(_.host,m.Trying_substitution_0_candidate_module_location_Colon_1,C,L);const M=Nh(C);if(M!==void 0){const k=rN(I,c,_);if(k!==void 0)return b9({path:k,ext:M,resolvedUsingTsExtension:void 0})}return s(e,I,c||!om(vi(I),_.host),_)})}}}function y9e(e,t){const r=C4(e);return t.traceEnabled&&r!==e&&ha(t.host,m.Scoped_package_detected_looking_in_0,r),r}function D9(e){return`@types/${C4(e)}`}function C4(e){if(xa(e,"@")){const t=e.replace(Bs,N9);if(t!==e)return t.slice(1)}return e}function oN(e){const t=BI(e,"@types/");return t!==e?R9(t):e}function R9(e){return bu(e,N9)?"@"+e.replace(N9,Bs):e}function kye(e,t,r,i,o,s){const c=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(c)return s.traceEnabled&&ha(s.host,m.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=c,{value:c.resolvedModule&&{path:c.resolvedModule.resolvedFileName,originalPath:c.resolvedModule.originalPath||!0,extension:c.resolvedModule.extension,packageId:c.resolvedModule.packageId,resolvedUsingTsExtension:c.resolvedModule.resolvedUsingTsExtension}}}function wye(e,t,r,i,o,s){const c=r0(r,i),_=[],d=[],v=vi(t),g=[],T={compilerOptions:r,host:i,traceEnabled:c,failedLookupLocations:_,affectingLocations:d,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:v,reportDiagnostic:I=>void g.push(I),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},C=L(5)||L(2|(r.resolveJsonModule?8:0));return aye(e,C&&C.value,(C==null?void 0:C.value)&&hx(C.value.path),_,d,g,T);function L(I){const M=dye(I,e,v,uY,T);if(M)return{value:M};if(zc(e)){const k=Xo(Fi(v,e));return c_(uY(I,k,!1,T))}else{const k=pg(v,U=>{const j=kye(o,e,void 0,U,s,T);if(j)return j;const H=Xo(Fi(U,e));return c_(uY(I,H,!1,T))});if(k)return k;if(I&5)return g9e(e,v,T)}}}function L4(e,t){return!!e.allowImportingTsExtensions||t&&vd(t)}function Dye(e,t,r,i,o,s){const c=r0(r,i);c&&ha(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 _=[],d=[],v=[],g={compilerOptions:r,host:i,traceEnabled:c,failedLookupLocations:_,affectingLocations:d,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:C=>void v.push(C),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},T=Lye(4,e,o,g,!1,void 0,void 0);return oye(T,!0,_,d,v,g.resultFromCache)}function c_(e){return e!==void 0?{value:e}:void 0}function iE(e,t,...r){e.traceEnabled&&ha(e.host,t,...r)}var gY,yY,vY,Gy,N9,v9e=b({"src/compiler/moduleNameResolver.ts"(){"use strict";Oa(),yY=Fi("node_modules","@types"),vY=(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))(vY||{}),Gy="/node_modules/",N9="__"}});function wg(e,t){return e.body&&!e.body.parent&&(jo(e.body,e),Yv(e.body,!1)),e.body?bY(e.body,t):1}function bY(e,t=new Map){const r=hs(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=b9e(e,t);return t.set(r,i),i}function b9e(e,t){switch(e.kind){case 261:case 262:return 0;case 263:if(Ub(e))return 2;break;case 269:case 268:if(!Qr(e,1))return 0;break;case 275:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===276){let i=0;for(const o of r.exportClause.elements){const s=E9e(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 265:{let i=0;return Pa(e,o=>{const s=bY(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:R.assertNever(s)}}),i}case 264:return wg(e,t);case 79:if(e.flags&2048)return 0}return 1}function E9e(e,t){const r=e.propertyName||e.name;let i=e.parent;for(;i;){if(fo(i)||dm(i)||Ki(i)){const o=i.statements;let s;for(const c of o)if(DD(c,r)){c.parent||(jo(c,i),Yv(c,!1));const _=bY(c,t);if((s===void 0||_>s)&&(s=_),s===1)return s}if(s!==void 0)return s}i=i.parent}return 1}function n2(e){return R.attachFlowNodeDebugInfo(e),e}function Rye(e,t){sl("beforeBind"),tm.logStartBindFile(""+e.fileName),Mye(e,t),tm.logStopBindFile(),sl("afterBind"),e_("Bind","beforeBind","afterBind")}function T9e(){var e,t,r,i,o,s,c,_,d,v,g,T,C,L,I,M,k,U,j,H,ee,X,ne=!1,P=0,ue,re,be={flags:1},ae={flags:1},z=Jt();return he;function ce(V,tt,Kt,Yn,Da){return hd(Zn(V)||e,V,tt,Kt,Yn,Da)}function he(V,tt){var Kt,Yn;e=V,t=tt,r=ns(t),X=Ee(e,tt),re=new Set,P=0,ue=Kc.getSymbolConstructor(),R.attachFlowNodeDebugInfo(be),R.attachFlowNodeDebugInfo(ae),e.locals||((Kt=Ti)==null||Kt.push(Ti.Phase.Bind,"bindSourceFile",{path:e.path},!0),At(e),(Yn=Ti)==null||Yn.pop(),e.symbolCount=P,e.classifiableNames=re,Wl()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,c=void 0,_=void 0,d=void 0,v=!1,g=void 0,T=void 0,C=void 0,L=void 0,I=void 0,M=void 0,k=void 0,j=void 0,H=!1,ne=!1,ee=0}function Ee(V,tt){return A_(tt,"alwaysStrict")&&!V.isDeclarationFile?!0:!!V.externalModuleIndicator}function Ae(V,tt){return P++,new ue(V,tt)}function te(V,tt,Kt){V.flags|=Kt,tt.symbol=V,V.declarations=vy(V.declarations,tt),Kt&1955&&!V.exports&&(V.exports=uo()),Kt&6240&&!V.members&&(V.members=uo()),V.constEnumOnlyModule&&V.flags&304&&(V.constEnumOnlyModule=!1),Kt&111551&&uR(V,tt)}function Ze(V){if(V.kind===274)return V.isExportEquals?"export=":"default";const tt=ka(V);if(tt){if(Hu(V)){const Kt=K_(tt);return im(V)?"__global":`"${Kt}"`}if(tt.kind===164){const Kt=tt.expression;if(n_(Kt))return cl(Kt.text);if(SP(Kt))return bo(Kt.operator)+Kt.operand.text;R.fail("Only computed properties with literal names have declaration names")}if(Ri(tt)){const Kt=wc(V);if(!Kt)return;const Yn=Kt.symbol;return SR(Yn,tt.escapedText)}return J_(tt)?Tk(tt):void 0}switch(V.kind){case 173:return"__constructor";case 181:case 176:case 326:return"__call";case 182:case 177:return"__new";case 178:return"__index";case 275:return"__export";case 308:return"export=";case 223:if(wl(V)===2)return"export=";R.fail("Unknown binary declaration kind");break;case 320:return pC(V)?"__new":"__call";case 166:return R.assert(V.parent.kind===320,"Impossible parameter parent kind",()=>`parent is: ${R.formatSyntaxKind(V.parent.kind)}, expected JSDocFunctionType`),"arg"+V.parent.parameters.indexOf(V)}}function je(V){return Su(V)?Ds(V.name):ia(R.checkDefined(Ze(V)))}function Ue(V,tt,Kt,Yn,Da,Ia,De){R.assert(De||!qv(Kt));const Ve=Qr(Kt,1024)||yd(Kt)&&Kt.name.escapedText==="default",It=De?"__computed":Ve&&tt?"default":Ze(Kt);let Mt;if(It===void 0)Mt=Ae(0,"__missing");else if(Mt=V.get(It),Yn&2885600&&re.add(It),!Mt)V.set(It,Mt=Ae(0,It)),Ia&&(Mt.isReplaceableByMethod=!0);else{if(Ia&&!Mt.isReplaceableByMethod)return Mt;if(Mt.flags&Da){if(Mt.isReplaceableByMethod)V.set(It,Mt=Ae(0,It));else if(!(Yn&3&&Mt.flags&67108864)){Su(Kt)&&jo(Kt.name,Kt);let mn=Mt.flags&2?m.Cannot_redeclare_block_scoped_variable_0:m.Duplicate_identifier_0,vn=!0;(Mt.flags&384||Yn&384)&&(mn=m.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,vn=!1);let En=!1;ge(Mt.declarations)&&(Ve||Mt.declarations&&Mt.declarations.length&&Kt.kind===274&&!Kt.isExportEquals)&&(mn=m.A_module_cannot_have_multiple_default_exports,vn=!1,En=!0);const Wn=[];um(Kt)&&kl(Kt.type)&&Qr(Kt,1)&&Mt.flags&2887656&&Wn.push(ce(Kt,m.Did_you_mean_0,`export type { ${ia(Kt.name.escapedText)} }`));const Jr=ka(Kt)||Kt;Ie(Mt.declarations,(nr,_n)=>{const dr=ka(nr)||nr,Aa=ce(dr,mn,vn?je(nr):void 0);e.bindDiagnostics.push(En?$o(Aa,ce(Jr,_n===0?m.Another_export_default_is_here:m.and_here)):Aa),En&&Wn.push(ce(dr,m.The_first_export_default_is_here))});const Xi=ce(Jr,mn,vn?je(Kt):void 0);e.bindDiagnostics.push($o(Xi,...Wn)),Mt=Ae(0,It)}}}return te(Mt,Kt,Yn),Mt.parent?R.assert(Mt.parent===tt,"Existing symbol parent should match new one"):Mt.parent=tt,Mt}function Je(V,tt,Kt){const Yn=!!(Cy(V)&1)||Fe(V);if(tt&2097152)return V.kind===278||V.kind===268&&Yn?Ue(o.symbol.exports,o.symbol,V,tt,Kt):(R.assertNode(o,Vm),Ue(o.locals,void 0,V,tt,Kt));if(T_(V)&&R.assert(_r(V)),!Hu(V)&&(Yn||o.flags&64)){if(!Vm(o)||!o.locals||Qr(V,1024)&&!Ze(V))return Ue(o.symbol.exports,o.symbol,V,tt,Kt);const Da=tt&111551?1048576:0,Ia=Ue(o.locals,void 0,V,Da,Kt);return Ia.exportSymbol=Ue(o.symbol.exports,o.symbol,V,tt,Kt),V.localSymbol=Ia,Ia}else return R.assertNode(o,Vm),Ue(o.locals,void 0,V,tt,Kt)}function Fe(V){if(V.parent&&Xl(V)&&(V=V.parent),!T_(V))return!1;if(!C6(V)&&V.fullName)return!0;const tt=ka(V);return tt?!!(MR(tt.parent)&&ri(tt.parent)||Au(tt.parent)&&Cy(tt.parent)&1):!1}function Be(V,tt){const Kt=o,Yn=s,Da=c;if(tt&1?(V.kind!==216&&(s=o),o=c=V,tt&32&&(o.locals=uo(),xo(o))):tt&2&&(c=V,tt&32&&(c.locals=void 0)),tt&4){const Ia=g,De=T,Ve=C,It=L,Mt=k,mn=j,vn=H,En=tt&16&&!Qr(V,512)&&!V.asteriskToken&&!!RT(V)||V.kind===172;En||(g=n2({flags:2}),tt&144&&(g.node=V)),L=En||V.kind===173||_r(V)&&(V.kind===259||V.kind===215)?gn():void 0,k=void 0,T=void 0,C=void 0,j=void 0,H=!1,lt(V),V.flags&=-2817,!(g.flags&1)&&tt&8&&b_(V.body)&&(V.flags|=256,H&&(V.flags|=512),V.endFlowNode=g),V.kind===308&&(V.flags|=ee,V.endFlowNode=g),L&&(pr(L,g),g=Lt(L),(V.kind===173||V.kind===172||_r(V)&&(V.kind===259||V.kind===215))&&(V.returnFlowNode=g)),En||(g=Ia),T=De,C=Ve,L=It,k=Mt,j=mn,H=vn}else tt&64?(v=!1,lt(V),R.assertNotNode(V,We),V.flags=v?V.flags|128:V.flags&-129):lt(V);o=Kt,s=Yn,c=Da}function $e(V){ze(V,tt=>tt.kind===259?At(tt):void 0),ze(V,tt=>tt.kind!==259?At(tt):void 0)}function ze(V,tt=At){V!==void 0&&Ie(V,tt)}function Ge(V){Pa(V,At,ze)}function lt(V){const tt=ne;if(ne=!1,Fp(V)){Ge(V),fn(V),ne=tt;return}switch(V.kind>=240&&V.kind<=256&&!t.allowUnreachableCode&&(V.flowNode=g),V.kind){case 244:an(V);break;case 243:On(V);break;case 245:Ir(V);break;case 246:case 247:Hr(V);break;case 242:Oe(V);break;case 250:case 254:gt(V);break;case 249:case 248:pt(V);break;case 255:me(V);break;case 252:ie(V);break;case 266:ye(V);break;case 292:W(V);break;case 241:He(V);break;case 253:Ye(V);break;case 221:Er(V);break;case 222:de(V);break;case 223:if(Ry(V)){ne=tt,mt(V);return}z(V);break;case 217:at(V);break;case 224:fe(V);break;case 257:Y(V);break;case 208:case 209:Wi(V);break;case 210:go(V);break;case 232:ui(V);break;case 349:case 341:case 343:Et(V);break;case 308:{$e(V.statements),At(V.endOfFileToken);break}case 238:case 265:$e(V.statements);break;case 205:Ne(V);break;case 166:J(V);break;case 207:case 206:case 299:case 227:ne=tt;default:Ge(V);break}fn(V),ne=tt}function Ct(V){switch(V.kind){case 79:case 80:case 108:case 208:case 209:return zt(V);case 210:return nt(V);case 214:case 232:return Ct(V.expression);case 223:return sn(V);case 221:return V.operator===53&&Ct(V.operand);case 218:return Ct(V.expression)}return!1}function bt(V){return wk(V)||(Br(V)||ax(V)||qd(V))&&bt(V.expression)||Tr(V)&&V.operatorToken.kind===27&&bt(V.right)||dl(V)&&(n_(V.argumentExpression)||Jl(V.argumentExpression))&&bt(V.expression)||cd(V)&&bt(V.left)}function zt(V){return bt(V)||xu(V)&&zt(V.expression)}function nt(V){if(V.arguments){for(const tt of V.arguments)if(zt(tt))return!0}return!!(V.expression.kind===208&&zt(V.expression.expression))}function ot(V,tt){return HC(V)&&pn(V.expression)&&As(tt)}function sn(V){switch(V.operatorToken.kind){case 63:case 75:case 76:case 77:return zt(V.left);case 34:case 35:case 36:case 37:return pn(V.left)||pn(V.right)||ot(V.right,V.left)||ot(V.left,V.right);case 102:return pn(V.left);case 101:return Ct(V.right);case 27:return Ct(V.right)}return!1}function pn(V){switch(V.kind){case 214:return pn(V.expression);case 223:switch(V.operatorToken.kind){case 63:return pn(V.left);case 27:return pn(V.right)}}return zt(V)}function gn(){return n2({flags:4,antecedents:void 0})}function jn(){return n2({flags:8,antecedents:void 0})}function Ln(V,tt,Kt){return n2({flags:1024,target:V,antecedents:tt,antecedent:Kt})}function Zt(V){V.flags|=V.flags&2048?4096:2048}function pr(V,tt){!(tt.flags&1)&&!Fr(V.antecedents,tt)&&((V.antecedents||(V.antecedents=[])).push(tt),Zt(tt))}function Ii(V,tt,Kt){return tt.flags&1?tt:Kt?(Kt.kind===110&&V&64||Kt.kind===95&&V&32)&&!DM(Kt)&&!zz(Kt.parent)?be:Ct(Kt)?(Zt(tt),n2({flags:V,antecedent:tt,node:Kt})):tt:V&32?tt:be}function ea(V,tt,Kt,Yn){return Zt(V),n2({flags:128,antecedent:V,switchStatement:tt,clauseStart:Kt,clauseEnd:Yn})}function ta(V,tt,Kt){Zt(tt);const Yn=n2({flags:V,antecedent:tt,node:Kt});return k&&pr(k,Yn),Yn}function Or(V,tt){return Zt(V),n2({flags:512,antecedent:V,node:tt})}function Lt(V){const tt=V.antecedents;return tt?tt.length===1?tt[0]:V:be}function yn(V){const tt=V.parent;switch(tt.kind){case 242:case 244:case 243:return tt.expression===V;case 245:case 224:return tt.condition===V}return!1}function Wt(V){for(;;)if(V.kind===214)V=V.expression;else if(V.kind===221&&V.operator===53)V=V.operand;else return NR(V)}function In(V){return TJ(Hs(V))}function Bn(V){for(;qd(V.parent)||Qv(V.parent)&&V.parent.operator===53;)V=V.parent;return!yn(V)&&!Wt(V.parent)&&!(xu(V.parent)&&V.parent.expression===V)}function lr(V,tt,Kt,Yn){const Da=I,Ia=M;I=Kt,M=Yn,V(tt),I=Da,M=Ia}function Oi(V,tt,Kt){lr(At,V,tt,Kt),(!V||!In(V)&&!Wt(V)&&!(xu(V)&&tk(V)))&&(pr(tt,Ii(32,g,V)),pr(Kt,Ii(64,g,V)))}function bi(V,tt,Kt){const Yn=T,Da=C;T=tt,C=Kt,At(V),T=Yn,C=Da}function Rn(V,tt){let Kt=j;for(;Kt&&V.parent.kind===253;)Kt.continueTarget=tt,Kt=Kt.next,V=V.parent;return tt}function an(V){const tt=Rn(V,jn()),Kt=gn(),Yn=gn();pr(tt,g),g=tt,Oi(V.expression,Kt,Yn),g=Lt(Kt),bi(V.statement,Yn,tt),pr(tt,g),g=Lt(Yn)}function On(V){const tt=jn(),Kt=Rn(V,gn()),Yn=gn();pr(tt,g),g=tt,bi(V.statement,Yn,Kt),pr(Kt,g),g=Lt(Kt),Oi(V.expression,tt,Yn),g=Lt(Yn)}function Ir(V){const tt=Rn(V,jn()),Kt=gn(),Yn=gn();At(V.initializer),pr(tt,g),g=tt,Oi(V.condition,Kt,Yn),g=Lt(Kt),bi(V.statement,Yn,tt),At(V.incrementor),pr(tt,g),g=Lt(Yn)}function Hr(V){const tt=Rn(V,jn()),Kt=gn();At(V.expression),pr(tt,g),g=tt,V.kind===247&&At(V.awaitModifier),pr(Kt,g),At(V.initializer),V.initializer.kind!==258&&cn(V.initializer),bi(V.statement,Kt,tt),pr(tt,g),g=Lt(Kt)}function Oe(V){const tt=gn(),Kt=gn(),Yn=gn();Oi(V.expression,tt,Kt),g=Lt(tt),At(V.thenStatement),pr(Yn,g),g=Lt(Kt),At(V.elseStatement),pr(Yn,g),g=Lt(Yn)}function gt(V){At(V.expression),V.kind===250&&(H=!0,L&&pr(L,g)),g=be}function Ot(V){for(let tt=j;tt;tt=tt.next)if(tt.name===V)return tt}function Le(V,tt,Kt){const Yn=V.kind===249?tt:Kt;Yn&&(pr(Yn,g),g=be)}function pt(V){if(At(V.label),V.label){const tt=Ot(V.label.escapedText);tt&&(tt.referenced=!0,Le(V,tt.breakTarget,tt.continueTarget))}else Le(V,T,C)}function me(V){const tt=L,Kt=k,Yn=gn(),Da=gn();let Ia=gn();if(V.finallyBlock&&(L=Da),pr(Ia,g),k=Ia,At(V.tryBlock),pr(Yn,g),V.catchClause&&(g=Lt(Ia),Ia=gn(),pr(Ia,g),k=Ia,At(V.catchClause),pr(Yn,g)),L=tt,k=Kt,V.finallyBlock){const De=gn();De.antecedents=ba(ba(Yn.antecedents,Ia.antecedents),Da.antecedents),g=De,At(V.finallyBlock),g.flags&1?g=be:(L&&Da.antecedents&&pr(L,Ln(De,Da.antecedents,g)),k&&Ia.antecedents&&pr(k,Ln(De,Ia.antecedents,g)),g=Yn.antecedents?Ln(De,Yn.antecedents,g):be)}else g=Lt(Yn)}function ie(V){const tt=gn();At(V.expression);const Kt=T,Yn=U;T=tt,U=g,At(V.caseBlock),pr(tt,g);const Da=Ie(V.caseBlock.clauses,Ia=>Ia.kind===293);V.possiblyExhaustive=!Da&&!tt.antecedents,Da||pr(tt,ea(U,V,0,0)),T=Kt,U=Yn,g=Lt(tt)}function ye(V){const tt=V.clauses,Kt=Ct(V.parent.expression);let Yn=be;for(let Da=0;Da<tt.length;Da++){const Ia=Da;for(;!tt[Da].statements.length&&Da+1<tt.length;)At(tt[Da]),Da++;const De=gn();pr(De,Kt?ea(U,V.parent,Ia,Da+1):U),pr(De,Yn),g=Lt(De);const Ve=tt[Da];At(Ve),Yn=g,!(g.flags&1)&&Da!==tt.length-1&&t.noFallthroughCasesInSwitch&&(Ve.fallthroughFlowNode=g)}}function W(V){const tt=g;g=U,At(V.expression),g=tt,ze(V.statements)}function He(V){At(V.expression),et(V.expression)}function et(V){if(V.kind===210){const tt=V;tt.expression.kind!==106&&wk(tt.expression)&&(g=Or(g,tt))}}function Ye(V){const tt=gn();j={next:j,name:V.label.escapedText,breakTarget:tt,continueTarget:void 0,referenced:!1},At(V.label),At(V.statement),!j.referenced&&!t.allowUnusedLabels&&Ht(Jpe(t),V.label,m.Unused_label),j=j.next,pr(tt,g),g=Lt(tt)}function jt(V){V.kind===223&&V.operatorToken.kind===63?cn(V.left):cn(V)}function cn(V){if(bt(V))g=ta(16,g,V);else if(V.kind===206)for(const tt of V.elements)tt.kind===227?cn(tt.expression):jt(tt);else if(V.kind===207)for(const tt of V.properties)tt.kind===299?jt(tt.initializer):tt.kind===300?cn(tt.name):tt.kind===301&&cn(tt.expression)}function Sn(V,tt,Kt){const Yn=gn();V.operatorToken.kind===55||V.operatorToken.kind===76?Oi(V.left,Yn,Kt):Oi(V.left,tt,Yn),g=Lt(Yn),At(V.operatorToken),kk(V.operatorToken.kind)?(lr(At,V.right,tt,Kt),cn(V.left),pr(tt,Ii(32,g,V)),pr(Kt,Ii(64,g,V))):Oi(V.right,tt,Kt)}function Er(V){if(V.operator===53){const tt=I;I=M,M=tt,Ge(V),M=I,I=tt}else Ge(V),(V.operator===45||V.operator===46)&&cn(V.operand)}function de(V){Ge(V),(V.operator===45||V.operator===46)&&cn(V.operand)}function mt(V){ne?(ne=!1,At(V.operatorToken),At(V.right),ne=!0,At(V.left)):(ne=!0,At(V.left),ne=!1,At(V.operatorToken),At(V.right)),cn(V.left)}function Jt(){return e9(V,tt,Kt,Yn,Da,void 0);function V(De,Ve){if(Ve){Ve.stackIndex++,jo(De,i);const Mt=X;Sa(De);const mn=i;i=De,Ve.skip=!1,Ve.inStrictModeStack[Ve.stackIndex]=Mt,Ve.parentStack[Ve.stackIndex]=mn}else Ve={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const It=De.operatorToken.kind;if(RR(It)||kk(It)){if(Bn(De)){const Mt=gn();Sn(De,Mt,Mt),g=Lt(Mt)}else Sn(De,I,M);Ve.skip=!0}return Ve}function tt(De,Ve,It){if(!Ve.skip){const Mt=Ia(De);return It.operatorToken.kind===27&&et(De),Mt}}function Kt(De,Ve,It){Ve.skip||At(De)}function Yn(De,Ve,It){if(!Ve.skip){const Mt=Ia(De);return It.operatorToken.kind===27&&et(De),Mt}}function Da(De,Ve){if(!Ve.skip){const mn=De.operatorToken.kind;if(Dy(mn)&&!wh(De)&&(cn(De.left),mn===63&&De.left.kind===209)){const vn=De.left;pn(vn.expression)&&(g=ta(256,g,De))}}const It=Ve.inStrictModeStack[Ve.stackIndex],Mt=Ve.parentStack[Ve.stackIndex];It!==void 0&&(X=It),Mt!==void 0&&(i=Mt),Ve.skip=!1,Ve.stackIndex--}function Ia(De){if(De&&Tr(De)&&!Ry(De))return De;At(De)}}function at(V){Ge(V),V.expression.kind===208&&cn(V.expression)}function fe(V){const tt=gn(),Kt=gn(),Yn=gn();Oi(V.condition,tt,Kt),g=Lt(tt),At(V.questionToken),At(V.whenTrue),pr(Yn,g),g=Lt(Kt),At(V.colonToken),At(V.whenFalse),pr(Yn,g),g=Lt(Yn)}function Te(V){const tt=Fc(V)?void 0:V.name;if($a(tt))for(const Kt of tt.elements)Te(Kt);else g=ta(16,g,V)}function Y(V){Ge(V),(V.initializer||QA(V.parent.parent))&&Te(V)}function Ne(V){At(V.dotDotDotToken),At(V.propertyName),wt(V.initializer),At(V.name)}function J(V){ze(V.modifiers),At(V.dotDotDotToken),At(V.questionToken),At(V.type),wt(V.initializer),At(V.name)}function wt(V){if(!V)return;const tt=g;if(At(V),tt===be||tt===g)return;const Kt=gn();pr(Kt,tt),pr(Kt,g),g=Lt(Kt)}function Et(V){At(V.tagName),V.kind!==343&&V.fullName&&(jo(V.fullName,V),Yv(V.fullName,!1)),typeof V.comment!="string"&&ze(V.comment)}function ut(V){Ge(V);const tt=d1(V);tt&&tt.kind!==171&&te(tt.symbol,tt,32)}function nn(V,tt,Kt){lr(At,V,tt,Kt),(!xu(V)||tk(V))&&(pr(tt,Ii(32,g,V)),pr(Kt,Ii(64,g,V)))}function ir(V){switch(V.kind){case 208:At(V.questionDotToken),At(V.name);break;case 209:At(V.questionDotToken),At(V.argumentExpression);break;case 210:At(V.questionDotToken),ze(V.typeArguments),ze(V.arguments);break}}function ai(V,tt,Kt){const Yn=ek(V)?gn():void 0;nn(V.expression,Yn||tt,Kt),Yn&&(g=Lt(Yn)),lr(ir,V,tt,Kt),tk(V)&&(pr(tt,Ii(32,g,V)),pr(Kt,Ii(64,g,V)))}function gi(V){if(Bn(V)){const tt=gn();ai(V,tt,tt),g=Lt(tt)}else ai(V,I,M)}function ui(V){xu(V)?gi(V):Ge(V)}function Wi(V){xu(V)?gi(V):Ge(V)}function go(V){if(xu(V))gi(V);else{const tt=Hs(V.expression);tt.kind===215||tt.kind===216?(ze(V.typeArguments),ze(V.arguments),At(V.expression)):(Ge(V),V.expression.kind===106&&(g=Or(g,V)))}if(V.expression.kind===208){const tt=V.expression;We(tt.name)&&pn(tt.expression)&&nJ(tt.name)&&(g=ta(256,g,V))}}function xo(V){_&&(_.nextContainer=V),_=V}function oo(V,tt,Kt){switch(o.kind){case 264:return Je(V,tt,Kt);case 308:return Hi(V,tt,Kt);case 228:case 260:return da(V,tt,Kt);case 263:return Ue(o.symbol.exports,o.symbol,V,tt,Kt);case 184:case 325:case 207:case 261:case 289:return Ue(o.symbol.members,o.symbol,V,tt,Kt);case 181:case 182:case 176:case 177:case 326:case 178:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 320:case 172:case 262:case 197:return o.locals&&R.assertNode(o,Vm),Ue(o.locals,void 0,V,tt,Kt)}}function da(V,tt,Kt){return Xa(V)?Ue(o.symbol.exports,o.symbol,V,tt,Kt):Ue(o.symbol.members,o.symbol,V,tt,Kt)}function Hi(V,tt,Kt){return tc(e)?Je(V,tt,Kt):Ue(e.locals,void 0,V,tt,Kt)}function $r(V){const tt=Ki(V)?V:li(V.body,dm);return!!tt&&tt.statements.some(Kt=>au(Kt)||Vl(Kt))}function ls(V){V.flags&16777216&&!$r(V)?V.flags|=64:V.flags&=-65}function mi(V){if(ls(V),Hu(V))if(Qr(V,1)&&kt(V,m.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),xq(V))fa(V);else{let tt;if(V.name.kind===10){const{text:Yn}=V.name;tt=IC(Yn),tt===void 0&&kt(V.name,m.Pattern_0_can_have_at_most_one_Asterisk_character,Yn)}const Kt=oo(V,512,110735);e.patternAmbientModules=Pn(e.patternAmbientModules,tt&&!za(tt)?{pattern:tt,symbol:Kt}:void 0)}else{const tt=fa(V);if(tt!==0){const{symbol:Kt}=V;Kt.constEnumOnlyModule=!(Kt.flags&304)&&tt===2&&Kt.constEnumOnlyModule!==!1}}}function fa(V){const tt=wg(V),Kt=tt!==0;return oo(V,Kt?512:1024,Kt?110735:0),tt}function wn(V){const tt=Ae(131072,Ze(V));te(tt,V,131072);const Kt=Ae(2048,"__type");te(Kt,V,2048),Kt.members=uo(),Kt.members.set(tt.escapedName,tt)}function pa(V){return jl(V,4096,"__object")}function nc(V){return jl(V,4096,"__jsxAttributes")}function al(V,tt,Kt){return oo(V,tt,Kt)}function jl(V,tt,Kt){const Yn=Ae(tt,Kt);return tt&106508&&(Yn.parent=o.symbol),te(Yn,V,tt),Yn}function $l(V,tt,Kt){switch(c.kind){case 264:Je(V,tt,Kt);break;case 308:if(_f(o)){Je(V,tt,Kt);break}default:R.assertNode(c,Vm),c.locals||(c.locals=uo(),xo(c)),Ue(c.locals,void 0,V,tt,Kt)}}function Wl(){if(!d)return;const V=o,tt=_,Kt=c,Yn=i,Da=g;for(const Ia of d){const De=Ia.parent.parent;o=rr(De.parent,It=>!!(Oye(It)&1))||e,c=Hm(De)||e,g=n2({flags:2}),i=Ia,At(Ia.typeExpression);const Ve=ka(Ia);if((C6(Ia)||!Ia.fullName)&&Ve&&MR(Ve.parent)){const It=ri(Ve.parent);if(It){Vn(e.symbol,Ve.parent,It,!!rr(Ve,mn=>Br(mn)&&mn.name.escapedText==="prototype"),!1);const Mt=o;switch(lR(Ve.parent)){case 1:case 2:_f(e)?o=e:o=void 0;break;case 4:o=Ve.parent.expression;break;case 3:o=Ve.parent.expression.name;break;case 5:o=aE(e,Ve.parent.expression)?e:Br(Ve.parent.expression)?Ve.parent.expression.name:Ve.parent.expression;break;case 0:return R.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&Je(Ia,524288,788968),o=Mt}}else C6(Ia)||!Ia.fullName||Ia.fullName.kind===79?(i=Ia.parent,$l(Ia,524288,788968)):At(Ia.fullName)}o=V,_=tt,c=Kt,i=Yn,g=Da}function Io(V){if(!e.parseDiagnostics.length&&!(V.flags&16777216)&&!(V.flags&8388608)&&!J_e(V)){const tt=o1(V);if(tt===void 0)return;X&&tt>=117&&tt<=125?e.bindDiagnostics.push(ce(V,La(V),Ds(V))):tt===133?tc(e)&&sP(V)?e.bindDiagnostics.push(ce(V,m.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ds(V))):V.flags&32768&&e.bindDiagnostics.push(ce(V,m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ds(V))):tt===125&&V.flags&8192&&e.bindDiagnostics.push(ce(V,m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ds(V)))}}function La(V){return wc(V)?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 Qo(V){V.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ce(V,m.constructor_is_a_reserved_word,Ds(V))))}function Hl(V){X&&Id(V.left)&&Dy(V.operatorToken.kind)&&Zc(V,V.left)}function ou(V){X&&V.variableDeclaration&&Zc(V,V.variableDeclaration.name)}function $d(V){if(X&&V.expression.kind===79){const tt=Gb(e,V.expression);e.bindDiagnostics.push(Pc(e,tt.start,tt.length,m.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function lc(V){return We(V)&&(V.escapedText==="eval"||V.escapedText==="arguments")}function Zc(V,tt){if(tt&&tt.kind===79){const Kt=tt;if(lc(Kt)){const Yn=Gb(e,tt);e.bindDiagnostics.push(Pc(e,Yn.start,Yn.length,Rs(V),Pr(Kt)))}}}function Rs(V){return wc(V)?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 yl(V){X&&Zc(V,V.name)}function nl(V){return wc(V)?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 Ys(V){if(r<2&&c.kind!==308&&c.kind!==264&&!XA(c)){const tt=Gb(e,V);e.bindDiagnostics.push(Pc(e,tt.start,tt.length,nl(V)))}}function rn(V){r<1&&X&&V.numericLiteralFlags&32&&e.bindDiagnostics.push(ce(V,m.Octal_literals_are_not_allowed_in_strict_mode))}function zl(V){X&&Zc(V,V.operand)}function wu(V){X&&(V.operator===45||V.operator===46)&&Zc(V,V.operand)}function Zu(V){X&&kt(V,m.with_statements_are_not_allowed_in_strict_mode)}function _e(V){X&&ns(t)>=2&&(Hfe(V.statement)||pc(V.statement))&&kt(V.label,m.A_label_is_not_allowed_here)}function kt(V,tt,Kt,Yn,Da){const Ia=wy(e,V.pos);e.bindDiagnostics.push(Pc(e,Ia.start,Ia.length,tt,Kt,Yn,Da))}function Ht(V,tt,Kt){Z(V,tt,tt,Kt)}function Z(V,tt,Kt,Yn){st(V,{pos:IT(tt,e),end:Kt.end},Yn)}function st(V,tt,Kt){const Yn=Pc(e,tt.pos,tt.end-tt.pos,Kt);V?e.bindDiagnostics.push(Yn):e.bindSuggestionDiagnostics=Pn(e.bindSuggestionDiagnostics,so(Li({},Yn),{category:2}))}function At(V){if(!V)return;jo(V,i),Ti&&(V.tracingPath=e.path);const tt=X;if(Sa(V),V.kind>162){const Kt=i;i=V;const Yn=Oye(V);Yn===0?lt(V):Be(V,Yn),i=Kt}else{const Kt=i;V.kind===1&&(i=V),fn(V),i=Kt}X=tt}function fn(V){if(Df(V))if(_r(V))for(const tt of V.jsDoc)At(tt);else for(const tt of V.jsDoc)jo(tt,V),Yv(tt,!1)}function Dr(V){if(!X)for(const tt of V){if(!Cp(tt))return;if(Mr(tt)){X=!0;return}}}function Mr(V){const tt=Fb(e,V.expression);return tt==='"use strict"'||tt==="'use strict'"}function Sa(V){switch(V.kind){case 79:if(V.flags&2048){let De=V.parent;for(;De&&!T_(De);)De=De.parent;$l(De,524288,788968);break}case 108:return g&&(yt(V)||i.kind===300)&&(V.flowNode=g),Io(V);case 163:g&&fP(V)&&(V.flowNode=g);break;case 233:case 106:V.flowNode=g;break;case 80:return Qo(V);case 208:case 209:const tt=V;g&&bt(tt)&&(tt.flowNode=g),P_e(tt)&&Qi(tt),_r(tt)&&e.commonJsModuleIndicator&&kh(tt)&&!sN(c,"module")&&Ue(e.locals,void 0,tt.expression,134217729,111550);break;case 223:switch(wl(V)){case 1:Qd(V);break;case 2:ql(V);break;case 3:dt(V.left,V);break;case 6:ko(V);break;case 4:Ce(V);break;case 5:const De=V.left.expression;if(_r(V)&&We(De)){const Ve=sN(c,De.escapedText);if(lP(Ve==null?void 0:Ve.valueDeclaration)){Ce(V);break}}Ft(V);break;case 0:break;default:R.fail("Unknown binary expression special property assignment kind")}return Hl(V);case 295:return ou(V);case 217:return $d(V);case 8:return rn(V);case 222:return zl(V);case 221:return wu(V);case 251:return Zu(V);case 253:return _e(V);case 194:v=!0;return;case 179:break;case 165:return Ef(V);case 166:return Du(V);case 257:return Zd(V);case 205:return V.flowNode=g,Zd(V);case 169:case 168:return cs(V);case 299:case 300:return Zo(V,4,0);case 302:return Zo(V,8,900095);case 176:case 177:case 178:return oo(V,131072,0);case 171:case 170:return Zo(V,8192|(V.questionToken?16777216:0),q_(V)?0:103359);case 259:return bf(V);case 173:return oo(V,16384,0);case 174:return Zo(V,32768,46015);case 175:return Zo(V,65536,78783);case 181:case 320:case 326:case 182:return wn(V);case 184:case 325:case 197:return yo(V);case 335:return ut(V);case 207:return pa(V);case 215:case 216:return w_(V);case 210:switch(wl(V)){case 7:return Bt(V);case 8:return pl(V);case 9:return oe(V);case 0:break;default:return R.fail("Unknown call expression assignment declaration kind")}_r(V)&&Ed(V);break;case 228:case 260:return X=!0,vf(V);case 261:return $l(V,64,788872);case 262:return $l(V,524288,788968);case 263:return rc(V);case 264:return mi(V);case 289:return nc(V);case 288:return al(V,4,0);case 268:case 271:case 273:case 278:return oo(V,2097152,2097152);case 267:return mc(V);case 270:return Ts(V);case 275:return bd(V);case 274:return _l(V);case 308:return Dr(V.statements),Ho();case 238:if(!XA(V.parent))return;case 265:return Dr(V.statements);case 344:if(V.parent.kind===326)return Du(V);if(V.parent.kind!==325)break;case 351:const Da=V,Ia=Da.isBracketed||Da.typeExpression&&Da.typeExpression.type.kind===319?16777220:4;return oo(Da,Ia,0);case 349:case 341:case 343:return(d||(d=[])).push(V);case 342:return At(V.typeExpression)}}function cs(V){const tt=df(V),Kt=tt?98304:4,Yn=tt?13247:0;return Zo(V,Kt|(V.questionToken?16777216:0),Yn)}function yo(V){return jl(V,2048,"__type")}function Ho(){if(ls(e),tc(e))Qa();else if(E_(e)){Qa();const V=e.symbol;Ue(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=V}}function Qa(){jl(e,512,`"${zd(e.fileName)}"`)}function _l(V){if(!o.symbol||!o.symbol.exports)jl(V,111551,Ze(V));else{const tt=gC(V)?2097152:4,Kt=Ue(o.symbol.exports,o.symbol,V,tt,67108863);V.isExportEquals&&uR(Kt,V)}}function mc(V){Dt(V.modifiers)&&e.bindDiagnostics.push(ce(V,m.Modifiers_cannot_appear_here));const tt=Ki(V.parent)?tc(V.parent)?V.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;tt?e.bindDiagnostics.push(ce(V,tt)):(e.symbol.globalExports=e.symbol.globalExports||uo(),Ue(e.symbol.globalExports,e.symbol,V,2097152,2097152))}function bd(V){!o.symbol||!o.symbol.exports?jl(V,8388608,Ze(V)):V.exportClause?Bh(V.exportClause)&&(jo(V.exportClause,V),Ue(o.symbol.exports,o.symbol,V.exportClause,2097152,2097152)):Ue(o.symbol.exports,o.symbol,V,8388608,0)}function Ts(V){V.name&&oo(V,2097152,2097152)}function fs(V){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=V,e.externalModuleIndicator||Qa()),!0)}function pl(V){if(!fs(V))return;const tt=$s(V.arguments[0],void 0,(Kt,Yn)=>(Yn&&te(Yn,Kt,67110400),Yn));tt&&Ue(tt.exports,tt,V,1048580,0)}function Qd(V){if(!fs(V))return;const tt=$s(V.left.expression,void 0,(Kt,Yn)=>(Yn&&te(Yn,Kt,67110400),Yn));if(tt){const Yn=ER(V.right)&&(NT(V.left.expression)||kh(V.left.expression))?2097152:1048580;jo(V.left,V),Ue(tt.exports,tt,V.left,Yn,0)}}function ql(V){if(!fs(V))return;const tt=aR(V.right);if(AJ(tt)||o===e&&aE(e,tt))return;if(Is(tt)&&Qn(tt.properties,l_)){Ie(tt.properties,Uf);return}const Kt=gC(V)?2097152:1049092,Yn=Ue(e.symbol.exports,e.symbol,V,Kt|67108864,0);uR(Yn,V)}function Uf(V){Ue(e.symbol.exports,e.symbol,V,69206016,0)}function Ce(V){if(R.assert(_r(V)),Tr(V)&&Br(V.left)&&Ri(V.left.name)||Br(V)&&Ri(V.name))return;const Kt=kd(V,!1,!1);switch(Kt.kind){case 259:case 215:let Yn=Kt.symbol;if(Tr(Kt.parent)&&Kt.parent.operatorToken.kind===63){const De=Kt.parent.left;OT(De)&&p1(De.expression)&&(Yn=Ss(De.expression.expression,s))}Yn&&Yn.valueDeclaration&&(Yn.members=Yn.members||uo(),qv(V)?Nt(V,Yn,Yn.members):Ue(Yn.members,Yn,V,67108868,0),te(Yn,Yn.valueDeclaration,32));break;case 173:case 169:case 171:case 174:case 175:case 172:const Da=Kt.parent,Ia=Xa(Kt)?Da.symbol.exports:Da.symbol.members;qv(V)?Nt(V,Da.symbol,Ia):Ue(Ia,Da.symbol,V,67108868,0,!0);break;case 308:if(qv(V))break;Kt.commonJsModuleIndicator?Ue(Kt.symbol.exports,Kt.symbol,V,1048580,0):oo(V,1,111550);break;default:R.failBadSyntaxKind(Kt)}}function Nt(V,tt,Kt){Ue(Kt,tt,V,4,0,!0,!0),Nn(V,tt)}function Nn(V,tt){tt&&(tt.assignmentDeclarationMembers||(tt.assignmentDeclarationMembers=new Map)).set(hs(V),V)}function Qi(V){V.expression.kind===108?Ce(V):OT(V)&&V.parent.parent.kind===308&&(p1(V.expression)?dt(V,V.parent):un(V))}function ko(V){jo(V.left,V),jo(V.right,V),Mi(V.left.expression,V.left,!1,!0)}function oe(V){const tt=Ss(V.arguments[0].expression);tt&&tt.valueDeclaration&&te(tt,tt.valueDeclaration,32),Rr(V,tt,!0)}function dt(V,tt){const Kt=V.expression,Yn=Kt.expression;jo(Yn,Kt),jo(Kt,V),jo(V,tt),Mi(Yn,V,!0,!0)}function Bt(V){let tt=Ss(V.arguments[0]);const Kt=V.parent.parent.kind===308;tt=Vn(tt,V.arguments[0],Kt,!1,!1),Rr(V,tt,!1)}function Ft(V){var tt;const Kt=Ss(V.left.expression,o)||Ss(V.left.expression,c);if(!_r(V)&&!F_e(Kt))return;const Yn=Fk(V.left);if(!(We(Yn)&&((tt=sN(o,Yn.escapedText))==null?void 0:tt.flags)&2097152))if(jo(V.left,V),jo(V.right,V),We(V.left.expression)&&o===e&&aE(e,V.left.expression))Qd(V);else if(qv(V)){jl(V,67108868,"__computed");const Da=Vn(Kt,V.left.expression,ri(V.left),!1,!1);Nn(V,Da)}else un(lo(V.left,RS))}function un(V){R.assert(!We(V)),jo(V.expression,V),Mi(V.expression,V,!1,!1)}function Vn(V,tt,Kt,Yn,Da){return(V==null?void 0:V.flags)&2097152||(Kt&&!Yn&&(V=$s(tt,V,(Ve,It,Mt)=>{if(It)return te(It,Ve,67110400),It;{const mn=Mt?Mt.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=uo());return Ue(mn,Mt,Ve,67110400,110735)}})),Da&&V&&V.valueDeclaration&&te(V,V.valueDeclaration,32)),V}function Rr(V,tt,Kt){if(!tt||!Wa(tt))return;const Yn=Kt?tt.members||(tt.members=uo()):tt.exports||(tt.exports=uo());let Da=0,Ia=0;el(wS(V))?(Da=8192,Ia=103359):io(V)&&DS(V)&&(Dt(V.arguments[2].properties,De=>{const Ve=ka(De);return!!Ve&&We(Ve)&&Pr(Ve)==="set"})&&(Da|=65540,Ia|=78783),Dt(V.arguments[2].properties,De=>{const Ve=ka(De);return!!Ve&&We(Ve)&&Pr(Ve)==="get"})&&(Da|=32772,Ia|=46015)),Da===0&&(Da=4,Ia=0),Ue(Yn,tt,V,Da|67108864,Ia&-67108865)}function ri(V){return Tr(V.parent)?zo(V.parent).parent.kind===308:V.parent.parent.kind===308}function Mi(V,tt,Kt,Yn){let Da=Ss(V,o)||Ss(V,c);const Ia=ri(tt);Da=Vn(Da,tt.expression,Ia,Kt,Yn),Rr(tt,Da,Kt)}function Wa(V){if(V.flags&1072)return!0;const tt=V.valueDeclaration;if(tt&&io(tt))return!!wS(tt);let Kt=tt?$i(tt)?tt.initializer:Tr(tt)?tt.right:Br(tt)&&Tr(tt.parent)?tt.parent.right:void 0:void 0;if(Kt=Kt&&aR(Kt),Kt){const Yn=p1($i(tt)?tt.name:Tr(tt)?tt.left:tt);return!!u1(Tr(Kt)&&(Kt.operatorToken.kind===56||Kt.operatorToken.kind===60)?Kt.right:Kt,Yn)}return!1}function zo(V){for(;Tr(V.parent);)V=V.parent;return V.parent}function Ss(V,tt=o){if(We(V))return sN(tt,V.escapedText);{const Kt=Ss(V.expression);return Kt&&Kt.exports&&Kt.exports.get(Sg(V))}}function $s(V,tt,Kt){if(aE(e,V))return e.symbol;if(We(V))return Kt(V,Ss(V),tt);{const Yn=$s(V.expression,tt,Kt),Da=sR(V);return Ri(Da)&&R.fail("unexpected PrivateIdentifier"),Kt(Da,Yn&&Yn.exports&&Yn.exports.get(Sg(V)),Yn)}}function Ed(V){!e.commonJsModuleIndicator&&wd(V,!1)&&fs(V)}function vf(V){if(V.kind===260)$l(V,32,899503);else{const Da=V.name?V.name.escapedText:"__class";jl(V,32,Da),V.name&&re.add(V.name.escapedText)}const{symbol:tt}=V,Kt=Ae(4194308,"prototype"),Yn=tt.exports.get(Kt.escapedName);Yn&&(V.name&&jo(V.name,V),e.bindDiagnostics.push(ce(Yn.declarations[0],m.Duplicate_identifier_0,Gl(Kt)))),tt.exports.set(Kt.escapedName,Kt),Kt.parent=tt}function rc(V){return Ub(V)?$l(V,128,899967):$l(V,256,899327)}function Zd(V){if(X&&Zc(V,V.name),!$a(V.name)){const tt=V.kind===257?V:V.parent.parent;_r(V)&&El(t)!==100&&jb(tt)&&!Rb(V)&&!(Cy(V)&1)?oo(V,2097152,2097152):Eq(V)?$l(V,2,111551):FT(V)?oo(V,1,111551):oo(V,1,111550)}}function Du(V){if(!(V.kind===344&&o.kind!==326)&&(X&&!(V.flags&16777216)&&Zc(V,V.name),$a(V.name)?jl(V,1,"__"+V.parent.parameters.indexOf(V)):oo(V,1,111551),cf(V,V.parent))){const tt=V.parent.parent;Ue(tt.symbol.members,tt.symbol,V,4|(V.questionToken?16777216:0),0)}}function bf(V){!e.isDeclarationFile&&!(V.flags&16777216)&&bC(V)&&(ee|=2048),yl(V),X?(Ys(V),$l(V,16,110991)):oo(V,16,110991)}function w_(V){!e.isDeclarationFile&&!(V.flags&16777216)&&bC(V)&&(ee|=2048),g&&(V.flowNode=g),yl(V);const tt=V.name?V.name.escapedText:"__function";return jl(V,16,tt)}function Zo(V,tt,Kt){return!e.isDeclarationFile&&!(V.flags&16777216)&&bC(V)&&(ee|=2048),g&&iP(V)&&(V.flowNode=g),qv(V)?jl(V,tt,"__computed"):oo(V,tt,Kt)}function D_(V){const tt=rr(V,Kt=>Kt.parent&&VC(Kt.parent)&&Kt.parent.extendsType===Kt);return tt&&tt.parent}function Ef(V){var tt,Kt;if(wp(V.parent)){const Yn=bP(V.parent);Yn?(R.assertNode(Yn,Vm),(tt=Yn.locals)!=null||(Yn.locals=uo()),Ue(Yn.locals,void 0,V,262144,526824)):oo(V,262144,526824)}else if(V.parent.kind===192){const Yn=D_(V.parent);Yn?(R.assertNode(Yn,Vm),(Kt=Yn.locals)!=null||(Yn.locals=uo()),Ue(Yn.locals,void 0,V,262144,526824)):jl(V,262144,Ze(V))}else oo(V,262144,526824)}function op(V){const tt=wg(V);return tt===1||tt===2&&Kb(t)}function Fp(V){if(!(g.flags&1))return!1;if(g===be&&(VD(V)&&V.kind!==239||V.kind===260||V.kind===264&&op(V))&&(g=ae,!t.allowUnreachableCode)){const Kt=qpe(t)&&!(V.flags&16777216)&&(!pc(V)||!!(Ap(V.declarationList)&3)||V.declarationList.declarations.some(Yn=>!!Yn.initializer));S9e(V,(Yn,Da)=>Z(Kt,Yn,Da,m.Unreachable_code_detected))}return!0}}function S9e(e,t){if(wa(e)&&Nye(e)&&fo(e.parent)){const{statements:r}=e.parent,i=XJ(r,e);XW(i,Nye,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function Nye(e){return!Sc(e)&&!x9e(e)&&!b1(e)&&!(pc(e)&&!(Ap(e)&3)&&e.declarationList.declarations.some(t=>!t.initializer))}function x9e(e){switch(e.kind){case 261:case 262:return!0;case 264:return wg(e)!==1;case 263:return Qr(e,2048);default:return!1}}function aE(e,t){let r=0;const i=rH();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),NT(t)||kh(t))return!0;if(We(t)){const o=sN(e,t.escapedText);if(o&&o.valueDeclaration&&$i(o.valueDeclaration)&&o.valueDeclaration.initializer){const s=o.valueDeclaration.initializer;i.enqueue(s),cd(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function Oye(e){switch(e.kind){case 228:case 260:case 263:case 207:case 184:case 325:case 289:return 1;case 261:return 65;case 264:case 262:case 197:case 178:return 33;case 308:return 37;case 174:case 175:case 171:if(iP(e))return 173;case 173:case 259:case 170:case 176:case 326:case 320:case 181:case 177:case 182:case 172:return 45;case 215:case 216:return 61;case 265:return 4;case 169:return e.initializer?4:0;case 295:case 245:case 246:case 247:case 266:return 34;case 238:return Ya(e.parent)||Rl(e.parent)?0:34}return 0}function sN(e,t){var r,i,o,s,c;const _=(i=(r=li(e,Vm))==null?void 0:r.locals)==null?void 0:i.get(t);if(_)return(o=_.exportSymbol)!=null?o:_;if(Ki(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(Um(e))return(c=(s=e.symbol)==null?void 0:s.exports)==null?void 0:c.get(t)}var EY,Mye,A9e=b({"src/compiler/binder.ts"(){"use strict";Oa(),kb(),EY=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(EY||{}),Mye=T9e()}});function Pye(e,t,r,i,o,s,c,_,d,v){return g;function g(T=()=>!0){const C=[],L=[];return{walkType:re=>{try{return I(re),{visitedTypes:_S(C),visitedSymbols:_S(L)}}finally{Ta(C),Ta(L)}},walkSymbol:re=>{try{return ue(re),{visitedTypes:_S(C),visitedSymbols:_S(L)}}finally{Ta(C),Ta(L)}}};function I(re){if(!(!re||C[re.id]||(C[re.id]=re,ue(re.symbol)))){if(re.flags&524288){const ae=re,z=ae.objectFlags;z&4&&M(re),z&32&&ee(re),z&3&&ne(re),z&24&&P(ae)}re.flags&262144&&k(re),re.flags&3145728&&U(re),re.flags&4194304&&j(re),re.flags&8388608&&H(re)}}function M(re){I(re.target),Ie(v(re),I)}function k(re){I(_(re))}function U(re){Ie(re.types,I)}function j(re){I(re.type)}function H(re){I(re.objectType),I(re.indexType),I(re.constraint)}function ee(re){I(re.typeParameter),I(re.constraintType),I(re.templateType),I(re.modifiersType)}function X(re){const be=t(re);be&&I(be.type),Ie(re.typeParameters,I);for(const ae of re.parameters)ue(ae);I(e(re)),I(r(re))}function ne(re){P(re),Ie(re.typeParameters,I),Ie(i(re),I),I(re.thisType)}function P(re){const be=o(re);for(const ae of be.indexInfos)I(ae.keyType),I(ae.type);for(const ae of be.callSignatures)X(ae);for(const ae of be.constructSignatures)X(ae);for(const ae of be.properties)ue(ae)}function ue(re){if(!re)return!1;const be=To(re);if(L[be])return!1;if(L[be]=re,!T(re))return!0;const ae=s(re);return I(ae),re.exports&&re.exports.forEach(ue),Ie(re.declarations,z=>{if(z.type&&z.type.kind===183){const ce=z.type,he=c(d(ce.exprName));ue(he)}}),!1}}}var C9e=b({"src/compiler/symbolWalker.ts"(){"use strict";Oa()}});function O9({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){const s=c();return{relativePreference:o!==void 0?zc(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:_=>{if((_!=null?_:i.impliedNodeFormat)===99)return L4(r,i.fileName)?[3,2]:[2];if(El(r)===1)return[1,2];switch(s){case 2:return[2,0,1];case 3:return[3,0,2,1];case 1:return[1,0,2];case 0:return[0,1,2];default:R.assertNever(s)}}};function c(){if(o!==void 0){if(zS(o))return 2;if(oc(o,"/index"))return 1}return JJ(t,i.impliedNodeFormat,r,i)}}function L9e(e,t,r,i,o,s,c={}){const _=Fye(e,t,r,i,o,O9({},e,t,s),{},c);if(_!==s)return _}function M9(e,t,r,i,o,s={}){return Fye(e,t,r,i,o,O9({},e,t),{},s)}function I9e(e,t,r,i,o,s={}){const c=TY(t.path,i),_=zye(t.path,r,i,o,s);return qt(_,d=>SY(d,c,t,i,e,o,!0,s.overrideImportMode))}function Fye(e,t,r,i,o,s,c,_={}){const d=TY(r,o),v=zye(r,i,o,c,_);return qt(v,g=>SY(g,d,t,o,e,c,void 0,_.overrideImportMode))||Vye(i,d,e,o,_.overrideImportMode||t.impliedNodeFormat,s)}function k9e(e,t,r,i,o={}){return Bye(e,t,r,i,o)[0]}function Bye(e,t,r,i,o={}){var s;const c=WM(e);if(!c)return it;const _=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),d=_==null?void 0:_.get(t.path,c.path,i,o);return[d==null?void 0:d.moduleSpecifiers,c,d==null?void 0:d.modulePaths,_]}function Gye(e,t,r,i,o,s,c={}){return Uye(e,t,r,i,o,s,c).moduleSpecifiers}function Uye(e,t,r,i,o,s,c={}){let _=!1;const d=D9e(e,t);if(d)return{moduleSpecifiers:[d],computedWithoutCache:_};let[v,g,T,C]=Bye(e,i,o,s,c);if(v)return{moduleSpecifiers:v,computedWithoutCache:_};if(!g)return{moduleSpecifiers:it,computedWithoutCache:_};_=!0,T||(T=qye(i.path,g.originalFileName,o));const L=w9e(T,r,i,o,s,c);return C==null||C.set(i.path,g.path,s,c,T,L),{moduleSpecifiers:L,computedWithoutCache:_}}function w9e(e,t,r,i,o,s={}){const c=TY(r.path,i),_=O9(o,t,r),d=Ie(e,I=>Ie(i.getFileIncludeReasons().get(Js(I.path,i.getCurrentDirectory(),c.getCanonicalFileName)),M=>{if(M.kind!==3||M.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==v$(r,M.index))return;const k=fF(r,M.index).text;return _.relativePreference!==1||!wf(k)?k:void 0}));if(d)return[d];const v=Dt(e,I=>I.isInNodeModules);let g,T,C,L;for(const I of e){const M=I.isInNodeModules?SY(I,c,r,i,t,o,void 0,s.overrideImportMode):void 0;if(g=Pn(g,M),M&&I.isRedirect)return g;if(!M){const k=Vye(I.path,c,t,i,s.overrideImportMode||r.impliedNodeFormat,_,I.isRedirect);if(!k)continue;I.isRedirect?C=Pn(C,k):Tz(k)?T=Pn(T,k):(!v||I.isInNodeModules)&&(L=Pn(L,k))}}return T!=null&&T.length?T:C!=null&&C.length?C:g!=null&&g.length?g:R.checkDefined(L)}function TY(e,t){const r=lu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=vi(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i}}function Vye(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:c},_){const{baseUrl:d,paths:v,rootDirs:g}=r;if(_&&!v)return;const{sourceDirectory:T,getCanonicalFileName:C}=t,L=s(o),I=g&&R9e(g,e,T,C,L,r)||I4(Db(Bm(T,e,C)),L,r);if(!d&&!v||c===0)return _?void 0:I;const M=Ma(_J(r,i)||d,i.getCurrentDirectory()),k=Yye(e,M,C);if(!k)return _?void 0:I;const U=v&&Jye(k,v,L,i,r);if(_)return U;const j=U===void 0&&d!==void 0?I4(k,L,r):U;if(!j)return I;if(c===1&&!wf(j))return j;if(c===3&&!wf(j)){const H=r.configFilePath?Js(vi(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ee=Js(e,H,C),X=xa(T,H),ne=xa(ee,H);if(X&&!ne||!X&&ne)return j;const P=Wye(i,vi(ee));return Wye(i,T)!==P?j:I}return $ye(j)||lN(I)<lN(j)?I:j}function lN(e){let t=0;for(let r=xa(e,"./")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function jye(e,t){return Ab(t.isRedirect,e.isRedirect)||qR(e.path,t.path)}function Wye(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):!!pg(t,r=>e.fileExists(Fi(r,"package.json"))?!0:void 0)}function Hye(e,t,r,i,o){var s;const c=_1(r),_=r.getCurrentDirectory(),d=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,v=Js(t,_,c),g=r.redirectTargetsMap.get(v)||it,C=[...d?[d]:it,t,...g].map(U=>Ma(U,_));let L=!Qn(C,Jk);if(!i){const U=Ie(C,j=>!(L&&Jk(j))&&o(j,d===j));if(U)return U}const I=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),M=Ma(t,_);return I&&pg(vi(M),U=>{const j=I.get(Wu(Js(U,_,c)));if(j)return Cz(e,U,c)?!1:Ie(C,H=>{if(!Cz(H,U,c))return;const ee=Bm(U,H,c);for(const X of j){const ne=Ov(X,ee),P=o(ne,H===d);if(L=!0,P)return P}})})||(i?Ie(C,U=>L&&Jk(U)?void 0:o(U,U===d)):void 0)}function zye(e,t,r,i,o={}){var s;const c=Js(t,r.getCurrentDirectory(),_1(r)),_=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(_){const v=_.get(e,c,i,o);if(v!=null&&v.modulePaths)return v.modulePaths}const d=qye(e,t,r);return _&&_.setModulePaths(e,c,i,o,d),d}function qye(e,t,r){const i=_1(r),o=new Map;let s=!1;Hye(e,t,r,!0,(_,d)=>{const v=hx(_);o.set(_,{path:i(_),isRedirect:d,isInNodeModules:v}),s=s||v});const c=[];for(let _=vi(e);o.size!==0;){const d=Wu(_);let v;o.forEach(({path:T,isRedirect:C,isInNodeModules:L},I)=>{xa(T,d)&&((v||(v=[])).push({path:I,isRedirect:C,isInNodeModules:L}),o.delete(I))}),v&&(v.length>1&&v.sort(jye),c.push(...v));const g=vi(_);if(g===_)break;_=g}if(o.size){const _=Oo(o.values());_.length>1&&_.sort(jye),c.push(..._)}return c}function D9e(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(c=>Sq(c)&&(!Bb(c)||!zc(K_(c.name))));if(i)return i.name.text;const s=ua(e.declarations,c=>{var _,d,v,g;if(!Xl(c))return;const T=M(c);if(!((_=T==null?void 0:T.parent)!=null&&_.parent&&dm(T.parent)&&Hu(T.parent.parent)&&Ki(T.parent.parent.parent)))return;const C=(g=(v=(d=T.parent.parent.symbol.exports)==null?void 0:d.get("export="))==null?void 0:v.valueDeclaration)==null?void 0:g.expression;if(!C)return;const L=t.getSymbolAtLocation(C);if(!L)return;if(((L==null?void 0:L.flags)&2097152?t.getAliasedSymbol(L):L)===c.symbol)return T.parent.parent;function M(k){for(;k.flags&4;)k=k.parent;return k}})[0];if(s)return s.name.text}function Jye(e,t,r,i,o){for(const c in t)for(const _ of t[c]){const d=Xo(_),v=d.indexOf("*"),g=r.map(T=>({ending:T,value:I4(e,[T],o)}));if(Nh(d)&&g.push({ending:void 0,value:e}),v!==-1){const T=d.substring(0,v),C=d.substring(v+1);for(const{ending:L,value:I}of g)if(I.length>=T.length+C.length&&xa(I,T)&&oc(I,C)&&s({ending:L,value:I})){const M=I.substring(T.length,I.length-C.length);return c.replace("*",M)}}else if(Dt(g,T=>T.ending!==0&&d===T.value)||Dt(g,T=>T.ending===0&&d===T.value&&s(T)))return c}function s({ending:c,value:_}){return c!==0||_===I4(e,[c],o,i)}}function P9(e,t,r,i,o,s,c=0){if(typeof o=="string"){const _=Ma(Fi(r,o),void 0),d=zR(t)?zd(t)+F9(t,e):void 0;switch(c){case 0:if(vT(t,_)===0||d&&vT(d,_)===0)return{moduleFileToTry:i};break;case 1:if(Mv(_,t)){const C=Bm(_,t,!1);return{moduleFileToTry:Ma(Fi(Fi(i,o),C),void 0)}}break;case 2:const v=_.indexOf("*"),g=_.slice(0,v),T=_.slice(v+1);if(xa(t,g)&&oc(t,T)){const C=t.slice(g.length,t.length-T.length);return{moduleFileToTry:i.replace("*",C)}}if(d&&xa(d,g)&&oc(d,T)){const C=d.slice(g.length,d.length-T.length);return{moduleFileToTry:i.replace("*",C)}}break}}else{if(Array.isArray(o))return Ie(o,_=>P9(e,t,r,i,_,s));if(typeof o=="object"&&o!==null){if(w9(o))return Ie(fg(o),_=>{const d=Ma(Fi(i,_),void 0),v=oc(_,"/")?1:bu(_,"*")?2:0;return P9(e,t,r,d,o[_],s,v)});for(const _ of fg(o))if(_==="default"||s.indexOf(_)>=0||aN(s,_)){const d=o[_],v=P9(e,t,r,i,d,s);if(v)return v}}}}function R9e(e,t,r,i,o,s){const c=Kye(t,e,i);if(c===void 0)return;const _=Kye(r,e,i),d=ji(_,g=>Pt(c,T=>Db(Bm(g,T,i)))),v=iH(d,qR);if(v)return I4(v,o,s)}function SY({path:e,isRedirect:t},{getCanonicalFileName:r,sourceDirectory:i},o,s,c,_,d,v){if(!s.fileExists||!s.readFile)return;const g=nK(e);if(!g)return;const C=O9(_,c,o).getAllowedEndingsInPreferredOrder();let L=e,I=!1;if(!d){let ee=g.packageRootIndex,X;for(;;){const{moduleFileToTry:ne,packageRootPath:P,blockedByExports:ue,verbatimFromExports:re}=H(ee);if(El(c)!==1){if(ue)return;if(re)return ne}if(P){L=P,I=!0;break}if(X||(X=ne),ee=e.indexOf(Bs,ee+1),ee===-1){L=I4(X,C,c,s);break}}}if(t&&!I)return;const M=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),k=r(L.substring(0,g.topLevelNodeModulesIndex));if(!(xa(i,k)||M&&xa(r(M),k)))return;const U=L.substring(g.topLevelPackageNameIndex+1),j=oN(U);return El(c)===1&&j===U?void 0:j;function H(ee){var X,ne;const P=e.substring(0,ee),ue=Fi(P,"package.json");let re=e,be=!1;const ae=(ne=(X=s.getPackageJsonInfoCache)==null?void 0:X.call(s))==null?void 0:ne.getPackageJsonInfo(ue);if(typeof ae=="object"||ae===void 0&&s.fileExists(ue)){const z=(ae==null?void 0:ae.contents.packageJsonContent)||JSON.parse(s.readFile(ue)),ce=v||o.impliedNodeFormat;if(BJ(c)){const Ae=P.substring(g.topLevelPackageNameIndex+1),te=oN(Ae),Ze=sL(c,ce===99),je=z.exports?P9(c,e,P,te,z.exports,Ze):void 0;if(je){const Ue=zR(je.moduleFileToTry)?{moduleFileToTry:zd(je.moduleFileToTry)+F9(je.moduleFileToTry,c)}:je;return so(Li({},Ue),{verbatimFromExports:!0})}if(z.exports)return{moduleFileToTry:e,blockedByExports:!0}}const he=z.typesVersions?T9(z.typesVersions):void 0;if(he){const Ae=e.slice(P.length+1),te=Jye(Ae,he.paths,C,s,c);te===void 0?be=!0:re=Fi(P,te)}const Ee=z.typings||z.types||z.main||"index.js";if(za(Ee)&&!(be&&KJ(zP(he.paths),Ee))){const Ae=Js(Ee,P,r);if(zd(Ae)===zd(r(re)))return{packageRootPath:P,moduleFileToTry:re}}}else{const z=r(re.substring(g.packageRootIndex+1));if(z==="index.d.ts"||z==="index.js"||z==="index.ts"||z==="index.tsx")return{moduleFileToTry:re,packageRootPath:P}}return{moduleFileToTry:re}}}function N9e(e,t){if(!e.fileExists)return;const r=Ha(jk({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 Kye(e,t,r){return ua(t,i=>{const o=Yye(e,i,r);return o!==void 0&&$ye(o)?void 0:o})}function I4(e,t,r,i){if(Ic(e,[".json",".mjs",".cjs"]))return e;const o=zd(e);if(e===o)return e;if(Ic(e,[".d.mts",".mts",".d.cts",".cts"]))return o+xY(e,r);if(!Ic(e,[".d.ts"])&&Ic(e,[".ts"])&&bu(e,".d."))return Xye(e);switch(t[0]){case 0:const s=UA(o,"/index");return i&&s!==o&&N9e(i,s)?o:s;case 1:return o;case 2:return o+xY(e,r);case 3:if(vd(e)){const c=t.findIndex(d=>d===0||d===1),_=t.indexOf(2);return c!==-1&&c<_?o:o+xY(e,r)}return e;default:return R.assertNever(t[0])}}function Xye(e){const t=Eu(e);if(!oc(e,".ts")||!bu(t,".d.")||Ic(t,[".d.ts"]))return;const r=JR(e,".ts"),i=r.substring(r.lastIndexOf("."));return r.substring(0,r.indexOf(".d."))+i}function xY(e,t){var r;return(r=F9(e,t))!=null?r:R.fail(`Extension ${XR(e)} is unsupported:: FileName:: ${e}`)}function F9(e,t){const r=Nh(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 Yye(e,t,r){const i=TS(t,e,t,r,!1);return Fm(i)?void 0:i}function $ye(e){return xa(e,"..")}var Qye=b({"src/compiler/moduleSpecifiers.ts"(){"use strict";Oa()}}),oE={};B(oE,{countPathComponents:()=>lN,forEachFileNameOfModule:()=>Hye,getModuleSpecifier:()=>M9,getModuleSpecifiers:()=>Gye,getModuleSpecifiersWithCacheInfo:()=>Uye,getNodeModulesPackageName:()=>I9e,tryGetJSExtensionForFile:()=>F9,tryGetModuleSpecifiersFromCache:()=>k9e,tryGetRealFileNameForNonJsDeclarationFileName:()=>Xye,updateModuleSpecifier:()=>L9e});var AY=b({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";Qye()}});function O9e(){this.flags=0}function hs(e){return e.id||(e.id=kY,kY++),e.id}function To(e){return e.id||(e.id=IY,IY++),e.id}function CY(e,t){const r=wg(e);return r===1||t&&r===2}function Zye(e){var t=Ld(()=>{var n=new Map;return e.getSourceFiles().forEach(a=>{a.resolvedModules&&a.resolvedModules.forEach(({resolvedModule:l})=>{l!=null&&l.packageId&&n.set(l.packageId.name,l.extension===".d.ts"||!!n.get(l.packageId.name))})}),n}),r=[],i=n=>{r.push(n)},o,s=new Set,c,_,d=Kc.getSymbolConstructor(),v=Kc.getTypeConstructor(),g=Kc.getSignatureConstructor(),T=0,C=0,L=0,I=0,M=0,k=0,U,j,H=!1,ee=uo(),X=[1],ne=e.getCompilerOptions(),P=ns(ne),ue=uu(ne),re=!!ne.experimentalDecorators,be=WR(ne),ae=jT(ne),z=A_(ne,"strictNullChecks"),ce=A_(ne,"strictFunctionTypes"),he=A_(ne,"strictBindCallApply"),Ee=A_(ne,"strictPropertyInitialization"),Ae=A_(ne,"noImplicitAny"),te=A_(ne,"noImplicitThis"),Ze=A_(ne,"useUnknownInCatchVariables"),je=!!ne.keyofStringsOnly,Ue=ne.suppressExcessPropertyErrors?0:8192,Je=ne.exactOptionalPropertyTypes,Fe=alt(),Be=Pdt(),$e=mo(),ze=uo(),Ge=rs(4,"undefined");Ge.declarations=[];var lt=rs(1536,"globalThis",8);lt.exports=ze,lt.declarations=[],ze.set(lt.escapedName,lt);var Ct=rs(4,"arguments"),bt=rs(4,"require"),zt=ne.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",nt;const ot={getNodeCount:()=>Vu(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>Vu(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>Vu(e.getSourceFiles(),(n,a)=>n+a.symbolCount,C),getTypeCount:()=>T,getInstantiationCount:()=>L,getRelationCacheSizes:()=>({assignable:Md.size,identity:Fd.size,subtype:ah.size,strictSubtype:cp.size}),isUndefinedSymbol:n=>n===Ge,isArgumentsSymbol:n=>n===Ct,isUnknownSymbol:n=>n===an,getMergedSymbol:os,getDiagnostics:_Re,getGlobalDiagnostics:edt,getRecursionIdentity:$L,getUnmatchedProperties:Soe,getTypeOfSymbolAtLocation:(n,a)=>{const l=Ea(a);return l?eat(n,l):Le},getTypeOfSymbol:or,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const l=Ea(n,Ba);return l===void 0?R.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(R.assert(cf(l,l.parent)),CE(l,cl(a)))},getDeclaredTypeOfSymbol:Vs,getPropertiesOfType:gs,getPropertyOfType:(n,a)=>_o(n,cl(a)),getPrivateIdentifierPropertyOfType:(n,a,l)=>{const u=Ea(l);if(!u)return;const h=cl(a),y=bj(h,u);return y?ase(n,y):void 0},getTypeOfPropertyOfType:(n,a)=>hc(n,cl(a)),getIndexInfoOfType:(n,a)=>mh(n,a===0?de:mt),getIndexInfosOfType:Nu,getIndexInfosOfIndexSymbol:bae,getSignaturesOfType:Ja,getIndexTypeOfType:(n,a)=>iy(n,a===0?de:mt),getIndexType:n=>Lm(n),getBaseTypes:Bo,getBaseTypeOfLiteralType:xv,getWidenedType:of,getTypeFromTypeNode:n=>{const a=Ea(n,Bi);return a?pi(a):Le},getParameterType:bp,getParameterIdentifierNameAtPosition:Est,getPromisedTypeOfPromise:gw,getAwaitedType:n=>dT(n),getReturnTypeOfSignature:vs,isNullableType:vj,getNullableType:YV,getNonNullableType:uy,getNonOptionalType:poe,getTypeArguments:ys,typeToTypeNode:$e.typeToTypeNode,indexInfoToIndexSignatureDeclaration:$e.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:$e.signatureToSignatureDeclaration,symbolToEntityName:$e.symbolToEntityName,symbolToExpression:$e.symbolToExpression,symbolToNode:$e.symbolToNode,symbolToTypeParameterDeclarations:$e.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:$e.symbolToParameterDeclaration,typeParameterToDeclaration:$e.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{const l=Ea(n);return l?tdt(l,a):[]},getSymbolAtLocation:n=>{const a=Ea(n);return a?B_(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=Ea(n);return a?ldt(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=Ea(n);return a?cdt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=Ea(n,yd);return a?udt(a):void 0},getExportSymbolOfSymbol(n){return os(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=Ea(n);return a?X2(a):Le},getTypeOfAssignmentPattern:n=>{const a=Ea(n,ak);return a&&Kj(a)||Le},getPropertySymbolOfDestructuringAssignment:n=>{const a=Ea(n,We);return a?ddt(a):void 0},signatureToString:(n,a,l,u)=>le(n,Ea(a),l,u),typeToString:(n,a,l)=>Re(n,Ea(a),l),symbolToString:(n,a,l,u)=>x(n,Ea(a),l,u),typePredicateToString:(n,a,l)=>su(n,Ea(a),l),writeSignature:(n,a,l,u,h)=>le(n,Ea(a),l,u,h),writeType:(n,a,l,u)=>Re(n,Ea(a),l,u),writeSymbol:(n,a,l,u,h)=>x(n,Ea(a),l,u,h),writeTypePredicate:(n,a,l,u)=>su(n,Ea(a),l,u),getAugmentedPropertiesOfType:ile,getRootSymbols:bRe,getSymbolOfExpando:Ij,getContextualType:(n,a)=>{const l=Ea(n,yt);if(l)return a&4?pn(l,()=>pd(l,a)):pd(l,a)},getContextualTypeForObjectLiteralElement:n=>{const a=Ea(n,Iy);return a?qoe(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const l=Ea(n,LS);return l&&zoe(l,a)},getContextualTypeForJsxAttribute:n=>{const a=Ea(n,GM);return a&&F8e(a,void 0)},isContextSensitive:P_,getTypeOfPropertyOfContextualType:lT,getFullyQualifiedName:Jh,getResolvedSignature:(n,a,l)=>gn(n,a,l,0),getResolvedSignatureForStringLiteralCompletions:(n,a,l)=>pn(a,()=>gn(n,l,void 0,32)),getResolvedSignatureForSignatureHelp:(n,a,l)=>sn(n,()=>gn(n,a,l,16)),getExpandedParameters:qIe,hasEffectiveRestParameter:Dm,containsArgumentsReference:hae,getConstantValue:n=>{const a=Ea(n,ARe);return a?ale(a):void 0},isValidPropertyAccess:(n,a)=>{const l=Ea(n,Mfe);return!!l&&Not(l,cl(a))},isValidPropertyAccessForCompletions:(n,a,l)=>{const u=Ea(n,Br);return!!u&&_we(u,a,l)},getSignatureFromDeclaration:n=>{const a=Ea(n,Ya);return a?zp(a):void 0},isImplementationOfOverload:n=>{const a=Ea(n,Ya);return a?SRe(a):void 0},getImmediateAliasedSymbol:Yoe,getAliasedSymbol:ic,getEmitResolver:OL,getExportsOfModule:nv,getExportsAndPropertiesOfModule:F2,forEachExportAndPropertyOfModule:C0,getSymbolWalker:Pye(Stt,f_,vs,Bo,gp,or,F_,Ru,Of,ys),getAmbientModules:Cft,getJsxIntrinsicTagNamesAt:fot,isOptionalParameter:n=>{const a=Ea(n,Ba);return a?B8(a):!1},tryGetMemberInModuleExports:(n,a)=>Xg(cl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>Wf(cl(n),a),tryFindAmbientModule:n=>mae(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>mae(n,!1),getApparentType:nd,getUnionType:ei,isTypeAssignableTo:Co,createAnonymousType:Os,createSignature:ph,createSymbol:rs,createIndexInfo:Cm,getAnyType:()=>Oe,getStringType:()=>de,getNumberType:()=>mt,createPromiseType:X3,createArrayType:Ou,getElementTypeOfArrayType:coe,getBooleanType:()=>Ne,getFalseType:n=>n?at:fe,getTrueType:n=>n?Te:Y,getVoidType:()=>wt,getUndefinedType:()=>He,getNullType:()=>Sn,getESSymbolType:()=>J,getNeverType:()=>Et,getOptionalType:()=>cn,getPromiseType:()=>_3(!1),getPromiseLikeType:()=>kke(!1),getAsyncIterableType:()=>{const n=LV(!1);if(n!==Io)return n},isSymbolAccessible:ov,isArrayType:Yf,isTupleType:Go,isArrayLikeType:H0,isEmptyAnonymousObjectType:og,isTypeInvalidDueToUnionDiscriminant:att,getExactOptionalProperties:wrt,getAllPossiblePropertiesOfTypes:ott,getSuggestedSymbolForNonexistentProperty:lse,getSuggestionForNonexistentProperty:cse,getSuggestedSymbolForNonexistentJSXAttribute:dwe,getSuggestedSymbolForNonexistentSymbol:(n,a,l)=>use(n,cl(a),l),getSuggestionForNonexistentSymbol:(n,a,l)=>kot(n,cl(a),l),getSuggestedSymbolForNonexistentModule:Tj,getSuggestionForNonexistentExport:wot,getSuggestedSymbolForNonexistentClassMember:uwe,getBaseConstraintOfType:td,getDefaultFromTypeParameter:n=>n&&n.flags&262144?YE(n):void 0,resolveName(n,a,l,u){return ml(a,cl(n),l,void 0,void 0,!1,u)},getJsxNamespace:n=>ia(P1(n)),getJsxFragmentFactory:n=>{const a=sle(n);return a&&ia(Of(a).escapedText)},getAccessibleSymbolChain:k0,getTypePredicateOfSignature:f_,resolveExternalModuleName:n=>{const a=Ea(n,yt);return a&&hu(a,a,!0)},resolveExternalModuleSymbol:Sd,tryGetThisTypeAt:(n,a,l)=>{const u=Ea(n);return u&&Uoe(u,a,l)},getTypeArgumentConstraint:n=>{const a=Ea(n,Bi);return a&&Blt(a)},getSuggestionDiagnostics:(n,a)=>{const l=Ea(n,Ki)||R.fail("Could not determine parsed source file.");if(Wk(l,ne,e))return it;let u;try{return o=a,nle(l),R.assert(!!(Xr(l).flags&1)),u=xi(u,SE.getDiagnostics(l.fileName)),LDe(fRe(l),(h,y,A)=>{!zD(h)&&!dRe(y,!!(h.flags&16777216))&&(u||(u=[])).push(so(Li({},A),{category:2}))}),u||it}finally{o=void 0}},runWithCancellationToken:(n,a)=>{try{return o=n,a(ot)}finally{o=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:_v,isDeclarationVisible:O_,isPropertyAccessible:fse,getTypeOnlyAliasDeclaration:Bd,getMemberOverrideModifierStatus:mut,isTypeParameterPossiblyReferenced:v3,typeHasCallOrConstructSignatures:Xj};function sn(n,a){const l=rr(n,LS),u=l&&Xr(l).resolvedSignature;l&&(Xr(l).resolvedSignature=void 0);const h=a();return l&&(Xr(l).resolvedSignature=u),h}function pn(n,a){const l=rr(n,LS);if(l){let h=n;do Xr(h).skipDirectInference=!0,h=h.parent;while(h&&h!==l)}H=!0;const u=sn(n,a);if(H=!1,l){let h=n;do Xr(h).skipDirectInference=void 0,h=h.parent;while(h&&h!==l)}return u}function gn(n,a,l,u){const h=Ea(n,LS);nt=l;const y=h?lI(h,a,u):void 0;return nt=void 0,y}var jn=new Map,Ln=new Map,Zt=new Map,pr=new Map,Ii=new Map,ea=new Map,ta=new Map,Or=new Map,Lt=new Map,yn=new Map,Wt=new Map,In=new Map,Bn=new Map,lr=new Map,Oi=[],bi=new Map,Rn=new Set,an=rs(4,"unknown"),On=rs(0,"__resolving__"),Ir=new Map,Hr=new Map,Oe=Zl(1,"any"),gt=Zl(1,"any",262144),Ot=Zl(1,"any"),Le=Zl(1,"error"),pt=Zl(1,"unresolved"),me=Zl(1,"any",65536),ie=Zl(1,"intrinsic"),ye=Zl(2,"unknown"),W=Zl(2,"unknown"),He=Zl(32768,"undefined"),et=z?He:Zl(32768,"undefined",65536),Ye=Zl(32768,"undefined"),jt=Je?Ye:He,cn=Zl(32768,"undefined"),Sn=Zl(65536,"null"),Er=z?Sn:Zl(65536,"null",65536),de=Zl(4,"string"),mt=Zl(8,"number"),Jt=Zl(64,"bigint"),at=Zl(512,"false"),fe=Zl(512,"false"),Te=Zl(512,"true"),Y=Zl(512,"true");Te.regularType=Y,Te.freshType=Te,Y.regularType=Y,Y.freshType=Te,at.regularType=fe,at.freshType=at,fe.regularType=fe,fe.freshType=at;var Ne=ei([fe,Y]),J=Zl(4096,"symbol"),wt=Zl(16384,"void"),Et=Zl(131072,"never"),ut=Zl(131072,"never",262144),nn=Zl(131072,"never"),ir=Zl(131072,"never"),ai=Zl(67108864,"object"),gi=ei([de,mt]),ui=ei([de,mt,J]),Wi=je?de:ui,go=ei([mt,Jt]),xo=ei([de,mt,Ne,Jt,Sn,He]),oo=QE(["",""],[mt]),da=y3(n=>n.flags&262144?rrt(n):n,()=>"(restrictive mapper)"),Hi=y3(n=>n.flags&262144?Ot:n,()=>"(permissive mapper)"),$r=Zl(131072,"never"),ls=y3(n=>n.flags&262144?$r:n,()=>"(unique literal mapper)"),mi,fa=y3(n=>(mi&&(n===$d||n===lc||n===Zc)&&mi(!0),n),()=>"(unmeasurable reporter)"),wn=y3(n=>(mi&&(n===$d||n===lc||n===Zc)&&mi(!1),n),()=>"(unreliable reporter)"),pa=Os(void 0,ee,it,it,it),nc=Os(void 0,ee,it,it,it);nc.objectFlags|=2048;var al=rs(2048,"__type");al.members=uo();var jl=Os(al,ee,it,it,it),$l=Os(void 0,ee,it,it,it),Wl=z?ei([He,Sn,$l]):ye,Io=Os(void 0,ee,it,it,it);Io.instantiations=new Map;var La=Os(void 0,ee,it,it,it);La.objectFlags|=262144;var Qo=Os(void 0,ee,it,it,it),Hl=Os(void 0,ee,it,it,it),ou=Os(void 0,ee,it,it,it),$d=Gd(),lc=Gd();lc.constraint=$d;var Zc=Gd(),Rs=Gd(),yl=Gd();yl.constraint=Rs;var nl=d3(1,"<<unresolved>>",0,Oe),Ys=ph(void 0,void 0,void 0,it,Oe,void 0,0,0),rn=ph(void 0,void 0,void 0,it,Le,void 0,0,0),zl=ph(void 0,void 0,void 0,it,Oe,void 0,0,0),wu=ph(void 0,void 0,void 0,it,ut,void 0,0,0),Zu=Cm(mt,de,!0),_e=new Map,kt={get yieldType(){return R.fail("Not supported")},get returnType(){return R.fail("Not supported")},get nextType(){return R.fail("Not supported")}},Ht=_y(Oe,Oe,Oe),Z=_y(Oe,Oe,ye),st=_y(Et,Oe,He),At={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Btt,getGlobalIterableType:LV,getGlobalIterableIteratorType:Gtt,getGlobalGeneratorType:Utt,resolveIterationType:dT,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},fn={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Vtt,getGlobalIterableType:Iae,getGlobalIterableIteratorType:jtt,getGlobalGeneratorType:Wtt,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},Dr,Mr=new Map,Sa=!1,cs,yo,Ho,Qa,_l,mc,bd,Ts,fs,pl,Qd,ql,Uf,Ce,Nt,Nn,Qi,ko,oe,dt,Bt,Ft,un,Vn,Rr,ri,Mi,Wa,zo,Ss,$s,Ed,vf,rc,Zd,Du,bf,w_,Zo,D_,Ef,op,Fp,V,tt,Kt,Yn,Da,Ia,De,Ve,It,Mt,mn,vn=new Map,En=0,Wn=0,Jr=0,Xi=!1,nr=0,_n,dr,Aa,Qs=[],cc=[],ih=[],Mg=0,sp=[],w1=[],f0=0,Vx=Xf(""),x2=Jp(0),jx=NV({negative:!1,base10Value:"0"}),Pg=[],lp=[],_0=[],Hh=0,Bp=10,p0=[],gE=[],D1=[],Fg=[],A2=[],yE=[],vE=[],bE=[],m0=[],Wx=[],EE=[],TE=[],h0=[],R1=[],g0=[],C2=[],Bg=[],es=EC(),SE=EC(),NL=dh(),Ky,Gg,ah=new Map,cp=new Map,Md=new Map,Pd=new Map,Fd=new Map,N1=new Map,O1=uo();O1.set(Ge.escapedName,Ge);var Hx=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",ne.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Fdt(),ot;function M1(n){return n?lr.get(n):void 0}function Ug(n,a){return n&&lr.set(n,a),a}function P1(n){if(n){const a=Zn(n);if(a)if(ux(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const l=a.pragmas.get("jsxfrag");if(l){const h=ja(l)?l[0]:l;if(a.localJsxFragmentFactory=mx(h.arguments.factory,P),ct(a.localJsxFragmentFactory,F1,uf),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Of(a.localJsxFragmentFactory).escapedText}const u=sle(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=Of(u).escapedText}else{const l=L2(a);if(l)return a.localJsxNamespace=l}}return Ky||(Ky="React",ne.jsxFactory?(Gg=mx(ne.jsxFactory,P),ct(Gg,F1),Gg&&(Ky=Of(Gg).escapedText)):ne.reactNamespace&&(Ky=cl(ne.reactNamespace))),Gg||(Gg=O.createQualifiedName(O.createIdentifier(ia(Ky)),"createElement")),Ky}function L2(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const l=ja(a)?a[0]:a;if(n.localJsxFactory=mx(l.arguments.factory,P),ct(n.localJsxFactory,F1,uf),n.localJsxFactory)return n.localJsxNamespace=Of(n.localJsxFactory).escapedText}}function F1(n){return Xm(n,-1,-1),Fn(n,F1,Dg)}function OL(n,a){return _Re(n,a),Be}function zx(n,a,l,u,h,y){const A=n?Nr(n,a,l,u,h,y):Gs(a,l,u,h,y),N=es.lookup(A);return N||(es.add(A),A)}function y0(n,a,l,u,h,y,A){const N=Xe(a,l,u,h,y,A);return N.skippedOn=n,N}function xE(n,a,l,u,h,y){return n?Nr(n,a,l,u,h,y):Gs(a,l,u,h,y)}function Xe(n,a,l,u,h,y){const A=xE(n,a,l,u,h,y);return es.add(A),A}function Xy(n,a){n?es.add(a):SE.add(so(Li({},a),{category:2}))}function hm(n,a,l,u,h,y,A){if(a.pos<0||a.end<0){if(!n)return;const N=Zn(a);Xy(n,"message"in l?Pc(N,0,0,l,u,h,y,A):Rq(N,l));return}Xy(n,"message"in l?Nr(a,l,u,h,y,A):bg(Zn(a),a,l))}function v0(n,a,l,u,h,y,A){const N=Xe(n,l,u,h,y,A);if(a){const F=Nr(n,m.Did_you_forget_to_use_await);$o(N,F)}return N}function B1(n,a){const l=Array.isArray(n)?Ie(n,Uz):Uz(n);return l&&$o(a,Nr(l,m.The_declaration_was_marked_as_deprecated_here)),SE.add(a),a}function b0(n){if(ge(n.declarations)>1){const a=xd(n);if(a&&a.flags&64)return Dt(n.declarations,l=>!!(Ap(l)&268435456))}return!!(yj(n)&268435456)}function Vg(n,a,l){const u=Nr(n,m._0_is_deprecated,l);return B1(a,u)}function I2(n,a,l,u){const h=l?Nr(n,m.The_signature_0_of_1_is_deprecated,u,l):Nr(n,m._0_is_deprecated,u);return B1(a,h)}function rs(n,a,l){C++;const u=new d(n|33554432,a);return u.links=new RY,u.links.checkFlags=l||0,u}function up(n,a){const l=rs(1,n);return l.links.type=a,l}function AE(n,a){const l=rs(4,n);return l.links.type=a,l}function xc(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 zh(n,a){a.mergeId||(a.mergeId=wY,wY++),p0[a.mergeId]=n}function G1(n){const a=rs(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)),zh(a,n),a}function dp(n,a,l=!1){if(!(n.flags&xc(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const h=Ql(n);if(h===an)return a;n=G1(h)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&uR(n,a.valueDeclaration),xi(n.declarations,a.declarations),a.members&&(n.members||(n.members=uo()),Uc(n.members,a.members,l)),a.exports&&(n.exports||(n.exports=uo()),Uc(n.exports,a.exports,l)),l||zh(n,a)}else if(n.flags&1024)n!==lt&&Xe(a.declarations&&ka(a.declarations[0]),m.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,x(n));else{const h=!!(n.flags&384||a.flags&384),y=!!(n.flags&2||a.flags&2),A=h?m.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:y?m.Cannot_redeclare_block_scoped_variable_0:m.Duplicate_identifier_0,N=a.declarations&&Zn(a.declarations[0]),F=n.declarations&&Zn(n.declarations[0]),K=HM(N,ne.checkJs),Q=HM(F,ne.checkJs),ve=x(a);if(N&&F&&Dr&&!h&&N!==F){const Pe=vT(N.path,F.path)===-1?N:F,Me=Pe===N?F:N,_t=Eb(Dr,`${Pe.path}|${Me.path}`,()=>({firstFile:Pe,secondFile:Me,conflictingSymbols:new Map})),Ut=Eb(_t.conflictingSymbols,ve,()=>({isBlockScoped:y,firstFileLocations:[],secondFileLocations:[]}));K||u(Ut.firstFileLocations,a),Q||u(Ut.secondFileLocations,n)}else K||U1(a,A,ve,n),Q||U1(n,A,ve,a)}return n;function u(h,y){if(y.declarations)for(const A of y.declarations)y_(h,A)}}function U1(n,a,l,u){Ie(n.declarations,h=>{pu(h,a,l,u.declarations)})}function pu(n,a,l,u){const h=(u1(n,!1)?zq(n):ka(n))||n,y=zx(h,a,l);for(const A of u||it){const N=(u1(A,!1)?zq(A):ka(A))||A;if(N===h)continue;y.relatedInformation=y.relatedInformation||[];const F=Nr(N,m._0_was_also_declared_here,l),K=Nr(N,m.and_here);ge(y.relatedInformation)>=5||Dt(y.relatedInformation,Q=>Gk(Q,K)===0||Gk(Q,F)===0)||$o(y,ge(y.relatedInformation)?K:F)}}function jg(n,a){if(!(n!=null&&n.size))return a;if(!(a!=null&&a.size))return n;const l=uo();return Uc(l,n),Uc(l,a),l}function Uc(n,a,l=!1){a.forEach((u,h)=>{const y=n.get(h);n.set(h,y?dp(y,u,l):os(u))})}function k2(n){var a,l,u;const h=n.parent;if(((a=h.symbol.declarations)==null?void 0:a[0])!==h){R.assert(h.symbol.declarations.length>1);return}if(im(h))Uc(ze,h.symbol.exports);else{const y=n.parent.parent.flags&16777216?void 0:m.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let A=Xh(n,n,y,!0);if(!A)return;if(A=Sd(A),A.flags&1920)if(Dt(yo,N=>A===N.symbol)){const N=dp(h.symbol,A,!0);Ho||(Ho=new Map),Ho.set(n.text,N)}else{if((l=A.exports)!=null&&l.get("__export")&&((u=h.symbol.exports)!=null&&u.size)){const N=Yie(A,"resolvedExports");for(const[F,K]of Oo(h.symbol.exports.entries()))N.has(F)&&!A.exports.has(F)&&dp(N.get(F),K)}dp(A,h.symbol)}else Xe(n,m.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function ML(n,a,l){a.forEach((h,y)=>{const A=n.get(y);A?Ie(A.declarations,u(ia(y),l)):n.set(y,h)});function u(h,y){return A=>es.add(Nr(A,y,h))}}function zi(n){var a;if(n.flags&33554432)return n.links;const l=To(n);return(a=gE[l])!=null?a:gE[l]=new RY}function Xr(n){const a=hs(n);return D1[a]||(D1[a]=new O9e)}function oh(n){return n.kind===308&&!_f(n)}function ef(n,a,l){if(l){const u=os(n.get(a));if(u&&(R.assert((Dl(u)&1)===0,"Should never get an instantiated symbol here."),u.flags&l||u.flags&2097152&&mu(u)&l))return u}}function CE(n,a){const l=n.parent,u=n.parent.parent,h=ef(l.locals,a,111551),y=ef(pv(u.symbol),a,111551);return h&&y?[h,y]:R.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Wg(n,a){const l=Zn(n),u=Zn(a),h=Hm(n);if(l!==u){if(ue&&(l.externalModuleIndicator||u.externalModuleIndicator)||!Ks(ne)||tI(a)||n.flags&16777216||A(a,n))return!0;const F=e.getSourceFiles();return F.indexOf(l)<=F.indexOf(u)}if(n.pos<=a.pos&&!(ro(n)&&QD(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===205){const F=f1(a,205);return F?rr(F,ms)!==rr(n,ms)||n.pos<F.pos:Wg(f1(n,257),a)}else{if(n.kind===257)return!y(n,a);if(Bc(n))return!rr(a,F=>Cs(F)&&F.parent.parent===n);if(ro(n))return!N(n,a,!1);if(cf(n,n.parent))return!(ns(ne)===99&&be&&wc(n)===wc(a)&&A(a,n))}return!0}if(a.parent.kind===278||a.parent.kind===274&&a.parent.isExportEquals||a.kind===274&&a.isExportEquals||a.flags&8388608||tI(a)||Z4e(a))return!0;if(A(a,n))return ns(ne)===99&&be&&wc(n)&&(ro(n)||cf(n,n.parent))?!N(n,a,!0):!0;return!1;function y(F,K){switch(F.parent.parent.kind){case 240:case 245:case 247:if(gm(K,F,h))return!0;break}const Q=F.parent.parent;return QA(Q)&&gm(K,Q.expression,h)}function A(F,K){return!!rr(F,Q=>{if(Q===h)return"quit";if(Ya(Q))return!0;if(Rl(Q))return K.pos<F.pos;const ve=li(Q.parent,ro);if(ve&&ve.initializer===Q){if(Xa(Q.parent)){if(K.kind===171)return!0;if(ro(K)&&wc(F)===wc(K)){const Me=K.name;if(We(Me)||Ri(Me)){const _t=or(kr(K)),Ut=ur(K.parent.members,Rl);if(Eut(Me,_t,Ut,K.parent.pos,Q.pos))return!0}}}else if(!(K.kind===169&&!Xa(K))||wc(F)!==wc(K))return!0}return!1})}function N(F,K,Q){return K.end>F.end?!1:rr(K,Pe=>{if(Pe===F)return"quit";switch(Pe.kind){case 216:return!0;case 169:return Q&&(ro(F)&&Pe.parent===F.parent||cf(F,F.parent)&&Pe.parent===F.parent.parent)?"quit":!0;case 238:switch(Pe.parent.kind){case 174:case 171:case 175:return!0;default:return!1}default:return!1}})===void 0}}function qh(n,a,l){const u=ns(ne),h=a;if(Ba(l)&&h.body&&n.valueDeclaration&&n.valueDeclaration.pos>=h.body.pos&&n.valueDeclaration.end<=h.body.end&&u>=2){const N=Xr(h);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=Ie(h.parameters,y)||!1),!N.declarationRequiresScopeChange}return!1;function y(N){return A(N.name)||!!N.initializer&&A(N.initializer)}function A(N){switch(N.kind){case 216:case 215:case 259:case 173:return!1;case 171:case 174:case 175:case 299:return A(N.name);case 169:return Tc(N)?u<99||!be:A(N.name);default:return zz(N)||xu(N)?u<7:ms(N)&&N.dotDotDotToken&&$m(N.parent)?u<4:Bi(N)?!1:Pa(N,A)||!1}}}function sh(n){return AT(n)&&yg(n.type)||h4(n)&&yg(n.typeExpression)}function ml(n,a,l,u,h,y,A=!1,N=!0){return V1(n,a,l,u,h,y,A,N,ef)}function V1(n,a,l,u,h,y,A,N,F){var K,Q,ve;const Pe=n;let Me,_t,Ut,Mn,xn,Kn=!1;const hn=n;let Tn,br=!1;e:for(;n;){if(a==="const"&&sh(n))return;if(Vm(n)&&n.locals&&!oh(n)&&(Me=F(n.locals,a,l))){let Gn=!0;if(Ya(n)&&_t&&_t!==n.body?(l&Me.flags&788968&&_t.kind!==323&&(Gn=Me.flags&262144?_t===n.type||_t.kind===166||_t.kind===344||_t.kind===345||_t.kind===165:!1),l&Me.flags&3&&(qh(Me,n,_t)?Gn=!1:Me.flags&1&&(Gn=_t.kind===166||_t===n.type&&!!rr(Me.valueDeclaration,Ba)))):n.kind===191&&(Gn=_t===n.trueType),Gn)break e;Me=void 0}switch(Kn=Kn||j1(n,_t),n.kind){case 308:if(!_f(n))break;br=!0;case 264:const Gn=((K=kr(n))==null?void 0:K.exports)||ee;if(n.kind===308||Xl(n)&&n.flags&16777216&&!im(n)){if(Me=Gn.get("default")){const oi=xC(Me);if(oi&&Me.flags&l&&oi.escapedName===a)break e;Me=void 0}const ti=Gn.get(a);if(ti&&ti.flags===2097152&&(Il(ti,278)||Il(ti,277)))break}if(a!=="default"&&(Me=F(Gn,a,l&2623475)))if(Ki(n)&&n.commonJsModuleIndicator&&!((Q=Me.declarations)!=null&&Q.some(T_)))Me=void 0;else break e;break;case 263:if(Me=F(((ve=kr(n))==null?void 0:ve.exports)||ee,a,l&8)){u&&Y_(ne)&&!(n.flags&16777216)&&Zn(n)!==Zn(Me.valueDeclaration)&&Xe(hn,m.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,ia(a),zt,`${ia(tf(n).escapedName)}.${ia(a)}`);break e}break;case 169:if(!Xa(n)){const ti=I0(n.parent);ti&&ti.locals&&F(ti.locals,a,l&111551)&&(R.assertNode(n,ro),Mn=n)}break;case 260:case 228:case 261:if(Me=F(kr(n).members||ee,a,l&788968)){if(!qx(Me,n)){Me=void 0;break}if(_t&&Xa(_t)){u&&Xe(hn,m.Static_members_cannot_reference_class_type_parameters);return}break e}if(Ku(n)&&l&32){const ti=n.name;if(ti&&a===ti.escapedText){Me=n.symbol;break e}}break;case 230:if(_t===n.expression&&n.parent.token===94){const ti=n.parent.parent;if(_i(ti)&&(Me=F(kr(ti).members,a,l&788968))){u&&Xe(hn,m.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 164:if(Tn=n.parent.parent,(_i(Tn)||Tn.kind===261)&&(Me=F(kr(Tn).members,a,l&788968))){u&&Xe(hn,m.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 216:if(ns(ne)>=2)break;case 171:case 173:case 174:case 175:case 259:if(l&3&&a==="arguments"){Me=Ct;break e}break;case 215:if(l&3&&a==="arguments"){Me=Ct;break e}if(l&16){const ti=n.name;if(ti&&a===ti.escapedText){Me=n.symbol;break e}}break;case 167:n.parent&&n.parent.kind===166&&(n=n.parent),n.parent&&(qc(n.parent)||n.parent.kind===260)&&(n=n.parent);break;case 349:case 341:case 343:const qn=vk(n);qn&&(n=qn.parent);break;case 166:_t&&(_t===n.initializer||_t===n.name&&$a(_t))&&(xn||(xn=n));break;case 205:_t&&(_t===n.initializer||_t===n.name&&$a(_t))&&FT(n)&&!xn&&(xn=n);break;case 192:if(l&262144){const ti=n.typeParameter.name;if(ti&&a===ti.escapedText){Me=n.typeParameter.symbol;break e}}break}D2(n)&&(Ut=n),_t=n,n=wp(n)?bP(n)||n.parent:(_m(n)||q5(n))&&d1(n)||n.parent}if(y&&Me&&(!Ut||Me!==Ut.symbol)&&(Me.isReferenced|=l),!Me){if(_t&&(R.assertNode(_t,Ki),_t.commonJsModuleIndicator&&a==="exports"&&l&_t.symbol.flags))return _t.symbol;A||(Me=F(ze,a,l))}if(!Me&&Pe&&_r(Pe)&&Pe.parent&&wd(Pe.parent,!1))return bt;function ln(){return Mn&&!(be&&ns(ne)>=9)?(Xe(hn,hn&&Mn.type&&xM(Mn.type,hn.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,Ds(Mn.name),u_(h)),!0):!1}if(Me){if(u&&ln())return}else{u&&i(()=>{if(!hn||!Jx(hn,a,h)&&!ln()&&!E0(hn)&&!N2(hn,a,l)&&!O2(hn,a)&&!Xx(hn,a,l)&&!Vf(hn,a,l)&&!Kx(hn,a,l)){let Gn,qn;if(h&&(qn=Lot(h),qn&&Xe(hn,u,u_(h),qn)),!qn&&N&&Hh<Bp&&(Gn=use(Pe,a,l),(Gn==null?void 0:Gn.valueDeclaration)&&Hu(Gn.valueDeclaration)&&im(Gn.valueDeclaration)&&(Gn=void 0),Gn)){const oi=x(Gn),ma=sse(Pe,Gn,!1),eo=l===1920||h&&typeof h!="string"&&tl(h)?m.Cannot_find_namespace_0_Did_you_mean_1:ma?m.Could_not_find_name_0_Did_you_mean_1:m.Cannot_find_name_0_Did_you_mean_1,Cc=xE(hn,eo,u_(h),oi);Xy(!ma,Cc),Gn.valueDeclaration&&$o(Cc,Nr(Gn.valueDeclaration,m._0_is_declared_here,oi))}!Gn&&!qn&&h&&Xe(hn,u,u_(h)),Hh++}});return}return u&&i(()=>{if(hn&&(l&2||(l&32||l&384)&&(l&111551)===111551)){const Gn=jp(Me);(Gn.flags&2||Gn.flags&32||Gn.flags&384)&&H1(Gn,hn)}if(Me&&br&&(l&111551)===111551&&!(Pe.flags&8388608)){const Gn=os(Me);ge(Gn.declarations)&&Qn(Gn.declarations,qn=>x6(qn)||Ki(qn)&&!!qn.symbol.globalExports)&&hm(!ne.allowUmdGlobalAccess,hn,m._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,ia(a))}if(Me&&xn&&!Kn&&(l&111551)===111551){const Gn=os(vV(Me)),qn=zm(xn);Gn===kr(xn)?Xe(hn,m.Parameter_0_cannot_reference_itself,Ds(xn.name)):Gn.valueDeclaration&&Gn.valueDeclaration.pos>xn.pos&&qn.parent.locals&&F(qn.parent.locals,Gn.escapedName,l)===Gn&&Xe(hn,m.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ds(xn.name),Ds(hn))}if(Me&&hn&&l&111551&&Me.flags&2097152&&!(Me.flags&111551)&&!qS(hn)){const Gn=Bd(Me,111551);if(Gn){const qn=Gn.kind===278||Gn.kind===275||Gn.kind===277?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,ti=ia(a);w2(Xe(hn,qn,ti),Gn,ti)}}}),Me}function w2(n,a,l){return a?$o(n,Nr(a,a.kind===278||a.kind===275||a.kind===277?m._0_was_exported_here:m._0_was_imported_here,l)):n}function j1(n,a){return n.kind!==216&&n.kind!==215?a4(n)||(el(n)||n.kind===169&&!Xa(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Qr(n,512)?!0:!RT(n)}function D2(n){switch(n.kind){case 259:case 260:case 261:case 263:case 262:case 264:return!0;default:return!1}}function u_(n){return za(n)?ia(n):Ds(n)}function qx(n,a){if(n.declarations){for(const l of n.declarations)if(l.kind===165&&(wp(l.parent)?MS(l.parent):l.parent)===a)return!(wp(l.parent)&&$t(l.parent.parent.tags,T_))}return!1}function Jx(n,a,l){if(!We(n)||n.escapedText!==a||pRe(n)||tI(n))return!1;const u=kd(n,!1,!1);let h=u;for(;h;){if(_i(h.parent)){const y=kr(h.parent);if(!y)break;const A=or(y);if(_o(A,a))return Xe(n,m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,u_(l),x(y)),!0;if(h===u&&!Xa(h)){const N=Vs(y).thisType;if(_o(N,a))return Xe(n,m.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,u_(l)),!0}}h=h.parent}return!1}function E0(n){const a=R2(n);return a&&Pl(a,64,!0)?(Xe(n,m.Cannot_extend_an_interface_0_Did_you_mean_implements,kc(a)),!0):!1}function R2(n){switch(n.kind){case 79:case 208:return n.parent?R2(n.parent):void 0;case 230:if(Jl(n.expression))return n.expression;default:return}}function N2(n,a,l){const u=1920|(_r(n)?111551:0);if(l===u){const h=Ql(ml(n,a,788968&~u,void 0,void 0,!1)),y=n.parent;if(h){if(Rd(y)){R.assert(y.left===n,"Should only be resolving left side of qualified name as a namespace");const A=y.right.escapedText;if(_o(Vs(h),A))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,ia(a),ia(A)),!0}return Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,ia(a)),!0}}return!1}function Kx(n,a,l){if(l&788584){const u=Ql(ml(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return Xe(n,m._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,ia(a)),!0}return!1}function W1(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function O2(n,a){return W1(a)&&n.parent.kind===278?(Xe(n,m.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function Vf(n,a,l){if(l&111551){if(W1(a))return Hg(n)?Xe(n,m.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,ia(a)):Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,ia(a)),!0;const u=Ql(ml(n,a,788544,void 0,void 0,!1)),h=u&&mu(u);if(u&&h!==void 0&&!(h&111551)){const y=ia(a);return fp(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):Gp(n,u)?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 Hg(n){const a=n.parent.parent,l=a.parent;if(a&&l){const u=Jd(a)&&a.token===94,h=dd(l);return u&&h}return!1}function Gp(n,a){const l=rr(n.parent,u=>Cs(u)||Mf(u)?!1:hf(u)||"quit");if(l&&l.members.length===1){const u=Vs(a);return!!(u.flags&1048576)&&Q3(u,384,!0)}return!1}function fp(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Xx(n,a,l){if(l&111127){if(Ql(ml(n,a,1024,void 0,void 0,!1)))return Xe(n,m.Cannot_use_namespace_0_as_a_value,ia(a)),!0}else if(l&788544&&Ql(ml(n,a,1536,void 0,void 0,!1)))return Xe(n,m.Cannot_use_namespace_0_as_a_type,ia(a)),!0;return!1}function H1(n,a){var l;if(R.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const u=(l=n.declarations)==null?void 0:l.find(h=>Eq(h)||_i(h)||h.kind===263);if(u===void 0)return R.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(u.flags&16777216)&&!Wg(u,a)){let h;const y=Ds(ka(u));n.flags&2?h=Xe(a,m.Block_scoped_variable_0_used_before_its_declaration,y):n.flags&32?h=Xe(a,m.Class_0_used_before_its_declaration,y):n.flags&256?h=Xe(a,m.Enum_0_used_before_its_declaration,y):(R.assert(!!(n.flags&128)),Kb(ne)&&(h=Xe(a,m.Enum_0_used_before_its_declaration,y))),h&&$o(h,Nr(u,m._0_is_declared_here,y))}}function gm(n,a,l){return!!a&&!!rr(n,u=>u===a||(u===l||Ya(u)&&(!RT(u)||bC(u))?"quit":!1))}function M2(n){switch(n.kind){case 268:return n;case 270:return n.parent;case 271:return n.parent.parent;case 273:return n.parent.parent.parent;default:return}}function Td(n){return n.declarations&&yi(n.declarations,zg)}function zg(n){return n.kind===268||n.kind===267||n.kind===270&&!!n.name||n.kind===271||n.kind===277||n.kind===273||n.kind===278||n.kind===274&&gC(n)||Tr(n)&&wl(n)===2&&gC(n)||ul(n)&&Tr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63&&ym(n.parent.right)||n.kind===300||n.kind===299&&ym(n.initializer)||n.kind===257&&jb(n)||n.kind===205&&jb(n.parent.parent)}function ym(n){return ER(n)||Us(n)&&Xp(n)}function vm(n,a){const l=Qy(n);if(l){const h=Fk(l.expression).arguments[0];return We(l.name)?Ql(_o(ske(h),l.name.escapedText)):void 0}if($i(n)||n.moduleReference.kind===280){const h=hu(n,Vq(n)||gk(n)),y=Sd(h);return N_(n,h,y,!1),y}const u=Vp(n.moduleReference,a);return qg(n,u),u}function qg(n,a){if(N_(n,void 0,a,!1)&&!n.isTypeOnly){const l=Bd(kr(n)),u=l.kind===278||l.kind===275,h=u?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=u?m._0_was_exported_here:m._0_was_imported_here,A=l.kind===275?"*":ia(l.name.escapedText);$o(Xe(n.moduleReference,h),Nr(l,y,A))}}function LE(n,a,l,u){const h=n.exports.get("export="),y=h?_o(or(h),a,!0):n.exports.get(a),A=Ql(y,u);return N_(l,y,A,!1),A}function P2(n){return Vl(n)&&!n.isExportEquals||Qr(n,1024)||yd(n)}function Yy(n){return As(n)?Dp(Zn(n),n):void 0}function IE(n,a){return n===99&&a===1}function Ns(n){return Yy(n)===99&&oc(n.text,".json")}function $y(n,a,l,u){const h=n&&Yy(u);if(n&&h!==void 0){const y=IE(h,n.impliedNodeFormat);if(h===99||y)return y}if(!ae)return!1;if(!n||n.isDeclarationFile){const y=LE(a,"default",void 0,!0);return!(y&&Dt(y.declarations,P2)||LE(a,cl("__esModule"),void 0,l))}return ld(n)?typeof n.externalModuleIndicator!="object"&&!LE(a,cl("__esModule"),void 0,l):NE(a)}function Yx(n,a){const l=hu(n,n.parent.moduleSpecifier);if(l)return z1(l,n,a)}function z1(n,a,l){var u;let h;fk(n)?h=n:h=LE(n,"default",a,l);const y=(u=n.declarations)==null?void 0:u.find(Ki),A=q1(a);if(!A)return h;const N=Ns(A),F=$y(y,n,l,A);if(!h&&!F&&!N)if(NE(n)&&!(jT(ne)||$_(ne))){const K=ue>=5?"allowSyntheticDefaultImports":"esModuleInterop",ve=n.exports.get("export=").valueDeclaration,Pe=Xe(a.name,m.Module_0_can_only_be_default_imported_using_the_1_flag,x(n),K);ve&&$o(Pe,Nr(ve,m.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,K))}else Qm(a)?$x(n,a):T0(n,n,a,xS(a)&&a.propertyName||a.name);else if(F||N){const K=Sd(n,l)||Ql(n,l);return N_(a,n,K,!1),K}return N_(a,h,void 0,!1),h}function q1(n){switch(n.kind){case 270:return n.parent.moduleSpecifier;case 268:return Zm(n.moduleReference)?n.moduleReference.expression:void 0;case 271:return n.parent.parent.moduleSpecifier;case 273:return n.parent.parent.parent.moduleSpecifier;case 278:return n.parent.parent.moduleSpecifier;default:return R.assertNever(n)}}function $x(n,a){var l,u,h;if((l=n.exports)!=null&&l.has(a.symbol.escapedName))Xe(a.name,m.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,x(n),x(a.symbol));else{const y=Xe(a.name,m.Module_0_has_no_default_export,x(n)),A=(u=n.exports)==null?void 0:u.get("__export");if(A){const N=(h=A.declarations)==null?void 0:h.find(F=>{var K,Q;return!!(au(F)&&F.moduleSpecifier&&((Q=(K=hu(F,F.moduleSpecifier))==null?void 0:K.exports)!=null&&Q.has("default")))});N&&$o(y,Nr(N,m.export_Asterisk_does_not_re_export_a_default))}}}function PL(n,a){const l=n.parent.parent.moduleSpecifier,u=hu(n,l),h=Y1(u,l,a,!1);return N_(n,u,h,!1),h}function Qx(n,a){const l=n.parent.moduleSpecifier,u=l&&hu(n,l),h=l&&Y1(u,l,a,!1);return N_(n,u,h,!1),h}function mr(n,a){if(n===an&&a===an)return an;if(n.flags&790504)return n;const l=rs(n.flags|a.flags,n.escapedName);return R.assert(n.declarations||a.declarations),l.declarations=BA(ba(n.declarations,a.declarations),r1),l.parent=n.parent||a.parent,n.valueDeclaration&&(l.valueDeclaration=n.valueDeclaration),a.members&&(l.members=new Map(a.members)),n.exports&&(l.exports=new Map(n.exports)),l}function Ml(n,a,l,u){var h;if(n.flags&1536){const y=Tf(n).get(a.escapedText),A=Ql(y,u),N=(h=zi(n).typeOnlyExportStarMap)==null?void 0:h.get(a.escapedText);return N_(l,y,A,!1,N,a.escapedText),A}}function _a(n,a){if(n.flags&3){const l=n.valueDeclaration.type;if(l)return Ql(_o(pi(l),a))}}function jf(n,a,l=!1){var u;const h=Vq(n)||n.moduleSpecifier,y=hu(n,h),A=!Br(a)&&a.propertyName||a.name;if(!We(A))return;const N=A.escapedText==="default"&&!!(ne.allowSyntheticDefaultImports||$_(ne)),F=Y1(y,h,!1,N);if(F&&A.escapedText){if(fk(y))return y;let K;y&&y.exports&&y.exports.get("export=")?K=_o(or(F),A.escapedText,!0):K=_a(F,A.escapedText),K=Ql(K,l);let Q=Ml(F,A,a,l);if(Q===void 0&&A.escapedText==="default"){const Pe=(u=y.declarations)==null?void 0:u.find(Ki);(Ns(h)||$y(Pe,y,l,h))&&(Q=Sd(y,l)||Ql(y,l))}const ve=Q&&K&&Q!==K?mr(K,Q):Q||K;return ve||T0(y,F,n,A),ve}}function T0(n,a,l,u){var h;const y=Jh(n,l),A=Ds(u),N=Tj(u,a);if(N!==void 0){const F=x(N),K=Xe(u,m._0_has_no_exported_member_named_1_Did_you_mean_2,y,A,F);N.valueDeclaration&&$o(K,Nr(N.valueDeclaration,m._0_is_declared_here,F))}else(h=n.exports)!=null&&h.has("default")?Xe(u,m.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,y,A):lh(l,u,A,n,y)}function lh(n,a,l,u,h){var y,A;const N=(A=(y=li(u.valueDeclaration,Vm))==null?void 0:y.locals)==null?void 0:A.get(a.escapedText),F=u.exports;if(N){const K=F==null?void 0:F.get("export=");if(K)bm(K,N)?ar(n,a,l,h):Xe(a,m.Module_0_has_no_exported_member_1,h,l);else{const Q=F?$t(pae(F),Pe=>!!bm(Pe,N)):void 0,ve=Q?Xe(a,m.Module_0_declares_1_locally_but_it_is_exported_as_2,h,l,x(Q)):Xe(a,m.Module_0_declares_1_locally_but_it_is_not_exported,h,l);N.declarations&&$o(ve,...Pt(N.declarations,(Pe,Me)=>Nr(Pe,Me===0?m._0_is_declared_here:m.and_here,l)))}}else Xe(a,m.Module_0_has_no_exported_member_1,h,l)}function ar(n,a,l,u){if(ue>=5){const h=$_(ne)?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,h,l)}else if(_r(n)){const h=$_(ne)?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,h,l)}else{const h=$_(ne)?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,h,l,l,u)}}function Zx(n,a){if(Nd(n)&&Pr(n.propertyName||n.name)==="default"){const A=q1(n),N=A&&hu(n,A);if(N)return z1(N,n,a)}const l=ms(n)?zm(n):n.parent.parent.parent,u=Qy(l),h=jf(l,u||n,a),y=n.propertyName||n.name;return u&&h&&We(y)?Ql(_o(or(h),y.escapedText),a):(N_(n,void 0,h,!1),h)}function Qy(n){if($i(n)&&n.initializer&&Br(n.initializer))return n.initializer}function Nc(n,a){if(Um(n.parent)){const l=Sd(n.parent.symbol,a);return N_(n,void 0,l,!1),l}}function R_(n,a,l){if(Pr(n.propertyName||n.name)==="default"){const h=q1(n),y=h&&hu(n,h);if(y)return z1(y,n,!!l)}const u=n.parent.parent.moduleSpecifier?jf(n.parent.parent,n,l):Pl(n.propertyName||n.name,a,!1,l);return N_(n,void 0,u,!1),u}function Up(n,a){const l=Vl(n)?n.expression:n.right,u=Zy(l,a);return N_(n,void 0,u,!1),u}function Zy(n,a){if(Ku(n))return ec(n).symbol;if(!uf(n)&&!Jl(n))return;const l=Pl(n,901119,!0,a);return l||(ec(n),Xr(n).resolvedSymbol)}function kE(n,a){if(Tr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63)return Zy(n.parent.right,a)}function _p(n,a=!1){switch(n.kind){case 268:case 257:return vm(n,a);case 270:return Yx(n,a);case 271:return PL(n,a);case 277:return Qx(n,a);case 273:case 205:return Zx(n,a);case 278:return R_(n,901119,a);case 274:case 223:return Up(n,a);case 267:return Nc(n,a);case 300:return Pl(n.name,901119,!0,a);case 299:return Zy(n.initializer,a);case 209:case 208:return kE(n,a);default:return R.fail()}}function ev(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Ql(n,a){return!a&&ev(n)?ic(n):n}function ic(n){R.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=zi(n);if(a.aliasTarget)a.aliasTarget===On&&(a.aliasTarget=an);else{a.aliasTarget=On;const l=Td(n);if(!l)return R.fail();const u=_p(l);a.aliasTarget===On?a.aliasTarget=u||an:Xe(l,m.Circular_definition_of_import_alias_0,x(n))}return a.aliasTarget}function Jg(n){if(zi(n).aliasTarget!==On)return ic(n)}function mu(n){let a=n.flags,l;for(;n.flags&2097152;){const u=ic(n);if(u===an)return 67108863;if(u===n||l!=null&&l.has(u))break;u.flags&2097152&&(l?l.add(u):l=new Set([n,u])),a|=u.flags,n=u}return a}function N_(n,a,l,u,h,y){if(!n||Br(n))return!1;const A=kr(n);if(Mb(n)){const F=zi(A);return F.typeOnlyDeclaration=n,!0}if(h){const F=zi(A);return F.typeOnlyDeclaration=h,A.escapedName!==y&&(F.typeOnlyExportStarName=y),!0}const N=zi(A);return ch(N,a,u)||ch(N,l,u)}function ch(n,a,l){var u,h,y;if(a&&(n.typeOnlyDeclaration===void 0||l&&n.typeOnlyDeclaration===!1)){const A=(h=(u=a.exports)==null?void 0:u.get("export="))!=null?h:a,N=A.declarations&&$t(A.declarations,Mb);n.typeOnlyDeclaration=(y=N!=null?N:zi(A).typeOnlyDeclaration)!=null?y:!1}return!!n.typeOnlyDeclaration}function Bd(n,a){if(!(n.flags&2097152))return;const l=zi(n);if(a===void 0)return l.typeOnlyDeclaration||void 0;if(l.typeOnlyDeclaration){const u=l.typeOnlyDeclaration.kind===275?Ql($h(l.typeOnlyDeclaration.symbol.parent).get(l.typeOnlyExportStarName||n.escapedName)):ic(l.typeOnlyDeclaration.symbol);return mu(u)&a?l.typeOnlyDeclaration:void 0}}function wE(n){if(ne.verbatimModuleSyntax)return;const a=kr(n),l=ic(a);l&&(l===an||mu(l)&111551&&!Tw(l)&&!Bd(a,111551))&&J1(a)}function J1(n){R.assert(!ne.verbatimModuleSyntax);const a=zi(n);if(!a.referenced){a.referenced=!0;const l=Td(n);if(!l)return R.fail();uC(l)&&mu(Ql(n))&111551&&ec(l.moduleReference)}}function K1(n){const a=zi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function Vp(n,a){return n.kind===79&&Dk(n)&&(n=n.parent),n.kind===79||n.parent.kind===163?Pl(n,1920,!1,a):(R.assert(n.parent.kind===268),Pl(n,901119,!1,a))}function Jh(n,a){return n.parent?Jh(n.parent,a)+"."+x(n):x(n,a,void 0,36)}function DE(n){for(;Rd(n.parent);)n=n.parent;return n}function tv(n){let a=Of(n),l=ml(a,a.escapedText,111551,void 0,a,!0);if(l){for(;Rd(a.parent);){const u=or(l);if(l=_o(u,a.parent.right.escapedText),!l)return;a=a.parent}return l}}function Pl(n,a,l,u,h){if(kl(n))return;const y=1920|(_r(n)?a&111551:0);let A;if(n.kind===79){const N=a===y||tl(n)?m.Cannot_find_namespace_0:Q4e(Of(n)),F=_r(n)&&!tl(n)?Kg(n,a):void 0;if(A=os(ml(h||n,n.escapedText,a,l||F?void 0:N,n,!0,!1)),!A)return os(F)}else if(n.kind===163||n.kind===208){const N=n.kind===163?n.left:n.expression,F=n.kind===163?n.right:n.name;let K=Pl(N,y,l,!1,h);if(!K||kl(F))return;if(K===an)return K;if(K.valueDeclaration&&_r(K.valueDeclaration)&&El(ne)!==100&&$i(K.valueDeclaration)&&K.valueDeclaration.initializer&&Mwe(K.valueDeclaration.initializer)){const Q=K.valueDeclaration.initializer.arguments[0],ve=hu(Q,Q);if(ve){const Pe=Sd(ve);Pe&&(K=Pe)}}if(A=os(ef(Tf(K),F.escapedText,a)),!A){if(!l){const Q=Jh(K),ve=Ds(F),Pe=Tj(F,K);if(Pe){Xe(F,m._0_has_no_exported_member_named_1_Did_you_mean_2,Q,ve,x(Pe));return}const Me=Rd(n)&&DE(n);if(Qa&&a&788968&&Me&&!HC(Me.parent)&&tv(Me)){Xe(Me,m._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Rf(Me));return}if(a&1920&&Rd(n.parent)){const Ut=os(ef(Tf(K),F.escapedText,788968));if(Ut){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,x(Ut),ia(n.parent.right.escapedText));return}}Xe(F,m.Namespace_0_has_no_exported_member_1,Q,ve)}return}}else throw R.assertNever(n,"Unknown entity name kind.");return R.assert((Dl(A)&1)===0,"Should never get an instantiated symbol here."),!tl(n)&&uf(n)&&(A.flags&2097152||n.parent.kind===274)&&N_(Zq(n),A,void 0,!0),A.flags&a||u?A:ic(A)}function Kg(n,a){if(AV(n.parent)){const l=Kh(n.parent);if(l)return ml(l,n.escapedText,a,void 0,n,!0)}}function Kh(n){if(rr(n,h=>ZA(h)||h.flags&8388608?T_(h):"quit"))return;const l=MS(n);if(l&&du(l)&&cR(l.expression)){const h=kr(l.expression.left);if(h)return S0(h)}if(l&&Us(l)&&cR(l.parent)&&du(l.parent.parent)){const h=kr(l.parent.left);if(h)return S0(h)}if(l&&(q_(l)||$c(l))&&Tr(l.parent.parent)&&wl(l.parent.parent)===6){const h=kr(l.parent.parent.left);if(h)return S0(h)}const u=hC(n);if(u&&Ya(u)){const h=kr(u);return h&&h.valueDeclaration}}function S0(n){const a=n.parent.valueDeclaration;return a?(yk(a)?wS(a):CT(a)?iR(a):void 0)||a:void 0}function x0(n){const a=n.valueDeclaration;if(!a||!_r(a)||n.flags&524288||u1(a,!1))return;const l=$i(a)?iR(a):wS(a);if(l){const u=tf(l);if(u)return bse(u,n)}}function hu(n,a,l){const h=El(ne)===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 Xh(n,a,l?void 0:h)}function Xh(n,a,l,u=!1){return As(a)?Ac(n,a.text,l,a,u):void 0}function Ac(n,a,l,u,h=!1){var y,A,N,F,K,Q,ve,Pe,Me;if(xa(a,"@types/")){const Gn=m.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,qn=BI(a,"@types/");Xe(u,Gn,qn,a)}const _t=mae(a,!0);if(_t)return _t;const Ut=Zn(n),Mn=As(n)?n:((y=rr(n,pf))==null?void 0:y.arguments[0])||((A=rr(n,Yc))==null?void 0:A.moduleSpecifier)||((N=rr(n,c1))==null?void 0:N.moduleReference.expression)||((F=rr(n,au))==null?void 0:F.moduleSpecifier)||((K=Xl(n)?n:n.parent&&Xl(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:K.name)||((Q=l1(n)?n:void 0)==null?void 0:Q.argument.literal),xn=Mn&&As(Mn)?Dp(Ut,Mn):Ut.impliedNodeFormat,Kn=El(ne),hn=tC(Ut,a,xn),Tn=hn&&L$(ne,hn,Ut),br=hn&&(!Tn||Tn===m.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(hn.resolvedFileName);if(br){if(Tn&&Xe(u,Tn,a,hn.resolvedFileName),hn.resolvedUsingTsExtension&&vd(a)){const Gn=((ve=rr(n,Yc))==null?void 0:ve.importClause)||rr(n,Pm(fu,au));(Gn&&!Gn.isTypeOnly||rr(n,pf))&&Xe(u,m.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,ln(R.checkDefined(DP(a))))}else if(hn.resolvedUsingTsExtension&&!L4(ne,Ut.fileName)){const Gn=R.checkDefined(DP(a));Xe(u,m.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Gn)}if(br.symbol){if(hn.isExternalLibraryImport&&!KR(hn.extension)&&RE(!1,u,Ut,xn,hn,a),Kn===3||Kn===99){const Gn=Ut.impliedNodeFormat===1&&!rr(n,pf)||!!rr(n,fu),qn=rr(n,oi=>Ig(oi)||au(oi)||Yc(oi)),ti=qn&&Ig(qn)?(Pe=qn.assertions)==null?void 0:Pe.assertClause:qn==null?void 0:qn.assertClause;if(Gn&&br.impliedNodeFormat===99&&!yx(ti))if(rr(n,fu))Xe(u,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 oi;const ma=Nh(Ut.fileName);if(ma===".ts"||ma===".js"||ma===".tsx"||ma===".jsx"){const eo=Ut.packageJsonScope,Cc=ma===".ts"?".mts":ma===".js"?".mjs":void 0;eo&&!eo.contents.packageJsonContent.type?Cc?oi=Na(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,Cc,Fi(eo.packageDirectory,"package.json")):oi=Na(void 0,m.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Fi(eo.packageDirectory,"package.json")):Cc?oi=Na(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,Cc):oi=Na(void 0,m.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}es.add(bg(Zn(u),u,Na(oi,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 os(br.symbol)}l&&Xe(u,m.File_0_is_not_a_module,br.fileName);return}if(yo){const Gn=oH(yo,qn=>qn.pattern,a);if(Gn){const qn=Ho&&Ho.get(a);return os(qn||Gn.symbol)}}if(hn&&!KR(hn.extension)&&Tn===void 0||Tn===m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(h){const Gn=m.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Xe(u,Gn,a,hn.resolvedFileName)}else RE(Ae&&!!l,u,Ut,xn,hn,a);return}if(l){if(hn){const Gn=e.getProjectReferenceRedirect(hn.resolvedFileName);if(Gn){Xe(u,m.Output_file_0_has_not_been_built_from_source_file_1,Gn,hn.resolvedFileName);return}}if(Tn)Xe(u,Tn,a,hn.resolvedFileName);else{const Gn=wf(a)&&!WA(a),qn=Kn===3||Kn===99;if(!WT(ne)&&_c(a,".json")&&Kn!==1&&FP(ne))Xe(u,m.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(xn===99&&qn&&Gn){const ti=Ma(a,vi(Ut.path)),oi=(Me=Hx.find(([ma,eo])=>e.fileExists(ti+ma)))==null?void 0:Me[1];oi?Xe(u,m.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+oi):Xe(u,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 Xe(u,l,a)}}return;function ln(Gn){const qn=JR(a,Gn);if(FJ(ue)||xn===99){const ti=vd(a)&&L4(ne);return qn+(Gn===".mts"||Gn===".d.mts"?ti?".mts":".mjs":Gn===".cts"||Gn===".d.mts"?ti?".cts":".cjs":ti?".ts":".js")}return qn}}function RE(n,a,l,u,{packageId:h,resolvedFileName:y},A){var N,F;let K;if(!zc(A)&&h){const Q=(F=(N=l.resolvedModules)==null?void 0:N.get(A,u))==null?void 0:F.node10Result;K=Q?Na(void 0,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,Q,Q.indexOf(Gy+"@types/")>-1?`@types/${C4(h.name)}`:h.name):Yh(h.name)?Na(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,h.name,C4(h.name)):X1(h.name)?Na(void 0,m.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,h.name,A):Na(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,A,C4(h.name))}hm(n,a,Na(K,m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,A,y))}function Yh(n){return t().has(D9(n))}function X1(n){return!!t().get(n)}function Sd(n,a){if(n!=null&&n.exports){const l=Ql(n.exports.get("export="),a),u=uh(os(l),os(n));return os(u)||n}}function uh(n,a){if(!n||n===an||n===a||a.exports.size===1||n.flags&2097152)return n;const l=zi(n);if(l.cjsExportMerged)return l.cjsExportMerged;const u=n.flags&33554432?n:G1(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=uo()),a.exports.forEach((h,y)=>{y!=="export="&&u.exports.set(y,u.exports.has(y)?dp(u.exports.get(y),h):h)}),zi(u).cjsExportMerged=u,l.cjsExportMerged=u}function Y1(n,a,l,u){var h;const y=Sd(n,l);if(!l&&y){if(!u&&!(y.flags&1539)&&!Il(y,308)){const N=ue>=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,N),y}const A=a.parent;if(Yc(A)&&_C(A)||pf(A)){const N=pf(A)?A.arguments[0]:A.moduleSpecifier,F=or(y),K=Nwe(F,y,n,N);if(K)return A0(y,K,A);const Q=(h=n==null?void 0:n.declarations)==null?void 0:h.find(Ki),ve=Q&&IE(Yy(N),Q.impliedNodeFormat);if($_(ne)||ve){let Pe=c3(F,0);if((!Pe||!Pe.length)&&(Pe=c3(F,1)),Pe&&Pe.length||_o(F,"default",!0)||ve){const Me=Owe(F,y,n,N);return A0(y,Me,A)}}}}return y}function A0(n,a,l){const u=rs(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=l,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));const h=gp(a);return u.links.type=Os(u,h.members,it,it,h.indexInfos),u}function NE(n){return n.exports.get("export=")!==void 0}function nv(n){return pae($h(n))}function F2(n){const a=nv(n),l=Sd(n);if(l!==n){const u=or(l);OE(u)&&xi(a,gs(u))}return a}function C0(n,a){$h(n).forEach((h,y)=>{PE(y)||a(h,y)});const u=Sd(n);if(u!==n){const h=or(u);OE(h)&&itt(h,(y,A)=>{a(y,A)})}}function Xg(n,a){const l=$h(a);if(l)return l.get(n)}function Wf(n,a){const l=Xg(n,a);if(l)return l;const u=Sd(a);if(u===a)return;const h=or(u);return OE(h)?_o(h,n):void 0}function OE(n){return!(n.flags&134348796||ni(n)&1||Yf(n)||Go(n))}function Tf(n){return n.flags&6256?Yie(n,"resolvedExports"):n.flags&1536?$h(n):n.exports||ee}function $h(n){const a=zi(n);if(!a.resolvedExports){const{exports:l,typeOnlyExportStarMap:u}=eA(n);a.resolvedExports=l,a.typeOnlyExportStarMap=u}return a.resolvedExports}function L0(n,a,l,u){a&&a.forEach((h,y)=>{if(y==="default")return;const A=n.get(y);if(!A)n.set(y,h),l&&u&&l.set(y,{specifierText:kc(u.moduleSpecifier)});else if(l&&u&&A&&Ql(A)!==Ql(h)){const N=l.get(y);N.exportsWithDuplicate?N.exportsWithDuplicate.push(u):N.exportsWithDuplicate=[u]}})}function eA(n){const a=[];let l;const u=new Set;n=Sd(n);const h=y(n)||ee;return l&&u.forEach(A=>l.delete(A)),{exports:h,typeOnlyExportStarMap:l};function y(A,N,F){if(!F&&(A!=null&&A.exports)&&A.exports.forEach((ve,Pe)=>u.add(Pe)),!(A&&A.exports&&y_(a,A)))return;const K=new Map(A.exports),Q=A.exports.get("__export");if(Q){const ve=uo(),Pe=new Map;if(Q.declarations)for(const Me of Q.declarations){const _t=hu(Me,Me.moduleSpecifier),Ut=y(_t,Me,F||Me.isTypeOnly);L0(ve,Ut,Pe,Me)}Pe.forEach(({exportsWithDuplicate:Me},_t)=>{if(!(_t==="export="||!(Me&&Me.length)||K.has(_t)))for(const Ut of Me)es.add(Nr(Ut,m.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Pe.get(_t).specifierText,ia(_t)))}),L0(K,ve)}return N!=null&&N.isTypeOnly&&(l!=null||(l=new Map),K.forEach((ve,Pe)=>l.set(Pe,N))),K}}function os(n){let a;return n&&n.mergeId&&(a=p0[n.mergeId])?a:n}function kr(n){return os(n.symbol&&vV(n.symbol))}function tf(n){return Um(n)?kr(n):void 0}function xd(n){return os(n.parent&&vV(n.parent))}function B2(n,a){const l=Zn(a),u=hs(l),h=zi(n);let y;if(h.extendedContainersByFile&&(y=h.extendedContainersByFile.get(u)))return y;if(l&&l.imports){for(const N of l.imports){if(tl(N))continue;const F=hu(a,N,!0);!F||!iv(F,n)||(y=Pn(y,F))}if(ge(y))return(h.extendedContainersByFile||(h.extendedContainersByFile=new Map)).set(u,y),y}if(h.extendedContainers)return h.extendedContainers;const A=e.getSourceFiles();for(const N of A){if(!tc(N))continue;const F=kr(N);iv(F,n)&&(y=Pn(y,F))}return h.extendedContainers=y||it}function ME(n,a,l){const u=xd(n);if(u&&!(n.flags&262144)){const A=ua(u.declarations,y),N=a&&B2(n,a),F=rv(u,l);if(a&&u.flags&Qg(l)&&k0(u,a,1920,!1))return Pn(ba(ba([u],A),N),F);const K=!(u.flags&Qg(l))&&u.flags&788968&&Vs(u).flags&524288&&l===111551?BE(a,ve=>ff(ve,Pe=>{if(Pe.flags&Qg(l)&&or(Pe)===Vs(u))return Pe})):void 0;let Q=K?[K,...A,u]:[...A,u];return Q=Pn(Q,F),Q=xi(Q,N),Q}const h=ua(n.declarations,A=>{if(!Hu(A)&&A.parent){if(Zg(A.parent))return kr(A.parent);if(dm(A.parent)&&A.parent.parent&&Sd(kr(A.parent.parent))===n)return kr(A.parent.parent)}if(Ku(A)&&Tr(A.parent)&&A.parent.operatorToken.kind===63&&ul(A.parent.left)&&Jl(A.parent.left.expression))return kh(A.parent.left)||NT(A.parent.left.expression)?kr(Zn(A)):(ec(A.parent.left.expression),Xr(A.parent.left.expression).resolvedSymbol)});if(!ge(h))return;return ua(h,A=>iv(A,n)?A:void 0);function y(A){return u&&tA(A,u)}}function rv(n,a){const l=!!ge(n.declarations)&&ds(n.declarations);if(a&111551&&l&&l.parent&&$i(l.parent)&&(Is(l)&&l===l.parent.initializer||hf(l)&&l===l.parent.type))return kr(l.parent)}function tA(n,a){const l=Zh(n),u=l&&l.exports&&l.exports.get("export=");return u&&bm(u,a)?l:void 0}function iv(n,a){if(n===xd(a))return a;const l=n.exports&&n.exports.get("export=");if(l&&bm(l,a))return n;const u=Tf(n),h=u.get(a.escapedName);return h&&bm(h,a)?h:ff(u,y=>{if(bm(y,a))return y})}function bm(n,a){if(os(Ql(os(n)))===os(Ql(os(a))))return n}function jp(n){return os(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function Yg(n,a){return!!(n.flags&111551||n.flags&2097152&&mu(n)&111551&&(a||!Bd(n)))}function I0(n){const a=n.members;for(const l of a)if(l.kind===173&&b_(l.body))return l}function Qh(n){var a;const l=new v(ot,n);return T++,l.id=T,(a=Ti)==null||a.recordType(l),l}function Em(n,a){const l=Qh(n);return l.symbol=a,l}function G2(n){return new v(ot,n)}function Zl(n,a,l=0){const u=Qh(n);return u.intrinsicName=a,u.objectFlags=l,u}function Sf(n,a){const l=Em(524288,a);return l.objectFlags=n,l.members=void 0,l.properties=void 0,l.callSignatures=void 0,l.constructSignatures=void 0,l.indexInfos=void 0,l}function dh(){return ei(Oo(U9.keys(),Xf))}function Gd(n){return Em(262144,n)}function PE(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function av(n){let a;return n.forEach((l,u)=>{$g(l,u)&&(a||(a=[])).push(l)}),a||it}function $g(n,a){return!PE(a)&&Yg(n)}function nA(n){const a=av(n),l=vae(n);return l?ba(a,[l]):a}function Hf(n,a,l,u,h){const y=n;return y.members=a,y.properties=it,y.callSignatures=l,y.constructSignatures=u,y.indexInfos=h,a!==ee&&(y.properties=av(a)),y}function Os(n,a,l,u,h){return Hf(Sf(16,n),a,l,u,h)}function FE(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=ur(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;const l=Os(n.symbol,n.members,n.callSignatures,Dt(a)?a:it,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=l,l.objectTypeWithoutAbstractConstructSignatures=l,l}function BE(n,a){let l;for(let u=n;u;u=u.parent){if(Vm(u)&&u.locals&&!oh(u)&&(l=a(u.locals,void 0,!0,u)))return l;switch(u.kind){case 308:if(!_f(u))break;case 264:const h=kr(u);if(l=a((h==null?void 0:h.exports)||ee,void 0,!0,u))return l;break;case 260:case 228:case 261:let y;if((kr(u).members||ee).forEach((A,N)=>{A.flags&788968&&(y||(y=uo())).set(N,A)}),y&&(l=a(y,void 0,!1,u)))return l;break}}return a(ze,void 0,!0)}function Qg(n){return n===111551?111551:1920}function k0(n,a,l,u,h=new Map){if(!(n&&!GE(n)))return;const y=zi(n),A=y.accessibleChainCache||(y.accessibleChainCache=new Map),N=BE(a,(xn,Kn,hn,Tn)=>Tn),F=`${u?0:1}|${N&&hs(N)}|${l}`;if(A.has(F))return A.get(F);const K=To(n);let Q=h.get(K);Q||h.set(K,Q=[]);const ve=BE(a,Pe);return A.set(F,ve),ve;function Pe(xn,Kn,hn){if(!y_(Q,xn))return;const Tn=Ut(xn,Kn,hn);return Q.pop(),Tn}function Me(xn,Kn){return!U2(xn,a,Kn)||!!k0(xn.parent,a,Qg(Kn),u,h)}function _t(xn,Kn,hn){return(n===(Kn||xn)||os(n)===os(Kn||xn))&&!Dt(xn.declarations,Zg)&&(hn||Me(os(xn),l))}function Ut(xn,Kn,hn){return _t(xn.get(n.escapedName),void 0,Kn)?[n]:ff(xn,br=>{if(br.flags&2097152&&br.escapedName!=="export="&&br.escapedName!=="default"&&!(OP(br)&&a&&tc(Zn(a)))&&(!u||Dt(br.declarations,c1))&&(!hn||!Dt(br.declarations,R_e))&&(Kn||!Il(br,278))){const ln=ic(br),Gn=Mn(br,ln,Kn);if(Gn)return Gn}if(br.escapedName===n.escapedName&&br.exportSymbol&&_t(os(br.exportSymbol),void 0,Kn))return[n]})||(xn===ze?Mn(lt,lt,Kn):void 0)}function Mn(xn,Kn,hn){if(_t(xn,Kn,hn))return[xn];const Tn=Tf(Kn),br=Tn&&Pe(Tn,!0);if(br&&Me(xn,Qg(l)))return[xn].concat(br)}}function U2(n,a,l){let u=!1;return BE(a,h=>{let y=os(h.get(n.escapedName));if(!y)return!1;if(y===n)return!0;const A=y.flags&2097152&&!Il(y,278);return y=A?ic(y):y,(A?mu(y):y.flags)&l?(u=!0,!0):!1}),u}function GE(n){if(n.declarations&&n.declarations.length){for(const a of n.declarations)switch(a.kind){case 169:case 171:case 174:case 175:continue;default:return!1}return!0}return!1}function UE(n,a){return nf(n,a,788968,!1,!0).accessibility===0}function VE(n,a){return nf(n,a,111551,!1,!0).accessibility===0}function jE(n,a,l){return nf(n,a,l,!1,!1).accessibility===0}function WE(n,a,l,u,h,y){if(!ge(n))return;let A,N=!1;for(const F of n){const K=k0(F,a,u,!1);if(K){A=F;const Pe=rA(K[0],h);if(Pe)return Pe}if(y&&Dt(F.declarations,Zg)){if(h){N=!0;continue}return{accessibility:0}}const Q=ME(F,a,u),ve=WE(Q,a,l,l===F?Qg(u):u,h,y);if(ve)return ve}if(N)return{accessibility:0};if(A)return{accessibility:1,errorSymbolName:x(l,a,u),errorModuleName:A!==l?x(A,a,1920):void 0}}function ov(n,a,l,u){return nf(n,a,l,u,!0)}function nf(n,a,l,u,h){if(n&&a){const y=WE([n],a,n,l,u,h);if(y)return y;const A=Ie(n.declarations,Zh);if(A){const N=Zh(a);if(A!==N)return{accessibility:2,errorSymbolName:x(n,a,l),errorModuleName:x(A),errorNode:_r(a)?a:void 0}}return{accessibility:1,errorSymbolName:x(n,a,l)}}return{accessibility:0}}function Zh(n){const a=rr(n,FL);return a&&kr(a)}function FL(n){return Hu(n)||n.kind===308&&_f(n)}function Zg(n){return KM(n)||n.kind===308&&_f(n)}function rA(n,a){let l;if(!Qn(ur(n.declarations,y=>y.kind!==79),u))return;return{accessibility:0,aliasesToMakeVisible:l};function u(y){var A,N;if(!O_(y)){const F=M2(y);if(F&&!Qr(F,1)&&O_(F.parent))return h(y,F);if($i(y)&&pc(y.parent.parent)&&!Qr(y.parent.parent,1)&&O_(y.parent.parent.parent))return h(y,y.parent.parent);if(XM(y)&&!Qr(y,1)&&O_(y.parent))return h(y,y);if(ms(y)){if(n.flags&2097152&&_r(y)&&((A=y.parent)!=null&&A.parent)&&$i(y.parent.parent)&&((N=y.parent.parent.parent)!=null&&N.parent)&&pc(y.parent.parent.parent.parent)&&!Qr(y.parent.parent.parent.parent,1)&&y.parent.parent.parent.parent.parent&&O_(y.parent.parent.parent.parent.parent))return h(y,y.parent.parent.parent.parent);if(n.flags&2){const K=rr(y,pc);return Qr(K,1)?!0:O_(K.parent)?h(y,K):!1}}return!1}return!0}function h(y,A){return a&&(Xr(y).isVisible=!0,l=vy(l,A)),!0}}function iA(n,a){let l;n.parent.kind===183||n.parent.kind===230&&!Ih(n.parent)||n.parent.kind===164?l=1160127:n.kind===163||n.kind===208||n.parent.kind===268?l=1920:l=788968;const u=Of(n),h=ml(a,u.escapedText,l,void 0,void 0,!1);return h&&h.flags&262144&&l&788968?{accessibility:0}:!h&&GT(u)&&ov(kr(kd(u,!1,!1)),u,l,!1).accessibility===0?{accessibility:0}:h&&rA(h,!0)||{accessibility:1,errorSymbolName:kc(u),errorNode:u}}function x(n,a,l,u=4,h){let y=70221824;u&2&&(y|=128),u&1&&(y|=512),u&8&&(y|=16384),u&32&&(y|=134217728),u&16&&(y|=1073741824);const A=u&4?$e.symbolToNode:$e.symbolToEntityName;return h?N(h).getText():ck(N);function N(F){const K=A(n,l,a,y),Q=(a==null?void 0:a.kind)===308?c$():dE(),ve=a&&Zn(a);return Q.writeNode(4,K,ve,F),F}}function le(n,a,l=0,u,h){return h?y(h).getText():ck(y);function y(A){let N;l&262144?N=u===1?182:181:N=u===1?177:176;const F=$e.signatureToSignatureDeclaration(n,N,a,di(l)|70221824|512),K=vN(),Q=a&&Zn(a);return K.writeNode(4,F,Q,cJ(A)),A}}function Re(n,a,l=1064960,u=wR("")){const h=ne.noErrorTruncation||l&1,y=$e.typeToTypeNode(n,a,di(l)|70221824|(h?1:0));if(y===void 0)return R.fail("should always get typenode");const A=n!==pt?dE():l$(),N=a&&Zn(a);A.writeNode(4,y,N,u);const F=u.getText(),K=h?QP*2:e6*2;return K&&F&&F.length>=K?F.substr(0,K-3)+"...":F}function on(n,a){let l=Ai(n.symbol)?Re(n,n.symbol.valueDeclaration):Re(n),u=Ai(a.symbol)?Re(a,a.symbol.valueDeclaration):Re(a);return l===u&&(l=Cr(n),u=Cr(a)),[l,u]}function Cr(n){return Re(n,void 0,64)}function Ai(n){return n&&!!n.valueDeclaration&&yt(n.valueDeclaration)&&!P_(n.valueDeclaration)}function di(n=0){return n&848330091}function Vi(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===ed(n.symbol)||!!(n.flags&524288)&&!!(ni(n)&16777216))}function mo(){return{typeToTypeNode:(ft,xe,er,$n)=>a(xe,er,$n,Sr=>u(ft,Sr)),indexInfoToIndexSignatureDeclaration:(ft,xe,er,$n)=>a(xe,er,$n,Sr=>Q(ft,Sr,void 0)),signatureToSignatureDeclaration:(ft,xe,er,$n,Sr)=>a(er,$n,Sr,wr=>ve(ft,xe,wr)),symbolToEntityName:(ft,xe,er,$n,Sr)=>a(er,$n,Sr,wr=>ma(ft,wr,xe,!1)),symbolToExpression:(ft,xe,er,$n,Sr)=>a(er,$n,Sr,wr=>eo(ft,wr,xe)),symbolToTypeParameterDeclarations:(ft,xe,er,$n)=>a(xe,er,$n,Sr=>hn(ft,Sr)),symbolToParameterDeclaration:(ft,xe,er,$n)=>a(xe,er,$n,Sr=>Ut(ft,Sr)),typeParameterToDeclaration:(ft,xe,er,$n)=>a(xe,er,$n,Sr=>_t(ft,Sr)),symbolTableToDeclarationStatements:(ft,xe,er,$n,Sr)=>a(xe,er,$n,wr=>rd(ft,wr,Sr)),symbolToNode:(ft,xe,er,$n,Sr)=>a(er,$n,Sr,wr=>n(ft,wr,xe))};function n(ft,xe,er){if(xe.flags&1073741824){if(ft.valueDeclaration){const Sr=ka(ft.valueDeclaration);if(Sr&&Cs(Sr))return Sr}const $n=zi(ft).nameType;if($n&&$n.flags&9216)return xe.enclosingDeclaration=$n.symbol.valueDeclaration,O.createComputedPropertyName(eo($n.symbol,xe,er))}return eo(ft,xe,er)}function a(ft,xe,er,$n){R.assert(ft===void 0||(ft.flags&8)===0);const Sr=er!=null&&er.trackSymbol?er.moduleResolverHost:xe&134217728?P9e(e):void 0,wr={enclosingDeclaration:ft,flags:xe||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};wr.tracker=new dN(wr,er,Sr);const Ra=$n(wr);return wr.truncating&&wr.flags&1&&wr.tracker.reportTruncationError(),wr.encounteredError?void 0:Ra}function l(ft){return ft.truncating?ft.truncating:ft.truncating=ft.approximateLength>(ft.flags&1?QP:e6)}function u(ft,xe){const er=xe.flags,$n=h(ft,xe);return xe.flags=er,$n}function h(ft,xe){var er,$n;o&&o.throwIfCancellationRequested&&o.throwIfCancellationRequested();const Sr=xe.flags&8388608;if(xe.flags&=-8388609,!ft){if(!(xe.flags&262144)){xe.encounteredError=!0;return}return xe.approximateLength+=3,O.createKeywordTypeNode(131)}if(xe.flags&536870912||(ft=yp(ft)),ft.flags&1)return ft.aliasSymbol?O.createTypeReferenceNode(Gn(ft.aliasSymbol),F(ft.aliasTypeArguments,xe)):ft===pt?c6(O.createKeywordTypeNode(131),3,"unresolved"):(xe.approximateLength+=3,O.createKeywordTypeNode(ft===ie?139:131));if(ft.flags&2)return O.createKeywordTypeNode(157);if(ft.flags&4)return xe.approximateLength+=6,O.createKeywordTypeNode(152);if(ft.flags&8)return xe.approximateLength+=6,O.createKeywordTypeNode(148);if(ft.flags&64)return xe.approximateLength+=6,O.createKeywordTypeNode(160);if(ft.flags&16&&!ft.aliasSymbol)return xe.approximateLength+=7,O.createKeywordTypeNode(134);if(ft.flags&1056){if(ft.symbol.flags&8){const dn=xd(ft.symbol),gr=qn(dn,xe,788968);if(Vs(dn)===ft)return gr;const Vr=Gl(ft.symbol);return W_(Vr,0)?tr(gr,O.createTypeReferenceNode(Vr,void 0)):Ig(gr)?(gr.isTypeOf=!0,O.createIndexedAccessTypeNode(gr,O.createLiteralTypeNode(O.createStringLiteral(Vr)))):ep(gr)?O.createIndexedAccessTypeNode(O.createTypeQueryNode(gr.typeName),O.createLiteralTypeNode(O.createStringLiteral(Vr))):R.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return qn(ft.symbol,xe,788968)}if(ft.flags&128)return xe.approximateLength+=ft.value.length+2,O.createLiteralTypeNode(sr(O.createStringLiteral(ft.value,!!(xe.flags&268435456)),33554432));if(ft.flags&256){const dn=ft.value;return xe.approximateLength+=(""+dn).length,O.createLiteralTypeNode(dn<0?O.createPrefixUnaryExpression(40,O.createNumericLiteral(-dn)):O.createNumericLiteral(dn))}if(ft.flags&2048)return xe.approximateLength+=Yb(ft.value).length+1,O.createLiteralTypeNode(O.createBigIntLiteral(ft.value));if(ft.flags&512)return xe.approximateLength+=ft.intrinsicName.length,O.createLiteralTypeNode(ft.intrinsicName==="true"?O.createTrue():O.createFalse());if(ft.flags&8192){if(!(xe.flags&1048576)){if(VE(ft.symbol,xe.enclosingDeclaration))return xe.approximateLength+=6,qn(ft.symbol,xe,111551);xe.tracker.reportInaccessibleUniqueSymbolError&&xe.tracker.reportInaccessibleUniqueSymbolError()}return xe.approximateLength+=13,O.createTypeOperatorNode(156,O.createKeywordTypeNode(153))}if(ft.flags&16384)return xe.approximateLength+=4,O.createKeywordTypeNode(114);if(ft.flags&32768)return xe.approximateLength+=9,O.createKeywordTypeNode(155);if(ft.flags&65536)return xe.approximateLength+=4,O.createLiteralTypeNode(O.createNull());if(ft.flags&131072)return xe.approximateLength+=5,O.createKeywordTypeNode(144);if(ft.flags&4096)return xe.approximateLength+=6,O.createKeywordTypeNode(153);if(ft.flags&67108864)return xe.approximateLength+=6,O.createKeywordTypeNode(149);if(Xk(ft))return xe.flags&4194304&&(!xe.encounteredError&&!(xe.flags&32768)&&(xe.encounteredError=!0),($n=(er=xe.tracker).reportInaccessibleThisError)==null||$n.call(er)),xe.approximateLength+=4,O.createThisTypeNode();if(!Sr&&ft.aliasSymbol&&(xe.flags&16384||UE(ft.aliasSymbol,xe.enclosingDeclaration))){const dn=F(ft.aliasTypeArguments,xe);return PE(ft.aliasSymbol.escapedName)&&!(ft.aliasSymbol.flags&32)?O.createTypeReferenceNode(O.createIdentifier(""),dn):ge(dn)===1&&ft.aliasSymbol===Ts.symbol?O.createArrayTypeNode(dn[0]):qn(ft.aliasSymbol,xe,788968,dn)}const wr=ni(ft);if(wr&4)return R.assert(!!(ft.flags&524288)),ft.node?en(ft,kn):kn(ft);if(ft.flags&262144||wr&3){if(ft.flags&262144&&Fr(xe.inferTypeParameters,ft)){xe.approximateLength+=Gl(ft.symbol).length+6;let gr;const Vr=Ru(ft);if(Vr){const Kr=fke(ft,!0);Kr&&ig(Vr,Kr)||(xe.approximateLength+=9,gr=Vr&&u(Vr,xe))}return O.createInferTypeNode(Me(ft,xe,gr))}if(xe.flags&4&&ft.flags&262144&&!UE(ft.symbol,xe.enclosingDeclaration)){const gr=oi(ft,xe);return xe.approximateLength+=Pr(gr).length,O.createTypeReferenceNode(O.createIdentifier(Pr(gr)),void 0)}if(ft.symbol)return qn(ft.symbol,xe,788968);const dn=(ft===Rs||ft===yl)&&j&&j.symbol?(ft===yl?"sub-":"super-")+Gl(j.symbol):"?";return O.createTypeReferenceNode(O.createIdentifier(dn),void 0)}if(ft.flags&1048576&&ft.origin&&(ft=ft.origin),ft.flags&3145728){const dn=ft.flags&1048576?rf(ft.types):ft.types;if(ge(dn)===1)return u(dn[0],xe);const gr=F(dn,xe,!0);if(gr&&gr.length>0)return ft.flags&1048576?O.createUnionTypeNode(gr):O.createIntersectionTypeNode(gr);!xe.encounteredError&&!(xe.flags&262144)&&(xe.encounteredError=!0);return}if(wr&48)return R.assert(!!(ft.flags&524288)),Gt(ft);if(ft.flags&4194304){const dn=ft.type;xe.approximateLength+=6;const gr=u(dn,xe);return O.createTypeOperatorNode(141,gr)}if(ft.flags&134217728){const dn=ft.texts,gr=ft.types,Vr=O.createTemplateHead(dn[0]),Kr=O.createNodeArray(Pt(gr,(Ji,us)=>O.createTemplateLiteralTypeSpan(u(Ji,xe),(us<gr.length-1?O.createTemplateMiddle:O.createTemplateTail)(dn[us+1]))));return xe.approximateLength+=2,O.createTemplateLiteralType(Vr,Kr)}if(ft.flags&268435456){const dn=u(ft.type,xe);return qn(ft.symbol,xe,788968,[dn])}if(ft.flags&8388608){const dn=u(ft.objectType,xe),gr=u(ft.indexType,xe);return xe.approximateLength+=2,O.createIndexedAccessTypeNode(dn,gr)}if(ft.flags&16777216)return en(ft,dn=>Ra(dn));if(ft.flags&33554432)return u(ft.baseType,xe);return R.fail("Should be unreachable.");function Ra(dn){const gr=u(dn.checkType,xe);if(xe.approximateLength+=15,xe.flags&4&&dn.root.isDistributive&&!(dn.checkType.flags&262144)){const js=Gd(rs(262144,"T")),Ps=oi(js,xe),gu=O.createTypeReferenceNode(Ps);xe.approximateLength+=37;const rt=H2(dn.root.checkType,js,dn.mapper),St=xe.inferTypeParameters;xe.inferTypeParameters=dn.root.inferTypeParameters;const tn=u(Zi(dn.root.extendsType,rt),xe);xe.inferTypeParameters=St;const Hn=Di(Zi(pi(dn.root.node.trueType),rt)),hr=Di(Zi(pi(dn.root.node.falseType),rt));return O.createConditionalTypeNode(gr,O.createInferTypeNode(O.createTypeParameterDeclaration(void 0,O.cloneNode(gu.typeName))),O.createConditionalTypeNode(O.createTypeReferenceNode(O.cloneNode(Ps)),u(dn.checkType,xe),O.createConditionalTypeNode(gu,tn,Hn,hr),O.createKeywordTypeNode(144)),O.createKeywordTypeNode(144))}const Vr=xe.inferTypeParameters;xe.inferTypeParameters=dn.root.inferTypeParameters;const Kr=u(dn.extendsType,xe);xe.inferTypeParameters=Vr;const Ji=Di(U0(dn)),us=Di(V0(dn));return O.createConditionalTypeNode(gr,Kr,Ji,us)}function Di(dn){var gr,Vr,Kr;return dn.flags&1048576?(gr=xe.visitedTypes)!=null&&gr.has(Mu(dn))?(xe.flags&131072||(xe.encounteredError=!0,(Kr=(Vr=xe.tracker)==null?void 0:Vr.reportCyclicStructureError)==null||Kr.call(Vr)),y(xe)):en(dn,Ji=>u(Ji,xe)):u(dn,xe)}function Lr(dn){return P8(dn)&&!(HL(dn).flags&262144)}function vt(dn){R.assert(!!(dn.flags&524288));const gr=dn.declaration.readonlyToken?O.createToken(dn.declaration.readonlyToken.kind):void 0,Vr=dn.declaration.questionToken?O.createToken(dn.declaration.questionToken.kind):void 0;let Kr,Ji;if(P8(dn)){if(Lr(dn)&&xe.flags&4){const St=Gd(rs(262144,"T")),tn=oi(St,xe);Ji=O.createTypeReferenceNode(tn)}Kr=O.createTypeOperatorNode(141,Ji||u(HL(dn),xe))}else Kr=u(Hp(dn),xe);const us=Me(hp(dn),xe,Kr),js=dn.declaration.nameType?u(mv(dn),xe):void 0,Ps=u(tT(rg(dn),!!(xm(dn)&4)),xe),gu=O.createMappedTypeNode(gr,us,js,Vr,Ps,void 0);xe.approximateLength+=10;const rt=sr(gu,1);if(Lr(dn)&&xe.flags&4){const St=Zi(Ru(pi(dn.declaration.typeParameter.constraint.type))||ye,dn.mapper);return O.createConditionalTypeNode(u(HL(dn),xe),O.createInferTypeNode(O.createTypeParameterDeclaration(void 0,O.cloneNode(Ji.typeName),St.flags&2?void 0:u(St,xe))),rt,O.createKeywordTypeNode(144))}return rt}function Gt(dn){var gr,Vr;const Kr=dn.id,Ji=dn.symbol;if(Ji){const js=Vi(dn)?788968:111551;if(Xp(Ji.valueDeclaration))return qn(Ji,xe,js);if(Ji.flags&32&&!Za(Ji)&&!(Ji.valueDeclaration&&_i(Ji.valueDeclaration)&&xe.flags&2048&&(!Bc(Ji.valueDeclaration)||ov(Ji,xe.enclosingDeclaration,js,!1).accessibility!==0))||Ji.flags&896||us())return qn(Ji,xe,js);if((gr=xe.visitedTypes)!=null&&gr.has(Kr)){const Ps=sv(dn);return Ps?qn(Ps,xe,788968):y(xe)}else return en(dn,Qt)}else{if(!!(ni(dn)&8388608)){const Ps=dn;if(a4(Ps.node)){const gu=Lo(xe,Ps.node);if(gu)return gu}return(Vr=xe.visitedTypes)!=null&&Vr.has(Kr)?y(xe):en(dn,Qt)}return Qt(dn)}function us(){var js;const Ps=!!(Ji.flags&8192)&&Dt(Ji.declarations,rt=>Xa(rt)),gu=!!(Ji.flags&16)&&(Ji.parent||Ie(Ji.declarations,rt=>rt.parent.kind===308||rt.parent.kind===265));if(Ps||gu)return(!!(xe.flags&4096)||((js=xe.visitedTypes)==null?void 0:js.has(Kr)))&&(!(xe.flags&8)||VE(Ji,xe.enclosingDeclaration))}}function en(dn,gr){var Vr,Kr;const Ji=dn.id,us=ni(dn)&16&&dn.symbol&&dn.symbol.flags&32,js=ni(dn)&4&&dn.node?"N"+hs(dn.node):dn.flags&16777216?"N"+hs(dn.root.node):dn.symbol?(us?"+":"")+To(dn.symbol):void 0;xe.visitedTypes||(xe.visitedTypes=new Set),js&&!xe.symbolDepth&&(xe.symbolDepth=new Map);const Ps=xe.enclosingDeclaration&&Xr(xe.enclosingDeclaration),gu=`${Mu(dn)}|${xe.flags}`;Ps&&(Ps.serializedTypes||(Ps.serializedTypes=new Map));const rt=(Vr=Ps==null?void 0:Ps.serializedTypes)==null?void 0:Vr.get(gu);if(rt)return rt.truncating&&(xe.truncating=!0),xe.approximateLength+=rt.addedLength,Cn(rt.node);let St;if(js){if(St=xe.symbolDepth.get(js)||0,St>10)return y(xe);xe.symbolDepth.set(js,St+1)}xe.visitedTypes.add(Ji);const tn=xe.approximateLength,Hn=gr(dn),hr=xe.approximateLength-tn;return!xe.reportedDiagnostic&&!xe.encounteredError&&((Kr=Ps==null?void 0:Ps.serializedTypes)==null||Kr.set(gu,{node:Hn,truncating:xe.truncating,addedLength:hr})),xe.visitedTypes.delete(Ji),js&&xe.symbolDepth.set(js,St),Hn;function Cn(Wr){return!tl(Wr)&&Ea(Wr)===Wr?Wr:ht(O.cloneNode(Fn(Wr,Cn,Dg,xr)),Wr)}function xr(Wr,Gi,Ca,Ka,to){return Wr&&Wr.length===0?ht(O.createNodeArray(void 0,Wr.hasTrailingComma),Wr):Jn(Wr,Gi,Ca,Ka,to)}}function Qt(dn){if(Kf(dn)||dn.containsError)return vt(dn);const gr=gp(dn);if(!gr.properties.length&&!gr.indexInfos.length){if(!gr.callSignatures.length&&!gr.constructSignatures.length)return xe.approximateLength+=2,sr(O.createTypeLiteralNode(void 0),1);if(gr.callSignatures.length===1&&!gr.constructSignatures.length){const js=gr.callSignatures[0];return ve(js,181,xe)}if(gr.constructSignatures.length===1&&!gr.callSignatures.length){const js=gr.constructSignatures[0];return ve(js,182,xe)}}const Vr=ur(gr.constructSignatures,js=>!!(js.flags&4));if(Dt(Vr)){const js=Pt(Vr,$E);return gr.callSignatures.length+(gr.constructSignatures.length-Vr.length)+gr.indexInfos.length+(xe.flags&2048?Hc(gr.properties,gu=>!(gu.flags&4194304)):ge(gr.properties))&&js.push(FE(gr)),u(Ro(js),xe)}const Kr=xe.flags;xe.flags|=4194304;const Ji=Yi(gr);xe.flags=Kr;const us=O.createTypeLiteralNode(Ji);return xe.approximateLength+=2,sr(us,xe.flags&1024?0:1),us}function kn(dn){let gr=ys(dn);if(dn.target===Ts||dn.target===fs){if(xe.flags&2){const Ji=u(gr[0],xe);return O.createTypeReferenceNode(dn.target===Ts?"Array":"ReadonlyArray",[Ji])}const Vr=u(gr[0],xe),Kr=O.createArrayTypeNode(Vr);return dn.target===Ts?Kr:O.createTypeOperatorNode(146,Kr)}else if(dn.target.objectFlags&8){if(gr=Ui(gr,(Vr,Kr)=>tT(Vr,!!(dn.target.elementFlags[Kr]&2))),gr.length>0){const Vr=B0(dn),Kr=F(gr.slice(0,Vr),xe);if(Kr){if(dn.target.labeledElementDeclarations)for(let us=0;us<Kr.length;us++){const js=dn.target.elementFlags[us];Kr[us]=O.createNamedTupleMember(js&12?O.createToken(25):void 0,O.createIdentifier(ia(wj(dn.target.labeledElementDeclarations[us]))),js&2?O.createToken(57):void 0,js&4?O.createArrayTypeNode(Kr[us]):Kr[us])}else for(let us=0;us<Math.min(Vr,Kr.length);us++){const js=dn.target.elementFlags[us];Kr[us]=js&12?O.createRestTypeNode(js&4?O.createArrayTypeNode(Kr[us]):Kr[us]):js&2?O.createOptionalTypeNode(Kr[us]):Kr[us]}const Ji=sr(O.createTupleTypeNode(Kr),1);return dn.target.readonly?O.createTypeOperatorNode(146,Ji):Ji}}if(xe.encounteredError||xe.flags&524288){const Vr=sr(O.createTupleTypeNode([]),1);return dn.target.readonly?O.createTypeOperatorNode(146,Vr):Vr}xe.encounteredError=!0;return}else{if(xe.flags&2048&&dn.symbol.valueDeclaration&&_i(dn.symbol.valueDeclaration)&&!VE(dn.symbol,xe.enclosingDeclaration))return Gt(dn);{const Vr=dn.target.outerTypeParameters;let Kr=0,Ji;if(Vr){const gu=Vr.length;for(;Kr<gu;){const rt=Kr,St=_ke(Vr[Kr]);do Kr++;while(Kr<gu&&_ke(Vr[Kr])===St);if(!QW(Vr,gr,rt,Kr)){const tn=F(gr.slice(rt,Kr),xe),Hn=xe.flags;xe.flags|=16;const hr=qn(St,xe,788968,tn);xe.flags=Hn,Ji=Ji?tr(Ji,hr):hr}}}let us;if(gr.length>0){const gu=(dn.target.typeParameters||it).length;us=F(gr.slice(Kr,gu),xe)}const js=xe.flags;xe.flags|=16;const Ps=qn(dn.symbol,xe,788968,us);return xe.flags=js,Ji?tr(Ji,Ps):Ps}}}function tr(dn,gr){if(Ig(dn)){let Vr=dn.typeArguments,Kr=dn.qualifier;Kr&&(We(Kr)?Vr!==zT(Kr)&&(Kr=My(O.cloneNode(Kr),Vr)):Vr!==zT(Kr.right)&&(Kr=O.updateQualifiedName(Kr,Kr.left,My(O.cloneNode(Kr.right),Vr)))),Vr=gr.typeArguments;const Ji=Pi(gr);for(const us of Ji)Kr=Kr?O.createQualifiedName(Kr,us):us;return O.updateImportTypeNode(dn,dn.argument,dn.assertions,Kr,Vr,dn.isTypeOf)}else{let Vr=dn.typeArguments,Kr=dn.typeName;We(Kr)?Vr!==zT(Kr)&&(Kr=My(O.cloneNode(Kr),Vr)):Vr!==zT(Kr.right)&&(Kr=O.updateQualifiedName(Kr,Kr.left,My(O.cloneNode(Kr.right),Vr))),Vr=gr.typeArguments;const Ji=Pi(gr);for(const us of Ji)Kr=O.createQualifiedName(Kr,us);return O.updateTypeReferenceNode(dn,Kr,Vr)}}function Pi(dn){let gr=dn.typeName;const Vr=[];for(;!We(gr);)Vr.unshift(gr.right),gr=gr.left;return Vr.unshift(gr),Vr}function Yi(dn){if(l(xe))return[O.createPropertySignature(void 0,"...",void 0,void 0)];const gr=[];for(const Ji of dn.callSignatures)gr.push(ve(Ji,176,xe));for(const Ji of dn.constructSignatures)Ji.flags&4||gr.push(ve(Ji,177,xe));for(const Ji of dn.indexInfos)gr.push(Q(Ji,xe,dn.objectFlags&1024?y(xe):void 0));const Vr=dn.properties;if(!Vr)return gr;let Kr=0;for(const Ji of Vr){if(Kr++,xe.flags&2048){if(Ji.flags&4194304)continue;a_(Ji)&24&&xe.tracker.reportPrivateInBaseOfClassExpression&&xe.tracker.reportPrivateInBaseOfClassExpression(ia(Ji.escapedName))}if(l(xe)&&Kr+2<Vr.length-1){gr.push(O.createPropertySignature(void 0,`... ${Vr.length-Kr} more ...`,void 0,void 0)),N(Vr[Vr.length-1],xe,gr);break}N(Ji,xe,gr)}return gr.length?gr:void 0}}function y(ft){return ft.approximateLength+=3,ft.flags&1?O.createKeywordTypeNode(131):O.createTypeReferenceNode(O.createIdentifier("..."),void 0)}function A(ft,xe){var er;return!!(Dl(ft)&8192)&&(Fr(xe.reverseMappedStack,ft)||((er=xe.reverseMappedStack)==null?void 0:er[0])&&!(ni(Ko(xe.reverseMappedStack).links.propertyType)&16))}function N(ft,xe,er){var $n;const Sr=!!(Dl(ft)&8192),wr=A(ft,xe)?Oe:M0(ft),Ra=xe.enclosingDeclaration;if(xe.enclosingDeclaration=void 0,xe.tracker.canTrackSymbol&&O8(ft.escapedName))if(ft.declarations){const Gt=ds(ft.declarations);if(i3(Gt))if(Tr(Gt)){const en=ka(Gt);en&&dl(en)&&MR(en.argumentExpression)&&Mn(en.argumentExpression,Ra,xe)}else Mn(Gt.name.expression,Ra,xe)}else xe.tracker.reportNonSerializableProperty(x(ft));xe.enclosingDeclaration=ft.valueDeclaration||(($n=ft.declarations)==null?void 0:$n[0])||Ra;const Di=Lf(ft,xe);xe.enclosingDeclaration=Ra,xe.approximateLength+=Gl(ft).length+1;const Lr=ft.flags&16777216?O.createToken(57):void 0;if(ft.flags&8208&&!hv(wr).length&&!Ep(ft)){const Gt=Ja(gc(wr,en=>!(en.flags&32768)),0);for(const en of Gt){const Qt=ve(en,170,xe,{name:Di,questionToken:Lr});er.push(vt(Qt))}}else{let Gt;A(ft,xe)?Gt=y(xe):(Sr&&(xe.reverseMappedStack||(xe.reverseMappedStack=[]),xe.reverseMappedStack.push(ft)),Gt=wr?aa(xe,wr,ft,Ra):O.createKeywordTypeNode(131),Sr&&xe.reverseMappedStack.pop());const en=Ep(ft)?[O.createToken(146)]:void 0;en&&(xe.approximateLength+=9);const Qt=O.createPropertySignature(en,Di,Lr,Gt);er.push(vt(Qt))}function vt(Gt){var en;if(Dt(ft.declarations,Qt=>Qt.kind===351)){const Qt=(en=ft.declarations)==null?void 0:en.find(tr=>tr.kind===351),kn=ND(Qt.comment);kn&&Qb(Gt,[{kind:3,text:`*
* `+kn.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ft.valueDeclaration&&Xc(Gt,ft.valueDeclaration);return Gt}}function F(ft,xe,er){if(Dt(ft)){if(l(xe))if(er){if(ft.length>2)return[u(ft[0],xe),O.createTypeReferenceNode(`... ${ft.length-2} more ...`,void 0),u(ft[ft.length-1],xe)]}else return[O.createTypeReferenceNode("...",void 0)];const Sr=!(xe.flags&64)?Wue():void 0,wr=[];let Ra=0;for(const Di of ft){if(Ra++,l(xe)&&Ra+2<ft.length-1){wr.push(O.createTypeReferenceNode(`... ${ft.length-Ra} more ...`,void 0));const vt=u(ft[ft.length-1],xe);vt&&wr.push(vt);break}xe.approximateLength+=2;const Lr=u(Di,xe);Lr&&(wr.push(Lr),Sr&&ome(Lr)&&Sr.add(Lr.typeName.escapedText,[Di,wr.length-1]))}if(Sr){const Di=xe.flags;xe.flags|=64,Sr.forEach(Lr=>{if(!sme(Lr,([vt],[Gt])=>K(vt,Gt)))for(const[vt,Gt]of Lr)wr[Gt]=u(vt,xe)}),xe.flags=Di}return wr}}function K(ft,xe){return ft===xe||!!ft.symbol&&ft.symbol===xe.symbol||!!ft.aliasSymbol&&ft.aliasSymbol===xe.aliasSymbol}function Q(ft,xe,er){const $n=g_e(ft)||"x",Sr=u(ft.keyType,xe),wr=O.createParameterDeclaration(void 0,void 0,$n,void 0,Sr,void 0);return er||(er=u(ft.type||Oe,xe)),!ft.type&&!(xe.flags&2097152)&&(xe.encounteredError=!0),xe.approximateLength+=$n.length+4,O.createIndexSignature(ft.isReadonly?[O.createToken(146)]:void 0,[wr],er)}function ve(ft,xe,er,$n){var Sr,wr,Ra,Di,Lr;const vt=er.flags&256;vt&&(er.flags&=-257),er.approximateLength+=3;let Gt,en;er.flags&32&&ft.target&&ft.mapper&&ft.target.typeParameters?en=ft.target.typeParameters.map(Ji=>u(Zi(Ji,ft.mapper),er)):Gt=ft.typeParameters&&ft.typeParameters.map(Ji=>_t(Ji,er));const Qt=qIe(ft,!0)[0];let kn;if(er.enclosingDeclaration&&ft.declaration&&ft.declaration!==er.enclosingDeclaration&&!_r(ft.declaration)&&Dt(Qt)){const Ji=Xr(er.enclosingDeclaration).fakeScopeForSignatureDeclaration?er.enclosingDeclaration:void 0;R.assertOptionalNode(Ji,fo);const us=(Sr=Ji==null?void 0:Ji.locals)!=null?Sr:uo();let js;for(const Ps of Qt)us.has(Ps.escapedName)||(js=Pn(js,Ps.escapedName),us.set(Ps.escapedName,Ps));if(js){let Ps=function(){Ie(js,gu=>us.delete(gu))};var tr=Ps;if(Ji)kn=Ps;else{const gu=th.createBlock(it);Xr(gu).fakeScopeForSignatureDeclaration=!0,gu.locals=us;const rt=er.enclosingDeclaration;jo(gu,rt),er.enclosingDeclaration=gu,kn=()=>{er.enclosingDeclaration=rt,Ps()}}}}const Pi=(Dt(Qt,Ji=>Ji!==Qt[Qt.length-1]&&!!(Dl(Ji)&32768))?ft.parameters:Qt).map(Ji=>Ut(Ji,er,xe===173,$n==null?void 0:$n.privateSymbolVisitor,$n==null?void 0:$n.bundledImports)),Yi=er.flags&33554432?void 0:Pe(ft,er);Yi&&Pi.unshift(Yi);let dn;const gr=f_(ft);if(gr){const Ji=gr.kind===2||gr.kind===3?O.createToken(129):void 0,us=gr.kind===1||gr.kind===3?sr(O.createIdentifier(gr.parameterName),33554432):O.createThisTypeNode(),js=gr.type&&u(gr.type,er);dn=O.createTypePredicateNode(Ji,us,js)}else{const Ji=vs(ft);Ji&&!(vt&&xs(Ji))?dn=Ms(er,Ji,ft,$n==null?void 0:$n.privateSymbolVisitor,$n==null?void 0:$n.bundledImports):vt||(dn=O.createKeywordTypeNode(131))}let Vr=$n==null?void 0:$n.modifiers;if(xe===182&&ft.flags&4){const Ji=Jm(Vr);Vr=O.createModifiersFromModifierFlags(Ji|256)}const Kr=xe===176?O.createCallSignature(Gt,Pi,dn):xe===177?O.createConstructSignature(Gt,Pi,dn):xe===170?O.createMethodSignature(Vr,(wr=$n==null?void 0:$n.name)!=null?wr:O.createIdentifier(""),$n==null?void 0:$n.questionToken,Gt,Pi,dn):xe===171?O.createMethodDeclaration(Vr,void 0,(Ra=$n==null?void 0:$n.name)!=null?Ra:O.createIdentifier(""),void 0,Gt,Pi,dn,void 0):xe===173?O.createConstructorDeclaration(Vr,Pi,void 0):xe===174?O.createGetAccessorDeclaration(Vr,(Di=$n==null?void 0:$n.name)!=null?Di:O.createIdentifier(""),Pi,dn,void 0):xe===175?O.createSetAccessorDeclaration(Vr,(Lr=$n==null?void 0:$n.name)!=null?Lr:O.createIdentifier(""),Pi,void 0):xe===178?O.createIndexSignature(Vr,Pi,dn):xe===320?O.createJSDocFunctionType(Pi,dn):xe===181?O.createFunctionTypeNode(Gt,Pi,dn!=null?dn:O.createTypeReferenceNode(O.createIdentifier(""))):xe===182?O.createConstructorTypeNode(Vr,Gt,Pi,dn!=null?dn:O.createTypeReferenceNode(O.createIdentifier(""))):xe===259?O.createFunctionDeclaration(Vr,void 0,$n!=null&&$n.name?lo($n.name,We):O.createIdentifier(""),Gt,Pi,dn,void 0):xe===215?O.createFunctionExpression(Vr,void 0,$n!=null&&$n.name?lo($n.name,We):O.createIdentifier(""),Gt,Pi,dn,O.createBlock([])):xe===216?O.createArrowFunction(Vr,Gt,Pi,dn,void 0,O.createBlock([])):R.assertNever(xe);return en&&(Kr.typeArguments=O.createNodeArray(en)),kn==null||kn(),Kr}function Pe(ft,xe){if(ft.thisParameter)return Ut(ft.thisParameter,xe);if(ft.declaration&&_r(ft.declaration)){const er=IM(ft.declaration);if(er&&er.typeExpression)return O.createParameterDeclaration(void 0,void 0,"this",void 0,u(pi(er.typeExpression),xe))}}function Me(ft,xe,er){const $n=xe.flags;xe.flags&=-513;const Sr=O.createModifiersFromModifierFlags(ooe(ft)),wr=oi(ft,xe),Ra=YE(ft),Di=Ra&&u(Ra,xe);return xe.flags=$n,O.createTypeParameterDeclaration(Sr,wr,er,Di)}function _t(ft,xe,er=Ru(ft)){const $n=er&&u(er,xe);return Me(ft,xe,$n)}function Ut(ft,xe,er,$n,Sr){let wr=Il(ft,166);!wr&&!jm(ft)&&(wr=Il(ft,344));let Ra=or(ft);wr&&xRe(wr)&&(Ra=cy(Ra));const Di=aa(xe,Ra,ft,xe.enclosingDeclaration,$n,Sr),Lr=!(xe.flags&8192)&&er&&wr&&np(wr)?Pt(ET(wr),O.cloneNode):void 0,Gt=wr&&Lh(wr)||Dl(ft)&32768?O.createToken(25):void 0,en=wr&&wr.name?wr.name.kind===79?sr(O.cloneNode(wr.name),33554432):wr.name.kind===163?sr(O.cloneNode(wr.name.right),33554432):Pi(wr.name):Gl(ft),kn=wr&&B8(wr)||Dl(ft)&16384?O.createToken(57):void 0,tr=O.createParameterDeclaration(Lr,Gt,en,kn,Di,void 0);return xe.approximateLength+=Gl(ft).length+3,tr;function Pi(Yi){return dn(Yi);function dn(gr){xe.tracker.canTrackSymbol&&Cs(gr)&&Xie(gr)&&Mn(gr.expression,xe.enclosingDeclaration,xe);let Vr=Fn(gr,dn,Dg,void 0,dn);return ms(Vr)&&(Vr=O.updateBindingElement(Vr,Vr.dotDotDotToken,Vr.propertyName,Vr.name,void 0)),tl(Vr)||(Vr=O.cloneNode(Vr)),sr(Vr,33554433)}}}function Mn(ft,xe,er){if(!er.tracker.canTrackSymbol)return;const $n=Of(ft),Sr=ml($n,$n.escapedText,1160127,void 0,void 0,!0);Sr&&er.tracker.trackSymbol(Sr,xe,111551)}function xn(ft,xe,er,$n){return xe.tracker.trackSymbol(ft,xe.enclosingDeclaration,er),Kn(ft,xe,er,$n)}function Kn(ft,xe,er,$n){let Sr;return!(ft.flags&262144)&&(xe.enclosingDeclaration||xe.flags&64)&&!(xe.flags&134217728)?(Sr=R.checkDefined(Ra(ft,er,!0)),R.assert(Sr&&Sr.length>0)):Sr=[ft],Sr;function Ra(Di,Lr,vt){let Gt=k0(Di,xe.enclosingDeclaration,Lr,!!(xe.flags&128)),en;if(!Gt||U2(Gt[0],xe.enclosingDeclaration,Gt.length===1?Lr:Qg(Lr))){const kn=ME(Gt?Gt[0]:Di,xe.enclosingDeclaration,Lr);if(ge(kn)){en=kn.map(Yi=>Dt(Yi.declarations,Zg)?ln(Yi,xe):void 0);const tr=kn.map((Yi,dn)=>dn);tr.sort(Qt);const Pi=tr.map(Yi=>kn[Yi]);for(const Yi of Pi){const dn=Ra(Yi,Qg(Lr),!1);if(dn){if(Yi.exports&&Yi.exports.get("export=")&&bm(Yi.exports.get("export="),Di)){Gt=dn;break}Gt=dn.concat(Gt||[iv(Yi,Di)||Di]);break}}}}if(Gt)return Gt;if(vt||!(Di.flags&6144))return!vt&&!$n&&Ie(Di.declarations,Zg)?void 0:[Di];function Qt(kn,tr){const Pi=en[kn],Yi=en[tr];if(Pi&&Yi){const dn=wf(Yi);return wf(Pi)===dn?lN(Pi)-lN(Yi):dn?-1:1}return 0}}}function hn(ft,xe){let er;return wA(ft).flags&524384&&(er=O.createNodeArray(Pt(_v(ft),Sr=>_t(Sr,xe)))),er}function Tn(ft,xe,er){var $n;R.assert(ft&&0<=xe&&xe<ft.length);const Sr=ft[xe],wr=To(Sr);if(($n=er.typeParameterSymbolList)!=null&&$n.has(wr))return;(er.typeParameterSymbolList||(er.typeParameterSymbolList=new Set)).add(wr);let Ra;if(er.flags&512&&xe<ft.length-1){const Di=Sr,Lr=ft[xe+1];if(Dl(Lr)&1){const vt=V2(Di.flags&2097152?ic(Di):Di);Ra=F(Pt(vt,Gt=>j0(Gt,Lr.links.mapper)),er)}else Ra=hn(Sr,er)}return Ra}function br(ft){return rx(ft.objectType)?br(ft.objectType):ft}function ln(ft,xe,er){var $n;let Sr=Il(ft,308);if(!Sr){const Gt=qt(ft.declarations,en=>tA(en,ft));Gt&&(Sr=Il(Gt,308))}if(Sr&&Sr.moduleName!==void 0)return Sr.moduleName;if(!Sr){if(xe.tracker.trackReferencedAmbientModule){const Gt=ur(ft.declarations,Hu);if(ge(Gt))for(const en of Gt)xe.tracker.trackReferencedAmbientModule(en,ft)}if(B9.test(ft.escapedName))return ft.escapedName.substring(1,ft.escapedName.length-1)}if(!xe.enclosingDeclaration||!xe.tracker.moduleResolverHost)return B9.test(ft.escapedName)?ft.escapedName.substring(1,ft.escapedName.length-1):Zn(Aq(ft)).fileName;const wr=Zn(Cl(xe.enclosingDeclaration)),Ra=er||(wr==null?void 0:wr.impliedNodeFormat),Di=T4(wr.path,Ra),Lr=zi(ft);let vt=Lr.specifierCache&&Lr.specifierCache.get(Di);if(!vt){const Gt=!!Ks(ne),{moduleResolverHost:en}=xe.tracker,Qt=Gt?so(Li({},ne),{baseUrl:en.getCommonSourceDirectory()}):ne;vt=ds(Gye(ft,ot,Qt,wr,en,{importModuleSpecifierPreference:Gt?"non-relative":"project-relative",importModuleSpecifierEnding:Gt?"minimal":Ra===99?"js":void 0},{overrideImportMode:er})),($n=Lr.specifierCache)!=null||(Lr.specifierCache=new Map),Lr.specifierCache.set(Di,vt)}return vt}function Gn(ft){const xe=O.createIdentifier(ia(ft.escapedName));return ft.parent?O.createQualifiedName(Gn(ft.parent),xe):xe}function qn(ft,xe,er,$n){var Sr,wr,Ra,Di;const Lr=xn(ft,xe,er,!(xe.flags&16384)),vt=er===111551;if(Dt(Lr[0].declarations,Zg)){const Qt=Lr.length>1?en(Lr,Lr.length-1,1):void 0,kn=$n||Tn(Lr,0,xe),tr=Zn(Cl(xe.enclosingDeclaration)),Pi=WM(Lr[0]);let Yi,dn;if((El(ne)===3||El(ne)===99)&&(Pi==null?void 0:Pi.impliedNodeFormat)===99&&Pi.impliedNodeFormat!==(tr==null?void 0:tr.impliedNodeFormat)&&(Yi=ln(Lr[0],xe,99),dn=O.createImportTypeAssertionContainer(O.createAssertClause(O.createNodeArray([O.createAssertEntry(O.createStringLiteral("resolution-mode"),O.createStringLiteral("import"))]))),(wr=(Sr=xe.tracker).reportImportTypeNodeResolutionModeOverride)==null||wr.call(Sr)),Yi||(Yi=ln(Lr[0],xe)),!(xe.flags&67108864)&&El(ne)!==1&&Yi.indexOf("/node_modules/")>=0){const Vr=Yi;if(El(ne)===3||El(ne)===99){const Kr=(tr==null?void 0:tr.impliedNodeFormat)===99?1:99;Yi=ln(Lr[0],xe,Kr),Yi.indexOf("/node_modules/")>=0?Yi=Vr:(dn=O.createImportTypeAssertionContainer(O.createAssertClause(O.createNodeArray([O.createAssertEntry(O.createStringLiteral("resolution-mode"),O.createStringLiteral(Kr===99?"import":"require"))]))),(Di=(Ra=xe.tracker).reportImportTypeNodeResolutionModeOverride)==null||Di.call(Ra))}dn||(xe.encounteredError=!0,xe.tracker.reportLikelyUnsafeImportRequiredError&&xe.tracker.reportLikelyUnsafeImportRequiredError(Vr))}const gr=O.createLiteralTypeNode(O.createStringLiteral(Yi));if(xe.tracker.trackExternalModuleSymbolOfImportTypeNode&&xe.tracker.trackExternalModuleSymbolOfImportTypeNode(Lr[0]),xe.approximateLength+=Yi.length+10,!Qt||uf(Qt)){if(Qt){const Vr=We(Qt)?Qt:Qt.right;My(Vr,void 0)}return O.createImportTypeNode(gr,dn,Qt,kn,vt)}else{const Vr=br(Qt),Kr=Vr.objectType.typeName;return O.createIndexedAccessTypeNode(O.createImportTypeNode(gr,dn,Kr,kn,vt),Vr.indexType)}}const Gt=en(Lr,Lr.length-1,0);if(rx(Gt))return Gt;if(vt)return O.createTypeQueryNode(Gt);{const Qt=We(Gt)?Gt:Gt.right,kn=zT(Qt);return My(Qt,void 0),O.createTypeReferenceNode(Gt,kn)}function en(Qt,kn,tr){const Pi=kn===Qt.length-1?$n:Tn(Qt,kn,xe),Yi=Qt[kn],dn=Qt[kn-1];let gr;if(kn===0)xe.flags|=16777216,gr=lv(Yi,xe),xe.approximateLength+=(gr?gr.length:0)+1,xe.flags^=16777216;else if(dn&&Tf(dn)){const Kr=Tf(dn);ff(Kr,(Ji,us)=>{if(bm(Ji,Yi)&&!O8(us)&&us!=="export=")return gr=ia(us),!0})}if(gr===void 0){const Kr=qt(Yi.declarations,ka);if(Kr&&Cs(Kr)&&uf(Kr.expression)){const Ji=en(Qt,kn-1,tr);return uf(Ji)?O.createIndexedAccessTypeNode(O.createParenthesizedType(O.createTypeQueryNode(Ji)),O.createTypeQueryNode(Kr.expression)):Ji}gr=lv(Yi,xe)}if(xe.approximateLength+=gr.length+1,!(xe.flags&16)&&dn&&pv(dn)&&pv(dn).get(Yi.escapedName)&&bm(pv(dn).get(Yi.escapedName),Yi)){const Kr=en(Qt,kn-1,tr);return rx(Kr)?O.createIndexedAccessTypeNode(Kr,O.createLiteralTypeNode(O.createStringLiteral(gr))):O.createIndexedAccessTypeNode(O.createTypeReferenceNode(Kr,Pi),O.createLiteralTypeNode(O.createStringLiteral(gr)))}const Vr=sr(O.createIdentifier(gr),33554432);if(Pi&&My(Vr,O.createNodeArray(Pi)),Vr.symbol=Yi,kn>tr){const Kr=en(Qt,kn-1,tr);return uf(Kr)?O.createQualifiedName(Kr,Vr):R.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Vr}}function ti(ft,xe,er){const $n=ml(xe.enclosingDeclaration,ft,788968,void 0,ft,!1);return $n?!($n.flags&262144&&$n===er.symbol):!1}function oi(ft,xe){var er,$n;if(xe.flags&4&&xe.typeParameterNames){const wr=xe.typeParameterNames.get(Mu(ft));if(wr)return wr}let Sr=ma(ft.symbol,xe,788968,!0);if(!(Sr.kind&79))return O.createIdentifier("(Missing type parameter)");if(xe.flags&4){const wr=Sr.escapedText;let Ra=((er=xe.typeParameterNamesByTextNextNameCount)==null?void 0:er.get(wr))||0,Di=wr;for(;($n=xe.typeParameterNamesByText)!=null&&$n.has(Di)||ti(Di,xe,ft);)Ra++,Di=`${wr}_${Ra}`;if(Di!==wr){const Lr=zT(Sr);Sr=O.createIdentifier(Di),My(Sr,Lr)}(xe.typeParameterNamesByTextNextNameCount||(xe.typeParameterNamesByTextNextNameCount=new Map)).set(wr,Ra),(xe.typeParameterNames||(xe.typeParameterNames=new Map)).set(Mu(ft),Sr),(xe.typeParameterNamesByText||(xe.typeParameterNamesByText=new Set)).add(wr)}return Sr}function ma(ft,xe,er,$n){const Sr=xn(ft,xe,er);return $n&&Sr.length!==1&&!xe.encounteredError&&!(xe.flags&65536)&&(xe.encounteredError=!0),wr(Sr,Sr.length-1);function wr(Ra,Di){const Lr=Tn(Ra,Di,xe),vt=Ra[Di];Di===0&&(xe.flags|=16777216);const Gt=lv(vt,xe);Di===0&&(xe.flags^=16777216);const en=sr(O.createIdentifier(Gt),33554432);return Lr&&My(en,O.createNodeArray(Lr)),en.symbol=vt,Di>0?O.createQualifiedName(wr(Ra,Di-1),en):en}}function eo(ft,xe,er){const $n=xn(ft,xe,er);return Sr($n,$n.length-1);function Sr(wr,Ra){const Di=Tn(wr,Ra,xe),Lr=wr[Ra];Ra===0&&(xe.flags|=16777216);let vt=lv(Lr,xe);Ra===0&&(xe.flags^=16777216);let Gt=vt.charCodeAt(0);if(nR(Gt)&&Dt(Lr.declarations,Zg))return O.createStringLiteral(ln(Lr,xe));if(Ra===0||rK(vt,P)){const en=sr(O.createIdentifier(vt),33554432);return Di&&My(en,O.createNodeArray(Di)),en.symbol=Lr,Ra>0?O.createPropertyAccessExpression(Sr(wr,Ra-1),en):en}else{Gt===91&&(vt=vt.substring(1,vt.length-1),Gt=vt.charCodeAt(0));let en;if(nR(Gt)&&!(Lr.flags&8)?en=O.createStringLiteral(X_(vt).replace(/\\./g,Qt=>Qt.substring(1)),Gt===39):""+ +vt===vt&&(en=O.createNumericLiteral(+vt)),!en){const Qt=sr(O.createIdentifier(vt),33554432);Di&&My(Qt,O.createNodeArray(Di)),Qt.symbol=Lr,en=Qt}return O.createElementAccessExpression(Sr(wr,Ra-1),en)}}}function Cc(ft){const xe=ka(ft);return!!xe&&Wo(xe)}function $f(ft){const xe=ka(ft);return!!(xe&&Wo(xe)&&(xe.singleQuote||!tl(xe)&&xa(kc(xe,!1),"'")))}function Lf(ft,xe){const er=!!ge(ft.declarations)&&Qn(ft.declarations,Cc),$n=!!ge(ft.declarations)&&Qn(ft.declarations,$f),Sr=ca(ft,xe,$n,er);if(Sr)return Sr;const wr=ia(ft.escapedName);return XP(wr,ns(ne),$n,er)}function ca(ft,xe,er,$n){const Sr=zi(ft).nameType;if(Sr){if(Sr.flags&384){const wr=""+Sr.value;return!W_(wr,ns(ne))&&($n||!Oh(wr))?O.createStringLiteral(wr,!!er):Oh(wr)&&xa(wr,"-")?O.createComputedPropertyName(O.createNumericLiteral(+wr)):XP(wr,ns(ne))}if(Sr.flags&8192)return O.createComputedPropertyName(eo(Sr.symbol,xe,111551))}}function Un(ft){const xe=Li({},ft);return xe.typeParameterNames&&(xe.typeParameterNames=new Map(xe.typeParameterNames)),xe.typeParameterNamesByText&&(xe.typeParameterNamesByText=new Set(xe.typeParameterNamesByText)),xe.typeParameterSymbolList&&(xe.typeParameterSymbolList=new Set(xe.typeParameterSymbolList)),xe.tracker=new dN(xe,xe.tracker.inner,xe.tracker.moduleResolverHost),xe}function cr(ft,xe){return ft.declarations&&$t(ft.declarations,er=>!!iu(er)&&(!xe||!!rr(er,$n=>$n===xe)))}function na(ft,xe){return!(ni(xe)&4)||!ep(ft)||ge(ft.typeArguments)>=Am(xe.target.typeParameters)}function Ga(ft){return Xr(ft).fakeScopeForSignatureDeclaration?ft.parent:ft}function aa(ft,xe,er,$n,Sr,wr){if(!is(xe)&&$n){const Lr=cr(er,Ga($n));if(Lr&&!el(Lr)&&!Z_(Lr)){const vt=iu(Lr);if(ts(vt,Lr,xe)&&na(vt,xe)){const Gt=Lo(ft,vt,Sr,wr);if(Gt)return Gt}}}const Ra=ft.flags;xe.flags&8192&&xe.symbol===er&&(!ft.enclosingDeclaration||Dt(er.declarations,Lr=>Zn(Lr)===Zn(ft.enclosingDeclaration)))&&(ft.flags|=1048576);const Di=u(xe,ft);return ft.flags=Ra,Di}function ts(ft,xe,er){const $n=pi(ft);return $n===er?!0:Ba(xe)&&xe.questionToken?m_(er,524288)===$n:!1}function Ms(ft,xe,er,$n,Sr){if(!is(xe)&&ft.enclosingDeclaration){const wr=er.declaration&&Lp(er.declaration),Ra=Ga(ft.enclosingDeclaration);if(rr(wr,Di=>Di===Ra)&&wr){const Di=pi(wr);if((Di.flags&262144&&Di.isThisType?Zi(Di,er.mapper):Di)===xe&&na(wr,xe)){const vt=Lo(ft,wr,$n,Sr);if(vt)return vt}}}return u(xe,ft)}function vl(ft,xe,er){let $n=!1;const Sr=Of(ft);if(_r(ft)&&(NT(Sr)||kh(Sr.parent)||Rd(Sr.parent)&&qq(Sr.parent.left)&&NT(Sr.parent.right)))return $n=!0,{introducesError:$n,node:ft};const wr=Pl(Sr,67108863,!0,!0);if(wr&&(ov(wr,xe.enclosingDeclaration,67108863,!1).accessibility!==0?$n=!0:(xe.tracker.trackSymbol(wr,xe.enclosingDeclaration,67108863),er==null||er(wr)),We(ft))){const Ra=Vs(wr),Di=wr.flags&262144&&!UE(Ra.symbol,xe.enclosingDeclaration)?oi(Ra,xe):O.cloneNode(ft);return Di.symbol=wr,{introducesError:$n,node:sr(zr(Di,ft),33554432)}}return{introducesError:$n,node:ft}}function Lo(ft,xe,er,$n){o&&o.throwIfCancellationRequested&&o.throwIfCancellationRequested();let Sr=!1;const wr=Zn(xe),Ra=ct(xe,Di,Bi);if(Sr)return;return Ra===xe?ht(O.cloneNode(xe),xe):Ra;function Di(Lr){if(ghe(Lr)||Lr.kind===322)return O.createKeywordTypeNode(131);if(yhe(Lr))return O.createKeywordTypeNode(157);if(KC(Lr))return O.createUnionTypeNode([ct(Lr.type,Di,Bi),O.createLiteralTypeNode(O.createNull())]);if(eX(Lr))return O.createUnionTypeNode([ct(Lr.type,Di,Bi),O.createKeywordTypeNode(155)]);if(W5(Lr))return ct(Lr.type,Di);if(H5(Lr))return O.createArrayTypeNode(ct(Lr.type,Di,Bi));if(p4(Lr))return O.createTypeLiteralNode(Pt(Lr.jsDocPropertyTags,Qt=>{const kn=We(Qt.name)?Qt.name:Qt.name.right,tr=hc(pi(Lr),kn.escapedText),Pi=tr&&Qt.typeExpression&&pi(Qt.typeExpression.type)!==tr?u(tr,ft):void 0;return O.createPropertySignature(void 0,kn,Qt.isBracketed||Qt.typeExpression&&eX(Qt.typeExpression.type)?O.createToken(57):void 0,Pi||Qt.typeExpression&&ct(Qt.typeExpression.type,Di,Bi)||O.createKeywordTypeNode(131))}));if(ep(Lr)&&We(Lr.typeName)&&Lr.typeName.escapedText==="")return zr(O.createKeywordTypeNode(131),Lr);if((Py(Lr)||ep(Lr))&&pP(Lr))return O.createTypeLiteralNode([O.createIndexSignature(void 0,[O.createParameterDeclaration(void 0,void 0,"x",void 0,ct(Lr.typeArguments[0],Di,Bi))],ct(Lr.typeArguments[1],Di,Bi))]);if(XC(Lr))if(pC(Lr)){let Qt;return O.createConstructorTypeNode(void 0,Jn(Lr.typeParameters,Di,Ul),ua(Lr.parameters,(kn,tr)=>kn.name&&We(kn.name)&&kn.name.escapedText==="new"?(Qt=kn.type,void 0):O.createParameterDeclaration(void 0,vt(kn),Gt(kn,tr),kn.questionToken,ct(kn.type,Di,Bi),void 0)),ct(Qt||Lr.type,Di,Bi)||O.createKeywordTypeNode(131))}else return O.createFunctionTypeNode(Jn(Lr.typeParameters,Di,Ul),Pt(Lr.parameters,(Qt,kn)=>O.createParameterDeclaration(void 0,vt(Qt),Gt(Qt,kn),Qt.questionToken,ct(Qt.type,Di,Bi),void 0)),ct(Lr.type,Di,Bi)||O.createKeywordTypeNode(131));if(ep(Lr)&&tR(Lr)&&(!na(Lr,pi(Lr))||bke(Lr)||an===gA(Lr,788968,!0)))return zr(u(pi(Lr),ft),Lr);if(l1(Lr)){const Qt=Xr(Lr).resolvedSymbol;return tR(Lr)&&Qt&&(!Lr.isTypeOf&&!(Qt.flags&788968)||!(ge(Lr.typeArguments)>=Am(_v(Qt))))?zr(u(pi(Lr),ft),Lr):O.updateImportTypeNode(Lr,O.updateLiteralTypeNode(Lr.argument,en(Lr,Lr.argument.literal)),Lr.assertions,Lr.qualifier,Jn(Lr.typeArguments,Di,Bi),Lr.isTypeOf)}if(uf(Lr)||Jl(Lr)){const{introducesError:Qt,node:kn}=vl(Lr,ft,er);if(Sr=Sr||Qt,kn!==Lr)return kn}return wr&&UC(Lr)&&ll(wr,Lr.pos).line===ll(wr,Lr.end).line&&sr(Lr,1),Fn(Lr,Di,Dg);function vt(Qt){return Qt.dotDotDotToken||(Qt.type&&H5(Qt.type)?O.createToken(25):void 0)}function Gt(Qt,kn){return Qt.name&&We(Qt.name)&&Qt.name.escapedText==="this"?"this":vt(Qt)?"args":`arg${kn}`}function en(Qt,kn){if($n){if(ft.tracker&&ft.tracker.moduleResolverHost){const tr=lle(Qt);if(tr){const Yi={getCanonicalFileName:lu(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ft.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ft.tracker.moduleResolverHost.getCommonSourceDirectory()},dn=LP(Yi,tr);return O.createStringLiteral(dn)}}}else if(ft.tracker&&ft.tracker.trackExternalModuleSymbolOfImportTypeNode){const tr=Xh(kn,kn,void 0);tr&&ft.tracker.trackExternalModuleSymbolOfImportTypeNode(tr)}return kn}}}function rd(ft,xe,er){const $n=Tp(O.createPropertyDeclaration,171,!0),Sr=Tp((Rt,Ar,Si,ci)=>O.createPropertySignature(Rt,Ar,Si,ci),170,!1),wr=xe.enclosingDeclaration;let Ra=[];const Di=new Set,Lr=[],vt=xe;xe=so(Li({},vt),{usedSymbolNames:new Set(vt.usedSymbolNames),remappedSymbolNames:new Map,tracker:void 0});const Gt=so(Li({},vt.tracker.inner),{trackSymbol:(Rt,Ar,Si)=>{var ci;if(ov(Rt,Ar,Si,!1).accessibility===0){const ss=Kn(Rt,xe,Si);Rt.flags&4||Ps(ss[0])}else if((ci=vt.tracker.inner)!=null&&ci.trackSymbol)return vt.tracker.inner.trackSymbol(Rt,Ar,Si);return!1}});xe.tracker=new dN(xe,Gt,vt.tracker.moduleResolverHost),ff(ft,(Rt,Ar)=>{const Si=ia(Ar);Wd(Rt,Si)});let en=!er;const Qt=ft.get("export=");return Qt&&ft.size>1&&Qt.flags&2097152&&(ft=uo(),ft.set("export=",Qt)),Ji(ft),gr(Ra);function kn(Rt){return!!Rt&&Rt.kind===79}function tr(Rt){return pc(Rt)?ur(Pt(Rt.declarationList.declarations,ka),kn):ur([ka(Rt)],kn)}function Pi(Rt){const Ar=$t(Rt,Vl),Si=ii(Rt,Xl);let ci=Si!==-1?Rt[Si]:void 0;if(ci&&Ar&&Ar.isExportEquals&&We(Ar.expression)&&We(ci.name)&&Pr(ci.name)===Pr(Ar.expression)&&ci.body&&dm(ci.body)){const fi=ur(Rt,oa=>!!(zu(oa)&1)),ss=ci.name;let Va=ci.body;if(ge(fi)&&(ci=O.updateModuleDeclaration(ci,ci.modifiers,ci.name,Va=O.updateModuleBlock(Va,O.createNodeArray([...ci.body.statements,O.createExportDeclaration(void 0,!1,O.createNamedExports(Pt(ji(fi,oa=>tr(oa)),oa=>O.createExportSpecifier(!1,void 0,oa))),void 0)]))),Rt=[...Rt.slice(0,Si),ci,...Rt.slice(Si+1)]),!$t(Rt,oa=>oa!==ci&&DD(oa,ss))){Ra=[];const oa=!Dt(Va.statements,qo=>Qr(qo,1)||Vl(qo)||au(qo));Ie(Va.statements,qo=>{rt(qo,oa?1:0)}),Rt=[...ur(Rt,qo=>qo!==ci&&qo!==Ar),...Ra]}}return Rt}function Yi(Rt){const Ar=ur(Rt,ci=>au(ci)&&!ci.moduleSpecifier&&!!ci.exportClause&&tp(ci.exportClause));ge(Ar)>1&&(Rt=[...ur(Rt,fi=>!au(fi)||!!fi.moduleSpecifier||!fi.exportClause),O.createExportDeclaration(void 0,!1,O.createNamedExports(ji(Ar,fi=>lo(fi.exportClause,tp).elements)),void 0)]);const Si=ur(Rt,ci=>au(ci)&&!!ci.moduleSpecifier&&!!ci.exportClause&&tp(ci.exportClause));if(ge(Si)>1){const ci=PI(Si,fi=>Wo(fi.moduleSpecifier)?">"+fi.moduleSpecifier.text:">");if(ci.length!==Si.length)for(const fi of ci)fi.length>1&&(Rt=[...ur(Rt,ss=>fi.indexOf(ss)===-1),O.createExportDeclaration(void 0,!1,O.createNamedExports(ji(fi,ss=>lo(ss.exportClause,tp).elements)),fi[0].moduleSpecifier)])}return Rt}function dn(Rt){const Ar=ii(Rt,Si=>au(Si)&&!Si.moduleSpecifier&&!Si.assertClause&&!!Si.exportClause&&tp(Si.exportClause));if(Ar>=0){const Si=Rt[Ar],ci=ua(Si.exportClause.elements,fi=>{if(!fi.propertyName){const ss=Xw(Rt),Va=ur(ss,oa=>DD(Rt[oa],fi.name));if(ge(Va)&&Qn(Va,oa=>$R(Rt[oa]))){for(const oa of Va)Rt[oa]=Vr(Rt[oa]);return}}return fi});ge(ci)?Rt[Ar]=O.updateExportDeclaration(Si,Si.modifiers,Si.isTypeOnly,O.updateNamedExports(Si.exportClause,ci),Si.moduleSpecifier,Si.assertClause):Cb(Rt,Ar)}return Rt}function gr(Rt){return Rt=Pi(Rt),Rt=Yi(Rt),Rt=dn(Rt),wr&&(Ki(wr)&&_f(wr)||Xl(wr))&&(!Dt(Rt,GD)||!jfe(Rt)&&Dt(Rt,FM))&&Rt.push(L6(O)),Rt}function Vr(Rt){const Ar=(zu(Rt)|1)&-3;return O.updateModifiers(Rt,Ar)}function Kr(Rt){const Ar=zu(Rt)&-2;return O.updateModifiers(Rt,Ar)}function Ji(Rt,Ar,Si){Ar||Lr.push(new Map),Rt.forEach(ci=>{us(ci,!1,!!Si)}),Ar||(Lr[Lr.length-1].forEach(ci=>{us(ci,!0,!!Si)}),Lr.pop())}function us(Rt,Ar,Si){const ci=os(Rt);if(Di.has(To(ci)))return;if(Di.add(To(ci)),!Ar||ge(Rt.declarations)&&Dt(Rt.declarations,ss=>!!rr(ss,Va=>Va===wr))){const ss=xe;xe=Un(xe),js(Rt,Ar,Si),xe.reportedDiagnostic&&(vt.reportedDiagnostic=xe.reportedDiagnostic),xe=ss}}function js(Rt,Ar,Si){var ci,fi,ss,Va;const oa=ia(Rt.escapedName),qo=Rt.escapedName==="default";if(Ar&&!(xe.flags&131072)&&PS(oa)&&!qo){xe.encounteredError=!0;return}let bs=qo&&!!(Rt.flags&-113||Rt.flags&16&&ge(gs(or(Rt))))&&!(Rt.flags&2097152),ac=!bs&&!Ar&&PS(oa)&&!qo;(bs||ac)&&(Ar=!0);const Oc=(Ar?0:1)|(qo&&!bs?1024:0),If=Rt.flags&1536&&Rt.flags&7&&Rt.escapedName!=="export=",vu=If&&yu(or(Rt),Rt);if((Rt.flags&8208||vu)&&Wr(or(Rt),Rt,Wd(Rt,oa),Oc),Rt.flags&524288&&St(Rt,oa,Oc),Rt.flags&7&&Rt.escapedName!=="export="&&!(Rt.flags&4194304)&&!(Rt.flags&32)&&!(Rt.flags&8192)&&!vu)if(Si)ws(Rt)&&(ac=!1,bs=!1);else{const zs=or(Rt),Fl=Wd(Rt,oa);if(!(Rt.flags&16)&&yu(zs,Rt))Wr(zs,Rt,Fl,Oc);else{const py=Rt.flags&2?rI(Rt)?2:1:(ci=Rt.parent)!=null&&ci.valueDeclaration&&Ki((fi=Rt.parent)==null?void 0:fi.valueDeclaration)?2:void 0,bh=bs||!(Rt.flags&4)?Fl:NA(Fl,Rt);let Eh=Rt.declarations&&$t(Rt.declarations,Lv=>$i(Lv));Eh&&Xu(Eh.parent)&&Eh.parent.declarations.length===1&&(Eh=Eh.parent.parent);const Q2=(ss=Rt.declarations)==null?void 0:ss.find(Br);if(Q2&&Tr(Q2.parent)&&We(Q2.parent.right)&&((Va=zs.symbol)!=null&&Va.valueDeclaration)&&Ki(zs.symbol.valueDeclaration)){const Lv=Fl===Q2.parent.right.escapedText?void 0:Q2.parent.right;rt(O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,Lv,Fl)])),0),xe.tracker.trackSymbol(zs.symbol,xe.enclosingDeclaration,111551)}else{const Lv=ht(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(bh,void 0,aa(xe,zs,Rt,wr,Ps,er))],py)),Eh);rt(Lv,bh!==Fl?Oc&-2:Oc),bh!==Fl&&!Ar&&(rt(O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,bh,Fl)])),0),ac=!1,bs=!1)}}}if(Rt.flags&384&&xr(Rt,oa,Oc),Rt.flags&32&&(Rt.flags&4&&Rt.valueDeclaration&&Tr(Rt.valueDeclaration.parent)&&Ku(Rt.valueDeclaration.parent.right)?Uo(Rt,Wd(Rt,oa),Oc):hi(Rt,Wd(Rt,oa),Oc)),(Rt.flags&1536&&(!If||hr(Rt))||vu)&&Cn(Rt,oa,Oc),Rt.flags&64&&!(Rt.flags&32)&&tn(Rt,oa,Oc),Rt.flags&2097152&&Uo(Rt,Wd(Rt,oa),Oc),Rt.flags&4&&Rt.escapedName==="export="&&ws(Rt),Rt.flags&8388608&&Rt.declarations)for(const zs of Rt.declarations){const Fl=hu(zs,zs.moduleSpecifier);Fl&&rt(O.createExportDeclaration(void 0,zs.isTypeOnly,void 0,O.createStringLiteral(ln(Fl,xe))),0)}bs?rt(O.createExportAssignment(void 0,!1,O.createIdentifier(Wd(Rt,oa))),0):ac&&rt(O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,Wd(Rt,oa),oa)])),0)}function Ps(Rt){if(Dt(Rt.declarations,FT))return;R.assertIsDefined(Lr[Lr.length-1]),NA(ia(Rt.escapedName),Rt);const Ar=!!(Rt.flags&2097152)&&!Dt(Rt.declarations,Si=>!!rr(Si,au)||Bh(Si)||fu(Si)&&!Zm(Si.moduleReference));Lr[Ar?0:Lr.length-1].set(To(Rt),Rt)}function gu(Rt){return Ki(Rt)&&(_f(Rt)||E_(Rt))||Hu(Rt)&&!im(Rt)}function rt(Rt,Ar){if(np(Rt)){let Si=0;const ci=xe.enclosingDeclaration&&(T_(xe.enclosingDeclaration)?Zn(xe.enclosingDeclaration):xe.enclosingDeclaration);Ar&1&&ci&&(gu(ci)||Xl(ci))&&$R(Rt)&&(Si|=1),en&&!(Si&1)&&(!ci||!(ci.flags&16777216))&&(b1(Rt)||pc(Rt)||Sc(Rt)||Bc(Rt)||Xl(Rt))&&(Si|=2),Ar&1024&&(Bc(Rt)||dd(Rt)||Sc(Rt))&&(Si|=1024),Si&&(Rt=O.updateModifiers(Rt,Si|zu(Rt)))}Ra.push(Rt)}function St(Rt,Ar,Si){var ci;const fi=$1(Rt),ss=zi(Rt).typeParameters,Va=Pt(ss,If=>_t(If,xe)),oa=(ci=Rt.declarations)==null?void 0:ci.find(T_),qo=ND(oa?oa.comment||oa.parent.comment:void 0),bs=xe.flags;xe.flags|=8388608;const ac=xe.enclosingDeclaration;xe.enclosingDeclaration=oa;const Oc=oa&&oa.typeExpression&&$T(oa.typeExpression)&&Lo(xe,oa.typeExpression.type,Ps,er)||u(fi,xe);rt(Qb(O.createTypeAliasDeclaration(void 0,Wd(Rt,Ar),Va,Oc),qo?[{kind:3,text:`*
* `+qo.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Si),xe.flags=bs,xe.enclosingDeclaration=ac}function tn(Rt,Ar,Si){const ci=ed(Rt),fi=_v(Rt),ss=Pt(fi,vu=>_t(vu,xe)),Va=Bo(ci),oa=ge(Va)?Ro(Va):void 0,qo=ji(gs(ci),vu=>vh(vu,oa)),bs=K0(0,ci,oa,176),ac=K0(1,ci,oa,177),Oc=$2(ci,oa),If=ge(Va)?[O.createHeritageClause(94,ua(Va,vu=>Rm(vu,111551)))]:void 0;rt(O.createInterfaceDeclaration(void 0,Wd(Rt,Ar),ss,If,[...Oc,...ac,...bs,...qo]),Si)}function Hn(Rt){return Rt.exports?ur(Oo(Rt.exports.values()),Ka):[]}function hr(Rt){return Qn(Hn(Rt),Ar=>!(mu(Ql(Ar))&111551))}function Cn(Rt,Ar,Si){const ci=Hn(Rt),fi=eD(ci,oa=>oa.parent&&oa.parent===Rt?"real":"merged"),ss=fi.get("real")||it,Va=fi.get("merged")||it;if(ge(ss)){const oa=Wd(Rt,Ar);Ca(ss,oa,Si,!!(Rt.flags&67108880))}if(ge(Va)){const oa=Zn(xe.enclosingDeclaration),qo=Wd(Rt,Ar),bs=O.createModuleBlock([O.createExportDeclaration(void 0,!1,O.createNamedExports(ua(ur(Va,ac=>ac.escapedName!=="export="),ac=>{var Oc,If;const vu=ia(ac.escapedName),zs=Wd(ac,vu),Fl=ac.declarations&&Td(ac);if(oa&&(Fl?oa!==Zn(Fl):!Dt(ac.declarations,Eh=>Zn(Eh)===oa))){(If=(Oc=xe.tracker)==null?void 0:Oc.reportNonlocalAugmentation)==null||If.call(Oc,oa,Rt,ac);return}const py=Fl&&_p(Fl,!0);Ps(py||ac);const bh=py?Wd(py,ia(py.escapedName)):zs;return O.createExportSpecifier(!1,vu===bh?void 0:bh,vu)})))]);rt(O.createModuleDeclaration(void 0,O.createIdentifier(qo),bs,16),0)}}function xr(Rt,Ar,Si){rt(O.createEnumDeclaration(O.createModifiersFromModifierFlags(Dse(Rt)?2048:0),Wd(Rt,Ar),Pt(ur(gs(or(Rt)),ci=>!!(ci.flags&8)),ci=>{const fi=ci.declarations&&ci.declarations[0]&&nE(ci.declarations[0])?ale(ci.declarations[0]):void 0;return O.createEnumMember(ia(ci.escapedName),fi===void 0?void 0:typeof fi=="string"?O.createStringLiteral(fi):O.createNumericLiteral(fi))})),Si)}function Wr(Rt,Ar,Si,ci){const fi=Ja(Rt,0);for(const ss of fi){const Va=ve(ss,259,xe,{name:O.createIdentifier(Si),privateSymbolVisitor:Ps,bundledImports:er});rt(ht(Va,Gi(ss)),ci)}if(!(Ar.flags&1536&&Ar.exports&&Ar.exports.size)){const ss=ur(gs(Rt),Ka);Ca(ss,Si,ci,!0)}}function Gi(Rt){if(Rt.declaration&&Rt.declaration.parent){if(Tr(Rt.declaration.parent)&&wl(Rt.declaration.parent)===5)return Rt.declaration.parent;if($i(Rt.declaration.parent)&&Rt.declaration.parent.parent)return Rt.declaration.parent.parent}return Rt.declaration}function Ca(Rt,Ar,Si,ci){if(ge(Rt)){const ss=eD(Rt,zs=>!ge(zs.declarations)||Dt(zs.declarations,Fl=>Zn(Fl)===Zn(xe.enclosingDeclaration))?"local":"remote").get("local")||it;let Va=th.createModuleDeclaration(void 0,O.createIdentifier(Ar),O.createModuleBlock([]),16);jo(Va,wr),Va.locals=uo(Rt),Va.symbol=Rt[0].parent;const oa=Ra;Ra=[];const qo=en;en=!1;const bs=so(Li({},xe),{enclosingDeclaration:Va}),ac=xe;xe=bs,Ji(uo(ss),ci,!0),xe=ac,en=qo;const Oc=Ra;Ra=oa;const If=Pt(Oc,zs=>Vl(zs)&&!zs.isExportEquals&&We(zs.expression)?O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,zs.expression,O.createIdentifier("default"))])):zs),vu=Qn(If,zs=>Qr(zs,1))?Pt(If,Kr):If;Va=O.updateModuleDeclaration(Va,Va.modifiers,Va.name,O.createModuleBlock(vu)),rt(Va,Si)}}function Ka(Rt){return!!(Rt.flags&2887656)||!(Rt.flags&4194304||Rt.escapedName==="prototype"||Rt.valueDeclaration&&Xa(Rt.valueDeclaration)&&_i(Rt.valueDeclaration.parent))}function to(Rt){const Ar=ua(Rt,Si=>{const ci=xe.enclosingDeclaration;xe.enclosingDeclaration=Si;let fi=Si.expression;if(Jl(fi)){if(We(fi)&&Pr(fi)==="")return ss(void 0);let Va;if({introducesError:Va,node:fi}=vl(fi,xe,Ps),Va)return ss(void 0)}return ss(O.createExpressionWithTypeArguments(fi,Pt(Si.typeArguments,Va=>Lo(xe,Va,Ps,er)||u(pi(Va),xe))));function ss(Va){return xe.enclosingDeclaration=ci,Va}});if(Ar.length===Rt.length)return Ar}function hi(Rt,Ar,Si){var ci,fi;const ss=(ci=Rt.declarations)==null?void 0:ci.find(_i),Va=xe.enclosingDeclaration;xe.enclosingDeclaration=ss||Va;const oa=_v(Rt),qo=Pt(oa,Yp=>_t(Yp,xe)),bs=ed(Rt),ac=Bo(bs),Oc=ss&&yC(ss),If=Oc&&to(Oc)||ua(qi(bs),RA),vu=or(Rt),zs=!!((fi=vu.symbol)!=null&&fi.valueDeclaration)&&_i(vu.symbol.valueDeclaration),Fl=zs?si(vu):Oe,py=[...ge(ac)?[O.createHeritageClause(94,Pt(ac,Yp=>vI(Yp,Fl,Ar)))]:[],...ge(If)?[O.createHeritageClause(117,If)]:[]],bh=yut(bs,ac,gs(bs)),Eh=ur(bh,Yp=>{const bI=Yp.valueDeclaration;return!!bI&&!(Su(bI)&&Ri(bI.name))}),Lv=Dt(bh,Yp=>{const bI=Yp.valueDeclaration;return!!bI&&Su(bI)&&Ri(bI.name)})?[O.createPropertyDeclaration(void 0,O.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:it,mle=ji(Eh,Yp=>$n(Yp,!1,ac[0])),hle=ji(ur(gs(vu),Yp=>!(Yp.flags&4194304)&&Yp.escapedName!=="prototype"&&!Ka(Yp)),Yp=>$n(Yp,!0,Fl)),Oft=!zs&&!!Rt.valueDeclaration&&_r(Rt.valueDeclaration)&&!Dt(Ja(vu,1))?[O.createConstructorDeclaration(O.createModifiersFromModifierFlags(8),[],void 0)]:K0(1,vu,Fl,173),Mft=$2(bs,ac[0]);xe.enclosingDeclaration=Va,rt(ht(O.createClassDeclaration(void 0,Ar,qo,py,[...Mft,...hle,...Oft,...mle,...Lv]),Rt.declarations&&ur(Rt.declarations,Yp=>Bc(Yp)||Ku(Yp))[0]),Si)}function no(Rt){return qt(Rt,Ar=>{if(Nd(Ar)||yd(Ar))return Pr(Ar.propertyName||Ar.name);if(Tr(Ar)||Vl(Ar)){const Si=Vl(Ar)?Ar.expression:Ar.right;if(Br(Si))return Pr(Si.name)}if(zg(Ar)){const Si=ka(Ar);if(Si&&We(Si))return Pr(Si)}})}function Uo(Rt,Ar,Si){var ci,fi,ss,Va,oa;const qo=Td(Rt);if(!qo)return R.fail();const bs=os(_p(qo,!0));if(!bs)return;let ac=fk(bs)&&no(Rt.declarations)||ia(bs.escapedName);ac==="export="&&($_(ne)||ne.allowSyntheticDefaultImports)&&(ac="default");const Oc=Wd(bs,ac);switch(Ps(bs),qo.kind){case 205:if(((fi=(ci=qo.parent)==null?void 0:ci.parent)==null?void 0:fi.kind)===257){const zs=ln(bs.parent||bs,xe),{propertyName:Fl}=qo;rt(O.createImportDeclaration(void 0,O.createImportClause(!1,void 0,O.createNamedImports([O.createImportSpecifier(!1,Fl&&We(Fl)?O.createIdentifier(Pr(Fl)):void 0,O.createIdentifier(Ar))])),O.createStringLiteral(zs),void 0),0);break}R.failBadSyntaxKind(((ss=qo.parent)==null?void 0:ss.parent)||qo,"Unhandled binding element grandparent kind in declaration serialization");break;case 300:((oa=(Va=qo.parent)==null?void 0:Va.parent)==null?void 0:oa.kind)===223&&No(ia(Rt.escapedName),Oc);break;case 257:if(Br(qo.initializer)){const zs=qo.initializer,Fl=O.createUniqueName(Ar),py=ln(bs.parent||bs,xe);rt(O.createImportEqualsDeclaration(void 0,!1,Fl,O.createExternalModuleReference(O.createStringLiteral(py))),0),rt(O.createImportEqualsDeclaration(void 0,!1,O.createIdentifier(Ar),O.createQualifiedName(Fl,zs.name)),Si);break}case 268:if(bs.escapedName==="export="&&Dt(bs.declarations,zs=>Ki(zs)&&E_(zs))){ws(Rt);break}const If=!(bs.flags&512)&&!$i(qo);rt(O.createImportEqualsDeclaration(void 0,!1,O.createIdentifier(Ar),If?ma(bs,xe,67108863,!1):O.createExternalModuleReference(O.createStringLiteral(ln(bs,xe)))),If?Si:0);break;case 267:rt(O.createNamespaceExportDeclaration(Pr(qo.name)),0);break;case 270:{const zs=ln(bs.parent||bs,xe),Fl=er?O.createStringLiteral(zs):qo.parent.moduleSpecifier;rt(O.createImportDeclaration(void 0,O.createImportClause(!1,O.createIdentifier(Ar),void 0),Fl,qo.parent.assertClause),0);break}case 271:{const zs=ln(bs.parent||bs,xe),Fl=er?O.createStringLiteral(zs):qo.parent.parent.moduleSpecifier;rt(O.createImportDeclaration(void 0,O.createImportClause(!1,void 0,O.createNamespaceImport(O.createIdentifier(Ar))),Fl,qo.parent.parent.assertClause),0);break}case 277:rt(O.createExportDeclaration(void 0,!1,O.createNamespaceExport(O.createIdentifier(Ar)),O.createStringLiteral(ln(bs,xe))),0);break;case 273:{const zs=ln(bs.parent||bs,xe),Fl=er?O.createStringLiteral(zs):qo.parent.parent.parent.moduleSpecifier;rt(O.createImportDeclaration(void 0,O.createImportClause(!1,void 0,O.createNamedImports([O.createImportSpecifier(!1,Ar!==ac?O.createIdentifier(ac):void 0,O.createIdentifier(Ar))])),Fl,qo.parent.parent.parent.assertClause),0);break}case 278:const vu=qo.parent.parent.moduleSpecifier;No(ia(Rt.escapedName),vu?ac:Oc,vu&&As(vu)?O.createStringLiteral(vu.text):void 0);break;case 274:ws(Rt);break;case 223:case 208:case 209:Rt.escapedName==="default"||Rt.escapedName==="export="?ws(Rt):No(Ar,Oc);break;default:return R.failBadSyntaxKind(qo,"Unhandled alias declaration kind in symbol serializer!")}}function No(Rt,Ar,Si){rt(O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,Rt!==Ar?Ar:void 0,Rt)]),Si),0)}function ws(Rt){if(Rt.flags&4194304)return!1;const Ar=ia(Rt.escapedName),Si=Ar==="export=",fi=Si||Ar==="default",ss=Rt.declarations&&Td(Rt),Va=ss&&_p(ss,!0);if(Va&&ge(Va.declarations)&&Dt(Va.declarations,oa=>Zn(oa)===Zn(wr))){const oa=ss&&(Vl(ss)||Tr(ss)?eJ(ss):K_e(ss)),qo=oa&&Jl(oa)?Nut(oa):void 0,bs=qo&&Pl(qo,67108863,!0,!0,wr);(bs||Va)&&Ps(bs||Va);const ac=xe.tracker.disableTrackSymbol;if(xe.tracker.disableTrackSymbol=!0,fi)Ra.push(O.createExportAssignment(void 0,Si,eo(Va,xe,67108863)));else if(qo===oa&&qo)No(Ar,Pr(qo));else if(oa&&Ku(oa))No(Ar,Wd(Va,Gl(Va)));else{const Oc=NA(Ar,Rt);rt(O.createImportEqualsDeclaration(void 0,!1,O.createIdentifier(Oc),ma(Va,xe,67108863,!1)),0),No(Ar,Oc)}return xe.tracker.disableTrackSymbol=ac,!0}else{const oa=NA(Ar,Rt),qo=of(or(os(Rt)));if(yu(qo,Rt))Wr(qo,Rt,oa,fi?0:1);else{const bs=O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(oa,void 0,aa(xe,qo,Rt,wr,Ps,er))],2));rt(bs,Va&&Va.flags&4&&Va.escapedName==="export="?2:Ar===oa?1:0)}return fi?(Ra.push(O.createExportAssignment(void 0,Si,O.createIdentifier(oa))),!0):Ar!==oa?(No(Ar,oa),!0):!1}}function yu(Rt,Ar){const Si=Zn(xe.enclosingDeclaration);return ni(Rt)&48&&!ge(Nu(Rt))&&!Vi(Rt)&&!!(ge(ur(gs(Rt),Ka))||ge(Ja(Rt,0)))&&!ge(Ja(Rt,1))&&!cr(Ar,wr)&&!(Rt.symbol&&Dt(Rt.symbol.declarations,ci=>Zn(ci)!==Si))&&!Dt(gs(Rt),ci=>O8(ci.escapedName))&&!Dt(gs(Rt),ci=>Dt(ci.declarations,fi=>Zn(fi)!==Si))&&Qn(gs(Rt),ci=>W_(Gl(ci),P))}function Tp(Rt,Ar,Si){return function(fi,ss,Va){var oa,qo,bs,ac,Oc;const If=a_(fi),vu=!!(If&8);if(ss&&fi.flags&2887656)return[];if(fi.flags&4194304||Va&&_o(Va,fi.escapedName)&&Ep(_o(Va,fi.escapedName))===Ep(fi)&&(fi.flags&16777216)===(_o(Va,fi.escapedName).flags&16777216)&&ig(or(fi),hc(Va,fi.escapedName)))return[];const zs=If&-513|(ss?32:0),Fl=Lf(fi,xe),py=(oa=fi.declarations)==null?void 0:oa.find(Pm(ro,s1,$i,Mf,Tr,Br));if(fi.flags&98304&&Si){const bh=[];if(fi.flags&65536&&bh.push(ht(O.createSetAccessorDeclaration(O.createModifiersFromModifierFlags(zs),Fl,[O.createParameterDeclaration(void 0,void 0,"arg",void 0,vu?void 0:aa(xe,or(fi),fi,wr,Ps,er))],void 0),((qo=fi.declarations)==null?void 0:qo.find(ky))||py)),fi.flags&32768){const Eh=If&8;bh.push(ht(O.createGetAccessorDeclaration(O.createModifiersFromModifierFlags(zs),Fl,[],Eh?void 0:aa(xe,or(fi),fi,wr,Ps,er),void 0),((bs=fi.declarations)==null?void 0:bs.find(jv))||py))}return bh}else if(fi.flags&98311)return ht(Rt(O.createModifiersFromModifierFlags((Ep(fi)?64:0)|zs),Fl,fi.flags&16777216?O.createToken(57):void 0,vu?void 0:aa(xe,VL(fi),fi,wr,Ps,er),void 0),((ac=fi.declarations)==null?void 0:ac.find(Pm(ro,$i)))||py);if(fi.flags&8208){const bh=or(fi),Eh=Ja(bh,0);if(zs&8)return ht(Rt(O.createModifiersFromModifierFlags((Ep(fi)?64:0)|zs),Fl,fi.flags&16777216?O.createToken(57):void 0,void 0,void 0),((Oc=fi.declarations)==null?void 0:Oc.find(el))||Eh[0]&&Eh[0].declaration||fi.declarations&&fi.declarations[0]);const Q2=[];for(const Lv of Eh){const mle=ve(Lv,Ar,xe,{name:Fl,questionToken:fi.flags&16777216?O.createToken(57):void 0,modifiers:zs?O.createModifiersFromModifierFlags(zs):void 0}),hle=Lv.declaration&&cR(Lv.declaration.parent)?Lv.declaration.parent:Lv.declaration;Q2.push(ht(mle,hle))}return Q2}return R.fail(`Unhandled class member kind! ${fi.__debugFlags||fi.flags}`)}}function vh(Rt,Ar){return Sr(Rt,!1,Ar)}function K0(Rt,Ar,Si,ci){const fi=Ja(Ar,Rt);if(Rt===1){if(!Si&&Qn(fi,oa=>ge(oa.parameters)===0))return[];if(Si){const oa=Ja(Si,1);if(!ge(oa)&&Qn(fi,qo=>ge(qo.parameters)===0))return[];if(oa.length===fi.length){let qo=!1;for(let bs=0;bs<oa.length;bs++)if(!C3(fi[bs],oa[bs],!1,!1,!0,J8)){qo=!0;break}if(!qo)return[]}}let Va=0;for(const oa of fi)oa.declaration&&(Va|=US(oa.declaration,24));if(Va)return[ht(O.createConstructorDeclaration(O.createModifiersFromModifierFlags(Va),[],void 0),fi[0].declaration)]}const ss=[];for(const Va of fi){const oa=ve(Va,ci,xe);ss.push(ht(oa,Va.declaration))}return ss}function $2(Rt,Ar){const Si=[];for(const ci of Nu(Rt)){if(Ar){const fi=mh(Ar,ci.keyType);if(fi&&ig(ci.type,fi.type))continue}Si.push(Q(ci,xe,void 0))}return Si}function vI(Rt,Ar,Si){const ci=Rm(Rt,111551);if(ci)return ci;const fi=NA(`${Si}_base`),ss=O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(fi,void 0,u(Ar,xe))],2));return rt(ss,0),O.createExpressionWithTypeArguments(O.createIdentifier(fi),void 0)}function Rm(Rt,Ar){let Si,ci;if(Rt.target&&jE(Rt.target.symbol,wr,Ar)?(Si=Pt(ys(Rt),fi=>u(fi,xe)),ci=eo(Rt.target.symbol,xe,788968)):Rt.symbol&&jE(Rt.symbol,wr,Ar)&&(ci=eo(Rt.symbol,xe,788968)),ci)return O.createExpressionWithTypeArguments(ci,Si)}function RA(Rt){const Ar=Rm(Rt,788968);if(Ar)return Ar;if(Rt.symbol)return O.createExpressionWithTypeArguments(eo(Rt.symbol,xe,788968),void 0)}function NA(Rt,Ar){var Si,ci;const fi=Ar?To(Ar):void 0;if(fi&&xe.remappedSymbolNames.has(fi))return xe.remappedSymbolNames.get(fi);Ar&&(Rt=fT(Ar,Rt));let ss=0;const Va=Rt;for(;(Si=xe.usedSymbolNames)!=null&&Si.has(Rt);)ss++,Rt=`${Va}_${ss}`;return(ci=xe.usedSymbolNames)==null||ci.add(Rt),fi&&xe.remappedSymbolNames.set(fi,Rt),Rt}function fT(Rt,Ar){if(Ar==="default"||Ar==="__class"||Ar==="__function"){const Si=xe.flags;xe.flags|=16777216;const ci=lv(Rt,xe);xe.flags=Si,Ar=ci.length>0&&nR(ci.charCodeAt(0))?X_(ci):ci}return Ar==="default"?Ar="_default":Ar==="export="&&(Ar="_exports"),Ar=W_(Ar,P)&&!PS(Ar)?Ar:"_"+Ar.replace(/[^a-zA-Z0-9]/g,"_"),Ar}function Wd(Rt,Ar){const Si=To(Rt);return xe.remappedSymbolNames.has(Si)?xe.remappedSymbolNames.get(Si):(Ar=fT(Rt,Ar),xe.remappedSymbolNames.set(Si,Ar),Ar)}}}function su(n,a,l=16384,u){return u?h(u).getText():ck(h);function h(y){const A=O.createTypePredicateNode(n.kind===2||n.kind===3?O.createToken(129):void 0,n.kind===1||n.kind===3?O.createIdentifier(n.parameterName):O.createThisTypeNode(),n.type&&$e.typeToTypeNode(n.type,a,di(l)|70221824|512)),N=dE(),F=a&&Zn(a);return N.writeNode(4,A,F,y),y}}function rf(n){const a=[];let l=0;for(let u=0;u<n.length;u++){const h=n[u];if(l|=h.flags,!(h.flags&98304)){if(h.flags&1568){const y=h.flags&512?Ne:N8(h);if(y.flags&1048576){const A=y.types.length;if(u+A<=n.length&&Ad(n[u+A-1])===Ad(y.types[A-1])){a.push(y),u+=A-1;continue}}}a.push(h)}}return l&65536&&a.push(Sn),l&32768&&a.push(He),a||n}function xf(n){return n===8?"private":n===16?"protected":"public"}function sv(n){if(n.symbol&&n.symbol.flags&2048&&n.symbol.declarations){const a=yR(n.symbol.declarations[0].parent);if(um(a))return kr(a)}}function af(n){return n&&n.parent&&n.parent.kind===265&&Bb(n.parent.parent)}function w0(n){return n.kind===308||Hu(n)}function D0(n,a){const l=zi(n).nameType;if(l){if(l.flags&384){const u=""+l.value;return!W_(u,ns(ne))&&!Oh(u)?`"${FS(u,34)}"`:Oh(u)&&xa(u,"-")?`[${u}]`:u}if(l.flags&8192)return`[${lv(l.symbol,a)}]`}}function lv(n,a){if(a&&n.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!n.declarations||a.enclosingDeclaration&&rr(n.declarations[0],w0)!==rr(a.enclosingDeclaration,w0)))return"default";if(n.declarations&&n.declarations.length){let u=qt(n.declarations,y=>ka(y)?y:void 0);const h=u&&ka(u);if(u&&h){if(io(u)&&DS(u))return Gl(n);if(Cs(h)&&!(Dl(n)&4096)){const y=zi(n).nameType;if(y&&y.flags&384){const A=D0(n,a);if(A!==void 0)return A}}return Ds(h)}if(u||(u=n.declarations[0]),u.parent&&u.parent.kind===257)return Ds(u.parent.name);switch(u.kind){case 228:case 215:case 216:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),u.kind===228?"(Anonymous class)":"(Anonymous function)"}}const l=D0(n,a);return l!==void 0?l:Gl(n)}function O_(n){if(n){const l=Xr(n);return l.isVisible===void 0&&(l.isVisible=!!a()),l.isVisible}return!1;function a(){switch(n.kind){case 341:case 349:case 343:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Ki(n.parent.parent.parent));case 205:return O_(n.parent.parent);case 257:if($a(n.name)&&!n.name.elements.length)return!1;case 264:case 260:case 261:case 262:case 259:case 263:case 268:if(Bb(n))return!0;const l=zE(n);return!(Cy(n)&1)&&!(n.kind!==268&&l.kind!==308&&l.flags&16777216)?oh(l):O_(l);case 169:case 168:case 174:case 175:case 171:case 170:if(Hd(n,24))return!1;case 173:case 177:case 176:case 178:case 166:case 265:case 181:case 182:case 184:case 180:case 185:case 186:case 189:case 190:case 193:case 199:return O_(n.parent);case 270:case 271:case 273:return!1;case 165:case 308:case 267:return!0;case 274:return!1;default:return!1}}}function HE(n,a){let l;n.parent&&n.parent.kind===274?l=ml(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===278&&(l=R_(n.parent,2998271));let u,h;return l&&(h=new Set,h.add(To(l)),y(l.declarations)),u;function y(A){Ie(A,N=>{const F=M2(N)||N;if(a?Xr(N).isVisible=!0:(u=u||[],y_(u,F)),uC(N)){const K=N.moduleReference,Q=Of(K),ve=ml(N,Q.escapedText,901119,void 0,void 0,!1);ve&&h&&wv(h,To(ve))&&y(ve.declarations)}})}}function zf(n,a){const l=fh(n,a);if(l>=0){const{length:u}=Pg;for(let h=l;h<u;h++)lp[h]=!1;return!1}return Pg.push(n),lp.push(!0),_0.push(a),!0}function fh(n,a){for(let l=Pg.length-1;l>=0;l--){if(cv(Pg[l],_0[l]))return-1;if(Pg[l]===n&&_0[l]===a)return l}return-1}function cv(n,a){switch(a){case 0:return!!zi(n).type;case 5:return!!Xr(n).resolvedEnumType;case 2:return!!zi(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!!zi(n).writeType;case 9:return Xr(n).parameterInitializerContainsUndefined!==void 0}return R.assertNever(a)}function d_(){return Pg.pop(),_0.pop(),lp.pop()}function zE(n){return rr(zm(n),a=>{switch(a.kind){case 257:case 258:case 273:case 272:case 271:case 270:return!1;default:return!0}}).parent}function R0(n){const a=Vs(xd(n));return a.typeParameters?ay(a,Pt(a.typeParameters,l=>Oe)):a}function hc(n,a){const l=_o(n,a);return l?or(l):void 0}function e3(n,a){var l;return hc(n,a)||((l=fA(n,a))==null?void 0:l.type)||ye}function xs(n){return n&&(n.flags&1)!==0}function is(n){return n===Le||!!(n.flags&1&&n.aliasSymbol)}function aA(n,a){if(a!==0)return as(n,!1,a);const l=kr(n);return l&&zi(l).type||as(n,!1,a)}function oA(n,a,l){if(n=gc(n,F=>!(F.flags&98304)),n.flags&131072)return pa;if(n.flags&1048576)return Zs(n,F=>oA(F,a,l));let u=ei(Pt(a,oy));const h=[],y=[];for(const F of gs(n)){const K=KL(F,8576);!Co(K,u)&&!(a_(F)&24)&&RV(F)?h.push(F):y.push(K)}if(rb(n)||G0(u)){if(y.length&&(u=ei([u,...y])),u.flags&131072)return n;const F=Jtt();return F?hA(F,[n,u]):Le}const A=uo();for(const F of h)A.set(F.escapedName,Hae(F,!1));const N=Os(l,A,it,it,Nu(n));return N.objectFlags|=4194304,N}function q(n){return!!(n.flags&465829888)&&hl(td(n)||ye,32768)}function Se(n){const a=lg(n,q)?Zs(n,l=>l.flags&465829888?gv(l):l):n;return m_(a,524288)}function Qe(n,a){const l=Tt(n);return l?J0(l,a):a}function Tt(n){const a=Vt(n);if(a&&mR(a)&&a.flowNode){const l=An(n);if(l){const u=ht(th.createStringLiteral(l),n),h=Id(a)?a:th.createParenthesizedExpression(a),y=ht(th.createElementAccessExpression(h,u),n);return jo(u,y),jo(y,n),h!==a&&jo(h,y),y.flowNode=a.flowNode,y}}}function Vt(n){const a=n.parent.parent;switch(a.kind){case 205:case 299:return Tt(a);case 206:return Tt(n.parent);case 257:return a.initializer;case 223:return a.right}}function An(n){const a=n.parent;return n.kind===205&&a.kind===203?Gr(n.propertyName||n.name):n.kind===299||n.kind===300?Gr(n.name):""+a.elements.indexOf(n)}function Gr(n){const a=oy(n);return a.flags&384?""+a.value:void 0}function Ei(n){const a=n.dotDotDotToken?64:0,l=aA(n.parent.parent,a);return l&&Ci(n,l)}function Ci(n,a){if(xs(a))return a;const l=n.parent;z&&n.flags&16777216&&FT(n)?a=uy(a):z&&l.parent.initializer&&!(Pu(d8e(l.parent.initializer))&65536)&&(a=m_(a,524288));let u;if(l.kind===203)if(n.dotDotDotToken){if(a=yp(a),a.flags&2||!G3(a))return Xe(n,m.Rest_types_may_only_be_created_from_object_types),Le;const h=[];for(const y of l.elements)y.dotDotDotToken||h.push(y.propertyName||y.name);u=oA(a,h,n.symbol)}else{const h=n.propertyName||n.name,y=oy(h),A=jd(a,y,32,h);u=Qe(n,A)}else{const h=Cv(65|(n.dotDotDotToken?0:128),a,He,l),y=l.elements.indexOf(n);if(n.dotDotDotToken){const A=gv(a);u=hh(A,Go)?Zs(A,N=>JL(N,y)):Ou(h)}else if(H0(a)){const A=Jp(y),N=32|(iI(n)?16:0),F=bv(a,A,N,n.name)||Le;u=Qe(n,F)}else u=h}return n.initializer?iu(qA(n))?z&&!(Pu(_w(n,0))&16777216)?Se(u):u:Nse(n,ei([Se(u),_w(n,0)],2)):u}function ki(n){const a=Bv(n);if(a)return pi(a)}function Fa(n){const a=Hs(n,!0);return a.kind===104||a.kind===79&&F_(a)===Ge}function ks(n){const a=Hs(n,!0);return a.kind===206&&a.elements.length===0}function wo(n,a=!1,l=!0){return z&&l?cy(n,a):n}function as(n,a,l){if($i(n)&&n.parent.parent.kind===246){const A=Lm(ise(ga(n.parent.parent.expression,l)));return A.flags&4456448?Xke(A):de}if($i(n)&&n.parent.parent.kind===247){const A=n.parent.parent;return s7(A)||Oe}if($a(n.parent))return Ei(n);const u=ro(n)&&!qm(n)||Mf(n)||Ehe(n),h=a&&iK(n),y=Vd(n);if(Tq(n))return y?xs(y)||y===ye?y:Le:Ze?ye:Oe;if(y)return wo(y,u,h);if((Ae||_r(n))&&$i(n)&&!$a(n.name)&&!(Cy(n)&1)&&!(n.flags&16777216)){if(!(Ap(n)&2)&&(!n.initializer||Fa(n.initializer)))return gt;if(n.initializer&&ks(n.initializer))return Nn}if(Ba(n)){const A=n.parent;if(A.kind===175&&uA(A)){const K=Il(kr(n.parent),174);if(K){const Q=zp(K),ve=fle(A);return ve&&n===ve?(R.assert(!ve.type),or(Q.thisParameter)):vs(Q)}}const N=btt(A,n);if(N)return N;const F=n.symbol.escapedName==="this"?w8e(A):D8e(n);if(F)return wo(F,!1,h)}if(CT(n)&&n.initializer){if(_r(n)&&!Ba(n)){const N=BL(n,kr(n),iR(n));if(N)return N}const A=Nse(n,_w(n,l));return wo(A,u,h)}if(ro(n)&&(Ae||_r(n)))if(Tc(n)){const A=ur(n.parent.members,Rl),N=A.length?M_(n.symbol,A):zu(n)&2?qV(n.symbol):void 0;return N&&wo(N,!0,h)}else{const A=I0(n.parent),N=A?uv(n.symbol,A):zu(n)&2?qV(n.symbol):void 0;return N&&wo(N,!0,h)}if(fm(n))return Te;if($a(n.name))return Do(n.name,!1,!0)}function Ud(n){if(n.valueDeclaration&&Tr(n.valueDeclaration)){const a=zi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!Tm(n)&&Qn(n.declarations,l=>Tr(l)&&fj(l)&&(l.left.kind!==209||n_(l.left.argumentExpression))&&!pp(void 0,l,n,l))),a.isConstructorDeclaredProperty}return!1}function Wp(n){const a=n.valueDeclaration;return a&&ro(a)&&!iu(a)&&!a.initializer&&(Ae||_r(a))}function Tm(n){if(n.declarations)for(const a of n.declarations){const l=kd(a,!1,!1);if(l&&(l.kind===173||Xp(l)))return l}}function ey(n){const a=Zn(n.declarations[0]),l=ia(n.escapedName),u=n.declarations.every(y=>_r(y)&&ul(y)&&kh(y.expression)),h=u?O.createPropertyAccessExpression(O.createPropertyAccessExpression(O.createIdentifier("module"),O.createIdentifier("exports")),l):O.createPropertyAccessExpression(O.createIdentifier("exports"),l);return u&&jo(h.expression.expression,h.expression),jo(h.expression,h),jo(h,a),h.flowNode=a.endFlowNode,J0(h,gt,He)}function M_(n,a){const l=xa(n.escapedName,"__#")?O.createPrivateIdentifier(n.escapedName.split("@")[1]):ia(n.escapedName);for(const u of a){const h=O.createPropertyAccessExpression(O.createThis(),l);jo(h.expression,h),jo(h,u),h.flowNode=u.returnFlowNode;const y=sA(h,n);if(Ae&&(y===gt||y===Nn)&&Xe(n.valueDeclaration,m.Member_0_implicitly_has_an_1_type,x(n),Re(y)),!hh(y,vj))return Ew(y)}}function uv(n,a){const l=xa(n.escapedName,"__#")?O.createPrivateIdentifier(n.escapedName.split("@")[1]):ia(n.escapedName),u=O.createPropertyAccessExpression(O.createThis(),l);jo(u.expression,u),jo(u,a),u.flowNode=a.returnFlowNode;const h=sA(u,n);return Ae&&(h===gt||h===Nn)&&Xe(n.valueDeclaration,m.Member_0_implicitly_has_an_1_type,x(n),Re(h)),hh(h,vj)?void 0:Ew(h)}function sA(n,a){const l=(a==null?void 0:a.valueDeclaration)&&(!Wp(a)||zu(a.valueDeclaration)&2)&&qV(a)||He;return J0(n,gt,l)}function qE(n,a){const l=wS(n.valueDeclaration);if(l){const N=_r(l)?Rb(l):void 0;return N&&N.typeExpression?pi(N.typeExpression):n.valueDeclaration&&BL(n.valueDeclaration,n,l)||lb(ec(l))}let u,h=!1,y=!1;if(Ud(n)&&(u=uv(n,Tm(n))),!u){let N;if(n.declarations){let F;for(const K of n.declarations){const Q=Tr(K)||io(K)?K:ul(K)?Tr(K.parent)?K.parent:K:void 0;if(!Q)continue;const ve=ul(Q)?lR(Q):wl(Q);(ve===4||Tr(Q)&&fj(Q,ve))&&(qf(Q)?h=!0:y=!0),io(Q)||(F=pp(F,Q,n,K)),F||(N||(N=[])).push(Tr(Q)||io(Q)?N0(n,a,Q,ve):Et)}u=F}if(!u){if(!ge(N))return Le;let F=h&&n.declarations?lA(N,n.declarations):void 0;if(y){const Q=qV(n);Q&&((F||(F=[])).push(Q),h=!0)}const K=Dt(F,Q=>!!(Q.flags&-98305))?F:N;u=ei(K)}}const A=of(wo(u,!1,y&&!h));return n.valueDeclaration&&gc(A,N=>!!(N.flags&-98305))===Et?(z0(n.valueDeclaration,Oe),Oe):A}function BL(n,a,l){var u,h;if(!_r(n)||!l||!Is(l)||l.properties.length)return;const y=uo();for(;Tr(n)||Br(n);){const F=tf(n);(u=F==null?void 0:F.exports)!=null&&u.size&&Uc(y,F.exports),n=Tr(n)?n.parent:n.parent.parent}const A=tf(n);(h=A==null?void 0:A.exports)!=null&&h.size&&Uc(y,A.exports);const N=Os(a,y,it,it,it);return N.objectFlags|=4096,N}function pp(n,a,l,u){var h;const y=iu(a.parent);if(y){const A=of(pi(y));if(n)!is(n)&&!is(A)&&!ig(n,A)&&RDe(void 0,n,u,A);else return A}if((h=l.parent)!=null&&h.valueDeclaration){const A=iu(l.parent.valueDeclaration);if(A){const N=_o(pi(A),l.escapedName);if(N)return M0(N)}}return n}function N0(n,a,l,u){if(io(l)){if(a)return or(a);const A=ec(l.arguments[2]),N=hc(A,"value");if(N)return N;const F=hc(A,"get");if(F){const Q=K2(F);if(Q)return vs(Q)}const K=hc(A,"set");if(K){const Q=K2(K);if(Q)return xse(Q)}return Oe}if(GL(l.left,l.right))return Oe;const h=u===1&&(Br(l.left)||dl(l.left))&&(kh(l.left.expression)||We(l.left.expression)&&NT(l.left.expression)),y=a?or(a):h?Ad(ec(l.right)):lb(ec(l.right));if(y.flags&524288&&u===2&&n.escapedName==="export="){const A=gp(y),N=uo();WD(A.members,N);const F=N.size;a&&!a.exports&&(a.exports=uo()),(a||n).exports.forEach((Q,ve)=>{var Pe;const Me=N.get(ve);if(Me&&Me!==Q&&!(Q.flags&2097152))if(Q.flags&111551&&Me.flags&111551){if(Q.valueDeclaration&&Me.valueDeclaration&&Zn(Q.valueDeclaration)!==Zn(Me.valueDeclaration)){const Ut=ia(Q.escapedName),Mn=((Pe=li(Me.valueDeclaration,Su))==null?void 0:Pe.name)||Me.valueDeclaration;$o(Xe(Q.valueDeclaration,m.Duplicate_identifier_0,Ut),Nr(Mn,m._0_was_also_declared_here,Ut)),$o(Xe(Mn,m.Duplicate_identifier_0,Ut),Nr(Q.valueDeclaration,m._0_was_also_declared_here,Ut))}const _t=rs(Q.flags|Me.flags,ve);_t.links.type=ei([or(Q),or(Me)]),_t.valueDeclaration=Me.valueDeclaration,_t.declarations=ba(Me.declarations,Q.declarations),N.set(ve,_t)}else N.set(ve,dp(Q,Me));else N.set(ve,Q)});const K=Os(F!==N.size?void 0:A.symbol,N,A.callSignatures,A.constructSignatures,A.indexInfos);if(F===N.size&&(y.aliasSymbol&&(K.aliasSymbol=y.aliasSymbol,K.aliasTypeArguments=y.aliasTypeArguments),ni(y)&4)){K.aliasSymbol=y.symbol;const Q=ys(y);K.aliasTypeArguments=ge(Q)?Q:void 0}return K.objectFlags|=ni(y)&4096,K.symbol&&K.symbol.flags&32&&y===ed(K.symbol)&&(K.objectFlags|=16777216),K}return KV(y)?(z0(l,Nt),Nt):y}function GL(n,a){return Br(n)&&n.expression.kind===108&&P6(a,l=>eu(n,l))}function qf(n){const a=kd(n,!1,!1);return a.kind===173||a.kind===259||a.kind===215&&!cR(a.parent)}function lA(n,a){return R.assert(n.length===a.length),n.filter((l,u)=>{const h=a[u],y=Tr(h)?h:Tr(h.parent)?h.parent:void 0;return y&&qf(y)})}function dv(n,a,l){if(n.initializer){const u=$a(n.name)?Do(n.name,!0,!1):ye;return wo(Nse(n,_w(n,0,u)))}return $a(n.name)?Do(n.name,a,l):(l&&!w8(n)&&z0(n,Oe),a?me:Oe)}function I8(n,a,l){const u=uo();let h,y=131200;Ie(n.elements,N=>{const F=N.propertyName||N.name;if(N.dotDotDotToken){h=Cm(de,Oe,!1);return}const K=oy(F);if(!ng(K)){y|=512;return}const Q=Sm(K),ve=4|(N.initializer?16777216:0),Pe=rs(ve,Q);Pe.links.type=dv(N,a,l),Pe.links.bindingElement=N,u.set(Pe.escapedName,Pe)});const A=Os(void 0,u,it,it,h?[h]:it);return A.objectFlags|=y,a&&(A.pattern=n,A.objectFlags|=131072),A}function k8(n,a,l){const u=n.elements,h=rl(u),y=h&&h.kind===205&&h.dotDotDotToken?h:void 0;if(u.length===0||u.length===1&&y)return P>=2?Rke(Oe):Nt;const A=Pt(u,Q=>Fc(Q)?Oe:dv(Q,a,l)),N=va(u,Q=>!(Q===y||Fc(Q)||iI(Q)),u.length-1)+1,F=Pt(u,(Q,ve)=>Q===y?4:ve>=N?2:1);let K=qp(A,F);return a&&(K=pke(K),K.pattern=n,K.objectFlags|=131072),K}function Do(n,a=!1,l=!1){return n.kind===203?I8(n,a,l):k8(n,a,l)}function Sl(n,a){return fv(as(n,!0,0),n,a)}function O0(n){const a=tf(n),l=Ptt(!1);return l&&a&&a===l}function fv(n,a,l){return n?(n.flags&4096&&O0(a.parent)&&(n=zae(a)),l&&ej(a,n),n.flags&8192&&(ms(a)||!a.type)&&n.symbol!==kr(a)&&(n=J),of(n)):(n=Ba(a)&&a.dotDotDotToken?Nt:Oe,l&&(w8(a)||z0(a,n)),n)}function w8(n){const a=zm(n),l=a.kind===166?a.parent:a;return t7(l)}function Vd(n){const a=iu(n);if(a)return pi(a)}function D8(n){let a=n.valueDeclaration;return a?(ms(a)&&(a=qA(a)),Ba(a)?UV(a.parent):!1):!1}function E(n){const a=zi(n);if(!a.type){const l=w(n);return!a.type&&!D8(n)&&(a.type=l),l}return a.type}function w(n){if(n.flags&4194304)return R0(n);if(n===bt)return Oe;if(n.flags&134217728&&n.valueDeclaration){const u=kr(Zn(n.valueDeclaration)),h=rs(u.flags,"exports");h.declarations=u.declarations?u.declarations.slice():[],h.parent=n,h.links.target=u,u.valueDeclaration&&(h.valueDeclaration=u.valueDeclaration),u.members&&(h.members=new Map(u.members)),u.exports&&(h.exports=new Map(u.exports));const y=uo();return y.set("exports",h),Os(n,y,it,it,it)}R.assertIsDefined(n.valueDeclaration);const a=n.valueDeclaration;if(Ki(a)&&E_(a))return a.statements.length?of(lb(ga(a.statements[0].expression))):pa;if(s1(a))return Ur(n);if(!zf(n,0))return n.flags&512&&!(n.flags&67108864)?Af(n):UL(n);let l;if(a.kind===274)l=fv(Vd(a)||ec(a.expression),a);else if(Tr(a)||_r(a)&&(io(a)||(Br(a)||gP(a))&&Tr(a.parent)))l=qE(n);else if(Br(a)||dl(a)||We(a)||As(a)||C_(a)||Bc(a)||Sc(a)||sc(a)&&!q_(a)||Mh(a)||Ki(a)){if(n.flags&9136)return Af(n);l=Tr(a.parent)?qE(n):Vd(a)||Oe}else if($c(a))l=Vd(a)||iDe(a);else if(fm(a))l=Vd(a)||H8e(a);else if(l_(a))l=Vd(a)||dI(a.name,0);else if(q_(a))l=Vd(a)||aDe(a,0);else if(Ba(a)||ro(a)||Mf(a)||$i(a)||ms(a)||NM(a))l=Sl(a,!0);else if(b1(a))l=Af(n);else if(nE(a))l=ny(n);else return R.fail("Unhandled declaration kind! "+R.formatSyntaxKind(a.kind)+" for "+R.formatSymbol(n));return d_()?l:n.flags&512&&!(n.flags&67108864)?Af(n):UL(n)}function G(n){if(n)switch(n.kind){case 174:return Lp(n);case 175:return spe(n);case 169:return R.assert(qm(n)),iu(n)}}function se(n){const a=G(n);return a&&pi(a)}function Ke(n){const a=fle(n);return a&&a.symbol}function Xt(n){return eb(zp(n))}function Ur(n){const a=zi(n);if(!a.type){if(!zf(n,0))return Le;const l=Il(n,174),u=Il(n,175),h=li(Il(n,169),df);let y=l&&_r(l)&&ki(l)||se(l)||se(u)||se(h)||l&&l.body&&Dj(l)||h&&h.initializer&&Sl(h,!0);y||(u&&!t7(u)?hm(Ae,u,m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,x(n)):l&&!t7(l)?hm(Ae,l,m.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,x(n)):h&&!t7(h)&&hm(Ae,h,m.Member_0_implicitly_has_an_1_type,x(n),"any"),y=Oe),d_()||(G(l)?Xe(l,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,x(n)):G(u)||G(h)?Xe(u,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,x(n)):l&&Ae&&Xe(l,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,x(n)),y=Oe),a.type=y}return a.type}function ra(n){var a;const l=zi(n);if(!l.writeType){if(!zf(n,8))return Le;const u=(a=Il(n,175))!=null?a:li(Il(n,169),df);let h=se(u);d_()||(G(u)&&Xe(u,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,x(n)),h=Oe),l.writeType=h||Ur(n)}return l.writeType}function Za(n){const a=si(ed(n));return a.flags&8650752?a:a.flags&2097152?$t(a.types,l=>!!(l.flags&8650752)):void 0}function Af(n){let a=zi(n);const l=a;if(!a.type){const u=n.valueDeclaration&&Ij(n.valueDeclaration,!1);if(u){const h=bse(n,u);h&&(n=h,a=h.links)}l.type=a.type=ty(n)}return a.type}function ty(n){const a=n.valueDeclaration;if(n.flags&1536&&fk(n))return Oe;if(a&&(a.kind===223||ul(a)&&a.parent.kind===223))return qE(n);if(n.flags&512&&a&&Ki(a)&&a.commonJsModuleIndicator){const u=Sd(n);if(u!==n){if(!zf(n,0))return Le;const h=os(n.exports.get("export=")),y=qE(h,h===u?void 0:u);return d_()?y:UL(n)}}const l=Sf(16,n);if(n.flags&32){const u=Za(n);return u?Ro([l,u]):l}else return z&&n.flags&16777216?cy(l):l}function ny(n){const a=zi(n);return a.type||(a.type=FIe(n))}function ry(n){const a=zi(n);if(!a.type){const l=ic(n),u=n.declarations&&_p(Td(n),!0),h=qt(u==null?void 0:u.declarations,y=>Vl(y)?Vd(y):void 0);a.type=u!=null&&u.declarations&&qj(u.declarations)&&n.declarations.length?ey(u):qj(n.declarations)?gt:h||(mu(l)&111551?or(l):Le)}return a.type}function zie(n){const a=zi(n);return a.type||(a.type=Zi(or(a.target),a.mapper))}function qie(n){const a=zi(n);return a.writeType||(a.writeType=Zi(VL(a.target),a.mapper))}function UL(n){const a=n.valueDeclaration;return iu(a)?(Xe(n.valueDeclaration,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,x(n)),Le):(Ae&&(a.kind!==166||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,x(n)),Oe)}function R8(n){const a=zi(n);return a.type||(R.assertIsDefined(a.deferralParent),R.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ei(a.deferralConstituents):Ro(a.deferralConstituents)),a.type}function Jie(n){const a=zi(n);return!a.writeType&&a.deferralWriteConstituents&&(R.assertIsDefined(a.deferralParent),R.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ei(a.deferralWriteConstituents):Ro(a.deferralWriteConstituents)),a.writeType}function VL(n){const a=Dl(n);return n.flags&4?a&2?a&65536?Jie(n)||R8(n):n.links.writeType||n.links.type:or(n):n.flags&98304?a&1?qie(n):ra(n):or(n)}function or(n){const a=Dl(n);return a&65536?R8(n):a&1?zie(n):a&262144?ntt(n):a&8192?pit(n):n.flags&7?E(n):n.flags&9136?Af(n):n.flags&8?ny(n):n.flags&98304?Ur(n):n.flags&2097152?ry(n):Le}function M0(n){return tT(or(n),!!(n.flags&16777216))}function P0(n,a){return n!==void 0&&a!==void 0&&(ni(n)&4)!==0&&n.target===a}function cA(n){return ni(n)&4?n.target:n}function JE(n,a){return l(n);function l(u){if(ni(u)&7){const h=cA(u);return h===a||Dt(Bo(h),l)}else if(u.flags&2097152)return Dt(u.types,l);return!1}}function t3(n,a){for(const l of a)n=vy(n,KE(kr(l)));return n}function jL(n,a){for(;;){if(n=n.parent,n&&Tr(n)){const l=wl(n);if(l===6||l===3){const u=kr(n.left);u&&u.parent&&!rr(u.parent.valueDeclaration,h=>n===h)&&(n=u.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 260:case 228:case 261:case 176:case 177:case 170:case 181:case 182:case 320:case 259:case 171:case 215:case 216:case 262:case 348:case 349:case 343:case 341:case 197:case 191:{const u=jL(n,a);if(n.kind===197)return Pn(u,KE(kr(n.typeParameter)));if(n.kind===191)return ba(u,a4e(n));const h=t3(u,Gv(n)),y=a&&(n.kind===260||n.kind===228||n.kind===261||Xp(n))&&ed(kr(n)).thisType;return y?Pn(h,y):h}case 344:const l=gR(n);l&&(n=l.valueDeclaration);break;case 323:{const u=jL(n,a);return n.tags?t3(u,ji(n.tags,h=>wp(h)?h.typeParameters:void 0)):u}}}}function yV(n){var a;const l=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(u=>{if(u.kind===261)return!0;if(u.kind!==257)return!1;const h=u.initializer;return!!h&&(h.kind===215||h.kind===216)});return R.assert(!!l,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),jL(l)}function _v(n){if(!n.declarations)return;let a;for(const l of n.declarations)(l.kind===261||l.kind===260||l.kind===228||Xp(l)||pR(l))&&(a=t3(a,Gv(l)));return a}function V2(n){return ba(yV(n),_v(n))}function n3(n){const a=Ja(n,1);if(a.length===1){const l=a[0];if(!l.typeParameters&&l.parameters.length===1&&Lu(l)){const u=J3(l.parameters[0]);return xs(u)||coe(u)===Oe}}return!1}function F0(n){if(Ja(n,1).length>0)return!0;if(n.flags&8650752){const a=td(n);return!!a&&n3(a)}return!1}function Dn(n){const a=Cg(n.symbol);return a&&am(a)}function Yr(n,a,l){const u=ge(a),h=_r(l);return ur(Ja(n,1),y=>(h||u>=Am(y.typeParameters))&&u<=ge(y.typeParameters))}function jr(n,a,l){const u=Yr(n,a,l),h=Pt(a,pi);return Ui(u,y=>Dt(y.typeParameters)?U8(y,h,_r(l)):y)}function si(n){if(!n.resolvedBaseConstructorType){const a=Cg(n.symbol),l=a&&am(a),u=Dn(n);if(!u)return n.resolvedBaseConstructorType=He;if(!zf(n,1))return Le;const h=ga(u.expression);if(l&&u!==l&&(R.assert(!l.typeArguments),ga(l.expression)),h.flags&2621440&&gp(h),!d_())return Xe(n.symbol.valueDeclaration,m._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,x(n.symbol)),n.resolvedBaseConstructorType=Le;if(!(h.flags&1)&&h!==Er&&!F0(h)){const y=Xe(u.expression,m.Type_0_is_not_a_constructor_function_type,Re(h));if(h.flags&262144){const A=qL(h);let N=ye;if(A){const F=Ja(A,1);F[0]&&(N=vs(F[0]))}h.symbol.declarations&&$o(y,Nr(h.symbol.declarations[0],m.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,x(h.symbol),Re(N)))}return n.resolvedBaseConstructorType=Le}n.resolvedBaseConstructorType=h}return n.resolvedBaseConstructorType}function qi(n){let a=it;if(n.symbol.declarations)for(const l of n.symbol.declarations){const u=yC(l);if(u)for(const h of u){const y=pi(h);is(y)||(a===it?a=[y]:a.push(y))}}return a}function Ao(n,a){Xe(n,m.Type_0_recursively_references_itself_as_a_base_type,Re(a,void 0,2))}function Bo(n){if(!n.baseTypesResolved){if(zf(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[Cf(n)]:n.symbol.flags&96?(n.symbol.flags&32&&mp(n),n.symbol.flags&64&&tg(n)):R.fail("type must be class or interface"),!d_()&&n.symbol.declarations))for(const a of n.symbol.declarations)(a.kind===260||a.kind===261)&&Ao(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function Cf(n){const a=Ui(n.typeParameters,(l,u)=>n.elementFlags[u]&8?jd(l,mt):l);return Ou(ei(a||it),n.readonly)}function mp(n){n.resolvedBaseTypes=$P;const a=nd(si(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=it;const l=Dn(n);let u;const h=a.symbol?Vs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&eg(h))u=mke(l,a.symbol);else if(a.flags&1)u=a;else{const A=jr(a,l.typeArguments,l);if(!A.length)return Xe(l.expression,m.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=it;u=vs(A[0])}if(is(u))return n.resolvedBaseTypes=it;const y=yp(u);if(!_h(y)){const A=cae(void 0,u),N=Na(A,m.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Re(y));return es.add(bg(Zn(l.expression),l.expression,N)),n.resolvedBaseTypes=it}return n===y||JE(y,n)?(Xe(n.symbol.valueDeclaration,m.Type_0_recursively_references_itself_as_a_base_type,Re(n,void 0,2)),n.resolvedBaseTypes=it):(n.resolvedBaseTypes===$P&&(n.members=void 0),n.resolvedBaseTypes=[y])}function eg(n){const a=n.outerTypeParameters;if(a){const l=a.length-1,u=ys(n);return a[l].symbol!==u[l].symbol}return!0}function _h(n){if(n.flags&262144){const a=td(n);if(a)return _h(a)}return!!(n.flags&67633153&&!Kf(n)||n.flags&2097152&&Qn(n.types,_h))}function tg(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||it,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===261&&Ek(a))for(const l of Ek(a)){const u=yp(pi(l));is(u)||(_h(u)?n!==u&&!JE(u,n)?n.resolvedBaseTypes===it?n.resolvedBaseTypes=[u]:n.resolvedBaseTypes.push(u):Ao(a,n):Xe(l,m.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function WL(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===261){if(a.flags&128)return!1;const l=Ek(a);if(l){for(const u of l)if(Jl(u.expression)){const h=Pl(u.expression,788968,!0);if(!h||!(h.flags&64)||ed(h).thisType)return!1}}}return!0}function ed(n){let a=zi(n);const l=a;if(!a.declaredType){const u=n.flags&32?1:2,h=bse(n,n.valueDeclaration&&ust(n.valueDeclaration));h&&(n=h,a=h.links);const y=l.declaredType=a.declaredType=Sf(u,n),A=yV(n),N=_v(n);(A||N||u===1||!WL(n))&&(y.objectFlags|=4,y.typeParameters=ba(A,N),y.outerTypeParameters=A,y.localTypeParameters=N,y.instantiations=new Map,y.instantiations.set(__(y.typeParameters),y),y.target=y,y.resolvedTypeArguments=y.typeParameters,y.thisType=Gd(n),y.thisType.isThisType=!0,y.thisType.constraint=y)}return a.declaredType}function $1(n){var a;const l=zi(n);if(!l.declaredType){if(!zf(n,2))return Le;const u=R.checkDefined((a=n.declarations)==null?void 0:a.find(pR),"Type alias symbol with no valid declaration found"),h=T_(u)?u.typeExpression:u.type;let y=h?pi(h):Le;if(d_()){const A=_v(n);A&&(l.typeParameters=A,l.instantiations=new Map,l.instantiations.set(__(A),y))}else y=Le,u.kind===343?Xe(u.typeExpression.type,m.Type_alias_0_circularly_references_itself,x(n)):Xe(Su(u)&&u.name||u,m.Type_alias_0_circularly_references_itself,x(n));l.declaredType=y}return l.declaredType}function N8(n){return n.flags&1056&&n.symbol.flags&8?Vs(xd(n.symbol)):n}function MIe(n){const a=zi(n);if(!a.declaredType){const l=[];if(n.declarations){for(const h of n.declarations)if(h.kind===263){for(const y of h.members)if(uA(y)){const A=kr(y),N=Qj(y),F=bA(N!==void 0?Xnt(N,To(n),A):PIe(A));zi(A).declaredType=F,l.push(Ad(F))}}}const u=l.length?ei(l,1,n,void 0):PIe(n);u.flags&1048576&&(u.flags|=1024,u.symbol=n),a.declaredType=u}return a.declaredType}function PIe(n){const a=Em(32,n),l=Em(32,n);return a.regularType=a,a.freshType=l,l.regularType=a,l.freshType=l,a}function FIe(n){const a=zi(n);if(!a.declaredType){const l=MIe(xd(n));a.declaredType||(a.declaredType=l)}return a.declaredType}function KE(n){const a=zi(n);return a.declaredType||(a.declaredType=Gd(n))}function Oet(n){const a=zi(n);return a.declaredType||(a.declaredType=Vs(ic(n)))}function Vs(n){return BIe(n)||Le}function BIe(n){if(n.flags&96)return ed(n);if(n.flags&524288)return $1(n);if(n.flags&262144)return KE(n);if(n.flags&384)return MIe(n);if(n.flags&8)return FIe(n);if(n.flags&2097152)return Oet(n)}function r3(n){switch(n.kind){case 131:case 157:case 152:case 148:case 160:case 134:case 153:case 149:case 114:case 155:case 144:case 198:return!0;case 185:return r3(n.elementType);case 180:return!n.typeArguments||n.typeArguments.every(r3)}return!1}function Met(n){const a=JA(n);return!a||r3(a)}function GIe(n){const a=iu(n);return a?r3(a):!Wv(n)}function Pet(n){const a=Lp(n),l=Gv(n);return(n.kind===173||!!a&&r3(a))&&n.parameters.every(GIe)&&l.every(Met)}function Fet(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 169:case 168:return GIe(a);case 171:case 170:case 173:case 174:case 175:return Pet(a)}}return!1}function UIe(n,a,l){const u=uo();for(const h of n)u.set(h.escapedName,l&&Fet(h)?h:Jae(h,a));return u}function VIe(n,a){for(const l of a)!n.has(l.escapedName)&&!jIe(l)&&n.set(l.escapedName,l)}function jIe(n){return!!n.valueDeclaration&&od(n.valueDeclaration)&&Xa(n.valueDeclaration)}function Kie(n){if(!n.declaredProperties){const a=n.symbol,l=pv(a);n.declaredProperties=av(l),n.declaredCallSignatures=it,n.declaredConstructSignatures=it,n.declaredIndexInfos=it,n.declaredCallSignatures=Z1(l.get("__call")),n.declaredConstructSignatures=Z1(l.get("__new")),n.declaredIndexInfos=dke(a)}return n}function ng(n){return!!(n.flags&8576)}function Xie(n){if(!Cs(n)&&!dl(n))return!1;const a=Cs(n)?n.expression:n.argumentExpression;return Jl(a)&&ng(Cs(n)?dy(n):ec(a))}function O8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function i3(n){const a=ka(n);return!!a&&Xie(a)}function uA(n){return!qv(n)||i3(n)}function Bet(n){return xP(n)&&!Xie(n)}function Sm(n){return n.flags&8192?n.escapedName:n.flags&384?cl(""+n.value):R.fail()}function Get(n,a,l){R.assert(!!(Dl(n)&4096),"Expected a late-bound symbol."),n.flags|=l,zi(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],l&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function WIe(n,a,l,u){R.assert(!!u.symbol,"The member is expected to have a symbol.");const h=Xr(u);if(!h.resolvedSymbol){h.resolvedSymbol=u.symbol;const y=Tr(u)?u.left:u.name,A=dl(y)?ec(y.argumentExpression):dy(y);if(ng(A)){const N=Sm(A),F=u.symbol.flags;let K=l.get(N);K||l.set(N,K=rs(0,N,4096));const Q=a&&a.get(N);if(K.flags&xc(F)||Q){const ve=Q?ba(Q.declarations,K.declarations):K.declarations,Pe=!(A.flags&8192)&&ia(N)||Ds(y);Ie(ve,Me=>Xe(ka(Me)||Me,m.Property_0_was_also_declared_here,Pe)),Xe(y||u,m.Duplicate_property_0,Pe),K=rs(0,N,4096)}return K.links.nameType=A,Get(K,u,F),K.parent?R.assert(K.parent===n,"Existing symbol parent should match new one"):K.parent=n,h.resolvedSymbol=K}}return h.resolvedSymbol}function Yie(n,a){const l=zi(n);if(!l[a]){const u=a==="resolvedExports",h=u?n.flags&1536?eA(n).exports:n.exports:n.members;l[a]=h||ee;const y=uo();for(const N of n.declarations||it){const F=E_e(N);if(F)for(const K of F)u===Tc(K)&&i3(K)&&WIe(n,h,y,K)}const A=n.assignmentDeclarationMembers;if(A){const N=Oo(A.values());for(const F of N){const K=wl(F),Q=K===3||Tr(F)&&fj(F,K)||K===9||K===6;u===!Q&&i3(F)&&WIe(n,h,y,F)}}l[a]=jg(h,y)||ee}return l[a]}function pv(n){return n.flags&6256?Yie(n,"resolvedMembers"):n.members||ee}function vV(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=zi(n);if(!a.lateSymbol&&Dt(n.declarations,i3)){const l=os(n.parent);Dt(n.declarations,Tc)?Tf(l):pv(l)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Jf(n,a,l){if(ni(n)&4){const u=n.target,h=ys(n);if(ge(u.typeParameters)===ge(h)){const y=ay(u,ba(h,[a||u.thisType]));return l?nd(y):y}}else if(n.flags&2097152){const u=Ui(n.types,h=>Jf(h,a,l));return u!==n.types?Ro(u):n}return l?nd(n):n}function HIe(n,a,l,u){let h,y,A,N,F;QW(l,u,0,l.length)?(y=a.symbol?pv(a.symbol):uo(a.declaredProperties),A=a.declaredCallSignatures,N=a.declaredConstructSignatures,F=a.declaredIndexInfos):(h=Cd(l,u),y=UIe(a.declaredProperties,h,l.length===1),A=PV(a.declaredCallSignatures,h),N=PV(a.declaredConstructSignatures,h),F=d4e(a.declaredIndexInfos,h));const K=Bo(a);if(K.length){a.symbol&&y===pv(a.symbol)&&(y=uo(a.declaredProperties)),Hf(n,y,A,N,F);const Q=rl(u);for(const ve of K){const Pe=Q?Jf(Zi(ve,h),Q):ve;VIe(y,gs(Pe)),A=ba(A,Ja(Pe,0)),N=ba(N,Ja(Pe,1));const Me=Pe!==Oe?Nu(Pe):[Cm(de,Oe,!1)];F=ba(F,ur(Me,_t=>!uae(F,_t.keyType)))}}Hf(n,y,A,N,F)}function Uet(n){HIe(n,Kie(n),it,it)}function Vet(n){const a=Kie(n.target),l=ba(a.typeParameters,[a.thisType]),u=ys(n),h=u.length===l.length?u:ba(u,[n]);HIe(n,a,l,h)}function ph(n,a,l,u,h,y,A,N){const F=new g(ot,N);return F.declaration=n,F.typeParameters=a,F.parameters=u,F.thisParameter=l,F.resolvedReturnType=h,F.resolvedTypePredicate=y,F.minArgumentCount=A,F.resolvedMinArgumentCount=void 0,F.target=void 0,F.mapper=void 0,F.compositeSignatures=void 0,F.compositeKind=void 0,F}function M8(n){const a=ph(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&39);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function zIe(n,a){const l=M8(n);return l.compositeSignatures=a,l.compositeKind=1048576,l.target=void 0,l.mapper=void 0,l}function jet(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const l=a===8?"inner":"outer";return n.optionalCallSignatureCache[l]||(n.optionalCallSignatureCache[l]=Wet(n,a))}function Wet(n,a){R.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 l=M8(n);return l.flags|=a,l}function qIe(n,a){if(Lu(n)){const u=n.parameters.length-1,h=or(n.parameters[u]);if(Go(h))return[l(h,u)];if(!a&&h.flags&1048576&&Qn(h.types,Go))return Pt(h.types,y=>l(y,u))}return[n.parameters];function l(u,h){const y=ys(u),A=u.target.labeledElementDeclarations,N=Pt(y,(F,K)=>{const ve=!!A&&wj(A[K])||cI(n,h+K,u),Pe=u.target.elementFlags[K],Me=Pe&12?32768:Pe&2?16384:0,_t=rs(1,ve,Me);return _t.links.type=Pe&4?Ou(F):F,_t});return ba(n.parameters.slice(0,h),N)}}function Het(n){const a=si(n),l=Ja(a,1),u=Cg(n.symbol),h=!!u&&Qr(u,256);if(l.length===0)return[ph(void 0,n.localTypeParameters,void 0,it,n,void 0,0,h?4:0)];const y=Dn(n),A=_r(y),N=f3(y),F=ge(N),K=[];for(const Q of l){const ve=Am(Q.typeParameters),Pe=ge(Q.typeParameters);if(A||F>=ve&&F<=Pe){const Me=Pe?bV(Q,yv(N,Q.typeParameters,ve,A)):M8(Q);Me.typeParameters=n.localTypeParameters,Me.resolvedReturnType=n,Me.flags=h?Me.flags|4:Me.flags&-5,K.push(Me)}}return K}function $ie(n,a,l,u,h){for(const y of n)if(C3(y,a,l,u,h,l?mrt:J8))return y}function zet(n,a,l){if(a.typeParameters){if(l>0)return;for(let h=1;h<n.length;h++)if(!$ie(n[h],a,!1,!1,!1))return;return[a]}let u;for(let h=0;h<n.length;h++){const y=h===l?a:$ie(n[h],a,!0,!1,!0);if(!y)return;u=vy(u,y)}return u}function Qie(n){let a,l;for(let u=0;u<n.length;u++){if(n[u].length===0)return it;n[u].length>1&&(l=l===void 0?u:-1);for(const h of n[u])if(!a||!$ie(a,h,!1,!1,!0)){const y=zet(n,h,u);if(y){let A=h;if(y.length>1){let N=h.thisParameter;const F=Ie(y,K=>K.thisParameter);if(F){const K=Ro(ua(y,Q=>Q.thisParameter&&or(Q.thisParameter)));N=nT(F,K)}A=zIe(h,y),A.thisParameter=N}(a||(a=[])).push(A)}}}if(!ge(a)&&l!==-1){const u=n[l!==void 0?l:0];let h=u.slice();for(const y of n)if(y!==u){const A=y[0];if(R.assert(!!A,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),h=A.typeParameters&&Dt(h,N=>!!N.typeParameters&&!JIe(A.typeParameters,N.typeParameters))?void 0:Pt(h,N=>Ket(N,A)),!h)break}a=h}return a||it}function JIe(n,a){if(ge(n)!==ge(a))return!1;if(!n||!a)return!0;const l=Cd(a,n);for(let u=0;u<n.length;u++){const h=n[u],y=a[u];if(h!==y&&!ig(qL(h)||ye,Zi(qL(y)||ye,l)))return!1}return!0}function qet(n,a,l){if(!n||!a)return n||a;const u=Ro([or(n),Zi(or(a),l)]);return nT(n,u)}function Jet(n,a,l){const u=sf(n),h=sf(a),y=u>=h?n:a,A=y===n?a:n,N=y===n?u:h,F=Dm(n)||Dm(a),K=F&&!Dm(y),Q=new Array(N+(K?1:0));for(let ve=0;ve<N;ve++){let Pe=cT(y,ve);y===a&&(Pe=Zi(Pe,l));let Me=cT(A,ve)||ye;A===a&&(Me=Zi(Me,l));const _t=Ro([Pe,Me]),Ut=F&&!K&&ve===N-1,Mn=ve>=wm(y)&&ve>=wm(A),xn=ve>=u?void 0:cI(n,ve),Kn=ve>=h?void 0:cI(a,ve),hn=xn===Kn?xn:xn?Kn?void 0:xn:Kn,Tn=rs(1|(Mn&&!Ut?16777216:0),hn||`arg${ve}`);Tn.links.type=Ut?Ou(_t):_t,Q[ve]=Tn}if(K){const ve=rs(1,"args");ve.links.type=Ou(bp(A,N)),A===a&&(ve.links.type=Zi(ve.links.type,l)),Q[N]=ve}return Q}function Ket(n,a){const l=n.typeParameters||a.typeParameters;let u;n.typeParameters&&a.typeParameters&&(u=Cd(a.typeParameters,n.typeParameters));const h=n.declaration,y=Jet(n,a,u),A=qet(n.thisParameter,a.thisParameter,u),N=Math.max(n.minArgumentCount,a.minArgumentCount),F=ph(h,l,A,y,void 0,void 0,N,(n.flags|a.flags)&39);return F.compositeKind=1048576,F.compositeSignatures=ba(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),u&&(F.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?W0(n.mapper,u):u),F}function KIe(n){const a=Nu(n[0]);if(a){const l=[];for(const u of a){const h=u.keyType;Qn(n,y=>!!mh(y,h))&&l.push(Cm(h,ei(Pt(n,y=>iy(y,h))),Dt(n,y=>mh(y,h).isReadonly)))}return l}return it}function Xet(n){const a=Qie(Pt(n.types,h=>h===_l?[rn]:Ja(h,0))),l=Qie(Pt(n.types,h=>Ja(h,1))),u=KIe(n.types);Hf(n,ee,a,l,u)}function a3(n,a){return n?a?Ro([n,a]):n:a}function XIe(n){const a=Hc(n,u=>Ja(u,1).length>0),l=Pt(n,n3);if(a>0&&a===Hc(l,u=>u)){const u=l.indexOf(!0);l[u]=!1}return l}function Yet(n,a,l,u){const h=[];for(let y=0;y<a.length;y++)y===u?h.push(n):l[y]&&h.push(vs(Ja(a[y],1)[0]));return Ro(h)}function $et(n){let a,l,u;const h=n.types,y=XIe(h),A=Hc(y,N=>N);for(let N=0;N<h.length;N++){const F=n.types[N];if(!y[N]){let K=Ja(F,1);K.length&&A>0&&(K=Pt(K,Q=>{const ve=M8(Q);return ve.resolvedReturnType=Yet(vs(Q),h,y,N),ve})),l=YIe(l,K)}a=YIe(a,Ja(F,0)),u=Vu(Nu(F),(K,Q)=>$Ie(K,Q,!1),u)}Hf(n,ee,a||it,l||it,u||it)}function YIe(n,a){for(const l of a)(!n||Qn(n,u=>!C3(u,l,!1,!1,!1,J8)))&&(n=Pn(n,l));return n}function $Ie(n,a,l){if(n)for(let u=0;u<n.length;u++){const h=n[u];if(h.keyType===a.keyType)return n[u]=Cm(h.keyType,l?ei([h.type,a.type]):Ro([h.type,a.type]),l?h.isReadonly||a.isReadonly:h.isReadonly&&a.isReadonly),n}return Pn(n,a)}function Qet(n){if(n.target){Hf(n,ee,it,it,it);const A=UIe(hv(n.target),n.mapper,!1),N=PV(Ja(n.target,0),n.mapper),F=PV(Ja(n.target,1),n.mapper),K=d4e(Nu(n.target),n.mapper);Hf(n,A,N,F,K);return}const a=os(n.symbol);if(a.flags&2048){Hf(n,ee,it,it,it);const A=pv(a),N=Z1(A.get("__call")),F=Z1(A.get("__new")),K=dke(a);Hf(n,A,N,F,K);return}let l=ee,u;if(a.exports&&(l=Tf(a),a===lt)){const A=new Map;l.forEach(N=>{var F;!(N.flags&418)&&!(N.flags&512&&((F=N.declarations)!=null&&F.length)&&Qn(N.declarations,Hu))&&A.set(N.escapedName,N)}),l=A}let h;if(Hf(n,l,it,it,it),a.flags&32){const A=ed(a),N=si(A);N.flags&11272192?(l=uo(nA(l)),VIe(l,gs(N))):N===Oe&&(h=Cm(de,Oe,!1))}const y=vae(l);if(y?u=bae(y):(h&&(u=Pn(u,h)),a.flags&384&&(Vs(a).flags&32||Dt(n.properties,A=>!!(or(A).flags&296)))&&(u=Pn(u,Zu))),Hf(n,l,it,it,u||it),a.flags&8208&&(n.callSignatures=Z1(a)),a.flags&32){const A=ed(a);let N=a.members?Z1(a.members.get("__constructor")):it;a.flags&16&&(N=xi(N.slice(),ua(n.callSignatures,F=>Xp(F.declaration)?ph(F.declaration,F.typeParameters,F.thisParameter,F.parameters,A,void 0,F.minArgumentCount,F.flags&39):void 0))),N.length||(N=Het(A)),n.constructSignatures=N}}function Zet(n,a,l){return Zi(n,Cd([a.indexType,a.objectType],[Jp(0),qp([l])]))}function ett(n){const a=mh(n.source,de),l=xm(n.mappedType),u=!(l&1),h=l&4?0:16777216,y=a?[Cm(de,nj(a.type,n.mappedType,n.constraintType),u&&a.isReadonly)]:it,A=uo();for(const N of gs(n.source)){const F=8192|(u&&Ep(N)?8:0),K=rs(4|N.flags&h,N.escapedName,F);if(K.declarations=N.declarations,K.links.nameType=zi(N).nameType,K.links.propertyType=or(N),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const Q=n.constraintType.type.objectType,ve=Zet(n.mappedType,n.constraintType.type,Q);K.links.mappedType=ve,K.links.constraintType=Lm(Q)}else K.links.mappedType=n.mappedType,K.links.constraintType=n.constraintType;A.set(N.escapedName,K)}Hf(n,A,it,it,y)}function o3(n){if(n.flags&4194304){const a=nd(n.type);return TA(a)?Fke(a):Lm(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,l=o3(a);if(l!==a)return $ae(n,H2(n.root.checkType,l,n.mapper))}return n}if(n.flags&1048576)return Zs(n,o3,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&a[0].flags&76&&a[1]===jl?n:Ro(Ui(n.types,o3))}return n}function Zie(n){return Dl(n)&4096}function eae(n,a,l,u){for(const h of gs(n))u(KL(h,a));if(n.flags&1)u(de);else for(const h of Nu(n))(!l||h.keyType.flags&134217732)&&u(h.keyType)}function ttt(n){const a=uo();let l;Hf(n,ee,it,it,it);const u=hp(n),h=Hp(n),y=mv(n.target||n),A=y&&Co(y,u),N=rg(n.target||n),F=nd(HL(n)),K=xm(n),Q=je?128:8576;P8(n)?eae(F,Q,je,ve):oT(o3(h),ve),Hf(n,a,it,it,l||it);function ve(Me){const _t=y?Zi(y,q8(n.mapper,u,Me)):Me;oT(_t,Ut=>Pe(Me,Ut))}function Pe(Me,_t){if(ng(_t)){const Ut=Sm(_t),Mn=a.get(Ut);if(Mn)Mn.links.nameType=ei([Mn.links.nameType,_t]),Mn.links.keyType=ei([Mn.links.keyType,Me]);else{const xn=ng(Me)?_o(F,Sm(Me)):void 0,Kn=!!(K&4||!(K&8)&&xn&&xn.flags&16777216),hn=!!(K&1||!(K&2)&&xn&&Ep(xn)),Tn=z&&!Kn&&xn&&xn.flags&16777216,br=xn?Zie(xn):0,ln=rs(4|(Kn?16777216:0),Ut,br|262144|(hn?8:0)|(Tn?524288:0));ln.links.mappedType=n,ln.links.nameType=_t,ln.links.keyType=Me,xn&&(ln.links.syntheticOrigin=xn,ln.declarations=!y||A?xn.declarations:void 0),a.set(Ut,ln)}}else if(EV(_t)||_t.flags&33){const Ut=_t.flags&5?de:_t.flags&40?mt:_t,Mn=Zi(N,q8(n.mapper,u,Me)),xn=Cm(Ut,Mn,!!(K&1));l=$Ie(l,xn,!0)}}}function ntt(n){if(!n.links.type){const a=n.links.mappedType;if(!zf(n,0))return a.containsError=!0,Le;const l=rg(a.target||a),u=q8(a.mapper,hp(a),n.links.keyType),h=Zi(l,u);let y=z&&n.flags&16777216&&!hl(h,49152)?cy(h,!0):n.links.checkFlags&524288?moe(h):h;d_()||(Xe(U,m.Type_of_property_0_circularly_references_itself_in_mapped_type_1,x(n),Re(a)),y=Le),n.links.type=y}return n.links.type}function hp(n){return n.typeParameter||(n.typeParameter=KE(kr(n.declaration.typeParameter)))}function Hp(n){return n.constraintType||(n.constraintType=Ru(hp(n))||Le)}function mv(n){return n.declaration.nameType?n.nameType||(n.nameType=Zi(pi(n.declaration.nameType),n.mapper)):void 0}function rg(n){return n.templateType||(n.templateType=n.declaration.type?Zi(wo(pi(n.declaration.type),!0,!!(xm(n)&4)),n.mapper):Le)}function QIe(n){return JA(n.declaration.typeParameter)}function P8(n){const a=QIe(n);return a.kind===195&&a.operator===141}function HL(n){if(!n.modifiersType)if(P8(n))n.modifiersType=Zi(pi(QIe(n).type),n.mapper);else{const a=Uae(n.declaration),l=Hp(a),u=l&&l.flags&262144?Ru(l):l;n.modifiersType=u&&u.flags&4194304?Zi(u.type,n.mapper):ye}return n.modifiersType}function xm(n){const a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===40?2:1:0)|(a.questionToken?a.questionToken.kind===40?8:4:0)}function ZIe(n){const a=xm(n);return a&8?-1:a&4?1:0}function tae(n){const a=ZIe(n),l=HL(n);return a||(Kf(l)?ZIe(l):0)}function rtt(n){return!!(ni(n)&32&&xm(n)&4)}function Kf(n){if(ni(n)&32){const a=Hp(n);if(G0(a))return!0;const l=mv(n);if(l&&G0(Zi(l,ob(hp(n),a))))return!0}return!1}function gp(n){return n.members||(n.flags&524288?n.objectFlags&4?Vet(n):n.objectFlags&3?Uet(n):n.objectFlags&1024?ett(n):n.objectFlags&16?Qet(n):n.objectFlags&32?ttt(n):R.fail("Unhandled object type "+R.formatObjectFlags(n.objectFlags)):n.flags&1048576?Xet(n):n.flags&2097152?$et(n):R.fail("Unhandled type "+R.formatTypeFlags(n.flags))),n}function hv(n){return n.flags&524288?gp(n).properties:it}function Q1(n,a){if(n.flags&524288){const u=gp(n).members.get(a);if(u&&Yg(u))return u}}function s3(n){if(!n.resolvedProperties){const a=uo();for(const l of n.types){for(const u of gs(l))if(!a.has(u.escapedName)){const h=lae(n,u.escapedName);h&&a.set(u.escapedName,h)}if(n.flags&1048576&&Nu(l).length===0)break}n.resolvedProperties=av(a)}return n.resolvedProperties}function gs(n){return n=zL(n),n.flags&3145728?s3(n):hv(n)}function itt(n,a){n=zL(n),n.flags&3670016&&gp(n).members.forEach((l,u)=>{$g(l,u)&&a(l,u)})}function att(n,a){return a.properties.some(u=>{const h=u.name&&oy(u.name),y=h&&ng(h)?Sm(h):void 0,A=y===void 0?void 0:hc(n,y);return!!A&&Y8(A)&&!Co(X2(u),A)})}function ott(n){const a=ei(n);if(!(a.flags&1048576))return ile(a);const l=uo();for(const u of n)for(const{escapedName:h}of ile(u))if(!l.has(h)){const y=rke(a,h);y&&l.set(h,y)}return Oo(l.values())}function XE(n){return n.flags&262144?Ru(n):n.flags&8388608?stt(n):n.flags&16777216?ctt(n):td(n)}function Ru(n){return F8(n)?qL(n):void 0}function l3(n){var a;return!!(n.flags&262144&&Dt((a=n.symbol)==null?void 0:a.declarations,l=>Qr(l,2048))||TA(n)&&ii(ys(n),(l,u)=>!!(n.target.elementFlags[u]&8)&&l3(l))>=0||n.flags&8388608&&l3(n.objectType))}function stt(n){return F8(n)?ltt(n):void 0}function nae(n){const a=sy(n,!1);return a!==n?a:XE(n)}function ltt(n){if(oae(n))return wV(n.objectType,n.indexType);const a=nae(n.indexType);if(a&&a!==n.indexType){const u=bv(n.objectType,a,n.accessFlags);if(u)return u}const l=nae(n.objectType);if(l&&l!==n.objectType)return bv(l,n.indexType,n.accessFlags)}function rae(n){if(!n.resolvedDefaultConstraint){const a=Wnt(n),l=V0(n);n.resolvedDefaultConstraint=xs(a)?l:xs(l)?a:ei([a,l])}return n.resolvedDefaultConstraint}function eke(n){if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=sy(n.checkType,!1),l=a===n.checkType?XE(a):a;if(l&&l!==n.checkType){const u=$ae(n,H2(n.root.checkType,l,n.mapper));if(!(u.flags&131072))return u}}}function tke(n){return eke(n)||rae(n)}function ctt(n){return F8(n)?tke(n):void 0}function utt(n,a){let l,u=!1;for(const h of n)if(h.flags&465829888){let y=XE(h);for(;y&&y.flags&21233664;)y=XE(y);y&&(l=Pn(l,y),a&&(l=Pn(l,h)))}else(h.flags&469892092||og(h))&&(u=!0);if(l&&(a||u)){if(u)for(const h of n)(h.flags&469892092||og(h))&&(l=Pn(l,h));return T3(Ro(l),!1)}}function td(n){if(n.flags&464781312){const a=iae(n);return a!==Qo&&a!==Hl?a:void 0}return n.flags&4194304?Wi:void 0}function gv(n){return td(n)||n}function F8(n){return iae(n)!==Hl}function iae(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=Jf(l(n),n);function l(y){if(!y.immediateBaseConstraint){if(!zf(y,4))return Hl;let A;const N=$L(y);if((a.length<10||a.length<50&&!Fr(a,N))&&(a.push(N),A=h(sy(y,!1)),a.pop()),!d_()){if(y.flags&262144){const F=Eae(y);if(F){const K=Xe(F,m.Type_parameter_0_has_a_circular_constraint,Re(y));U&&!PT(F,U)&&!PT(U,F)&&$o(K,Nr(U,m.Circularity_originates_in_type_at_this_location))}}A=Hl}y.immediateBaseConstraint=A||Qo}return y.immediateBaseConstraint}function u(y){const A=l(y);return A!==Qo&&A!==Hl?A:void 0}function h(y){if(y.flags&262144){const A=qL(y);return y.isThisType||!A?A:u(A)}if(y.flags&3145728){const A=y.types,N=[];let F=!1;for(const K of A){const Q=u(K);Q?(Q!==K&&(F=!0),N.push(Q)):F=!0}return F?y.flags&1048576&&N.length===A.length?ei(N):y.flags&2097152&&N.length?Ro(N):void 0:y}if(y.flags&4194304)return Wi;if(y.flags&134217728){const A=y.types,N=ua(A,u);return N.length===A.length?QE(y.texts,N):de}if(y.flags&268435456){const A=u(y.type);return A&&A!==y.type?j2(y.symbol,A):de}if(y.flags&8388608){if(oae(y))return u(wV(y.objectType,y.indexType));const A=u(y.objectType),N=u(y.indexType),F=A&&N&&bv(A,N,y.accessFlags);return F&&u(F)}if(y.flags&16777216){const A=tke(y);return A&&u(A)}return y.flags&33554432?u(xae(y)):y}}function dtt(n){return n.resolvedApparentType||(n.resolvedApparentType=Jf(n,n,!0))}function aae(n){if(n.default)n.default===ou&&(n.default=Hl);else if(n.target){const a=aae(n.target);n.default=a?Zi(a,n.mapper):Qo}else{n.default=ou;const a=n.symbol&&Ie(n.symbol.declarations,u=>Ul(u)&&u.default),l=a?pi(a):Qo;n.default===ou&&(n.default=l)}return n.default}function YE(n){const a=aae(n);return a!==Qo&&a!==Hl?a:void 0}function ftt(n){return aae(n)!==Hl}function nke(n){return!!(n.symbol&&Ie(n.symbol.declarations,a=>Ul(a)&&a.default))}function _tt(n){return n.resolvedApparentType||(n.resolvedApparentType=ptt(n))}function ptt(n){const a=Kae(n);if(a&&!n.declaration.nameType){const l=Ru(a);if(l&&eT(l))return Zi(n,H2(a,l,n.mapper))}return n}function oae(n){let a;return!!(n.flags&8388608&&ni(a=n.objectType)&32&&!Kf(a)&&G0(n.indexType)&&!(xm(a)&8)&&!a.declaration.nameType)}function nd(n){const a=n.flags&465829888?td(n)||ye:n;return ni(a)&32?_tt(a):a.flags&2097152?dtt(a):a.flags&402653316?pl:a.flags&296?Qd:a.flags&2112?Ktt():a.flags&528?ql:a.flags&12288?Ike():a.flags&67108864?pa:a.flags&4194304?Wi:a.flags&2&&!z?pa:a}function zL(n){return yp(nd(yp(n)))}function rke(n,a,l){var u,h,y;let A,N,F;const K=n.flags&1048576;let Q,ve=4,Pe=K?0:8,Me=!1;for(const Gn of n.types){const qn=nd(Gn);if(!(is(qn)||qn.flags&131072)){const ti=_o(qn,a,l),oi=ti?a_(ti):0;if(ti){if(ti.flags&106500&&(Q!=null||(Q=K?0:16777216),K?Q|=ti.flags&16777216:Q&=ti.flags),!A)A=ti;else if(ti!==A)if((wA(ti)||ti)===(wA(A)||A)&&loe(A,ti,(eo,Cc)=>eo===Cc?-1:0)===-1)Me=!!A.parent&&!!ge(_v(A.parent));else{N||(N=new Map,N.set(To(A),A));const eo=To(ti);N.has(eo)||N.set(eo,ti)}K&&Ep(ti)?Pe|=8:!K&&!Ep(ti)&&(Pe&=-9),Pe|=(oi&24?0:256)|(oi&16?512:0)|(oi&8?1024:0)|(oi&32?2048:0),nse(ti)||(ve=2)}else if(K){const ma=!O8(a)&&fA(qn,a);ma?(Pe|=32|(ma.isReadonly?8:0),F=Pn(F,Go(qn)?L3(qn)||He:ma.type)):q0(qn)&&!(ni(qn)&2097152)?(Pe|=32,F=Pn(F,He)):Pe|=16}}}if(!A||K&&(N||Pe&48)&&Pe&1536&&!(N&&mtt(N.values())))return;if(!N&&!(Pe&16)&&!F)if(Me){const Gn=(u=li(A,jm))==null?void 0:u.links,qn=nT(A,Gn==null?void 0:Gn.type);return qn.parent=(y=(h=A.valueDeclaration)==null?void 0:h.symbol)==null?void 0:y.parent,qn.links.containingType=n,qn.links.mapper=Gn==null?void 0:Gn.mapper,qn}else return A;const _t=N?Oo(N.values()):[A];let Ut,Mn,xn;const Kn=[];let hn,Tn,br=!1;for(const Gn of _t){Tn?Gn.valueDeclaration&&Gn.valueDeclaration!==Tn&&(br=!0):Tn=Gn.valueDeclaration,Ut=xi(Ut,Gn.declarations);const qn=or(Gn);Mn||(Mn=qn,xn=zi(Gn).nameType);const ti=VL(Gn);hn||ti!==qn?hn=Pn(hn||Kn.slice(),ti):qn!==Mn&&(Pe|=64),(Y8(qn)||yA(qn)||qn===$r)&&(Pe|=128),qn.flags&131072&&qn!==$r&&(Pe|=131072),Kn.push(qn)}xi(Kn,F);const ln=rs(4|(Q!=null?Q:0),a,ve|Pe);return ln.links.containingType=n,!br&&Tn&&(ln.valueDeclaration=Tn,Tn.symbol.parent&&(ln.parent=Tn.symbol.parent)),ln.declarations=Ut,ln.links.nameType=xn,Kn.length>2?(ln.links.checkFlags|=65536,ln.links.deferralParent=n,ln.links.deferralConstituents=Kn,ln.links.deferralWriteConstituents=hn):(ln.links.type=K?ei(Kn):Ro(Kn),hn&&(ln.links.writeType=K?ei(hn):Ro(hn))),ln}function sae(n,a,l){var u,h;let y=(u=n.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&u.get(a)||!l?(h=n.propertyCache)==null?void 0:h.get(a):void 0;return y||(y=rke(n,a,l),y&&(l?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=uo()):n.propertyCache||(n.propertyCache=uo())).set(a,y)),y}function mtt(n){let a;for(const l of n){if(!l.declarations)return;if(!a){a=new Set(l.declarations);continue}if(a.forEach(u=>{Fr(l.declarations,u)||a.delete(u)}),a.size===0)return}return a}function lae(n,a,l){const u=sae(n,a,l);return u&&!(Dl(u)&16)?u:void 0}function yp(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=htt(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(Dt(s3(n),gtt)?33554432:0)),n.objectFlags&33554432?Et:n):n}function htt(n){const a=Ui(n.types,yp);if(a===n.types)return n;const l=ei(a);return l.flags&1048576&&(l.resolvedReducedType=l),l}function gtt(n){return ike(n)||ake(n)}function ike(n){return!(n.flags&16777216)&&(Dl(n)&131264)===192&&!!(or(n).flags&131072)}function ake(n){return!n.valueDeclaration&&!!(Dl(n)&1024)}function cae(n,a){if(a.flags&2097152&&ni(a)&33554432){const l=$t(s3(a),ike);if(l)return Na(n,m.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Re(a,void 0,536870912),x(l));const u=$t(s3(a),ake);if(u)return Na(n,m.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Re(a,void 0,536870912),x(u))}return n}function _o(n,a,l,u){if(n=zL(n),n.flags&524288){const h=gp(n),y=h.members.get(a);if(y&&Yg(y,u))return y;if(l)return;const A=h===La?_l:h.callSignatures.length?mc:h.constructSignatures.length?bd:void 0;if(A){const N=Q1(A,a);if(N)return N}return Q1(Qa,a)}if(n.flags&3145728)return lae(n,a,l)}function c3(n,a){if(n.flags&3670016){const l=gp(n);return a===0?l.callSignatures:l.constructSignatures}return it}function Ja(n,a){return c3(zL(n),a)}function uae(n,a){return $t(n,l=>l.keyType===a)}function dae(n,a){let l,u,h;for(const y of n)y.keyType===de?l=y:dA(a,y.keyType)&&(u?(h||(h=[u])).push(y):u=y);return h?Cm(ye,Ro(Pt(h,y=>y.type)),Vu(h,(y,A)=>y&&A.isReadonly,!0)):u||(l&&dA(a,de)?l:void 0)}function dA(n,a){return Co(n,a)||a===de&&Co(n,mt)||a===mt&&(n===oo||!!(n.flags&128)&&Oh(n.value))}function fae(n){return n.flags&3670016?gp(n).indexInfos:it}function Nu(n){return fae(zL(n))}function mh(n,a){return uae(Nu(n),a)}function iy(n,a){var l;return(l=mh(n,a))==null?void 0:l.type}function _ae(n,a){return Nu(n).filter(l=>dA(a,l.keyType))}function u3(n,a){return dae(Nu(n),a)}function fA(n,a){return u3(n,O8(a)?J:Xf(ia(a)))}function oke(n){var a;let l;for(const u of Gv(n))l=vy(l,KE(u.symbol));return l!=null&&l.length?l:Sc(n)?(a=G8(n))==null?void 0:a.typeParameters:void 0}function pae(n){const a=[];return n.forEach((l,u)=>{PE(u)||a.push(l)}),a}function mae(n,a){if(zc(n))return;const l=ef(ze,'"'+n+'"',512);return l&&a?os(l):l}function B8(n){if(OS(n)||QR(n)||ZR(n))return!0;if(n.initializer){const l=zp(n.parent),u=n.parent.parameters.indexOf(n);return R.assert(u>=0),u>=wm(l,3)}const a=RT(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=a.arguments.length:!1}function ytt(n){return ro(n)&&!qm(n)&&n.questionToken}function d3(n,a,l,u){return{kind:n,parameterName:a,parameterIndex:l,type:u}}function Am(n){let a=0;if(n)for(let l=0;l<n.length;l++)nke(n[l])||(a=l+1);return a}function yv(n,a,l,u){const h=ge(a);if(!h)return[];const y=ge(n);if(u||y>=l&&y<=h){const A=n?n.slice():[];for(let F=y;F<h;F++)A[F]=Le;const N=woe(u);for(let F=y;F<h;F++){let K=YE(a[F]);u&&K&&(ig(K,ye)||ig(K,pa))&&(K=Oe),A[F]=K?Zi(K,Cd(a,A)):N}return A.length=a.length,A}return n&&n.slice()}function zp(n){const a=Xr(n);if(!a.resolvedSignature){const l=[];let u=0,h=0,y,A=!1;const N=RT(n),F=pC(n);!N&&_r(n)&&H_e(n)&&!hfe(n)&&!Bv(n)&&(u|=32);for(let Pe=F?1:0;Pe<n.parameters.length;Pe++){const Me=n.parameters[Pe];let _t=Me.symbol;const Ut=_m(Me)?Me.typeExpression&&Me.typeExpression.type:Me.type;_t&&_t.flags&4&&!$a(Me.name)&&(_t=ml(Me,_t.escapedName,111551,void 0,void 0,!1)),Pe===0&&_t.escapedName==="this"?(A=!0,y=Me.symbol):l.push(_t),Ut&&Ut.kind===198&&(u|=2),QR(Me)||Me.initializer||Me.questionToken||Lh(Me)||N&&l.length>N.arguments.length&&!Ut||ZR(Me)||(h=l.length)}if((n.kind===174||n.kind===175)&&uA(n)&&(!A||!y)){const Pe=n.kind===174?175:174,Me=Il(kr(n),Pe);Me&&(y=Ke(Me))}if(_r(n)){const Pe=IM(n);Pe&&Pe.typeExpression&&(y=nT(rs(1,"this"),pi(Pe.typeExpression)))}const Q=n.kind===173?ed(os(n.parent.symbol)):void 0,ve=Q?Q.localTypeParameters:oke(n);(uq(n)||_r(n)&&vtt(n,l))&&(u|=1),(i4(n)&&Qr(n,256)||Kl(n)&&Qr(n.parent,256))&&(u|=4),a.resolvedSignature=ph(n,ve,y,l,void 0,void 0,h,u)}return a.resolvedSignature}function vtt(n,a){if(rE(n)||!hae(n))return!1;const l=rl(n.parameters),u=l?QI(l):Nb(n).filter(_m),h=qt(u,A=>A.typeExpression&&H5(A.typeExpression.type)?A.typeExpression.type:void 0),y=rs(3,"args",32768);return h?y.links.type=Ou(pi(h.type)):(y.links.checkFlags|=65536,y.links.deferralParent=Et,y.links.deferralConstituents=[Nt],y.links.deferralWriteConstituents=[Nt]),h&&a.pop(),a.push(y),!0}function G8(n){if(!(_r(n)&&el(n)))return;const a=Rb(n);return(a==null?void 0:a.typeExpression)&&K2(pi(a.typeExpression))}function btt(n,a){const l=G8(n);if(!l)return;const u=n.parameters.indexOf(a);return a.dotDotDotToken?cw(l,u):bp(l,u)}function Ett(n){const a=G8(n);return a&&vs(a)}function hae(n){const a=Xr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=l(n.body)),a.containsArgumentsReference;function l(u){if(!u)return!1;switch(u.kind){case 79:return u.escapedText===Ct.escapedName&&d7(u)===Ct;case 169:case 171:case 174:case 175:return u.name.kind===164&&l(u.name);case 208:case 209:return l(u.expression);case 299:return l(u.initializer);default:return!rJ(u)&&!Ih(u)&&!!Pa(u,l)}}}function Z1(n){if(!n||!n.declarations)return it;const a=[];for(let l=0;l<n.declarations.length;l++){const u=n.declarations[l];if(Ya(u)){if(l>0&&u.body){const h=n.declarations[l-1];if(u.parent===h.parent&&u.kind===h.kind&&u.pos===h.end)continue}if(_r(u)&&u.jsDoc){let h=!1;for(const y of u.jsDoc)if(y.tags){for(const A of y.tags)if(m4(A)){const N=A.typeExpression;N.type===void 0&&!Kl(u)&&z0(N,Oe),a.push(zp(N)),h=!0}}if(h)continue}a.push(!DC(u)&&!q_(u)&&G8(u)||zp(u))}}return a}function ske(n){const a=hu(n,n);if(a){const l=Sd(a);if(l)return or(l)}return Oe}function eb(n){if(n.thisParameter)return or(n.thisParameter)}function f_(n){if(!n.resolvedTypePredicate){if(n.target){const a=f_(n.target);n.resolvedTypePredicate=a?irt(a,n.mapper):nl}else if(n.compositeSignatures)n.resolvedTypePredicate=hnt(n.compositeSignatures,n.compositeKind)||nl;else{const a=n.declaration&&Lp(n.declaration);let l;if(!a){const u=G8(n.declaration);u&&n!==u&&(l=f_(u))}n.resolvedTypePredicate=a&&F5(a)?Ttt(a,n):l||nl}R.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===nl?void 0:n.resolvedTypePredicate}function Ttt(n,a){const l=n.parameterName,u=n.type&&pi(n.type);return l.kind===194?d3(n.assertsModifier?2:0,void 0,void 0,u):d3(n.assertsModifier?3:1,l.escapedText,ii(a.parameters,h=>h.escapedName===l.escapedText),u)}function lke(n,a,l){return a!==2097152?ei(n,l):Ro(n)}function vs(n){if(!n.resolvedReturnType){if(!zf(n,3))return Le;let a=n.target?Zi(vs(n.target),n.mapper):n.compositeSignatures?Zi(lke(Pt(n.compositeSignatures,vs),n.compositeKind,2),n.mapper):_A(n.declaration)||(kl(n.declaration.body)?Oe:Dj(n.declaration));if(n.flags&8?a=U4e(a):n.flags&16&&(a=cy(a)),!d_()){if(n.declaration){const l=Lp(n.declaration);if(l)Xe(l,m.Return_type_annotation_circularly_references_itself);else if(Ae){const u=n.declaration,h=ka(u);h?Xe(h,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,Ds(h)):Xe(u,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=Oe}n.resolvedReturnType=a}return n.resolvedReturnType}function _A(n){if(n.kind===173)return ed(os(n.parent.symbol));if(rE(n)){const l=vk(n);if(l&&Kl(l.parent))return ed(os(l.parent.parent.symbol))}if(pC(n))return pi(n.parameters[0].type);const a=Lp(n);if(a)return pi(a);if(n.kind===174&&uA(n)){const l=_r(n)&&ki(n);if(l)return l;const u=Il(kr(n),175),h=se(u);if(h)return h}return Ett(n)}function gae(n){return!n.resolvedReturnType&&fh(n,3)>=0}function Stt(n){return cke(n)||Oe}function cke(n){if(Lu(n)){const a=or(n.parameters[n.parameters.length-1]),l=Go(a)?L3(a):a;return l&&iy(l,mt)}}function U8(n,a,l,u){const h=yae(n,yv(a,n.typeParameters,Am(n.typeParameters),l));if(u){const y=gwe(vs(h));if(y){const A=M8(y);A.typeParameters=u;const N=M8(h);return N.resolvedReturnType=$E(A),N}}return h}function yae(n,a){const l=n.instantiations||(n.instantiations=new Map),u=__(a);let h=l.get(u);return h||l.set(u,h=bV(n,a)),h}function bV(n,a){return EA(n,xtt(n,a),!0)}function xtt(n,a){return Cd(n.typeParameters,a)}function V8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Att(n)):n}function Att(n){return EA(n,f4e(n.typeParameters),!0)}function Ctt(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Ltt(n)):n}function Ltt(n){return U8(n,Pt(n.typeParameters,a=>a.target&&!Ru(a.target)?a.target:a),_r(n.declaration))}function Itt(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const l=f4e(a),u=Cd(a,Pt(a,y=>Ru(y)||ye));let h=Pt(a,y=>Zi(y,u)||ye);for(let y=0;y<a.length-1;y++)h=ly(h,u);return h=ly(h,l),n.baseSignatureCache=EA(n,Cd(a,h),!0)}return n}function $E(n){var a;if(!n.isolatedSignatureType){const l=(a=n.declaration)==null?void 0:a.kind,u=l===void 0||l===173||l===177||l===182,h=Sf(16);h.members=ee,h.properties=it,h.callSignatures=u?it:[n],h.constructSignatures=u?[n]:it,h.indexInfos=it,n.isolatedSignatureType=h}return n.isolatedSignatureType}function uke(n){return n.members?vae(n.members):void 0}function vae(n){return n.get("__index")}function Cm(n,a,l,u){return{keyType:n,type:a,isReadonly:l,declaration:u}}function dke(n){const a=uke(n);return a?bae(a):it}function bae(n){if(n.declarations){const a=[];for(const l of n.declarations)if(l.parameters.length===1){const u=l.parameters[0];u.type&&oT(pi(u.type),h=>{EV(h)&&!uae(a,h)&&a.push(Cm(h,l.type?pi(l.type):Oe,Hd(l,64),l))})}return a}return it}function EV(n){return!!(n.flags&4108)||yA(n)||!!(n.flags&2097152)&&!XL(n)&&Dt(n.types,EV)}function Eae(n){return ua(ur(n.symbol&&n.symbol.declarations,Ul),JA)[0]}function fke(n,a){var l;let u;if((l=n.symbol)!=null&&l.declarations){for(const h of n.symbol.declarations)if(h.parent.kind===192){const[y=h.parent,A]=q_e(h.parent.parent);if(A.kind===180&&!a){const N=A,F=Bse(N);if(F){const K=N.typeArguments.indexOf(y);if(K<F.length){const Q=Ru(F[K]);if(Q){const ve=qae(F,F.map((Me,_t)=>()=>Plt(N,F,_t))),Pe=Zi(Q,ve);Pe!==n&&(u=Pn(u,Pe))}}}}else if(A.kind===166&&A.dotDotDotToken||A.kind===188||A.kind===199&&A.dotDotDotToken)u=Pn(u,Ou(ye));else if(A.kind===201)u=Pn(u,de);else if(A.kind===165&&A.parent.kind===197)u=Pn(u,Wi);else if(A.kind===197&&A.type&&Hs(A.type)===h.parent&&A.parent.kind===191&&A.parent.extendsType===A&&A.parent.checkType.kind===197&&A.parent.checkType.type){const N=A.parent.checkType,F=pi(N.type);u=Pn(u,Zi(F,ob(KE(kr(N.typeParameter)),N.typeParameter.constraint?pi(N.typeParameter.constraint):Wi)))}}}return u&&Ro(u)}function qL(n){if(!n.constraint)if(n.target){const a=Ru(n.target);n.constraint=a?Zi(a,n.mapper):Qo}else{const a=Eae(n);if(!a)n.constraint=fke(n)||Qo;else{let l=pi(a);l.flags&1&&!is(l)&&(l=a.parent.parent.kind===197?Wi:ye),n.constraint=l}}return n.constraint===Qo?void 0:n.constraint}function _ke(n){const a=Il(n.symbol,165),l=wp(a.parent)?bP(a.parent):a.parent;return l&&tf(l)}function __(n){let a="";if(n){const l=n.length;let u=0;for(;u<l;){const h=n[u].id;let y=1;for(;u+y<l&&n[u+y].id===h+y;)y++;a.length&&(a+=","),a+=h,y>1&&(a+=":"+y),u+=y}}return a}function pA(n,a){return n?`@${To(n)}`+(a?`:${__(a)}`:""):""}function TV(n,a){let l=0;for(const u of n)(a===void 0||!(u.flags&a))&&(l|=ni(u));return l&458752}function mA(n,a){return Dt(a)&&n===Io?ye:ay(n,a)}function ay(n,a){const l=__(a);let u=n.instantiations.get(l);return u||(u=Sf(4,n.symbol),n.instantiations.set(l,u),u.objectFlags|=a?TV(a):0,u.target=n,u.resolvedTypeArguments=a),u}function pke(n){const a=Em(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function Tae(n,a,l,u,h){if(!u){u=W2(a);const A=vA(u);h=l?ly(A,l):A}const y=Sf(4,n.symbol);return y.target=n,y.node=a,y.mapper=l,y.aliasSymbol=u,y.aliasTypeArguments=h,y}function ys(n){var a,l;if(!n.resolvedTypeArguments){if(!zf(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>Le))||it;const u=n.node,h=u?u.kind===180?ba(n.target.outerTypeParameters,Oj(u,n.target.localTypeParameters)):u.kind===185?[pi(u.elementType)]:Pt(u.elements,pi):it;d_()?n.resolvedTypeArguments=n.mapper?ly(h,n.mapper):h:(n.resolvedTypeArguments=((l=n.target.localTypeParameters)==null?void 0:l.map(()=>Le))||it,Xe(n.node||U,n.target.symbol?m.Type_arguments_for_0_circularly_reference_themselves:m.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&x(n.target.symbol)))}return n.resolvedTypeArguments}function B0(n){return ge(n.target.typeParameters)}function mke(n,a){const l=Vs(os(a)),u=l.localTypeParameters;if(u){const h=ge(n.typeArguments),y=Am(u),A=_r(n);if(!(!Ae&&A)&&(h<y||h>u.length)){const K=A&&Py(n)&&!YC(n.parent),Q=y===u.length?K?m.Expected_0_type_arguments_provide_these_with_an_extends_tag:m.Generic_type_0_requires_1_type_argument_s:K?m.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:m.Generic_type_0_requires_between_1_and_2_type_arguments,ve=Re(l,void 0,2);if(Xe(n,Q,ve,y,u.length),!A)return Le}if(n.kind===180&&Oke(n,ge(n.typeArguments)!==u.length))return Tae(l,n,void 0);const F=ba(l.outerTypeParameters,yv(f3(n),u,y,A));return ay(l,F)}return tb(n,a)?l:Le}function hA(n,a,l,u){const h=Vs(n);if(h===ie&&uN.has(n.escapedName)&&a&&a.length===1)return j2(n,a[0]);const y=zi(n),A=y.typeParameters,N=__(a)+pA(l,u);let F=y.instantiations.get(N);return F||y.instantiations.set(N,F=m4e(h,Cd(A,yv(a,A,Am(A),_r(n.valueDeclaration))),l,u)),F}function ktt(n,a){if(Dl(a)&1048576){const h=f3(n),y=pA(a,h);let A=Hr.get(y);return A||(A=Zl(1,"error"),A.aliasSymbol=a,A.aliasTypeArguments=h,Hr.set(y,A)),A}const l=Vs(a),u=zi(a).typeParameters;if(u){const h=ge(n.typeArguments),y=Am(u);if(h<y||h>u.length)return Xe(n,y===u.length?m.Generic_type_0_requires_1_type_argument_s:m.Generic_type_0_requires_between_1_and_2_type_arguments,x(a),y,u.length),Le;const A=W2(n);let N=A&&(hke(a)||!hke(A))?A:void 0,F;if(N)F=vA(N);else if(VM(n)){const K=gA(n,2097152,!0);if(K&&K!==an){const Q=ic(K);Q&&Q.flags&524288&&(N=Q,F=f3(n)||(u?[]:void 0))}}return hA(a,f3(n),N,F)}return tb(n,a)?l:Le}function hke(n){var a;const l=(a=n.declarations)==null?void 0:a.find(pR);return!!(l&&Nf(l))}function wtt(n){switch(n.kind){case 180:return n.typeName;case 230:const a=n.expression;if(Jl(a))return a}}function gke(n){return n.parent?`${gke(n.parent)}.${n.escapedName}`:n.escapedName}function SV(n){const l=(n.kind===163?n.right:n.kind===208?n.name:n).escapedText;if(l){const u=n.kind===163?SV(n.left):n.kind===208?SV(n.expression):void 0,h=u?`${gke(u)}.${l}`:l;let y=Ir.get(h);return y||(Ir.set(h,y=rs(524288,l,1048576)),y.parent=u,y.links.declaredType=pt),y}return an}function gA(n,a,l){const u=wtt(n);if(!u)return an;const h=Pl(u,a,l);return h&&h!==an?h:l?an:SV(u)}function xV(n,a){if(a===an)return Le;if(a=x0(a)||a,a.flags&96)return mke(n,a);if(a.flags&524288)return ktt(n,a);const l=BIe(a);if(l)return tb(n,a)?Ad(l):Le;if(a.flags&111551&&AV(n)){const u=Dtt(n,a);return u||(gA(n,788968),or(a))}return Le}function Dtt(n,a){const l=Xr(n);if(!l.resolvedJSDocType){const u=or(a);let h=u;if(a.valueDeclaration){const y=n.kind===202&&n.qualifier;u.symbol&&u.symbol!==a&&y&&(h=xV(n,u.symbol))}l.resolvedJSDocType=h}return l.resolvedJSDocType}function Sae(n,a){if(a.flags&3||a===n||n.flags&1)return n;const l=`${Mu(n)}>${Mu(a)}`,u=Wt.get(l);if(u)return u;const h=Qh(33554432);return h.baseType=n,h.constraint=a,Wt.set(l,h),h}function xae(n){return Ro([n.constraint,n.baseType])}function yke(n){return n.kind===186&&n.elements.length===1}function vke(n,a,l){return yke(a)&&yke(l)?vke(n,a.elements[0],l.elements[0]):Ev(pi(a))===Ev(n)?pi(l):void 0}function Rtt(n,a){let l,u=!0;for(;a&&!wa(a)&&a.kind!==323;){const h=a.parent;if(h.kind===166&&(u=!u),(u||n.flags&8650752)&&h.kind===191&&a===h.trueType){const y=vke(n,h.checkType,h.extendsType);y&&(l=Pn(l,y))}else if(n.flags&262144&&h.kind===197&&a===h.type){const y=pi(h);if(hp(y)===Ev(n)){const A=Kae(y);if(A){const N=Ru(A);N&&hh(N,eT)&&(l=Pn(l,ei([mt,oo])))}}}a=h}return l?Sae(n,Ro(l)):n}function AV(n){return!!(n.flags&8388608)&&(n.kind===180||n.kind===202)}function tb(n,a){return n.typeArguments?(Xe(n,m.Type_0_is_not_generic,a?x(a):n.typeName?Ds(n.typeName):cN),!1):!0}function bke(n){if(We(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return tb(n),de;case"Number":return tb(n),mt;case"Boolean":return tb(n),Ne;case"Void":return tb(n),wt;case"Undefined":return tb(n),He;case"Null":return tb(n),Sn;case"Function":case"function":return tb(n),_l;case"array":return(!a||!a.length)&&!Ae?Nt:void 0;case"promise":return(!a||!a.length)&&!Ae?X3(Oe):void 0;case"Object":if(a&&a.length===2){if(pP(n)){const l=pi(a[0]),u=pi(a[1]),h=l===de||l===mt?[Cm(l,u,!1)]:it;return Os(void 0,ee,it,it,h)}return Oe}return tb(n),Ae?void 0:Oe}}}function Ntt(n){const a=pi(n.type);return z?YV(a,65536):a}function Aae(n){const a=Xr(n);if(!a.resolvedType){if(yg(n)&&AT(n.parent))return a.resolvedSymbol=an,a.resolvedType=ec(n.parent.expression);let l,u;const h=788968;AV(n)&&(u=bke(n),u||(l=gA(n,h,!0),l===an?l=gA(n,h|111551):gA(n,h),u=xV(n,l))),u||(l=gA(n,h),u=xV(n,l)),a.resolvedSymbol=l,a.resolvedType=u}return a.resolvedType}function f3(n){return Pt(n.typeArguments,pi)}function Eke(n){const a=Xr(n);if(!a.resolvedType){const l=Fwe(n);a.resolvedType=Ad(of(l))}return a.resolvedType}function Tke(n,a){function l(h){const y=h.declarations;if(y)for(const A of y)switch(A.kind){case 260:case 261:case 263:return A}}if(!n)return a?Io:pa;const u=Vs(n);return u.flags&524288?ge(u.typeParameters)!==a?(Xe(l(n),m.Global_type_0_must_have_1_type_parameter_s,Gl(n),a),a?Io:pa):u:(Xe(l(n),m.Global_type_0_must_be_a_class_or_interface_type,Gl(n)),a?Io:pa)}function Cae(n,a){return j8(n,111551,a?m.Cannot_find_global_value_0:void 0)}function Ske(n,a){return j8(n,788968,a?m.Cannot_find_global_type_0:void 0)}function CV(n,a,l){const u=j8(n,788968,l?m.Cannot_find_global_type_0:void 0);if(u&&(Vs(u),ge(zi(u).typeParameters)!==a)){const h=u.declarations&&$t(u.declarations,um);Xe(h,m.Global_type_0_must_have_1_type_parameter_s,Gl(u),a);return}return u}function j8(n,a,l){return ml(void 0,n,a,l,n,!1,!1,!1)}function uc(n,a,l){const u=Ske(n,l);return u||l?Tke(u,a):void 0}function Ott(){return Ft||(Ft=uc("TypedPropertyDescriptor",1,!0)||Io)}function Mtt(){return bf||(bf=uc("TemplateStringsArray",0,!0)||pa)}function xke(){return w_||(w_=uc("ImportMeta",0,!0)||pa)}function Ake(){if(!Zo){const n=rs(0,"ImportMetaExpression"),a=xke(),l=rs(4,"meta",8);l.parent=n,l.links.type=a;const u=uo([l]);n.members=u,Zo=Os(n,u,it,it,it)}return Zo}function Cke(n){return D_||(D_=uc("ImportCallOptions",0,n))||pa}function Lke(n){return oe||(oe=Cae("Symbol",n))}function Ptt(n){return dt||(dt=Ske("SymbolConstructor",n))}function Ike(){return Bt||(Bt=uc("Symbol",0,!1))||pa}function _3(n){return un||(un=uc("Promise",1,n))||Io}function kke(n){return Vn||(Vn=uc("PromiseLike",1,n))||Io}function Lae(n){return Rr||(Rr=Cae("Promise",n))}function Ftt(n){return ri||(ri=uc("PromiseConstructorLike",0,n))||pa}function LV(n){return vf||(vf=uc("AsyncIterable",1,n))||Io}function Btt(n){return rc||(rc=uc("AsyncIterator",3,n))||Io}function Gtt(n){return Zd||(Zd=uc("AsyncIterableIterator",1,n))||Io}function Utt(n){return Du||(Du=uc("AsyncGenerator",3,n))||Io}function Iae(n){return Mi||(Mi=uc("Iterable",1,n))||Io}function Vtt(n){return Wa||(Wa=uc("Iterator",3,n))||Io}function jtt(n){return zo||(zo=uc("IterableIterator",1,n))||Io}function Wtt(n){return Ss||(Ss=uc("Generator",3,n))||Io}function Htt(n){return $s||($s=uc("IteratorYieldResult",1,n))||Io}function ztt(n){return Ed||(Ed=uc("IteratorReturnResult",1,n))||Io}function wke(n,a=0){const l=j8(n,788968,void 0);return l&&Tke(l,a)}function qtt(){return Ef||(Ef=CV("Extract",2,!0)||an),Ef===an?void 0:Ef}function Jtt(){return op||(op=CV("Omit",2,!0)||an),op===an?void 0:op}function kae(n){return Fp||(Fp=CV("Awaited",1,n)||(n?an:void 0)),Fp===an?void 0:Fp}function Ktt(){return V||(V=uc("BigInt",0,!1))||pa}function Xtt(n){var a;return(a=Yn!=null?Yn:Yn=uc("ClassDecoratorContext",1,n))!=null?a:Io}function Ytt(n){var a;return(a=Da!=null?Da:Da=uc("ClassMethodDecoratorContext",2,n))!=null?a:Io}function $tt(n){var a;return(a=Ia!=null?Ia:Ia=uc("ClassGetterDecoratorContext",2,n))!=null?a:Io}function Qtt(n){var a;return(a=De!=null?De:De=uc("ClassSetterDecoratorContext",2,n))!=null?a:Io}function Ztt(n){var a;return(a=Ve!=null?Ve:Ve=uc("ClassAccessorDecoratorContext",2,n))!=null?a:Io}function ent(n){var a;return(a=It!=null?It:It=uc("ClassAccessorDecoratorTarget",2,n))!=null?a:Io}function tnt(n){var a;return(a=Mt!=null?Mt:Mt=uc("ClassAccessorDecoratorResult",2,n))!=null?a:Io}function nnt(n){var a;return(a=mn!=null?mn:mn=uc("ClassFieldDecoratorContext",2,n))!=null?a:Io}function rnt(){return tt||(tt=Cae("NaN",!1))}function int(){return Kt||(Kt=CV("Record",2,!0)||an),Kt===an?void 0:Kt}function W8(n,a){return n!==Io?ay(n,a):pa}function Dke(n){return W8(Ott(),[n])}function Rke(n){return W8(Iae(!0),[n])}function Ou(n,a){return W8(a?fs:Ts,[n])}function wae(n){switch(n.kind){case 187:return 2;case 188:return Nke(n);case 199:return n.questionToken?2:n.dotDotDotToken?Nke(n):1;default:return 1}}function Nke(n){return g3(n.type)?4:8}function ant(n){const a=snt(n.parent);if(g3(n))return a?fs:Ts;const u=Pt(n.elements,wae),h=Dt(n.elements,y=>y.kind!==199);return Dae(u,a,h?void 0:n.elements)}function Oke(n,a){return!!W2(n)||Mke(n)&&(n.kind===185?vv(n.elementType):n.kind===186?Dt(n.elements,vv):a||Dt(n.typeArguments,vv))}function Mke(n){const a=n.parent;switch(a.kind){case 193:case 199:case 180:case 189:case 190:case 196:case 191:case 195:case 185:case 186:return Mke(a);case 262:return!0}return!1}function vv(n){switch(n.kind){case 180:return AV(n)||!!(gA(n,788968).flags&524288);case 183:return!0;case 195:return n.operator!==156&&vv(n.type);case 193:case 187:case 199:case 319:case 317:case 318:case 312:return vv(n.type);case 188:return n.type.kind!==185||vv(n.type.elementType);case 189:case 190:return Dt(n.types,vv);case 196:return vv(n.objectType)||vv(n.indexType);case 191:return vv(n.checkType)||vv(n.extendsType)||vv(n.trueType)||vv(n.falseType)}return!1}function ont(n){const a=Xr(n);if(!a.resolvedType){const l=ant(n);if(l===Io)a.resolvedType=pa;else if(!(n.kind===186&&Dt(n.elements,u=>!!(wae(u)&8)))&&Oke(n))a.resolvedType=n.kind===186&&n.elements.length===0?l:Tae(l,n,void 0);else{const u=n.kind===185?[pi(n.elementType)]:Pt(n.elements,pi);a.resolvedType=Rae(l,u)}}return a.resolvedType}function snt(n){return nx(n)&&n.operator===146}function qp(n,a,l=!1,u){const h=Dae(a||Pt(n,y=>1),l,u);return h===Io?pa:n.length?Rae(h,n):h}function Dae(n,a,l){if(n.length===1&&n[0]&4)return a?fs:Ts;const u=Pt(n,y=>y&1?"#":y&2?"?":y&4?".":"*").join()+(a?"R":"")+(l&&l.length?","+Pt(l,hs).join(","):"");let h=jn.get(u);return h||jn.set(u,h=lnt(n,a,l)),h}function lnt(n,a,l){const u=n.length,h=Hc(n,ve=>!!(ve&9));let y;const A=[];let N=0;if(u){y=new Array(u);for(let ve=0;ve<u;ve++){const Pe=y[ve]=Gd(),Me=n[ve];if(N|=Me,!(N&12)){const _t=rs(4|(Me&2?16777216:0),""+ve,a?8:0);_t.links.tupleLabelDeclaration=l==null?void 0:l[ve],_t.links.type=Pe,A.push(_t)}}}const F=A.length,K=rs(4,"length",a?8:0);if(N&12)K.links.type=mt;else{const ve=[];for(let Pe=h;Pe<=u;Pe++)ve.push(Jp(Pe));K.links.type=ei(ve)}A.push(K);const Q=Sf(12);return Q.typeParameters=y,Q.outerTypeParameters=void 0,Q.localTypeParameters=y,Q.instantiations=new Map,Q.instantiations.set(__(Q.typeParameters),Q),Q.target=Q,Q.resolvedTypeArguments=Q.typeParameters,Q.thisType=Gd(),Q.thisType.isThisType=!0,Q.thisType.constraint=Q,Q.declaredProperties=A,Q.declaredCallSignatures=it,Q.declaredConstructSignatures=it,Q.declaredIndexInfos=it,Q.elementFlags=n,Q.minLength=h,Q.fixedLength=F,Q.hasRestElement=!!(N&12),Q.combinedFlags=N,Q.readonly=a,Q.labeledElementDeclarations=l,Q}function Rae(n,a){return n.objectFlags&8?Pke(n,a):ay(n,a)}function Pke(n,a){var l,u,h;if(!(n.combinedFlags&14))return ay(n,a);if(n.combinedFlags&8){const Me=ii(a,(_t,Ut)=>!!(n.elementFlags[Ut]&8&&_t.flags&1179648));if(Me>=0)return m3(Pt(a,(_t,Ut)=>n.elementFlags[Ut]&8?_t:ye))?Zs(a[Me],_t=>Pke(n,eH(a,Me,_t))):Le}const y=[],A=[];let N=[],F=-1,K=-1,Q=-1;for(let Me=0;Me<a.length;Me++){const _t=a[Me],Ut=n.elementFlags[Me];if(Ut&8)if(_t.flags&58982400||Kf(_t))Pe(_t,8,(l=n.labeledElementDeclarations)==null?void 0:l[Me]);else if(Go(_t)){const Mn=ys(_t);if(Mn.length+y.length>=1e4)return Xe(U,Ih(U)?m.Type_produces_a_tuple_type_that_is_too_large_to_represent:m.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Le;Ie(Mn,(xn,Kn)=>{var hn;return Pe(xn,_t.target.elementFlags[Kn],(hn=_t.target.labeledElementDeclarations)==null?void 0:hn[Kn])})}else Pe(H0(_t)&&iy(_t,mt)||Le,4,(u=n.labeledElementDeclarations)==null?void 0:u[Me]);else Pe(_t,Ut,(h=n.labeledElementDeclarations)==null?void 0:h[Me])}for(let Me=0;Me<F;Me++)A[Me]&2&&(A[Me]=1);K>=0&&K<Q&&(y[K]=ei(Ui(y.slice(K,Q+1),(Me,_t)=>A[K+_t]&8?jd(Me,mt):Me)),y.splice(K+1,Q-K),A.splice(K+1,Q-K),N==null||N.splice(K+1,Q-K));const ve=Dae(A,n.readonly,N);return ve===Io?pa:A.length?ay(ve,y):ve;function Pe(Me,_t,Ut){_t&1&&(F=A.length),_t&4&&K<0&&(K=A.length),_t&6&&(Q=A.length),y.push(_t&2?wo(Me,!0):Me),A.push(_t),N&&Ut?N.push(Ut):N=void 0}}function JL(n,a,l=0){const u=n.target,h=B0(n)-l;return a>u.fixedLength?Xrt(n)||qp(it):qp(ys(n).slice(a,h),u.elementFlags.slice(a,h),!1,u.labeledElementDeclarations&&u.labeledElementDeclarations.slice(a,h))}function Fke(n){return ei(Pn(Gue(n.target.fixedLength,a=>Xf(""+a)),Lm(n.target.readonly?fs:Ts)))}function cnt(n,a){const l=ii(n.elementFlags,u=>!(u&a));return l>=0?l:n.elementFlags.length}function p3(n,a){return n.elementFlags.length-va(n.elementFlags,l=>!(l&a))-1}function unt(n){return wo(pi(n.type),!0)}function Mu(n){return n.id}function nb(n,a){return Rv(n,a,Mu,qs)>=0}function Nae(n,a){const l=Rv(n,a,Mu,qs);return l<0?(n.splice(~l,0,a),!0):!1}function dnt(n,a,l){const u=l.flags;if(u&1048576)return Bke(n,a|(mnt(l)?1048576:0),l.types);if(!(u&131072))if(a|=u&205258751,u&465829888&&(a|=33554432),l===Ot&&(a|=8388608),!z&&u&98304)ni(l)&65536||(a|=4194304);else{const h=n.length,y=h&&l.id>n[h-1].id?~h:Rv(n,l,Mu,qs);y<0&&n.splice(~y,0,l)}return a}function Bke(n,a,l){for(const u of l)a=dnt(n,a,u);return a}function fnt(n,a){var l;if(n.length<2)return n;const u=__(n),h=In.get(u);if(h)return h;const y=a&&Dt(n,K=>!!(K.flags&524288)&&!Kf(K)&&toe(gp(K))),A=n.length;let N=A,F=0;for(;N>0;){N--;const K=n[N];if(y||K.flags&469499904){const Q=K.flags&61603840?$t(gs(K),Pe=>vp(or(Pe))):void 0,ve=Q&&Ad(or(Q));for(const Pe of n)if(K!==Pe){if(F===1e5&&F/(A-N)*A>1e6){(l=Ti)==null||l.instant(Ti.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(_t=>_t.id)}),Xe(U,m.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(F++,Q&&Pe.flags&61603840){const Me=hc(Pe,Q.escapedName);if(Me&&vp(Me)&&Ad(Me)!==ve)continue}if(Im(K,Pe,cp)&&(!(ni(cA(K))&1)||!(ni(cA(Pe))&1)||sb(K,Pe))){Cb(n,N);break}}}}return In.set(u,n),n}function _nt(n,a,l){let u=n.length;for(;u>0;){u--;const h=n[u],y=h.flags;(y&402653312&&a&4||y&256&&a&8||y&2048&&a&64||y&8192&&a&4096||l&&y&32768&&a&16384||ab(h)&&nb(n,h.regularType))&&Cb(n,u)}}function pnt(n){const a=ur(n,l=>!!(l.flags&134217728)&&yA(l));if(a.length){let l=n.length;for(;l>0;){l--;const u=n[l];u.flags&128&&Dt(a,h=>Loe(u,h))&&Cb(n,l)}}}function mnt(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function Gke(n,a){for(const l of a)if(l.flags&1048576){const u=l.origin;l.aliasSymbol||u&&!(u.flags&1048576)?y_(n,l):u&&u.flags&1048576&&Gke(n,u.types)}}function Oae(n,a){const l=G2(n);return l.types=a,l}function ei(n,a=1,l,u,h){if(n.length===0)return Et;if(n.length===1)return n[0];let y=[];const A=Bke(y,0,n);if(a!==0){if(A&3)return A&1?A&8388608?Ot:Oe:A&65536||nb(y,ye)?ye:W;if(A&32768&&y.length>=2&&y[0]===He&&y[1]===Ye&&Cb(y,1),(A&402664352||A&16384&&A&32768)&&_nt(y,A,!!(a&2)),A&128&&A&134217728&&pnt(y),a===2&&(y=fnt(y,!!(A&524288)),!y))return Le;if(y.length===0)return A&65536?A&4194304?Sn:Er:A&32768?A&4194304?He:et:Et}if(!h&&A&1048576){const F=[];Gke(F,n);const K=[];for(const ve of y)Dt(F,Pe=>nb(Pe.types,ve))||K.push(ve);if(!l&&F.length===1&&K.length===0)return F[0];if(Vu(F,(ve,Pe)=>ve+Pe.types.length,0)+K.length===y.length){for(const ve of F)Nae(K,ve);h=Oae(1048576,K)}}const N=(A&36323363?0:32768)|(A&2097152?16777216:0);return Pae(y,N,l,u,h)}function hnt(n,a){let l;const u=[];for(const y of n){const A=f_(y);if(!A||A.kind===2||A.kind===3){if(a!==2097152)continue;return}if(l){if(!Mae(l,A))return}else l=A;u.push(A.type)}if(!l)return;const h=lke(u,a);return d3(l.kind,l.parameterName,l.parameterIndex,h)}function Mae(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Pae(n,a,l,u,h){if(n.length===0)return Et;if(n.length===1)return n[0];const A=(h?h.flags&1048576?`|${__(h.types)}`:h.flags&2097152?`&${__(h.types)}`:`#${h.type.id}|${__(n)}`:__(n))+pA(l,u);let N=Ln.get(A);return N||(N=Qh(1048576),N.objectFlags=a|TV(n,98304),N.types=n,N.origin=h,N.aliasSymbol=l,N.aliasTypeArguments=u,n.length===2&&n[0].flags&512&&n[1].flags&512&&(N.flags|=16,N.intrinsicName="boolean"),Ln.set(A,N)),N}function gnt(n){const a=Xr(n);if(!a.resolvedType){const l=W2(n);a.resolvedType=ei(Pt(n.types,pi),1,l,vA(l))}return a.resolvedType}function ynt(n,a,l){const u=l.flags;return u&2097152?Uke(n,a,l.types):(og(l)?a&16777216||(a|=16777216,n.set(l.id.toString(),l)):(u&3?l===Ot&&(a|=8388608):(z||!(u&98304))&&(l===Ye&&(a|=262144,l=He),n.has(l.id.toString())||(l.flags&109472&&a&109472&&(a|=67108864),n.set(l.id.toString(),l))),a|=u&205258751),a)}function Uke(n,a,l){for(const u of l)a=ynt(n,a,Ad(u));return a}function vnt(n,a){let l=n.length;for(;l>0;){l--;const u=n[l];(u.flags&4&&a&402653312||u.flags&8&&a&256||u.flags&64&&a&2048||u.flags&4096&&a&8192||u.flags&16384&&a&32768||og(u)&&a&470302716)&&Cb(n,l)}}function bnt(n,a){for(const l of n)if(!nb(l.types,a)){const u=a.flags&128?de:a.flags&256?mt:a.flags&2048?Jt:a.flags&8192?J:void 0;if(!u||!nb(l.types,u))return!1}return!0}function Ent(n){let a=n.length;const l=ur(n,u=>!!(u.flags&128));for(;a>0;){a--;const u=n[a];if(u.flags&134217728){for(const h of l)if(Tv(h,u)){Cb(n,a);break}else if(yA(u))return!0}}return!1}function Vke(n,a){return Qn(n,l=>!!(l.flags&1048576)&&Dt(l.types,u=>!!(u.flags&a)))}function jke(n,a){for(let l=0;l<n.length;l++)n[l]=gc(n[l],u=>!(u.flags&a))}function Tnt(n){let a;const l=ii(n,A=>!!(ni(A)&32768));if(l<0)return!1;let u=l+1;for(;u<n.length;){const A=n[u];ni(A)&32768?((a||(a=[n[l]])).push(A),Cb(n,u)):u++}if(!a)return!1;const h=[],y=[];for(const A of a)for(const N of A.types)Nae(h,N)&&bnt(a,N)&&Nae(y,N);return n[l]=Pae(y,32768),!0}function Snt(n,a,l){const u=Qh(2097152);return u.objectFlags=TV(n,98304),u.types=n,u.aliasSymbol=a,u.aliasTypeArguments=l,u}function Ro(n,a,l,u){const h=new Map,y=Uke(h,0,n),A=Oo(h.values());if(y&131072)return Fr(A,ut)?ut:Et;if(z&&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&134217728&&y&128&&Ent(A))return Et;if(y&1)return y&8388608?Ot:Oe;if(!z&&y&98304)return y&16777216?Et:y&32768?He:Sn;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)&&(u||vnt(A,y)),y&262144&&(A[A.indexOf(He)]=Ye),A.length===0)return ye;if(A.length===1)return A[0];const N=__(A)+pA(a,l);let F=Zt.get(N);if(!F){if(y&1048576)if(Tnt(A))F=Ro(A,a,l);else if(Vke(A,32768)){const K=Dt(A,Q8)?Ye:He;jke(A,32768),F=ei([Ro(A),K],1,a,l)}else if(Vke(A,65536))jke(A,65536),F=ei([Ro(A),Sn],1,a,l);else{if(!m3(A))return Le;const K=xnt(A),Q=Dt(K,ve=>!!(ve.flags&2097152))&&Fae(K)>Fae(A)?Oae(2097152,A):void 0;F=ei(K,1,a,l,Q)}else F=Snt(A,a,l);Zt.set(N,F)}return F}function Wke(n){return Vu(n,(a,l)=>l.flags&1048576?a*l.types.length:l.flags&131072?0:a,1)}function m3(n){var a;const l=Wke(n);return l>=1e5?((a=Ti)==null||a.instant(Ti.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(u=>u.id),size:l}),Xe(U,m.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function xnt(n){const a=Wke(n),l=[];for(let u=0;u<a;u++){const h=n.slice();let y=u;for(let N=n.length-1;N>=0;N--)if(n[N].flags&1048576){const F=n[N].types,K=F.length;h[N]=F[y%K],y=Math.floor(y/K)}const A=Ro(h);A.flags&131072||l.push(A)}return l}function Hke(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?Hke(n.origin):Fae(n.types)}function Fae(n){return Vu(n,(a,l)=>a+Hke(l),0)}function Ant(n){const a=Xr(n);if(!a.resolvedType){const l=W2(n),u=Pt(n.types,pi),h=u.length===2&&!!(u[0].flags&76)&&u[1]===jl;a.resolvedType=Ro(u,l,vA(l),h)}return a.resolvedType}function zke(n,a){const l=Qh(4194304);return l.type=n,l.stringsOnly=a,l}function Cnt(n){const a=G2(4194304);return a.type=n,a}function qke(n,a){return a?n.resolvedStringIndexType||(n.resolvedStringIndexType=zke(n,!0)):n.resolvedIndexType||(n.resolvedIndexType=zke(n,!1))}function Lnt(n,a,l){const u=hp(n),h=Hp(n),y=mv(n.target||n);if(!y&&!l)return h;const A=[];if(P8(n)){if(G0(h))return qke(n,a);{const K=nd(HL(n));eae(K,8576,a,F)}}else oT(o3(h),F);G0(h)&&oT(h,F);const N=l?gc(ei(A),K=>!(K.flags&5)):ei(A);if(N.flags&1048576&&h.flags&1048576&&__(N.types)===__(h.types))return h;return N;function F(K){const Q=y?Zi(y,q8(n.mapper,u,K)):K;A.push(Q===de?gi:Q)}}function Int(n){const a=hp(n);return l(mv(n)||a);function l(u){return u.flags&202375167?!0:u.flags&16777216?u.root.isDistributive&&u.checkType===a:u.flags&137363456?Qn(u.types,l):u.flags&8388608?l(u.objectType)&&l(u.indexType):u.flags&33554432?l(u.baseType)&&l(u.constraint):u.flags&268435456?l(u.type):!1}}function oy(n){return Ri(n)?Et:We(n)?Xf(ia(n.escapedText)):Ad(Cs(n)?dy(n):ga(n))}function KL(n,a,l){if(l||!(a_(n)&24)){let u=zi(vV(n)).nameType;if(!u){const h=ka(n.valueDeclaration);u=n.escapedName==="default"?Xf("default"):h&&oy(h)||(xR(n)?void 0:Xf(Gl(n)))}if(u&&u.flags&a)return u}return Et}function Jke(n,a){return!!(n.flags&a||n.flags&2097152&&Dt(n.types,l=>Jke(l,a)))}function knt(n,a,l){const u=l&&(ni(n)&7||n.aliasSymbol)?Cnt(n):void 0,h=Pt(gs(n),A=>KL(A,a)),y=Pt(Nu(n),A=>A!==Zu&&Jke(A.keyType,a)?A.keyType===de&&a&8?gi:A.keyType:Et);return ei(ba(h,y),1,void 0,void 0,u)}function wnt(n){const a=frt(n);return yp(a)!==a}function Kke(n){return!!(n.flags&58982400||TA(n)||Kf(n)&&!Int(n)||n.flags&1048576&&Dt(n.types,wnt)||n.flags&2097152&&hl(n,465829888)&&Dt(n.types,og))}function Lm(n,a=je,l){return n=yp(n),Kke(n)?qke(n,a):n.flags&1048576?Ro(Pt(n.types,u=>Lm(u,a,l))):n.flags&2097152?ei(Pt(n.types,u=>Lm(u,a,l))):ni(n)&32?Lnt(n,a,l):n===Ot?Ot:n.flags&2?Et:n.flags&131073?Wi:knt(n,(l?128:402653316)|(a?0:12584),a===je&&!l)}function Xke(n){if(je)return n;const a=qtt();return a?hA(a,[n,de]):de}function Dnt(n){const a=Xke(Lm(n));return a.flags&131072?de:a}function Rnt(n){const a=Xr(n);if(!a.resolvedType)switch(n.operator){case 141:a.resolvedType=Lm(pi(n.type));break;case 156:a.resolvedType=n.type.kind===153?zae(yR(n.parent)):Le;break;case 146:a.resolvedType=pi(n.type);break;default:throw R.assertNever(n.operator)}return a.resolvedType}function Nnt(n){const a=Xr(n);return a.resolvedType||(a.resolvedType=QE([n.head.text,...Pt(n.templateSpans,l=>l.literal.text)],Pt(n.templateSpans,l=>pi(l.type)))),a.resolvedType}function QE(n,a){const l=ii(a,K=>!!(K.flags&1179648));if(l>=0)return m3(a)?Zs(a[l],K=>QE(n,eH(a,l,K))):Le;if(Fr(a,Ot))return Ot;const u=[],h=[];let y=n[0];if(!F(n,a))return de;if(u.length===0)return Xf(y);if(h.push(y),Qn(h,K=>K==="")){if(Qn(u,K=>!!(K.flags&4)))return de;if(u.length===1&&yA(u[0]))return u[0]}const A=`${__(u)}|${Pt(h,K=>K.length).join(",")}|${h.join("")}`;let N=Lt.get(A);return N||Lt.set(A,N=Mnt(h,u)),N;function F(K,Q){const ve=ja(K);for(let Pe=0;Pe<Q.length;Pe++){const Me=Q[Pe],_t=ve?K[Pe+1]:K;if(Me.flags&101248){if(y+=Ont(Me)||"",y+=_t,!ve)return!0}else if(Me.flags&134217728){if(y+=Me.texts[0],!F(Me.texts,Me.types))return!1;if(y+=_t,!ve)return!0}else if(G0(Me)||kV(Me))u.push(Me),h.push(y),y=_t;else if(Me.flags&2097152){if(!F(K[Pe+1],Me.types))return!1}else if(ve)return!1}return!0}}function Ont(n){return n.flags&128?n.value:n.flags&256?""+n.value:n.flags&2048?Yb(n.value):n.flags&98816?n.intrinsicName:void 0}function Mnt(n,a){const l=Qh(134217728);return l.texts=n,l.types=a,l}function j2(n,a){return a.flags&1179648?Zs(a,l=>j2(n,l)):a.flags&128?Xf(Yke(n,a.value)):a.flags&134217728?QE(...Pnt(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||G0(a)?$ke(n,a):kV(a)?$ke(n,QE(["",""],[a])):a}function Yke(n,a){switch(uN.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 Pnt(n,a,l){switch(uN.get(n.escapedName)){case 0:return[a.map(u=>u.toUpperCase()),l.map(u=>j2(n,u))];case 1:return[a.map(u=>u.toLowerCase()),l.map(u=>j2(n,u))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[j2(n,l[0]),...l.slice(1)]:l];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[j2(n,l[0]),...l.slice(1)]:l]}return[a,l]}function $ke(n,a){const l=`${To(n)},${Mu(a)}`;let u=yn.get(l);return u||yn.set(l,u=Fnt(n,a)),u}function Fnt(n,a){const l=Em(268435456,n);return l.type=a,l}function Bnt(n,a,l,u,h){const y=Qh(8388608);return y.objectType=n,y.indexType=a,y.accessFlags=l,y.aliasSymbol=u,y.aliasTypeArguments=h,y}function H8(n){if(Ae)return!1;if(ni(n)&4096)return!0;if(n.flags&1048576)return Qn(n.types,H8);if(n.flags&2097152)return Dt(n.types,H8);if(n.flags&465829888){const a=iae(n);return a!==n&&H8(a)}return!1}function IV(n,a){return ng(n)?Sm(n):a&&bl(a)?Hb(a):void 0}function Bae(n,a){if(a.flags&8208){const l=rr(n.parent,u=>!ul(u))||n.parent;return LS(l)?vg(l)&&We(n)&&a8e(l,n):Qn(a.declarations,u=>!Ya(u)||!!(Ap(u)&268435456))}return!0}function Qke(n,a,l,u,h,y){var A;const N=h&&h.kind===209?h:void 0,F=h&&Ri(h)?void 0:IV(l,h);if(F!==void 0){if(y&256)return lT(a,F)||Oe;const Q=_o(a,F);if(Q){if(y&64&&h&&Q.declarations&&b0(Q)&&Bae(h,Q)){const Pe=(A=N==null?void 0:N.argumentExpression)!=null?A:rx(h)?h.indexType:h;Vg(Pe,Q.declarations,F)}if(N){if(W3(Q,N,fwe(N.expression,a.symbol)),Qwe(N,Q,MT(N))){Xe(N.argumentExpression,m.Cannot_assign_to_0_because_it_is_a_read_only_property,x(Q));return}if(y&8&&(Xr(h).resolvedSymbol=Q),awe(N,Q))return gt}const ve=or(Q);return N&&MT(N)!==1?J0(N,ve):h&&rx(h)&&Q8(ve)?ei([ve,He]):ve}if(hh(a,Go)&&Oh(F)){const ve=+F;if(h&&hh(a,Pe=>!Pe.target.hasRestElement)&&!(y&16)){const Pe=Gae(h);if(Go(a)){if(ve<0)return Xe(Pe,m.A_tuple_type_cannot_be_indexed_with_a_negative_value),He;Xe(Pe,m.Tuple_type_0_of_length_1_has_no_element_at_index_2,Re(a),B0(a),ia(F))}else Xe(Pe,m.Property_0_does_not_exist_on_type_1,ia(F),Re(a))}if(ve>=0)return K(mh(a,mt)),Zs(a,Pe=>{const Me=L3(Pe)||He;return y&1?ei([Me,Ye]):Me})}}if(!(l.flags&98304)&&Vc(l,402665900)){if(a.flags&131073)return a;const Q=u3(a,l)||mh(a,de);if(Q){if(y&2&&Q.keyType!==mt){N&&Xe(N,m.Type_0_cannot_be_used_to_index_type_1,Re(l),Re(n));return}if(h&&Q.keyType===de&&!Vc(l,12)){const ve=Gae(h);return Xe(ve,m.Type_0_cannot_be_used_as_an_index_type,Re(l)),y&1?ei([Q.type,Ye]):Q.type}return K(Q),y&1&&!(a.symbol&&a.symbol.flags&384&&l.symbol&&l.flags&1024&&xd(l.symbol)===a.symbol)?ei([Q.type,Ye]):Q.type}if(l.flags&131072)return Et;if(H8(a))return Oe;if(N&&!wse(a)){if(q0(a)){if(Ae&&l.flags&384)return es.add(Nr(N,m.Property_0_does_not_exist_on_type_1,l.value,Re(a))),He;if(l.flags&12){const ve=Pt(a.properties,Pe=>or(Pe));return ei(Pn(ve,He))}}if(a.symbol===lt&&F!==void 0&&lt.exports.has(F)&&lt.exports.get(F).flags&418)Xe(N,m.Property_0_does_not_exist_on_type_1,ia(F),Re(a));else if(Ae&&!ne.suppressImplicitAnyIndexErrors&&!(y&128))if(F!==void 0&&cwe(F,a)){const ve=Re(a);Xe(N,m.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,F,ve,ve+"["+kc(N.argumentExpression)+"]")}else if(iy(a,mt))Xe(N.argumentExpression,m.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let ve;if(F!==void 0&&(ve=cse(F,a)))ve!==void 0&&Xe(N.argumentExpression,m.Property_0_does_not_exist_on_type_1_Did_you_mean_2,F,Re(a),ve);else{const Pe=Dot(a,N,l);if(Pe!==void 0)Xe(N,m.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Re(a),Pe);else{let Me;if(l.flags&1024)Me=Na(void 0,m.Property_0_does_not_exist_on_type_1,"["+Re(l)+"]",Re(a));else if(l.flags&8192){const _t=Jh(l.symbol,N);Me=Na(void 0,m.Property_0_does_not_exist_on_type_1,"["+_t+"]",Re(a))}else l.flags&128||l.flags&256?Me=Na(void 0,m.Property_0_does_not_exist_on_type_1,l.value,Re(a)):l.flags&12&&(Me=Na(void 0,m.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Re(l),Re(a)));Me=Na(Me,m.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Re(u),Re(a)),es.add(bg(Zn(N),N,Me))}}}return}}if(H8(a))return Oe;if(h){const Q=Gae(h);l.flags&384?Xe(Q,m.Property_0_does_not_exist_on_type_1,""+l.value,Re(a)):l.flags&12?Xe(Q,m.Type_0_has_no_matching_index_signature_for_type_1,Re(a),Re(l)):Xe(Q,m.Type_0_cannot_be_used_as_an_index_type,Re(l))}if(xs(l))return l;return;function K(Q){Q&&Q.isReadonly&&N&&(wh(N)||Qq(N))&&Xe(N,m.Index_signature_in_type_0_only_permits_reading,Re(a))}}function Gae(n){return n.kind===209?n.argumentExpression:n.kind===196?n.indexType:n.kind===164?n.expression:n}function kV(n){return!!(n.flags&77)||yA(n)}function yA(n){return!!(n.flags&134217728)&&Qn(n.types,kV)||!!(n.flags&268435456)&&kV(n.type)}function XL(n){return!!z8(n)}function rb(n){return!!(z8(n)&4194304)}function G0(n){return!!(z8(n)&8388608)}function z8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|Vu(n.types,(a,l)=>a|z8(l),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|z8(n.baseType)|z8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Kf(n)||TA(n)?4194304:0)|(n.flags&465829888&&!yA(n)?8388608:0)}function sy(n,a){return n.flags&8388608?Unt(n,a):n.flags&16777216?Vnt(n,a):n}function Zke(n,a,l){if(n.flags&1048576||n.flags&2097152&&!Kke(n)){const u=Pt(n.types,h=>sy(jd(h,a),l));return n.flags&2097152||l?Ro(u):ei(u)}}function Gnt(n,a,l){if(a.flags&1048576){const u=Pt(a.types,h=>sy(jd(n,h),l));return l?Ro(u):ei(u)}}function Unt(n,a){const l=a?"simplifiedForWriting":"simplifiedForReading";if(n[l])return n[l]===Hl?n:n[l];n[l]=Hl;const u=sy(n.objectType,a),h=sy(n.indexType,a),y=Gnt(u,h,a);if(y)return n[l]=y;if(!(h.flags&465829888)){const A=Zke(u,h,a);if(A)return n[l]=A}if(TA(u)&&h.flags&296){const A=eI(u,h.flags&8?0:u.target.fixedLength,0,a);if(A)return n[l]=A}if(Kf(u)){const A=mv(u);if(!A||Co(A,hp(u)))return n[l]=Zs(wV(u,n.indexType),N=>sy(N,a))}return n[l]=n}function Vnt(n,a){const l=n.checkType,u=n.extendsType,h=U0(n),y=V0(n);if(y.flags&131072&&Ev(h)===Ev(l)){if(l.flags&1||Co(ZE(l),ZE(u)))return sy(h,a);if(e4e(l,u))return Et}else if(h.flags&131072&&Ev(y)===Ev(l)){if(!(l.flags&1)&&Co(ZE(l),ZE(u)))return Et;if(l.flags&1||e4e(l,u))return sy(y,a)}return n}function e4e(n,a){return!!(ei([a3(n,a),Et]).flags&131072)}function wV(n,a){const l=Cd([hp(n)],[a]),u=W0(n.mapper,l);return Zi(rg(n.target||n),u)}function jd(n,a,l=0,u,h,y){return bv(n,a,l,u,h,y)||(u?Le:ye)}function t4e(n,a){return hh(n,l=>{if(l.flags&384){const u=Sm(l);if(Oh(u)){const h=+u;return h>=0&&h<a}}return!1})}function bv(n,a,l=0,u,h,y){if(n===Ot||a===Ot)return Ot;if(A4e(n)&&!(a.flags&98304)&&Vc(a,12)&&(a=de),ne.noUncheckedIndexedAccess&&l&32&&(l|=1),G0(a)||(u&&u.kind!==196?TA(n)&&!t4e(a,n.target.fixedLength):rb(n)&&!(Go(n)&&t4e(a,n.target.fixedLength)))){if(n.flags&3)return n;const N=l&1,F=n.id+","+a.id+","+N+pA(h,y);let K=Or.get(F);return K||Or.set(F,K=Bnt(n,a,N,h,y)),K}const A=zL(n);if(a.flags&1048576&&!(a.flags&16)){const N=[];let F=!1;for(const K of a.types){const Q=Qke(n,A,K,a,u,l|(F?128:0));if(Q)N.push(Q);else if(u)F=!0;else return}return F?void 0:l&4?Ro(N,h,y):ei(N,1,h,y)}return Qke(n,A,a,a,u,l|8|64)}function n4e(n){const a=Xr(n);if(!a.resolvedType){const l=pi(n.objectType),u=pi(n.indexType),h=W2(n);a.resolvedType=jd(l,u,0,n,h,vA(h))}return a.resolvedType}function Uae(n){const a=Xr(n);if(!a.resolvedType){const l=Sf(32,n.symbol);l.declaration=n,l.aliasSymbol=W2(n),l.aliasTypeArguments=vA(l.aliasSymbol),a.resolvedType=l,Hp(l)}return a.resolvedType}function Ev(n){return n.flags&33554432?Ev(n.baseType):n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?jd(Ev(n.objectType),Ev(n.indexType)):n}function jnt(n){const a=Ru(n);return a&&(rb(a)||G0(a))?BV(n):n}function r4e(n){return UC(n)&&ge(n.elements)>0&&!Dt(n.elements,a=>qK(a)||JK(a)||o4(a)&&!!(a.questionToken||a.dotDotDotToken))}function i4e(n,a){return XL(n)||a&&Go(n)&&Dt(ys(n),XL)}function Vae(n,a,l,u){let h,y,A=0;for(;;){if(A===1e3){Xe(U,m.Type_instantiation_is_excessively_deep_and_possibly_infinite),h=Le;break}const F=r4e(n.node.checkType)&&r4e(n.node.extendsType)&&ge(n.node.checkType.elements)===ge(n.node.extendsType.elements),K=Zi(Ev(n.checkType),a),Q=i4e(K,F),ve=Zi(n.extendsType,a);if(K===Ot||ve===Ot)return Ot;let Pe;if(n.inferTypeParameters){const _t=Ui(n.inferTypeParameters,jnt),Ut=_t!==n.inferTypeParameters?Cd(n.inferTypeParameters,_t):void 0,Mn=Z8(_t,void 0,0);if(Ut){const Kn=W0(a,Ut);for(const hn of _t)n.inferTypeParameters.indexOf(hn)===-1&&(hn.mapper=Kn)}Q||sg(Mn.inferences,K,Zi(ve,Ut),1536);const xn=W0(Ut,Mn.mapper);Pe=a?W0(xn,a):xn}const Me=Pe?Zi(n.extendsType,Pe):ve;if(!Q&&!i4e(Me,F)){if(!(Me.flags&3)&&(K.flags&1||!Co(GV(K),GV(Me)))){K.flags&1&&(y||(y=[])).push(Zi(pi(n.node.trueType),Pe||a));const _t=pi(n.node.falseType);if(_t.flags&16777216){const Ut=_t.root;if(Ut.node.parent===n.node&&(!Ut.isDistributive||Ut.checkType===n.checkType)){n=Ut;continue}if(N(_t,a))continue}h=Zi(_t,a);break}if(Me.flags&3||Co(ZE(K),ZE(Me))){const _t=pi(n.node.trueType),Ut=Pe||a;if(N(_t,Ut))continue;h=Zi(_t,Ut);break}}h=Qh(16777216),h.root=n,h.checkType=Zi(n.checkType,a),h.extendsType=Zi(n.extendsType,a),h.mapper=a,h.combinedMapper=Pe,h.aliasSymbol=l||n.aliasSymbol,h.aliasTypeArguments=l?u:ly(n.aliasTypeArguments,a);break}return y?ei(Pn(y,h)):h;function N(F,K){if(F.flags&16777216&&K){const Q=F.root;if(Q.outerTypeParameters){const ve=W0(F.mapper,K),Pe=Pt(Q.outerTypeParameters,Ut=>j0(Ut,ve)),Me=Cd(Q.outerTypeParameters,Pe),_t=Q.isDistributive?j0(Q.checkType,Me):void 0;if(!_t||_t===Q.checkType||!(_t.flags&1179648))return n=Q,a=Me,l=void 0,u=void 0,Q.aliasSymbol&&A++,!0}}return!1}}function U0(n){return n.resolvedTrueType||(n.resolvedTrueType=Zi(pi(n.root.node.trueType),n.mapper))}function V0(n){return n.resolvedFalseType||(n.resolvedFalseType=Zi(pi(n.root.node.falseType),n.mapper))}function Wnt(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?Zi(pi(n.root.node.trueType),n.combinedMapper):U0(n))}function a4e(n){let a;return n.locals&&n.locals.forEach(l=>{l.flags&262144&&(a=Pn(a,Vs(l)))}),a}function Hnt(n){return n.isDistributive&&(v3(n.checkType,n.node.trueType)||v3(n.checkType,n.node.falseType))}function znt(n){const a=Xr(n);if(!a.resolvedType){const l=pi(n.checkType),u=W2(n),h=vA(u),y=jL(n,!0),A=h?y:ur(y,F=>v3(F,n)),N={node:n,checkType:l,extendsType:pi(n.extendsType),isDistributive:!!(l.flags&262144),inferTypeParameters:a4e(n),outerTypeParameters:A,instantiations:void 0,aliasSymbol:u,aliasTypeArguments:h};a.resolvedType=Vae(N,void 0),A&&(N.instantiations=new Map,N.instantiations.set(__(A),a.resolvedType))}return a.resolvedType}function qnt(n){const a=Xr(n);return a.resolvedType||(a.resolvedType=KE(kr(n.typeParameter))),a.resolvedType}function o4e(n){return We(n)?[n]:Pn(o4e(n.left),n.right)}function Jnt(n){var a;const l=Xr(n);if(!l.resolvedType){if(!l1(n))return Xe(n.argument,m.String_literal_expected),l.resolvedSymbol=an,l.resolvedType=Le;const u=n.isTypeOf?111551:n.flags&8388608?900095:788968,h=hu(n,n.argument.literal);if(!h)return l.resolvedSymbol=an,l.resolvedType=Le;const y=!!((a=h.exports)!=null&&a.get("export=")),A=Sd(h,!1);if(kl(n.qualifier))if(A.flags&u)l.resolvedType=s4e(n,l,A,u);else{const N=u===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,N,n.argument.literal.text),l.resolvedSymbol=an,l.resolvedType=Le}else{const N=o4e(n.qualifier);let F=A,K;for(;K=N.shift();){const Q=N.length?1920:u,ve=os(Ql(F)),Pe=n.isTypeOf||_r(n)&&y?_o(or(ve),K.escapedText,!1,!0):void 0,Me=n.isTypeOf?void 0:ef(Tf(ve),K.escapedText,Q),_t=Me!=null?Me:Pe;if(!_t)return Xe(K,m.Namespace_0_has_no_exported_member_1,Jh(F),Ds(K)),l.resolvedType=Le;Xr(K).resolvedSymbol=_t,Xr(K.parent).resolvedSymbol=_t,F=_t}l.resolvedType=s4e(n,l,F,u)}}return l.resolvedType}function s4e(n,a,l,u){const h=Ql(l);return a.resolvedSymbol=h,u===111551?Bwe(or(l),n):xV(n,h)}function l4e(n){const a=Xr(n);if(!a.resolvedType){const l=W2(n);if(pv(n.symbol).size===0&&!l)a.resolvedType=jl;else{let u=Sf(16,n.symbol);u.aliasSymbol=l,u.aliasTypeArguments=vA(l),p4(n)&&n.isArrayType&&(u=Ou(u)),a.resolvedType=u}}return a.resolvedType}function W2(n){let a=n.parent;for(;tx(a)||$T(a)||nx(a)&&a.operator===146;)a=a.parent;return pR(a)?kr(a):void 0}function vA(n){return n?_v(n):void 0}function DV(n){return!!(n.flags&524288)&&!Kf(n)}function jae(n){return ag(n)||!!(n.flags&474058748)}function Wae(n,a){if(!(n.flags&1048576))return n;if(Qn(n.types,jae))return $t(n.types,ag)||pa;const l=$t(n.types,y=>!jae(y));if(!l||$t(n.types,y=>y!==l&&!jae(y)))return n;return h(l);function h(y){const A=uo();for(const F of gs(y))if(!(a_(F)&24)){if(RV(F)){const K=F.flags&65536&&!(F.flags&32768),ve=rs(16777220,F.escapedName,Zie(F)|(a?8:0));ve.links.type=K?He:wo(or(F),!0),ve.declarations=F.declarations,ve.links.nameType=zi(F).nameType,ve.links.syntheticOrigin=F,A.set(F.escapedName,ve)}}const N=Os(y.symbol,A,it,it,Nu(y));return N.objectFlags|=131200,N}}function ib(n,a,l,u,h){if(n.flags&1||a.flags&1)return Oe;if(n.flags&2||a.flags&2)return ye;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=Wae(n,h),n.flags&1048576)return m3([n,a])?Zs(n,K=>ib(K,a,l,u,h)):Le;if(a=Wae(a,h),a.flags&1048576)return m3([n,a])?Zs(a,K=>ib(n,K,l,u,h)):Le;if(a.flags&473960444)return n;if(rb(n)||rb(a)){if(ag(n))return a;if(n.flags&2097152){const K=n.types,Q=K[K.length-1];if(DV(Q)&&DV(a))return Ro(ba(K.slice(0,K.length-1),[ib(Q,a,l,u,h)]))}return Ro([n,a])}const y=uo(),A=new Set,N=n===pa?Nu(a):KIe([n,a]);for(const K of gs(a))a_(K)&24?A.add(K.escapedName):RV(K)&&y.set(K.escapedName,Hae(K,h));for(const K of gs(n))if(!(A.has(K.escapedName)||!RV(K)))if(y.has(K.escapedName)){const Q=y.get(K.escapedName),ve=or(Q);if(Q.flags&16777216){const Pe=ba(K.declarations,Q.declarations),Me=4|K.flags&16777216,_t=rs(Me,K.escapedName);_t.links.type=ei([or(K),moe(ve)],2),_t.links.leftSpread=K,_t.links.rightSpread=Q,_t.declarations=Pe,_t.links.nameType=zi(K).nameType,y.set(K.escapedName,_t)}}else y.set(K.escapedName,Hae(K,h));const F=Os(l,y,it,it,Ui(N,K=>Knt(K,h)));return F.objectFlags|=2228352|u,F}function RV(n){var a;return!Dt(n.declarations,od)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(l=>_i(l.parent))))}function Hae(n,a){const l=n.flags&65536&&!(n.flags&32768);if(!l&&a===Ep(n))return n;const u=4|n.flags&16777216,h=rs(u,n.escapedName,Zie(n)|(a?8:0));return h.links.type=l?He:or(n),h.declarations=n.declarations,h.links.nameType=zi(n).nameType,h.links.syntheticOrigin=n,h}function Knt(n,a){return n.isReadonly!==a?Cm(n.keyType,n.type,a,n.declaration):n}function h3(n,a,l,u){const h=Em(n,l);return h.value=a,h.regularType=u||h,h}function bA(n){if(n.flags&2976){if(!n.freshType){const a=h3(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function Ad(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=Zs(n,Ad)):n}function ab(n){return!!(n.flags&2976)&&n.freshType===n}function Xf(n){let a;return pr.get(n)||(pr.set(n,a=h3(128,n)),a)}function Jp(n){let a;return Ii.get(n)||(Ii.set(n,a=h3(256,n)),a)}function NV(n){let a;const l=Yb(n);return ea.get(l)||(ea.set(l,a=h3(2048,n)),a)}function Xnt(n,a,l){let u;const h=`${a}${typeof n=="string"?"@":"#"}${n}`,y=1024|(typeof n=="string"?128:256);return ta.get(h)||(ta.set(h,u=h3(y,n,l)),u)}function Ynt(n){if(n.literal.kind===104)return Sn;const a=Xr(n);return a.resolvedType||(a.resolvedType=Ad(ga(n.literal))),a.resolvedType}function $nt(n){const a=Em(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${To(a.symbol)}`,a}function zae(n){if(x_e(n)){const a=rP(n)?tf(n.left):tf(n);if(a){const l=zi(a);return l.uniqueESSymbolType||(l.uniqueESSymbolType=$nt(a))}}return J}function Qnt(n){const a=kd(n,!1,!1),l=a&&a.parent;if(l&&(_i(l)||l.kind===261)&&!Xa(a)&&(!Kl(a)||PT(n,a.body)))return ed(kr(l)).thisType;if(l&&Is(l)&&Tr(l.parent)&&wl(l.parent)===6)return ed(tf(l.parent.left).parent).thisType;const u=n.flags&8388608?d1(n):void 0;return u&&Us(u)&&Tr(u.parent)&&wl(u.parent)===3?ed(tf(u.parent.left).parent).thisType:Xp(a)&&PT(n,a.body)?ed(kr(a)).thisType:(Xe(n,m.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Le)}function OV(n){const a=Xr(n);return a.resolvedType||(a.resolvedType=Qnt(n)),a.resolvedType}function c4e(n){return pi(g3(n.type)||n.type)}function g3(n){switch(n.kind){case 193:return g3(n.type);case 186:if(n.elements.length===1&&(n=n.elements[0],n.kind===188||n.kind===199&&n.dotDotDotToken))return g3(n.type);break;case 185:return n.elementType}}function Znt(n){const a=Xr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?c4e(n):wo(pi(n.type),!0,!!n.questionToken))}function pi(n){return Rtt(u4e(n),n)}function u4e(n){switch(n.kind){case 131:case 315:case 316:return Oe;case 157:return ye;case 152:return de;case 148:return mt;case 160:return Jt;case 134:return Ne;case 153:return J;case 114:return wt;case 155:return He;case 104:return Sn;case 144:return Et;case 149:return n.flags&262144&&!Ae?Oe:ai;case 139:return ie;case 194:case 108:return OV(n);case 198:return Ynt(n);case 180:return Aae(n);case 179:return n.assertsModifier?wt:Ne;case 230:return Aae(n);case 183:return Eke(n);case 185:case 186:return ont(n);case 187:return unt(n);case 189:return gnt(n);case 190:return Ant(n);case 317:return Ntt(n);case 319:return wo(pi(n.type));case 199:return Znt(n);case 193:case 318:case 312:return pi(n.type);case 188:return c4e(n);case 321:return Kut(n);case 181:case 182:case 184:case 325:case 320:case 326:return l4e(n);case 195:return Rnt(n);case 196:return n4e(n);case 197:return Uae(n);case 191:return znt(n);case 192:return qnt(n);case 200:return Nnt(n);case 202:return Jnt(n);case 79:case 163:case 208:const a=B_(n);return a?Vs(a):Le;default:return Le}}function MV(n,a,l){if(n&&n.length)for(let u=0;u<n.length;u++){const h=n[u],y=l(h,a);if(h!==y){const A=u===0?[]:n.slice(0,u);for(A.push(y),u++;u<n.length;u++)A.push(l(n[u],a));return A}}return n}function ly(n,a){return MV(n,a,Zi)}function PV(n,a){return MV(n,a,EA)}function d4e(n,a){return MV(n,a,_rt)}function Cd(n,a){return n.length===1?ob(n[0],a?a[0]:Oe):ert(n,a)}function j0(n,a){switch(a.kind){case 0:return n===a.source?a.target:n;case 1:{const u=a.sources,h=a.targets;for(let y=0;y<u.length;y++)if(n===u[y])return h?h[y]:Oe;return n}case 2:{const u=a.sources,h=a.targets;for(let y=0;y<u.length;y++)if(n===u[y])return h[y]();return n}case 3:return a.func(n);case 4:case 5:const l=j0(n,a.mapper1);return l!==n&&a.kind===4?Zi(l,a.mapper2):j0(l,a.mapper2)}}function ob(n,a){return R.attachDebugPrototypeIfDebug({kind:0,source:n,target:a})}function ert(n,a){return R.attachDebugPrototypeIfDebug({kind:1,sources:n,targets:a})}function y3(n,a){return R.attachDebugPrototypeIfDebug({kind:3,func:n,debugInfo:R.isDebugging?a:void 0})}function qae(n,a){return R.attachDebugPrototypeIfDebug({kind:2,sources:n,targets:a})}function FV(n,a,l){return R.attachDebugPrototypeIfDebug({kind:n,mapper1:a,mapper2:l})}function f4e(n){return Cd(n,void 0)}function trt(n,a){const l=n.inferences.slice(a);return Cd(Pt(l,u=>u.typeParameter),Pt(l,()=>ye))}function W0(n,a){return n?FV(4,n,a):a}function nrt(n,a){return n?FV(5,n,a):a}function H2(n,a,l){return l?FV(5,ob(n,a),l):ob(n,a)}function q8(n,a,l){return n?FV(5,n,ob(a,l)):ob(a,l)}function rrt(n){return!n.constraint&&!Eae(n)||n.constraint===Qo?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Gd(n.symbol),n.restrictiveInstantiation.constraint=Qo,n.restrictiveInstantiation)}function BV(n){const a=Gd(n.symbol);return a.target=n,a}function irt(n,a){return d3(n.kind,n.parameterName,n.parameterIndex,Zi(n.type,a))}function EA(n,a,l){let u;if(n.typeParameters&&!l){u=Pt(n.typeParameters,BV),a=W0(Cd(n.typeParameters,u),a);for(const y of u)y.mapper=a}const h=ph(n.declaration,u,n.thisParameter&&Jae(n.thisParameter,a),MV(n.parameters,a,Jae),void 0,void 0,n.minArgumentCount,n.flags&39);return h.target=n,h.mapper=a,h}function Jae(n,a){const l=zi(n);if(l.type&&!rT(l.type))return n;Dl(n)&1&&(n=l.target,a=W0(l.mapper,a));const u=rs(n.flags,n.escapedName,1|Dl(n)&53256);return u.declarations=n.declarations,u.parent=n.parent,u.links.target=n,u.links.mapper=a,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),l.nameType&&(u.links.nameType=l.nameType),u}function art(n,a,l,u){const h=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],y=Xr(h),A=n.objectFlags&4?y.resolvedType:n.objectFlags&64?n.target:n;let N=y.outerTypeParameters;if(!N){let F=jL(h,!0);if(Xp(h)){const Q=oke(h);F=xi(F,Q)}N=F||it;const K=n.objectFlags&8388612?[h]:n.symbol.declarations;N=(A.objectFlags&8388612||A.symbol.flags&8192||A.symbol.flags&2048)&&!A.aliasTypeArguments?ur(N,Q=>Dt(K,ve=>v3(Q,ve))):N,y.outerTypeParameters=N}if(N.length){const F=W0(n.mapper,a),K=Pt(N,_t=>j0(_t,F)),Q=l||n.aliasSymbol,ve=l?u:ly(n.aliasTypeArguments,a),Pe=__(K)+pA(Q,ve);A.instantiations||(A.instantiations=new Map,A.instantiations.set(__(N)+pA(A.aliasSymbol,A.aliasTypeArguments),A));let Me=A.instantiations.get(Pe);if(!Me){const _t=Cd(N,K);Me=A.objectFlags&4?Tae(n.target,n.node,_t,Q,ve):A.objectFlags&32?_4e(A,_t,Q,ve):Yae(A,_t,Q,ve),A.instantiations.set(Pe,Me)}return Me}return n}function ort(n){return!(n.parent.kind===180&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===202&&n.parent.typeArguments&&n===n.parent.qualifier)}function v3(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const u=n.symbol.declarations[0].parent;for(let h=a;h!==u;h=h.parent)if(!h||h.kind===238||h.kind===191&&Pa(h.extendsType,l))return!0;return l(a)}return!0;function l(u){switch(u.kind){case 194:return!!n.isThisType;case 79:return!n.isThisType&&Ih(u)&&ort(u)&&u4e(u)===n;case 183:const h=u.exprName,y=Of(h),A=F_(y),N=n.symbol.declarations[0];let F;if(N.kind===165)F=N.parent;else if(n.isThisType)F=N;else return!0;return A.declarations?Dt(A.declarations,K=>PT(K,F))||Dt(u.typeArguments,l):!0;case 171:case 170:return!u.type&&!!u.body||Dt(u.typeParameters,l)||Dt(u.parameters,l)||!!u.type&&l(u.type)}return!!Pa(u,l)}}function Kae(n){const a=Hp(n);if(a.flags&4194304){const l=Ev(a.type);if(l.flags&262144)return l}}function _4e(n,a,l,u){const h=Kae(n);if(h){const y=Zi(h,a);if(h!==y)return m8e(yp(y),A=>{if(A.flags&61603843&&A!==Ot&&!is(A)){if(!n.declaration.nameType){let N;if(Yf(A)||A.flags&1&&fh(h,4)<0&&(N=Ru(h))&&hh(N,eT))return lrt(A,n,H2(h,A,a));if(TA(A))return srt(A,n,h,a);if(Go(A))return crt(A,n,H2(h,A,a))}return Yae(n,H2(h,A,a))}return A},l,u)}return Zi(Hp(n),a)===Ot?Ot:Yae(n,a,l,u)}function Xae(n,a){return a&1?!0:a&2?!1:n}function srt(n,a,l,u){const h=n.target.elementFlags,y=Pt(ys(n),(N,F)=>{const K=h[F]&8?N:h[F]&4?Ou(N):qp([N],[h[F]]);return _4e(a,H2(l,K,u))}),A=Xae(n.target.readonly,xm(a));return qp(y,Pt(y,N=>8),A)}function lrt(n,a,l){const u=p4e(a,mt,!0,l);return is(u)?Le:Ou(u,Xae(QL(n),xm(a)))}function crt(n,a,l){const u=n.target.elementFlags,h=Pt(ys(n),(F,K)=>p4e(a,Xf(""+K),!!(u[K]&2),l)),y=xm(a),A=y&4?Pt(u,F=>F&1?2:F):y&8?Pt(u,F=>F&2?1:F):u,N=Xae(n.target.readonly,y);return Fr(h,Le)?Le:qp(h,A,N,n.target.labeledElementDeclarations)}function p4e(n,a,l,u){const h=q8(u,hp(n),a),y=Zi(rg(n.target||n),h),A=xm(n);return z&&A&4&&!hl(y,49152)?cy(y,!0):z&&A&8&&l?m_(y,524288):y}function Yae(n,a,l,u){const h=Sf(n.objectFlags|64,n.symbol);if(n.objectFlags&32){h.declaration=n.declaration;const y=hp(n),A=BV(y);h.typeParameter=A,a=W0(ob(y,A),a),A.mapper=a}return n.objectFlags&8388608&&(h.node=n.node),h.target=n,h.mapper=a,h.aliasSymbol=l||n.aliasSymbol,h.aliasTypeArguments=l?u:ly(n.aliasTypeArguments,a),h.objectFlags|=h.aliasTypeArguments?TV(h.aliasTypeArguments):0,h}function $ae(n,a,l,u){const h=n.root;if(h.outerTypeParameters){const y=Pt(h.outerTypeParameters,F=>j0(F,a)),A=__(y)+pA(l,u);let N=h.instantiations.get(A);if(!N){const F=Cd(h.outerTypeParameters,y),K=h.checkType,Q=h.isDistributive?j0(K,F):void 0;N=Q&&K!==Q&&Q.flags&1179648?m8e(yp(Q),ve=>Vae(h,H2(K,ve,F)),l,u):Vae(h,F,l,u),h.instantiations.set(A,N)}return N}return n}function Zi(n,a){return n&&a?m4e(n,a,void 0,void 0):n}function m4e(n,a,l,u){var h;if(!rT(n))return n;if(M===100||I>=5e6)return(h=Ti)==null||h.instant(Ti.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:M,instantiationCount:I}),Xe(U,m.Type_instantiation_is_excessively_deep_and_possibly_infinite),Le;L++,I++,M++;const y=urt(n,a,l,u);return M--,y}function urt(n,a,l,u){const h=n.flags;if(h&262144)return j0(n,a);if(h&524288){const y=n.objectFlags;if(y&52){if(y&4&&!n.node){const A=n.resolvedTypeArguments,N=ly(A,a);return N!==A?Rae(n.target,N):n}return y&1024?drt(n,a):art(n,a,l,u)}return n}if(h&3145728){const y=n.flags&1048576?n.origin:void 0,A=y&&y.flags&3145728?y.types:n.types,N=ly(A,a);if(N===A&&l===n.aliasSymbol)return n;const F=l||n.aliasSymbol,K=l?u:ly(n.aliasTypeArguments,a);return h&2097152||y&&y.flags&2097152?Ro(N,F,K):ei(N,1,F,K)}if(h&4194304)return Lm(Zi(n.type,a));if(h&134217728)return QE(n.texts,ly(n.types,a));if(h&268435456)return j2(n.symbol,Zi(n.type,a));if(h&8388608){const y=l||n.aliasSymbol,A=l?u:ly(n.aliasTypeArguments,a);return jd(Zi(n.objectType,a),Zi(n.indexType,a),n.accessFlags,void 0,y,A)}if(h&16777216)return $ae(n,W0(n.mapper,a),l,u);if(h&33554432){const y=Zi(n.baseType,a),A=Zi(n.constraint,a);return y.flags&8650752&&XL(A)?Sae(y,A):A.flags&3||Co(ZE(y),ZE(A))?y:y.flags&8650752?Sae(y,A):Ro([A,y])}return n}function drt(n,a){const l=Zi(n.mappedType,a);if(!(ni(l)&32))return n;const u=Zi(n.constraintType,a);if(!(u.flags&4194304))return n;const h=q4e(Zi(n.source,a),l,u);return h||n}function frt(n){return n.flags&134479871?n:n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=Zi(n,ls))}function GV(n){return n.flags&134479871?n:n.permissiveInstantiation||(n.permissiveInstantiation=Zi(n,Hi))}function ZE(n){return n.flags&134479871?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=Zi(n,da),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function _rt(n,a){return Cm(n.keyType,Zi(n.type,a),n.isReadonly,n.declaration)}function P_(n){switch(R.assert(n.kind!==171||q_(n)),n.kind){case 215:case 216:case 171:case 259:return h4e(n);case 207:return Dt(n.properties,P_);case 206:return Dt(n.elements,P_);case 224:return P_(n.whenTrue)||P_(n.whenFalse);case 223:return(n.operatorToken.kind===56||n.operatorToken.kind===60)&&(P_(n.left)||P_(n.right));case 299:return P_(n.initializer);case 214:return P_(n.expression);case 289:return Dt(n.properties,P_)||Gh(n.parent)&&Dt(n.parent.parent.children,P_);case 288:{const{initializer:a}=n;return!!a&&P_(a)}case 291:{const{expression:a}=n;return!!a&&P_(a)}}return!1}function h4e(n){return KP(n)||prt(n)}function prt(n){return!n.typeParameters&&!Lp(n)&&!!n.body&&n.body.kind!==238&&P_(n.body)}function UV(n){return(DC(n)||q_(n))&&h4e(n)}function g4e(n){if(n.flags&524288){const a=gp(n);if(a.constructSignatures.length||a.callSignatures.length){const l=Sf(16,n.symbol);return l.members=a.members,l.properties=a.properties,l.callSignatures=it,l.constructSignatures=it,l.indexInfos=it,l}}else if(n.flags&2097152)return Ro(Pt(n.types,g4e));return n}function ig(n,a){return Im(n,a,Fd)}function J8(n,a){return Im(n,a,Fd)?-1:0}function Qae(n,a){return Im(n,a,Md)?-1:0}function mrt(n,a){return Im(n,a,ah)?-1:0}function Tv(n,a){return Im(n,a,ah)}function y4e(n,a){return Im(n,a,cp)}function Co(n,a){return Im(n,a,Md)}function sb(n,a){return n.flags&1048576?Qn(n.types,l=>sb(l,a)):a.flags&1048576?Dt(a.types,l=>sb(n,l)):n.flags&2097152?Dt(n.types,l=>sb(l,a)):n.flags&58982400?sb(td(n)||ye,a):og(a)?!!(n.flags&67633152):a===Qa?!!(n.flags&67633152)&&!og(n):a===_l?!!(n.flags&524288)&&Noe(n):JE(n,cA(a))||Yf(a)&&!QL(a)&&sb(n,fs)}function VV(n,a){return Im(n,a,Pd)}function b3(n,a){return VV(n,a)||VV(a,n)}function _d(n,a,l,u,h,y){return p_(n,a,Md,l,u,h,y)}function Sv(n,a,l,u,h,y){return Zae(n,a,Md,l,u,h,y,void 0)}function Zae(n,a,l,u,h,y,A,N){return Im(n,a,l)?!0:!u||!K8(h,n,a,l,y,A,N)?p_(n,a,l,u,y,A,N):!1}function v4e(n){return!!(n.flags&16777216||n.flags&2097152&&Dt(n.types,v4e))}function K8(n,a,l,u,h,y,A){if(!n||v4e(l))return!1;if(!p_(a,l,u,void 0)&&hrt(n,a,l,u,h,y,A))return!0;switch(n.kind){case 291:case 214:return K8(n.expression,a,l,u,h,y,A);case 223:switch(n.operatorToken.kind){case 63:case 27:return K8(n.right,a,l,u,h,y,A)}break;case 207:return xrt(n,a,l,u,y,A);case 206:return Trt(n,a,l,u,y,A);case 289:return Ert(n,a,l,u,y,A);case 216:return grt(n,a,l,u,y,A)}return!1}function hrt(n,a,l,u,h,y,A){const N=Ja(a,0),F=Ja(a,1);for(const K of[F,N])if(Dt(K,Q=>{const ve=vs(Q);return!(ve.flags&131073)&&p_(ve,l,u,void 0)})){const Q=A||{};_d(a,l,n,h,y,Q);const ve=Q.errors[Q.errors.length-1];return $o(ve,Nr(n,K===F?m.Did_you_mean_to_use_new_with_this_expression:m.Did_you_mean_to_call_this_expression)),!0}return!1}function grt(n,a,l,u,h,y){if(fo(n.body)||Dt(n.parameters,UM))return!1;const A=K2(a);if(!A)return!1;const N=Ja(l,0);if(!ge(N))return!1;const F=n.body,K=vs(A),Q=ei(Pt(N,vs));if(!p_(K,Q,u,void 0)){const ve=F&&K8(F,K,Q,u,void 0,h,y);if(ve)return ve;const Pe=y||{};if(p_(K,Q,u,F,void 0,h,Pe),Pe.errors)return l.symbol&&ge(l.symbol.declarations)&&$o(Pe.errors[Pe.errors.length-1],Nr(l.symbol.declarations[0],m.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Jc(n)&2)&&!hc(K,"then")&&p_(X3(K),Q,u,void 0)&&$o(Pe.errors[Pe.errors.length-1],Nr(n,m.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function b4e(n,a,l){const u=bv(a,l);if(u)return u;if(a.flags&1048576){const h=I4e(n,a);if(h)return bv(h,l)}}function E4e(n,a){B3(n,a,!1);const l=dI(n,1);return aw(),l}function E3(n,a,l,u,h,y){let A=!1;for(const N of n){const{errorNode:F,innerExpression:K,nameType:Q,errorMessage:ve}=N;let Pe=b4e(a,l,Q);if(!Pe||Pe.flags&8388608)continue;let Me=bv(a,Q);if(!Me)continue;const _t=IV(Q,void 0);if(!p_(Me,Pe,u,void 0)){const Ut=K&&K8(K,Me,Pe,u,void 0,h,y);if(A=!0,!Ut){const Mn=y||{},xn=K?E4e(K,Me):Me;if(Je&&WV(xn,Pe)){const Kn=Nr(F,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Re(xn),Re(Pe));es.add(Kn),Mn.errors=[Kn]}else{const Kn=!!(_t&&(_o(l,_t)||an).flags&16777216),hn=!!(_t&&(_o(a,_t)||an).flags&16777216);Pe=tT(Pe,Kn),Me=tT(Me,Kn&&hn),p_(xn,Pe,u,F,ve,h,Mn)&&xn!==Me&&p_(Me,Pe,u,F,ve,h,Mn)}if(Mn.errors){const Kn=Mn.errors[Mn.errors.length-1],hn=ng(Q)?Sm(Q):void 0,Tn=hn!==void 0?_o(l,hn):void 0;let br=!1;if(!Tn){const ln=u3(l,Q);ln&&ln.declaration&&!Zn(ln.declaration).hasNoDefaultLib&&(br=!0,$o(Kn,Nr(ln.declaration,m.The_expected_type_comes_from_this_index_signature)))}if(!br&&(Tn&&ge(Tn.declarations)||l.symbol&&ge(l.symbol.declarations))){const ln=Tn&&ge(Tn.declarations)?Tn.declarations[0]:l.symbol.declarations[0];Zn(ln).hasNoDefaultLib||$o(Kn,Nr(ln,m.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,hn&&!(Q.flags&8192)?ia(hn):Re(Q),Re(l)))}}}}}return A}function yrt(n,a,l,u,h,y){const A=gc(l,XV),N=gc(l,Q=>!XV(Q)),F=N!==Et?Jse(13,0,N,void 0):void 0;let K=!1;for(let Q=n.next();!Q.done;Q=n.next()){const{errorNode:ve,innerExpression:Pe,nameType:Me,errorMessage:_t}=Q.value;let Ut=F;const Mn=A!==Et?b4e(a,A,Me):void 0;if(Mn&&!(Mn.flags&8388608)&&(Ut=F?ei([F,Mn]):Mn),!Ut)continue;let xn=bv(a,Me);if(!xn)continue;const Kn=IV(Me,void 0);if(!p_(xn,Ut,u,void 0)){const hn=Pe&&K8(Pe,xn,Ut,u,void 0,h,y);if(K=!0,!hn){const Tn=y||{},br=Pe?E4e(Pe,xn):xn;if(Je&&WV(br,Ut)){const ln=Nr(ve,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Re(br),Re(Ut));es.add(ln),Tn.errors=[ln]}else{const ln=!!(Kn&&(_o(A,Kn)||an).flags&16777216),Gn=!!(Kn&&(_o(a,Kn)||an).flags&16777216);Ut=tT(Ut,ln),xn=tT(xn,ln&&Gn),p_(br,Ut,u,ve,_t,h,Tn)&&br!==xn&&p_(xn,Ut,u,ve,_t,h,Tn)}}}}return K}function*vrt(n){if(ge(n.properties))for(const a of n.properties)XT(a)||$oe(Pr(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Xf(Pr(a.name))})}function*brt(n,a){if(!ge(n.children))return;let l=0;for(let u=0;u<n.children.length;u++){const h=n.children[u],y=Jp(u-l),A=T4e(h,y,a);A?yield A:l++}}function T4e(n,a,l){switch(n.kind){case 291:return{errorNode:n,innerExpression:n.expression,nameType:a};case 11:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:a,errorMessage:l()};case 281:case 282:case 285:return{errorNode:n,innerExpression:n,nameType:a};default:return R.assertNever(n,"Found invalid jsx child")}}function Ert(n,a,l,u,h,y){let A=E3(vrt(n),a,l,u,h,y),N;if(Gh(n.parent)&&By(n.parent.parent)){const K=n.parent.parent,Q=gj(AA(n)),ve=Q===void 0?"children":ia(Q),Pe=Xf(ve),Me=jd(l,Pe),_t=LR(K.children);if(!ge(_t))return A;const Ut=ge(_t)>1;let Mn,xn;if(Iae(!1)!==Io){const hn=Rke(Oe);Mn=gc(Me,Tn=>Co(Tn,hn)),xn=gc(Me,Tn=>!Co(Tn,hn))}else Mn=gc(Me,XV),xn=gc(Me,hn=>!XV(hn));if(Ut){if(Mn!==Et){const hn=qp(hj(K,0)),Tn=brt(K,F);A=yrt(Tn,hn,Mn,u,h,y)||A}else if(!Im(jd(a,Pe),Me,u)){A=!0;const hn=Xe(K.openingElement.tagName,m.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,ve,Re(Me));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(hn)}}else if(xn!==Et){const hn=_t[0],Tn=T4e(hn,Pe,F);Tn&&(A=E3(function*(){yield Tn}(),a,l,u,h,y)||A)}else if(!Im(jd(a,Pe),Me,u)){A=!0;const hn=Xe(K.openingElement.tagName,m.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,ve,Re(Me));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(hn)}}return A;function F(){if(!N){const K=kc(n.parent.tagName),Q=gj(AA(n)),ve=Q===void 0?"children":ia(Q),Pe=jd(l,Xf(ve)),Me=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;N=so(Li({},Me),{key:"!!ALREADY FORMATTED!!",message:PJ(void 0,Me,K,ve,Re(Pe))})}return N}}function*S4e(n,a){const l=ge(n.elements);if(l)for(let u=0;u<l;u++){if(ZL(a)&&!_o(a,""+u))continue;const h=n.elements[u];if(Fc(h))continue;const y=Jp(u);yield{errorNode:h,innerExpression:h,nameType:y}}}function Trt(n,a,l,u,h,y){if(l.flags&134479868)return!1;if(ZL(a))return E3(S4e(n,l),a,l,u,h,y);B3(n,l,!1);const A=V8e(n,1,!0);return aw(),ZL(A)?E3(S4e(n,l),A,l,u,h,y):!1}function*Srt(n){if(ge(n.properties))for(const a of n.properties){if(dx(a))continue;const l=KL(kr(a),8576);if(!(!l||l.flags&131072))switch(a.kind){case 175:case 174:case 171:case 300:yield{errorNode:a.name,innerExpression:void 0,nameType:l};break;case 299:yield{errorNode:a.name,innerExpression:a.initializer,nameType:l,errorMessage:KD(a.name)?m.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:R.assertNever(a)}}}function xrt(n,a,l,u,h,y){return l.flags&134479868?!1:E3(Srt(n),a,l,u,h,y)}function x4e(n,a,l,u,h){return p_(n,a,Pd,l,u,h)}function Art(n,a,l){return eoe(n,a,l?4:0,!1,void 0,void 0,Qae,void 0)!==0}function jV(n){if(!n.typeParameters&&(!n.thisParameter||xs(J3(n.thisParameter)))&&n.parameters.length===1&&Lu(n)){const a=J3(n.parameters[0]);return!!((Yf(a)?ys(a)[0]:a).flags&131073&&vs(n).flags&3)}return!1}function eoe(n,a,l,u,h,y,A,N){if(n===a||!(l&16&&jV(n))&&jV(a))return-1;if(l&16&&jV(n)&&!jV(a))return 0;const F=sf(a);if(!Dm(a)&&(l&8?Dm(n)||sf(n)>F:wm(n)>F))return 0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Ctt(a),n=ywe(n,a,void 0,A));const Q=sf(n),ve=dw(n),Pe=dw(a);(ve||Pe)&&Zi(ve||Pe,N);const Me=a.declaration?a.declaration.kind:0,_t=!(l&3)&&ce&&Me!==171&&Me!==170&&Me!==173;let Ut=-1;const Mn=eb(n);if(Mn&&Mn!==wt){const hn=eb(a);if(hn){const Tn=!_t&&A(Mn,hn,!1)||A(hn,Mn,u);if(!Tn)return u&&h(m.The_this_types_of_each_signature_are_incompatible),0;Ut&=Tn}}const xn=ve||Pe?Math.min(Q,F):Math.max(Q,F),Kn=ve||Pe?xn-1:-1;for(let hn=0;hn<xn;hn++){const Tn=hn===Kn?cw(n,hn):cT(n,hn),br=hn===Kn?cw(a,hn):cT(a,hn);if(Tn&&br){const ln=l&3?void 0:K2(uy(Tn)),Gn=l&3?void 0:K2(uy(br));let ti=ln&&Gn&&!f_(ln)&&!f_(Gn)&&(Pu(Tn)&50331648)===(Pu(br)&50331648)?eoe(Gn,ln,l&8|(_t?2:1),u,h,y,A,N):!(l&3)&&!_t&&A(Tn,br,!1)||A(br,Tn,u);if(ti&&l&8&&hn>=wm(n)&&hn<wm(a)&&A(Tn,br,!1)&&(ti=0),!ti)return u&&h(m.Types_of_parameters_0_and_1_are_incompatible,ia(cI(n,hn)),ia(cI(a,hn))),0;Ut&=ti}}if(!(l&4)){const hn=gae(a)?Oe:a.declaration&&Xp(a.declaration)?ed(os(a.declaration.symbol)):vs(a);if(hn===wt||hn===Oe)return Ut;const Tn=gae(n)?Oe:n.declaration&&Xp(n.declaration)?ed(os(n.declaration.symbol)):vs(n),br=f_(a);if(br){const ln=f_(n);if(ln)Ut&=Crt(ln,br,u,h,A);else if(C_e(br))return u&&h(m.Signature_0_must_be_a_type_predicate,le(n)),0}else Ut&=l&1&&A(hn,Tn,!1)||A(Tn,hn,u),!Ut&&u&&y&&y(Tn,hn)}return Ut}function Crt(n,a,l,u,h){if(n.kind!==a.kind)return l&&(u(m.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),u(m.Type_predicate_0_is_not_assignable_to_1,su(n),su(a))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==a.parameterIndex)return l&&(u(m.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,a.parameterName),u(m.Type_predicate_0_is_not_assignable_to_1,su(n),su(a))),0;const y=n.type===a.type?-1:n.type&&a.type?h(n.type,a.type,l):0;return y===0&&l&&u(m.Type_predicate_0_is_not_assignable_to_1,su(n),su(a)),y}function Lrt(n,a){const l=V8(n),u=V8(a),h=vs(l),y=vs(u);return y===wt||Im(y,h,Md)||Im(h,y,Md)?Art(l,u,!0):!1}function toe(n){return n!==La&&n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0}function ag(n){return n.flags&524288?!Kf(n)&&toe(gp(n)):n.flags&67108864?!0:n.flags&1048576?Dt(n.types,ag):n.flags&2097152?Qn(n.types,ag):!1}function og(n){return!!(ni(n)&16&&(n.members&&toe(n)||n.symbol&&n.symbol.flags&2048&&pv(n.symbol).size===0))}function Irt(n){if(z&&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&&Dt(a,og)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function YL(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function A4e(n){return n.flags&524288&&!Kf(n)&&gs(n).length===0&&Nu(n).length===1&&!!mh(n,de)||n.flags&3145728&&Qn(n.types,A4e)||!1}function noe(n,a,l){const u=n.flags&8?xd(n):n,h=a.flags&8?xd(a):a;if(u===h)return!0;if(u.escapedName!==h.escapedName||!(u.flags&256)||!(h.flags&256))return!1;const y=To(u)+","+To(h),A=N1.get(y);if(A!==void 0&&!(!(A&4)&&A&2&&l))return!!(A&1);const N=or(h);for(const F of gs(or(u)))if(F.flags&8){const K=_o(N,F.escapedName);if(!K||!(K.flags&8))return l?(l(m.Property_0_is_missing_in_type_1,Gl(F),Re(Vs(h),void 0,64)),N1.set(y,6)):N1.set(y,2),!1}return N1.set(y,1),!0}function X8(n,a,l,u){const h=n.flags,y=a.flags;return y&1||h&131072||n===Ot||y&2&&!(l===cp&&h&1)?!0:y&131072?!1:!!(h&402653316&&y&4||h&128&&h&1024&&y&128&&!(y&1024)&&n.value===a.value||h&296&&y&8||h&256&&h&1024&&y&256&&!(y&1024)&&n.value===a.value||h&2112&&y&64||h&528&&y&16||h&12288&&y&4096||h&32&&y&32&&n.symbol.escapedName===a.symbol.escapedName&&noe(n.symbol,a.symbol,u)||h&1024&&y&1024&&(h&1048576&&y&1048576&&noe(n.symbol,a.symbol,u)||h&2944&&y&2944&&n.value===a.value&&noe(n.symbol,a.symbol,u))||h&32768&&(!z&&!(y&3145728)||y&49152)||h&65536&&(!z&&!(y&3145728)||y&65536)||h&524288&&y&67108864&&!(l===cp&&og(n)&&!(ni(n)&8192))||(l===Md||l===Pd)&&(h&1||h&8&&(y&32||y&256&&y&1024)||h&256&&!(h&1024)&&(y&32||y&256&&y&1024&&n.value===a.value)||Irt(a)))}function Im(n,a,l){if(ab(n)&&(n=n.regularType),ab(a)&&(a=a.regularType),n===a)return!0;if(l!==Fd){if(l===Pd&&!(a.flags&131072)&&X8(a,n,l)||X8(n,a,l))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 u=l.get(soe(n,a,0,l,!1));if(u!==void 0)return!!(u&1)}return n.flags&469499904||a.flags&469499904?p_(n,a,l,void 0):!1}function C4e(n,a){return ni(n)&2048&&$oe(a.escapedName)}function T3(n,a){for(;;){const l=ab(n)?n.regularType:ni(n)&4?n.node?ay(n.target,ys(n)):uoe(n)||n:n.flags&3145728?krt(n,a):n.flags&33554432?a?n.baseType:xae(n):n.flags&25165824?sy(n,a):n;if(l===n)return l;n=l}}function krt(n,a){const l=yp(n);if(l!==n)return l;if(n.flags&2097152&&Dt(n.types,og)){const u=Ui(n.types,h=>T3(h,a));if(u!==n.types)return Ro(u)}return n}function p_(n,a,l,u,h,y,A){var N;let F,K,Q,ve,Pe,Me=0,_t=0,Ut=0,Mn=0,xn=!1,Kn=0,hn,Tn;R.assert(l!==Fd||!u,"no error reporting in identity checking");const br=ca(n,a,3,!!u,h);if(Tn&&ti(),xn){(N=Ti)==null||N.instant(Ti.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:_t,targetDepth:Ut});const rt=Xe(u||U,m.Excessive_stack_depth_comparing_types_0_and_1,Re(n),Re(a));A&&(A.errors||(A.errors=[])).push(rt)}else if(F){if(y){const tn=y();tn&&(Vpe(tn,F),F=tn)}let rt;if(h&&u&&!br&&n.symbol){const tn=zi(n.symbol);if(tn.originatingImport&&!pf(tn.originatingImport)&&p_(or(tn.target),a,l,void 0)){const hr=Nr(tn.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);rt=Pn(rt,hr)}}const St=bg(Zn(u),u,F,rt);K&&$o(St,...K),A&&(A.errors||(A.errors=[])).push(St),(!A||!A.skipLogging)&&es.add(St)}return u&&A&&A.skipLogging&&br===0&&R.assert(!!A.errors,"missed opportunity to interact with error."),br!==0;function ln(rt){F=rt.errorInfo,hn=rt.lastSkippedInfo,Tn=rt.incompatibleStack,Kn=rt.overrideNextErrorInfo,K=rt.relatedInfo}function Gn(){return{errorInfo:F,lastSkippedInfo:hn,incompatibleStack:Tn==null?void 0:Tn.slice(),overrideNextErrorInfo:Kn,relatedInfo:K==null?void 0:K.slice()}}function qn(rt,St,tn,Hn,hr){Kn++,hn=void 0,(Tn||(Tn=[])).push([rt,St,tn,Hn,hr])}function ti(){const rt=Tn||[];Tn=void 0;const St=hn;if(hn=void 0,rt.length===1){oi(...rt[0]),St&&eo(void 0,...St);return}let tn="";const Hn=[];for(;rt.length;){const[hr,...Cn]=rt.pop();switch(hr.code){case m.Types_of_property_0_are_incompatible.code:{tn.indexOf("new ")===0&&(tn=`(${tn})`);const xr=""+Cn[0];tn.length===0?tn=`${xr}`:W_(xr,ns(ne))?tn=`${tn}.${xr}`:xr[0]==="["&&xr[xr.length-1]==="]"?tn=`${tn}${xr}`:tn=`${tn}[${xr}]`;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(tn.length===0){let xr=hr;hr.code===m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?xr=m.Call_signature_return_types_0_and_1_are_incompatible:hr.code===m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(xr=m.Construct_signature_return_types_0_and_1_are_incompatible),Hn.unshift([xr,Cn[0],Cn[1]])}else{const xr=hr.code===m.Construct_signature_return_types_0_and_1_are_incompatible.code||hr.code===m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Wr=hr.code===m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||hr.code===m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";tn=`${xr}${tn}(${Wr})`}break}case m.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Hn.unshift([m.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Cn[0],Cn[1]]);break}case m.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Hn.unshift([m.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Cn[0],Cn[1],Cn[2]]);break}default:return R.fail(`Unhandled Diagnostic: ${hr.code}`)}}tn?oi(tn[tn.length-1]===")"?m.The_types_returned_by_0_are_incompatible_between_these_types:m.The_types_of_0_are_incompatible_between_these_types,tn):Hn.shift();for(const[hr,...Cn]of Hn){const xr=hr.elidedInCompatabilityPyramid;hr.elidedInCompatabilityPyramid=!1,oi(hr,...Cn),hr.elidedInCompatabilityPyramid=xr}St&&eo(void 0,...St)}function oi(rt,St,tn,Hn,hr){R.assert(!!u),Tn&&ti(),!rt.elidedInCompatabilityPyramid&&(F=Na(F,rt,St,tn,Hn,hr))}function ma(rt){R.assert(!!F),K?K.push(rt):K=[rt]}function eo(rt,St,tn){Tn&&ti();const[Hn,hr]=on(St,tn);let Cn=St,xr=Hn;if(Y8(St)&&!roe(tn)&&(Cn=xv(St),R.assert(!Co(Cn,tn),"generalized source shouldn't be assignable"),xr=Cr(Cn)),(tn.flags&8388608&&!(St.flags&8388608)?tn.objectType.flags:tn.flags)&262144&&tn!==Rs&&tn!==yl){const Gi=td(tn);let Ca;Gi&&(Co(Cn,Gi)||(Ca=Co(St,Gi)))?oi(m._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Ca?Hn:xr,hr,Re(Gi)):(F=void 0,oi(m._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,hr,xr))}if(rt)rt===m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Je&&L4e(St,tn).length&&(rt=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(l===Pd)rt=m.Type_0_is_not_comparable_to_type_1;else if(Hn===hr)rt=m.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Je&&L4e(St,tn).length)rt=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(St.flags&128&&tn.flags&1048576){const Gi=Rot(St,tn);if(Gi){oi(m.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,xr,hr,Re(Gi));return}}rt=m.Type_0_is_not_assignable_to_type_1}oi(rt,xr,hr)}function Cc(rt,St){const tn=Ai(rt.symbol)?Re(rt,rt.symbol.valueDeclaration):Re(rt),Hn=Ai(St.symbol)?Re(St,St.symbol.valueDeclaration):Re(St);(pl===rt&&de===St||Qd===rt&&mt===St||ql===rt&&Ne===St||Ike()===rt&&J===St)&&oi(m._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Hn,tn)}function $f(rt,St,tn){return Go(rt)?rt.target.readonly&&JV(St)?(tn&&oi(m.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Re(rt),Re(St)),!1):eT(St):QL(rt)&&JV(St)?(tn&&oi(m.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Re(rt),Re(St)),!1):Go(St)?Yf(rt):!0}function Lf(rt,St,tn){return ca(rt,St,3,tn)}function ca(rt,St,tn=3,Hn=!1,hr,Cn=0){if(rt.flags&524288&&St.flags&134348796)return l===Pd&&!(St.flags&131072)&&X8(St,rt,l)||X8(rt,St,l,Hn?oi:void 0)?-1:(Hn&&Un(rt,St,rt,St,hr),0);const xr=T3(rt,!1);let Wr=T3(St,!0);if(xr===Wr)return-1;if(l===Fd)return xr.flags!==Wr.flags?0:xr.flags&67358815?-1:(cr(xr,Wr),$n(xr,Wr,!1,0,tn));if(xr.flags&262144&&XE(xr)===Wr)return-1;if(xr.flags&470302716&&Wr.flags&1048576){const Gi=Wr.types,Ca=Gi.length===2&&Gi[0].flags&98304?Gi[1]:Gi.length===3&&Gi[0].flags&98304&&Gi[1].flags&98304?Gi[2]:void 0;if(Ca&&!(Ca.flags&98304)&&(Wr=T3(Ca,!0),xr===Wr))return-1}if(l===Pd&&!(Wr.flags&131072)&&X8(Wr,xr,l)||X8(xr,Wr,l,Hn?oi:void 0))return-1;if(xr.flags&469499904||Wr.flags&469499904){if(!(Cn&2)&&q0(xr)&&ni(xr)&8192&&Ga(xr,Wr,Hn))return Hn&&eo(hr,xr,St.aliasSymbol?St:Wr),0;const Ca=(l!==Pd||vp(xr))&&!(Cn&2)&&xr.flags&136970236&&xr!==Qa&&Wr.flags&2621440&&k4e(Wr)&&(gs(xr).length>0||Xj(xr)),Ka=!!(ni(xr)&2048);if(Ca&&!Drt(xr,Wr,Ka)){if(Hn){const no=Re(rt.aliasSymbol?rt:xr),Uo=Re(St.aliasSymbol?St:Wr),No=Ja(xr,0),ws=Ja(xr,1);No.length>0&&ca(vs(No[0]),Wr,1,!1)||ws.length>0&&ca(vs(ws[0]),Wr,1,!1)?oi(m.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,no,Uo):oi(m.Type_0_has_no_properties_in_common_with_type_1,no,Uo)}return 0}cr(xr,Wr);const hi=xr.flags&1048576&&xr.types.length<4&&!(Wr.flags&1048576)||Wr.flags&1048576&&Wr.types.length<4&&!(xr.flags&469499904)?ts(xr,Wr,Hn,Cn):$n(xr,Wr,Hn,Cn,tn);if(hi)return hi}return Hn&&Un(rt,St,xr,Wr,hr),0}function Un(rt,St,tn,Hn,hr){var Cn,xr;const Wr=!!uoe(rt),Gi=!!uoe(St);tn=rt.aliasSymbol||Wr?rt:tn,Hn=St.aliasSymbol||Gi?St:Hn;let Ca=Kn>0;if(Ca&&Kn--,tn.flags&524288&&Hn.flags&524288){const Ka=F;$f(tn,Hn,!0),F!==Ka&&(Ca=!!F)}if(tn.flags&524288&&Hn.flags&134348796)Cc(tn,Hn);else if(tn.symbol&&tn.flags&524288&&Qa===tn)oi(m.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ni(tn)&2048&&Hn.flags&2097152){const Ka=Hn.types,to=db(Pf.IntrinsicAttributes,u),hi=db(Pf.IntrinsicClassAttributes,u);if(!is(to)&&!is(hi)&&(Fr(Ka,to)||Fr(Ka,hi)))return}else F=cae(F,St);if(!hr&&Ca){hn=[tn,Hn];return}if(eo(hr,tn,Hn),tn.flags&262144&&((xr=(Cn=tn.symbol)==null?void 0:Cn.declarations)!=null&&xr[0])&&!XE(tn)){const Ka=BV(tn);if(Ka.constraint=Zi(Hn,ob(tn,Ka)),F8(Ka)){const to=Re(Hn,tn.symbol.declarations[0]);ma(Nr(tn.symbol.declarations[0],m.This_type_parameter_might_need_an_extends_0_constraint,to))}}}function cr(rt,St){if(Ti&&rt.flags&3145728&&St.flags&3145728){const tn=rt,Hn=St;if(tn.objectFlags&Hn.objectFlags&32768)return;const hr=tn.types.length,Cn=Hn.types.length;hr*Cn>1e6&&Ti.instant(Ti.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:rt.id,sourceSize:hr,targetId:St.id,targetSize:Cn,pos:u==null?void 0:u.pos,end:u==null?void 0:u.end})}}function na(rt,St){return ei(Vu(rt,(Hn,hr)=>{var Cn;hr=nd(hr);const xr=hr.flags&3145728?lae(hr,St):Q1(hr,St),Wr=xr&&or(xr)||((Cn=fA(hr,St))==null?void 0:Cn.type)||He;return Pn(Hn,Wr)},void 0)||it)}function Ga(rt,St,tn){var Hn;if(!V3(St)||!Ae&&ni(St)&4096)return!1;const hr=!!(ni(rt)&2048);if((l===Md||l===Pd)&&(rw(Qa,St)||!hr&&ag(St)))return!1;let Cn=St,xr;St.flags&1048576&&(Cn=GRe(rt,St,ca)||Nft(St),xr=Cn.flags&1048576?Cn.types:[Cn]);for(const Wr of gs(rt))if(aa(Wr,rt.symbol)&&!C4e(rt,Wr)){if(!tse(Cn,Wr.escapedName,hr)){if(tn){const Gi=gc(Cn,V3);if(!u)return R.fail();if(tE(u)||sd(u)||sd(u.parent)){Wr.valueDeclaration&&fm(Wr.valueDeclaration)&&Zn(u)===Zn(Wr.valueDeclaration.name)&&(u=Wr.valueDeclaration.name);const Ca=x(Wr),Ka=dwe(Ca,Gi),to=Ka?x(Ka):void 0;to?oi(m.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Ca,Re(Gi),to):oi(m.Property_0_does_not_exist_on_type_1,Ca,Re(Gi))}else{const Ca=((Hn=rt.symbol)==null?void 0:Hn.declarations)&&tu(rt.symbol.declarations);let Ka;if(Wr.valueDeclaration&&rr(Wr.valueDeclaration,to=>to===Ca)&&Zn(Ca)===Zn(u)){const to=Wr.valueDeclaration;R.assertNode(to,Iy),u=to;const hi=to.name;We(hi)&&(Ka=cse(hi,Gi))}Ka!==void 0?oi(m.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,x(Wr),Re(Gi),Ka):oi(m.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,x(Wr),Re(Gi))}}return!0}if(xr&&!ca(or(Wr),na(xr,Wr.escapedName),3,tn))return tn&&qn(m.Types_of_property_0_are_incompatible,x(Wr)),!0}return!1}function aa(rt,St){return rt.valueDeclaration&&St.valueDeclaration&&rt.valueDeclaration.parent===St.valueDeclaration}function ts(rt,St,tn,Hn){if(rt.flags&1048576)return l===Pd?rd(rt,St,tn&&!(rt.flags&134348796),Hn):xe(rt,St,tn&&!(rt.flags&134348796),Hn);if(St.flags&1048576)return vl(I3(rt),St,tn&&!(rt.flags&134348796)&&!(St.flags&134348796));if(St.flags&2097152)return Lo(rt,St,tn,2);if(l===Pd&&St.flags&134348796){const hr=Ui(rt.types,Cn=>Cn.flags&465829888?td(Cn)||ye:Cn);if(hr!==rt.types){if(rt=Ro(hr),rt.flags&131072)return 0;if(!(rt.flags&2097152))return ca(rt,St,1,!1)||ca(St,rt,1,!1)}}return rd(rt,St,!1,1)}function Ms(rt,St){let tn=-1;const Hn=rt.types;for(const hr of Hn){const Cn=vl(hr,St,!1);if(!Cn)return 0;tn&=Cn}return tn}function vl(rt,St,tn){const Hn=St.types;if(St.flags&1048576){if(nb(Hn,rt))return-1;const hr=r8e(St,rt);if(hr){const Cn=ca(rt,hr,2,!1);if(Cn)return Cn}}for(const hr of Hn){const Cn=ca(rt,hr,2,!1);if(Cn)return Cn}if(tn){const hr=I4e(rt,St,ca);hr&&ca(rt,hr,2,!0)}return 0}function Lo(rt,St,tn,Hn){let hr=-1;const Cn=St.types;for(const xr of Cn){const Wr=ca(rt,xr,2,tn,void 0,Hn);if(!Wr)return 0;hr&=Wr}return hr}function rd(rt,St,tn,Hn){const hr=rt.types;if(rt.flags&1048576&&nb(hr,St))return-1;const Cn=hr.length;for(let xr=0;xr<Cn;xr++){const Wr=ca(hr[xr],St,1,tn&&xr===Cn-1,void 0,Hn);if(Wr)return Wr}return 0}function ft(rt,St){return rt.flags&1048576&&St.flags&1048576&&!(rt.types[0].flags&32768)&&St.types[0].flags&32768?nI(St,-32769):St}function xe(rt,St,tn,Hn){let hr=-1;const Cn=rt.types,xr=ft(rt,St);for(let Wr=0;Wr<Cn.length;Wr++){const Gi=Cn[Wr];if(xr.flags&1048576&&Cn.length>=xr.types.length&&Cn.length%xr.types.length===0){const Ka=ca(Gi,xr.types[Wr%xr.types.length],3,!1,void 0,Hn);if(Ka){hr&=Ka;continue}}const Ca=ca(Gi,St,1,tn,void 0,Hn);if(!Ca)return 0;hr&=Ca}return hr}function er(rt=it,St=it,tn=it,Hn,hr){if(rt.length!==St.length&&l===Fd)return 0;const Cn=rt.length<=St.length?rt.length:St.length;let xr=-1;for(let Wr=0;Wr<Cn;Wr++){const Gi=Wr<tn.length?tn[Wr]:1,Ca=Gi&7;if(Ca!==4){const Ka=rt[Wr],to=St[Wr];let hi=-1;if(Gi&8?hi=l===Fd?ca(Ka,to,3,!1):J8(Ka,to):Ca===1?hi=ca(Ka,to,3,Hn,void 0,hr):Ca===2?hi=ca(to,Ka,3,Hn,void 0,hr):Ca===3?(hi=ca(to,Ka,3,!1),hi||(hi=ca(Ka,to,3,Hn,void 0,hr))):(hi=ca(Ka,to,3,Hn,void 0,hr),hi&&(hi&=ca(to,Ka,3,Hn,void 0,hr))),!hi)return 0;xr&=hi}}return xr}function $n(rt,St,tn,Hn,hr){var Cn,xr,Wr;if(xn)return 0;const Gi=soe(rt,St,Hn,l,!1),Ca=l.get(Gi);if(Ca!==void 0&&!(tn&&Ca&2&&!(Ca&4))){if(mi){const No=Ca&24;No&8&&Zi(rt,wn),No&16&&Zi(rt,fa)}return Ca&1?-1:0}if(!Q)Q=[],ve=[],Pe=[];else{const No=Gi.startsWith("*")?soe(rt,St,Hn,l,!0):void 0;for(let ws=0;ws<Me;ws++)if(Gi===Q[ws]||No&&No===Q[ws])return 3;if(_t===100||Ut===100)return xn=!0,0}const Ka=Me;Q[Me]=Gi,Me++;const to=Mn;hr&1&&(ve[_t]=rt,_t++,!(Mn&1)&&A3(rt,ve,_t)&&(Mn|=1)),hr&2&&(Pe[Ut]=St,Ut++,!(Mn&2)&&A3(St,Pe,Ut)&&(Mn|=2));let hi,no=0;mi&&(hi=mi,mi=No=>(no|=No?16:8,hi(No)));let Uo;if(Mn===3?((Cn=Ti)==null||Cn.instant(Ti.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:rt.id,sourceIdStack:ve.map(No=>No.id),targetId:St.id,targetIdStack:Pe.map(No=>No.id),depth:_t,targetDepth:Ut}),Uo=3):((xr=Ti)==null||xr.push(Ti.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:rt.id,targetId:St.id}),Uo=Sr(rt,St,tn,Hn),(Wr=Ti)==null||Wr.pop()),mi&&(mi=hi),hr&1&&_t--,hr&2&&Ut--,Mn=to,Uo){if(Uo===-1||_t===0&&Ut===0){if(Uo===-1||Uo===3)for(let No=Ka;No<Me;No++)l.set(Q[No],1|no);Me=Ka}}else l.set(Gi,(tn?4:0)|2|no),Me=Ka;return Uo}function Sr(rt,St,tn,Hn){const hr=Gn();let Cn=wr(rt,St,tn,Hn,hr);if(l!==Fd){if(!Cn&&(rt.flags&2097152||rt.flags&262144&&St.flags&1048576)){const xr=utt(rt.flags&2097152?rt.types:[rt],!!(St.flags&1048576));xr&&hh(xr,Wr=>Wr!==rt)&&(Cn=ca(xr,St,1,!1,void 0,Hn))}Cn&&!(Hn&2)&&St.flags&2097152&&!rb(St)&&rt.flags&2621440?(Cn&=Qt(rt,St,tn,void 0,!1,0),Cn&&q0(rt)&&ni(rt)&8192&&(Cn&=us(rt,St,!1,tn,0))):Cn&&DV(St)&&!eT(St)&&rt.flags&2097152&&nd(rt).flags&3670016&&!Dt(rt.types,xr=>xr===St||!!(ni(xr)&262144))&&(Cn&=Qt(rt,St,tn,void 0,!0,Hn))}return Cn&&ln(hr),Cn}function wr(rt,St,tn,Hn,hr){let Cn,xr,Wr=!1,Gi=rt.flags;const Ca=St.flags;if(l===Fd){if(Gi&3145728){let hi=Ms(rt,St);return hi&&(hi&=Ms(St,rt)),hi}if(Gi&4194304)return ca(rt.type,St.type,3,!1);if(Gi&8388608&&(Cn=ca(rt.objectType,St.objectType,3,!1))&&(Cn&=ca(rt.indexType,St.indexType,3,!1))||Gi&16777216&&rt.root.isDistributive===St.root.isDistributive&&(Cn=ca(rt.checkType,St.checkType,3,!1))&&(Cn&=ca(rt.extendsType,St.extendsType,3,!1))&&(Cn&=ca(U0(rt),U0(St),3,!1))&&(Cn&=ca(V0(rt),V0(St),3,!1))||Gi&33554432&&(Cn=ca(rt.baseType,St.baseType,3,!1))&&(Cn&=ca(rt.constraint,St.constraint,3,!1)))return Cn;if(!(Gi&524288))return 0}else if(Gi&3145728||Ca&3145728){if(Cn=ts(rt,St,tn,Hn))return Cn;if(!(Gi&465829888||Gi&524288&&Ca&1048576||Gi&2097152&&Ca&467402752))return 0}if(Gi&17301504&&rt.aliasSymbol&&rt.aliasTypeArguments&&rt.aliasSymbol===St.aliasSymbol&&!(HV(rt)||HV(St))){const hi=w4e(rt.aliasSymbol);if(hi===it)return 1;const no=zi(rt.aliasSymbol).typeParameters,Uo=Am(no),No=yv(rt.aliasTypeArguments,no,Uo,_r(rt.aliasSymbol.valueDeclaration)),ws=yv(St.aliasTypeArguments,no,Uo,_r(rt.aliasSymbol.valueDeclaration)),yu=to(No,ws,hi,Hn);if(yu!==void 0)return yu}if(F4e(rt)&&!rt.target.readonly&&(Cn=ca(ys(rt)[0],St,1))||F4e(St)&&(St.target.readonly||JV(td(rt)||rt))&&(Cn=ca(rt,ys(St)[0],2)))return Cn;if(Ca&262144){if(ni(rt)&32&&!rt.declaration.nameType&&ca(Lm(St),Hp(rt),3)&&!(xm(rt)&4)){const hi=rg(rt),no=jd(St,hp(rt));if(Cn=ca(hi,no,3,tn))return Cn}if(l===Pd&&Gi&262144){let hi=Ru(rt);if(hi&&F8(rt))for(;hi&&lg(hi,no=>!!(no.flags&262144));){if(Cn=ca(hi,St,1,!1))return Cn;hi=Ru(hi)}return 0}}else if(Ca&4194304){const hi=St.type;if(Gi&4194304&&(Cn=ca(hi,rt.type,3,!1)))return Cn;if(Go(hi)){if(Cn=ca(rt,Fke(hi),2,tn))return Cn}else{const no=nae(hi);if(no){if(ca(rt,Lm(no,St.stringsOnly),2,tn)===-1)return-1}else if(Kf(hi)){const Uo=mv(hi),No=Hp(hi);let ws;if(Uo&&P8(hi)){const yu=nd(HL(hi)),Tp=[];eae(yu,8576,!1,vh=>void Tp.push(Zi(Uo,q8(hi.mapper,hp(hi),vh)))),ws=ei([...Tp,Uo])}else ws=Uo||No;if(ca(rt,ws,2,tn)===-1)return-1}}}else if(Ca&8388608){if(Gi&8388608){if((Cn=ca(rt.objectType,St.objectType,3,tn))&&(Cn&=ca(rt.indexType,St.indexType,3,tn)),Cn)return Cn;tn&&(xr=F)}if(l===Md||l===Pd){const hi=St.objectType,no=St.indexType,Uo=td(hi)||hi,No=td(no)||no;if(!rb(Uo)&&!G0(No)){const ws=4|(Uo!==hi?2:0),yu=bv(Uo,No,ws);if(yu){if(tn&&xr&&ln(hr),Cn=ca(rt,yu,2,tn,void 0,Hn))return Cn;tn&&xr&&F&&(F=Ka([xr])<=Ka([F])?xr:F)}}}tn&&(xr=void 0)}else if(Kf(St)&&l!==Fd){const hi=!!St.declaration.nameType,no=rg(St),Uo=xm(St);if(!(Uo&8)){if(!hi&&no.flags&8388608&&no.objectType===rt&&no.indexType===hp(St))return-1;if(!Kf(rt)){const No=hi?mv(St):Hp(St),ws=Lm(rt,void 0,!0),yu=Uo&4,Tp=yu?a3(No,ws):void 0;if(yu?!(Tp.flags&131072):ca(No,ws,3)){const vh=rg(St),K0=hp(St),$2=nI(vh,-98305);if(!hi&&$2.flags&8388608&&$2.indexType===K0){if(Cn=ca(rt,$2.objectType,2,tn))return Cn}else{const vI=hi?Tp||No:Tp?Ro([Tp,K0]):K0,Rm=jd(rt,vI);if(Cn=ca(Rm,vh,3,tn))return Cn}}xr=F,ln(hr)}}}else if(Ca&16777216){if(A3(St,Pe,Ut,10))return 3;const hi=St;if(!hi.root.inferTypeParameters&&!Hnt(hi.root)){const no=!Co(GV(hi.checkType),GV(hi.extendsType)),Uo=!no&&Co(ZE(hi.checkType),ZE(hi.extendsType));if((Cn=no?-1:ca(rt,U0(hi),2,!1,void 0,Hn))&&(Cn&=Uo?-1:ca(rt,V0(hi),2,!1,void 0,Hn),Cn))return Cn}}else if(Ca&134217728){if(Gi&134217728){if(l===Pd)return git(rt,St)?0:-1;Zi(rt,fa)}if(Loe(rt,St))return-1}else if(St.flags&268435456&&!(rt.flags&268435456)&&Coe(rt,St))return-1;if(Gi&8650752){if(!(Gi&8388608&&Ca&8388608)){const hi=XE(rt)||ye;if(Cn=ca(hi,St,1,!1,void 0,Hn))return Cn;if(Cn=ca(Jf(hi,rt),St,1,tn&&hi!==ye&&!(Ca&Gi&262144),void 0,Hn))return Cn;if(oae(rt)){const no=XE(rt.indexType);if(no&&(Cn=ca(jd(rt.objectType,no),St,1,tn)))return Cn}}}else if(Gi&4194304){if(Cn=ca(Wi,St,1,tn))return Cn}else if(Gi&134217728&&!(Ca&524288)){if(!(Ca&134217728)){const hi=td(rt);if(hi&&hi!==rt&&(Cn=ca(hi,St,1,tn)))return Cn}}else if(Gi&268435456)if(Ca&268435456){if(rt.symbol!==St.symbol)return 0;if(Cn=ca(rt.type,St.type,3,tn))return Cn}else{const hi=td(rt);if(hi&&(Cn=ca(hi,St,1,tn)))return Cn}else if(Gi&16777216){if(A3(rt,ve,_t,10))return 3;if(Ca&16777216){const no=rt.root.inferTypeParameters;let Uo=rt.extendsType,No;if(no){const ws=Z8(no,void 0,0,Lf);sg(ws.inferences,St.extendsType,Uo,1536),Uo=Zi(Uo,ws.mapper),No=ws.mapper}if(ig(Uo,St.extendsType)&&(ca(rt.checkType,St.checkType,3)||ca(St.checkType,rt.checkType,3))&&((Cn=ca(Zi(U0(rt),No),U0(St),3,tn))&&(Cn&=ca(V0(rt),V0(St),3,tn)),Cn))return Cn}else{const no=F8(rt)?eke(rt):void 0;if(no&&(Cn=ca(no,St,1,tn)))return Cn}const hi=rae(rt);if(hi&&(Cn=ca(hi,St,1,tn)))return Cn}else{if(l!==ah&&l!==cp&&rtt(St)&&ag(rt))return-1;if(Kf(St))return Kf(rt)&&(Cn=Ra(rt,St,tn))?Cn:0;const hi=!!(Gi&134348796);if(l!==Fd)rt=nd(rt),Gi=rt.flags;else if(Kf(rt))return 0;if(ni(rt)&4&&ni(St)&4&&rt.target===St.target&&!Go(rt)&&!(HV(rt)||HV(St))){if(KV(rt))return-1;const no=aoe(rt.target);if(no===it)return 1;const Uo=to(ys(rt),ys(St),no,Hn);if(Uo!==void 0)return Uo}else{if(QL(St)?eT(rt):Yf(St)&&Go(rt)&&!rt.target.readonly)return l!==Fd?ca(iy(rt,mt)||Oe,iy(St,mt)||Oe,3,tn):0;if((l===ah||l===cp)&&ag(St)&&ni(St)&8192&&!ag(rt))return 0}if(Gi&2621440&&Ca&524288){const no=tn&&F===hr.errorInfo&&!hi;if(Cn=Qt(rt,St,no,void 0,!1,Hn),Cn&&(Cn&=tr(rt,St,0,no,Hn),Cn&&(Cn&=tr(rt,St,1,no,Hn),Cn&&(Cn&=us(rt,St,hi,no,Hn)))),Wr&&Cn)F=xr||F||hr.errorInfo;else if(Cn)return Cn}if(Gi&2621440&&Ca&1048576){const no=nI(St,36175872);if(no.flags&1048576){const Uo=Di(rt,no);if(Uo)return Uo}}}return 0;function Ka(hi){return hi?Vu(hi,(no,Uo)=>no+1+Ka(Uo.next),0):0}function to(hi,no,Uo,No){if(Cn=er(hi,no,Uo,tn,No))return Cn;if(Dt(Uo,yu=>!!(yu&24))){xr=void 0,ln(hr);return}const ws=no&&Rrt(no,Uo);if(Wr=!ws,Uo!==it&&!ws){if(Wr&&!(tn&&Dt(Uo,yu=>(yu&7)===0)))return 0;xr=F,ln(hr)}}}function Ra(rt,St,tn){if(l===Pd||(l===Fd?xm(rt)===xm(St):tae(rt)<=tae(St))){let hr;const Cn=Hp(St),xr=Zi(Hp(rt),tae(rt)<0?wn:fa);if(hr=ca(Cn,xr,3,tn)){const Wr=Cd([hp(rt)],[hp(St)]);if(Zi(mv(rt),Wr)===Zi(mv(St),Wr))return hr&ca(Zi(rg(rt),Wr),rg(St),3,tn)}}return 0}function Di(rt,St){var tn;const Hn=gs(rt),hr=n8e(Hn,St);if(!hr)return 0;let Cn=1;for(const to of hr)if(Cn*=zit(M0(to)),Cn>25)return(tn=Ti)==null||tn.instant(Ti.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:rt.id,targetId:St.id,numCombinations:Cn}),0;const xr=new Array(hr.length),Wr=new Set;for(let to=0;to<hr.length;to++){const hi=hr[to],no=M0(hi);xr[to]=no.flags&1048576?no.types:[no],Wr.add(hi.escapedName)}const Gi=nde(xr),Ca=[];for(const to of Gi){let hi=!1;e:for(const no of St.types){for(let Uo=0;Uo<hr.length;Uo++){const No=hr[Uo],ws=_o(no,No.escapedName);if(!ws)continue e;if(No===ws)continue;if(!Gt(rt,St,No,ws,Tp=>to[Uo],!1,0,z||l===Pd))continue e}y_(Ca,no,r1),hi=!0}if(!hi)return 0}let Ka=-1;for(const to of Ca)if(Ka&=Qt(rt,to,!1,Wr,!1,0),Ka&&(Ka&=tr(rt,to,0,!1,0),Ka&&(Ka&=tr(rt,to,1,!1,0),Ka&&!(Go(rt)&&Go(to))&&(Ka&=us(rt,to,!1,!1,0)))),!Ka)return Ka;return Ka}function Lr(rt,St){if(!St||rt.length===0)return rt;let tn;for(let Hn=0;Hn<rt.length;Hn++)St.has(rt[Hn].escapedName)?tn||(tn=rt.slice(0,Hn)):tn&&tn.push(rt[Hn]);return tn||rt}function vt(rt,St,tn,Hn,hr){const Cn=z&&!!(Dl(St)&48),xr=wo(M0(St),!1,Cn),Wr=tn(rt);return ca(Wr,xr,3,Hn,void 0,hr)}function Gt(rt,St,tn,Hn,hr,Cn,xr,Wr){const Gi=a_(tn),Ca=a_(Hn);if(Gi&8||Ca&8){if(tn.valueDeclaration!==Hn.valueDeclaration)return Cn&&(Gi&8&&Ca&8?oi(m.Types_have_separate_declarations_of_a_private_property_0,x(Hn)):oi(m.Property_0_is_private_in_type_1_but_not_in_type_2,x(Hn),Re(Gi&8?rt:St),Re(Gi&8?St:rt))),0}else if(Ca&16){if(!Frt(tn,Hn))return Cn&&oi(m.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,x(Hn),Re(z2(tn)||rt),Re(z2(Hn)||St)),0}else if(Gi&16)return Cn&&oi(m.Property_0_is_protected_in_type_1_but_public_in_type_2,x(Hn),Re(rt),Re(St)),0;if(l===cp&&Ep(tn)&&!Ep(Hn))return 0;const Ka=vt(tn,Hn,hr,Cn,xr);return Ka?!Wr&&tn.flags&16777216&&Hn.flags&106500&&!(Hn.flags&16777216)?(Cn&&oi(m.Property_0_is_optional_in_type_1_but_required_in_type_2,x(Hn),Re(rt),Re(St)),0):Ka:(Cn&&qn(m.Types_of_property_0_are_incompatible,x(Hn)),0)}function en(rt,St,tn,Hn){let hr=!1;if(tn.valueDeclaration&&Su(tn.valueDeclaration)&&Ri(tn.valueDeclaration.name)&&rt.symbol&&rt.symbol.flags&32){const xr=tn.valueDeclaration.name.escapedText,Wr=SR(rt.symbol,xr);if(Wr&&_o(rt,Wr)){const Gi=O.getDeclarationName(rt.symbol.valueDeclaration),Ca=O.getDeclarationName(St.symbol.valueDeclaration);oi(m.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,u_(xr),u_(Gi.escapedText===""?cN:Gi),u_(Ca.escapedText===""?cN:Ca));return}}const Cn=Oo(Soe(rt,St,Hn,!1));if((!h||h.code!==m.Class_0_incorrectly_implements_interface_1.code&&h.code!==m.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(hr=!0),Cn.length===1){const xr=x(tn,void 0,0,20);oi(m.Property_0_is_missing_in_type_1_but_required_in_type_2,xr,...on(rt,St)),ge(tn.declarations)&&ma(Nr(tn.declarations[0],m._0_is_declared_here,xr)),hr&&F&&Kn++}else $f(rt,St,!1)&&(Cn.length>5?oi(m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Re(rt),Re(St),Pt(Cn.slice(0,4),xr=>x(xr)).join(", "),Cn.length-4):oi(m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Re(rt),Re(St),Pt(Cn,xr=>x(xr)).join(", ")),hr&&F&&Kn++)}function Qt(rt,St,tn,Hn,hr,Cn){if(l===Fd)return kn(rt,St,Hn);let xr=-1;if(Go(St)){if(eT(rt)){if(!St.target.readonly&&(QL(rt)||Go(rt)&&rt.target.readonly))return 0;const to=B0(rt),hi=B0(St),no=Go(rt)?rt.target.combinedFlags&4:4,Uo=St.target.combinedFlags&4,No=Go(rt)?rt.target.minLength:0,ws=St.target.minLength;if(!no&&to<ws)return tn&&oi(m.Source_has_0_element_s_but_target_requires_1,to,ws),0;if(!Uo&&hi<No)return tn&&oi(m.Source_has_0_element_s_but_target_allows_only_1,No,hi),0;if(!Uo&&(no||hi<to))return tn&&(No<ws?oi(m.Target_requires_0_element_s_but_source_may_have_fewer,ws):oi(m.Target_allows_only_0_element_s_but_source_may_have_more,hi)),0;const yu=ys(rt),Tp=ys(St),vh=cnt(St.target,11),K0=p3(St.target,11),$2=St.target.hasRestElement;let vI=!!Hn;for(let Rm=0;Rm<to;Rm++){const RA=Go(rt)?rt.target.elementFlags[Rm]:4,NA=to-1-Rm,fT=$2&&Rm>=vh?hi-1-Math.min(NA,K0):Rm,Wd=St.target.elementFlags[fT];if(Wd&8&&!(RA&8))return tn&&oi(m.Source_provides_no_match_for_variadic_element_at_position_0_in_target,fT),0;if(RA&8&&!(Wd&12))return tn&&oi(m.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Rm,fT),0;if(Wd&1&&!(RA&1))return tn&&oi(m.Source_provides_no_match_for_required_element_at_position_0_in_target,fT),0;if(vI&&((RA&12||Wd&12)&&(vI=!1),vI&&(Hn!=null&&Hn.has(""+Rm))))continue;const Rt=tT(yu[Rm],!!(RA&Wd&2)),Ar=Tp[fT],Si=RA&8&&Wd&4?Ou(Ar):tT(Ar,!!(Wd&2)),ci=ca(Rt,Si,3,tn,void 0,Cn);if(!ci)return tn&&(hi>1||to>1)&&($2&&Rm>=vh&&NA>=K0&&vh!==to-K0-1?qn(m.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,vh,to-K0-1,fT):qn(m.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Rm,fT)),0;xr&=ci}return xr}if(St.target.combinedFlags&12)return 0}const Wr=(l===ah||l===cp)&&!q0(rt)&&!KV(rt)&&!Go(rt),Gi=xoe(rt,St,Wr,!1);if(Gi)return tn&&Pi(rt,St)&&en(rt,St,Gi,Wr),0;if(q0(St)){for(const to of Lr(gs(rt),Hn))if(!Q1(St,to.escapedName)&&!(or(to).flags&32768))return tn&&oi(m.Property_0_does_not_exist_on_type_1,x(to),Re(St)),0}const Ca=gs(St),Ka=Go(rt)&&Go(St);for(const to of Lr(Ca,Hn)){const hi=to.escapedName;if(!(to.flags&4194304)&&(!Ka||Oh(hi)||hi==="length")&&(!hr||to.flags&16777216)){const no=_o(rt,hi);if(no&&no!==to){const Uo=Gt(rt,St,no,to,M0,tn,Cn,l===Pd);if(!Uo)return 0;xr&=Uo}}}return xr}function kn(rt,St,tn){if(!(rt.flags&524288&&St.flags&524288))return 0;const Hn=Lr(hv(rt),tn),hr=Lr(hv(St),tn);if(Hn.length!==hr.length)return 0;let Cn=-1;for(const xr of Hn){const Wr=Q1(St,xr.escapedName);if(!Wr)return 0;const Gi=loe(xr,Wr,ca);if(!Gi)return 0;Cn&=Gi}return Cn}function tr(rt,St,tn,Hn,hr){var Cn,xr;if(l===Fd)return Vr(rt,St,tn);if(St===La||rt===La)return-1;const Wr=rt.symbol&&Xp(rt.symbol.valueDeclaration),Gi=St.symbol&&Xp(St.symbol.valueDeclaration),Ca=Ja(rt,Wr&&tn===1?0:tn),Ka=Ja(St,Gi&&tn===1?0:tn);if(tn===1&&Ca.length&&Ka.length){const No=!!(Ca[0].flags&4),ws=!!(Ka[0].flags&4);if(No&&!ws)return Hn&&oi(m.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!gu(Ca[0],Ka[0],Hn))return 0}let to=-1;const hi=tn===1?dn:Yi,no=ni(rt),Uo=ni(St);if(no&64&&Uo&64&&rt.symbol===St.symbol||no&4&&Uo&4&&rt.target===St.target)for(let No=0;No<Ka.length;No++){const ws=gr(Ca[No],Ka[No],!0,Hn,hr,hi(Ca[No],Ka[No]));if(!ws)return 0;to&=ws}else if(Ca.length===1&&Ka.length===1){const No=l===Pd||!!ne.noStrictGenericChecks,ws=ds(Ca),yu=ds(Ka);if(to=gr(ws,yu,No,Hn,hr,hi(ws,yu)),!to&&Hn&&tn===1&&no&Uo&&(((Cn=yu.declaration)==null?void 0:Cn.kind)===173||((xr=ws.declaration)==null?void 0:xr.kind)===173)){const Tp=vh=>le(vh,void 0,262144,tn);return oi(m.Type_0_is_not_assignable_to_type_1,Tp(ws),Tp(yu)),oi(m.Types_of_construct_signatures_are_incompatible),to}}else e:for(const No of Ka){const ws=Gn();let yu=Hn;for(const Tp of Ca){const vh=gr(Tp,No,!0,yu,hr,hi(Tp,No));if(vh){to&=vh,ln(ws);continue e}yu=!1}return yu&&oi(m.Type_0_provides_no_match_for_the_signature_1,Re(rt),le(No,void 0,void 0,tn)),0}return to}function Pi(rt,St){const tn=c3(rt,0),Hn=c3(rt,1),hr=hv(rt);return(tn.length||Hn.length)&&!hr.length?!!(Ja(St,0).length&&tn.length||Ja(St,1).length&&Hn.length):!0}function Yi(rt,St){return rt.parameters.length===0&&St.parameters.length===0?(tn,Hn)=>qn(m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Re(tn),Re(Hn)):(tn,Hn)=>qn(m.Call_signature_return_types_0_and_1_are_incompatible,Re(tn),Re(Hn))}function dn(rt,St){return rt.parameters.length===0&&St.parameters.length===0?(tn,Hn)=>qn(m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Re(tn),Re(Hn)):(tn,Hn)=>qn(m.Construct_signature_return_types_0_and_1_are_incompatible,Re(tn),Re(Hn))}function gr(rt,St,tn,Hn,hr,Cn){const xr=l===ah?16:l===cp?24:0;return eoe(tn?V8(rt):rt,tn?V8(St):St,xr,Hn,oi,Cn,Wr,fa);function Wr(Gi,Ca,Ka){return ca(Gi,Ca,3,Ka,void 0,hr)}}function Vr(rt,St,tn){const Hn=Ja(rt,tn),hr=Ja(St,tn);if(Hn.length!==hr.length)return 0;let Cn=-1;for(let xr=0;xr<Hn.length;xr++){const Wr=C3(Hn[xr],hr[xr],!1,!1,!1,ca);if(!Wr)return 0;Cn&=Wr}return Cn}function Kr(rt,St,tn,Hn){let hr=-1;const Cn=St.keyType,xr=rt.flags&2097152?s3(rt):hv(rt);for(const Wr of xr)if(!C4e(rt,Wr)&&dA(KL(Wr,8576),Cn)){const Gi=M0(Wr),Ca=Je||Gi.flags&32768||Cn===mt||!(Wr.flags&16777216)?Gi:m_(Gi,524288),Ka=ca(Ca,St.type,3,tn,void 0,Hn);if(!Ka)return tn&&oi(m.Property_0_is_incompatible_with_index_signature,x(Wr)),0;hr&=Ka}for(const Wr of Nu(rt))if(dA(Wr.keyType,Cn)){const Gi=Ji(Wr,St,tn,Hn);if(!Gi)return 0;hr&=Gi}return hr}function Ji(rt,St,tn,Hn){const hr=ca(rt.type,St.type,3,tn,void 0,Hn);return!hr&&tn&&(rt.keyType===St.keyType?oi(m._0_index_signatures_are_incompatible,Re(rt.keyType)):oi(m._0_and_1_index_signatures_are_incompatible,Re(rt.keyType),Re(St.keyType))),hr}function us(rt,St,tn,Hn,hr){if(l===Fd)return Ps(rt,St);const Cn=Nu(St),xr=Dt(Cn,Gi=>Gi.keyType===de);let Wr=-1;for(const Gi of Cn){const Ca=!tn&&xr&&Gi.type.flags&1?-1:Kf(rt)&&xr?ca(rg(rt),Gi.type,3,Hn):js(rt,Gi,Hn,hr);if(!Ca)return 0;Wr&=Ca}return Wr}function js(rt,St,tn,Hn){const hr=u3(rt,St.keyType);return hr?Ji(hr,St,tn,Hn):!(Hn&1)&&(l!==cp||ni(rt)&8192)&&QV(rt)?Kr(rt,St,tn,Hn):(tn&&oi(m.Index_signature_for_type_0_is_missing_in_type_1,Re(St.keyType),Re(rt)),0)}function Ps(rt,St){const tn=Nu(rt),Hn=Nu(St);if(tn.length!==Hn.length)return 0;for(const hr of Hn){const Cn=mh(rt,hr.keyType);if(!(Cn&&ca(Cn.type,hr.type,3)&&Cn.isReadonly===hr.isReadonly))return 0}return-1}function gu(rt,St,tn){if(!rt.declaration||!St.declaration)return!0;const Hn=US(rt.declaration,24),hr=US(St.declaration,24);return hr===8||hr===16&&Hn!==8||hr!==16&&!Hn?!0:(tn&&oi(m.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,xf(Hn),xf(hr)),!1)}}function roe(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!Ie(n.types,roe);if(n.flags&465829888){const a=XE(n);if(a&&a!==n)return roe(a)}return vp(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function L4e(n,a){return Go(n)&&Go(a)?it:gs(a).filter(l=>WV(hc(n,l.escapedName),or(l)))}function WV(n,a){return!!n&&!!a&&hl(n,32768)&&!!Q8(a)}function wrt(n){return gs(n).filter(a=>Q8(or(a)))}function I4e(n,a,l=Qae){return GRe(n,a,l,!0)||kft(n,a)||wft(n,a)||Dft(n,a)||Rft(n,a)}function ioe(n,a,l,u,h){const y=n.types.map(F=>{});for(const[F,K]of a){const Q=sae(n,K);if(h&&Q&&Dl(Q)&16)continue;let ve=0;for(const Pe of n.types){const Me=hc(Pe,K);Me&&l(F(),Me)?y[ve]=y[ve]===void 0?!0:y[ve]:y[ve]=!1,ve++}}const A=y.indexOf(!0);if(A===-1)return u;let N=y.indexOf(!0,A+1);for(;N!==-1;){if(!ig(n.types[A],n.types[N]))return u;N=y.indexOf(!0,N+1)}return n.types[A]}function k4e(n){if(n.flags&524288){const a=gp(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Qn(a.properties,l=>!!(l.flags&16777216))}return n.flags&2097152?Qn(n.types,k4e):!1}function Drt(n,a,l){for(const u of gs(n))if(tse(a,u.escapedName,l))return!0;return!1}function aoe(n){return n===Ts||n===fs||n.objectFlags&8?X:D4e(n.symbol,n.typeParameters)}function w4e(n){return D4e(n,zi(n).typeParameters)}function D4e(n,a=it){var l,u;const h=zi(n);if(!h.variances){(l=Ti)==null||l.push(Ti.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:Mu(Vs(n))}),h.variances=it;const y=[];for(const A of a){const N=ooe(A);let F=N&65536?N&32768?0:1:N&32768?2:void 0;if(F===void 0){let K=!1,Q=!1;const ve=mi;mi=_t=>_t?Q=!0:K=!0;const Pe=S3(n,A,$d),Me=S3(n,A,lc);F=(Co(Me,Pe)?1:0)|(Co(Pe,Me)?2:0),F===3&&Co(S3(n,A,Zc),Pe)&&(F=4),mi=ve,(K||Q)&&(K&&(F|=8),Q&&(F|=16))}y.push(F)}h.variances=y,(u=Ti)==null||u.pop({variances:y.map(R.formatVariance)})}return h.variances}function S3(n,a,l){const u=ob(a,l),h=Vs(n);if(is(h))return h;const y=n.flags&524288?hA(n,ly(zi(n).typeParameters,u)):ay(h,ly(h.typeParameters,u));return Rn.add(Mu(y)),y}function HV(n){return Rn.has(Mu(n))}function ooe(n){var a;return Vu((a=n.symbol)==null?void 0:a.declarations,(l,u)=>l|zu(u),0)&100352}function Rrt(n,a){for(let l=0;l<a.length;l++)if((a[l]&7)===1&&n[l].flags&16384)return!0;return!1}function Nrt(n){return n.flags&262144&&!Ru(n)}function Ort(n){return!!(ni(n)&4)&&!n.node}function zV(n){return Ort(n)&&Dt(ys(n),a=>!!(a.flags&262144)||zV(a))}function Mrt(n,a,l,u){const h=[];let y="";const A=F(n,0),N=F(a,0);return`${y}${A},${N}${l}`;function F(K,Q=0){let ve=""+K.target.id;for(const Pe of ys(K)){if(Pe.flags&262144){if(u||Nrt(Pe)){let Me=h.indexOf(Pe);Me<0&&(Me=h.length,h.push(Pe)),ve+="="+Me;continue}y="*"}else if(Q<4&&zV(Pe)){ve+="<"+F(Pe,Q+1)+">";continue}ve+="-"+Pe.id}return ve}}function soe(n,a,l,u,h){if(u===Fd&&n.id>a.id){const A=n;n=a,a=A}const y=l?":"+l:"";return zV(n)&&zV(a)?Mrt(n,a,y,h):`${n.id},${a.id}${y}`}function x3(n,a){if(Dl(n)&6){for(const l of n.links.containingType.types){const u=_o(l,n.escapedName),h=u&&x3(u,a);if(h)return h}return}return a(n)}function z2(n){return n.parent&&n.parent.flags&32?Vs(xd(n)):void 0}function qV(n){const a=z2(n),l=a&&Bo(a)[0];return l&&hc(l,n.escapedName)}function Prt(n,a){return x3(n,l=>{const u=z2(l);return u?JE(u,a):!1})}function Frt(n,a){return!x3(a,l=>a_(l)&16?!Prt(n,z2(l)):!1)}function R4e(n,a,l){return x3(a,u=>a_(u,l)&16?!JE(n,z2(u)):!1)?void 0:n}function A3(n,a,l,u=3){if(l>=u){if(n.flags&2097152)return Dt(n.types,N=>A3(N,a,l,u));const h=$L(n);let y=0,A=0;for(let N=0;N<l;N++){const F=a[N];if(F.flags&2097152?Dt(F.types,K=>$L(K)===h):$L(F)===h){if(F.id>=A&&(y++,y>=u))return!0;A=F.id}}}return!1}function $L(n){if(n.flags&524288&&!Ioe(n)){if(ni(n)&&n.node)return n.node;if(n.symbol&&!(ni(n)&16&&n.symbol.flags&32))return n.symbol;if(Go(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 Brt(n,a){return loe(n,a,J8)!==0}function loe(n,a,l){if(n===a)return-1;const u=a_(n)&24,h=a_(a)&24;if(u!==h)return 0;if(u){if(wA(n)!==wA(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return Ep(n)!==Ep(a)?0:l(or(n),or(a))}function Grt(n,a,l){const u=sf(n),h=sf(a),y=wm(n),A=wm(a),N=Dm(n),F=Dm(a);return!!(u===h&&y===A&&N===F||l&&y<=A)}function C3(n,a,l,u,h,y){if(n===a)return-1;if(!Grt(n,a,l)||ge(n.typeParameters)!==ge(a.typeParameters))return 0;if(a.typeParameters){const F=Cd(n.typeParameters,a.typeParameters);for(let K=0;K<a.typeParameters.length;K++){const Q=n.typeParameters[K],ve=a.typeParameters[K];if(!(Q===ve||y(Zi(qL(Q),F)||ye,qL(ve)||ye)&&y(Zi(YE(Q),F)||ye,YE(ve)||ye)))return 0}n=EA(n,F,!0)}let A=-1;if(!u){const F=eb(n);if(F){const K=eb(a);if(K){const Q=y(F,K);if(!Q)return 0;A&=Q}}}const N=sf(a);for(let F=0;F<N;F++){const K=bp(n,F),Q=bp(a,F),ve=y(Q,K);if(!ve)return 0;A&=ve}if(!h){const F=f_(n),K=f_(a);A&=F||K?Urt(F,K,y):y(vs(n),vs(a))}return A}function Urt(n,a,l){return n&&a&&Mae(n,a)?n.type===a.type?-1:n.type&&a.type?l(n.type,a.type):0:0}function Vrt(n){let a;for(const l of n)if(!(l.flags&131072)){const u=xv(l);if(a!=null||(a=u),u===l||u!==a)return!1}return!0}function N4e(n){return Vu(n,(a,l)=>a|(l.flags&1048576?N4e(l.types):l.flags),0)}function jrt(n){if(n.length===1)return n[0];const a=z?Ui(n,u=>gc(u,h=>!(h.flags&98304))):n,l=Vrt(a)?ei(a):Vu(a,(u,h)=>Tv(u,h)?h:u);return a===n?l:YV(l,N4e(n)&98304)}function Wrt(n){return Vu(n,(a,l)=>Tv(l,a)?l:a)}function Yf(n){return!!(ni(n)&4)&&(n.target===Ts||n.target===fs)}function QL(n){return!!(ni(n)&4)&&n.target===fs}function eT(n){return Yf(n)||Go(n)}function JV(n){return Yf(n)&&!QL(n)||Go(n)&&!n.target.readonly}function coe(n){return Yf(n)?ys(n)[0]:void 0}function H0(n){return Yf(n)||!(n.flags&98304)&&Co(n,Qi)}function uoe(n){if(!(ni(n)&4)||!(ni(n.target)&3))return;if(ni(n)&33554432)return ni(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const a=n.target;if(ni(a)&1){const h=Dn(a);if(h&&h.expression.kind!==79&&h.expression.kind!==208)return}const l=Bo(a);if(l.length!==1||pv(n.symbol).size)return;let u=ge(a.typeParameters)?Zi(l[0],Cd(a.typeParameters,ys(n).slice(0,a.typeParameters.length))):l[0];return ge(ys(n))>ge(a.typeParameters)&&(u=Jf(u,Ko(ys(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=u}function O4e(n){return z?n===nn:n===et}function KV(n){const a=coe(n);return!!a&&O4e(a)}function ZL(n){return Go(n)||!!_o(n,"0")}function XV(n){return H0(n)||ZL(n)}function Hrt(n,a){const l=hc(n,""+a);if(l)return l;if(hh(n,Go))return Zs(n,u=>{const h=u,y=L3(h);return y?ne.noUncheckedIndexedAccess&&a>=h.target.fixedLength+p3(h.target,3)?ei([y,He]):y:He})}function zrt(n){return!(n.flags&240544)}function vp(n){return!!(n.flags&109472)}function M4e(n){const a=gv(n);return a.flags&2097152?Dt(a.types,vp):vp(a)}function qrt(n){return n.flags&2097152&&$t(n.types,vp)||n}function Y8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Qn(n.types,vp):vp(n)}function xv(n){return n.flags&1056?N8(n):n.flags&402653312?de:n.flags&256?mt:n.flags&2048?Jt:n.flags&512?Ne:n.flags&1048576?Jrt(n):n}function Jrt(n){var a;const l=`B${Mu(n)}`;return(a=M1(l))!=null?a:Ug(l,Zs(n,xv))}function doe(n){return n.flags&402653312?de:n.flags&288?mt:n.flags&2048?Jt:n.flags&512?Ne:n.flags&1048576?Zs(n,doe):n}function lb(n){return n.flags&1056&&ab(n)?N8(n):n.flags&128&&ab(n)?de:n.flags&256&&ab(n)?mt:n.flags&2048&&ab(n)?Jt:n.flags&512&&ab(n)?Ne:n.flags&1048576?Zs(n,lb):n}function P4e(n){return n.flags&8192?J:n.flags&1048576?Zs(n,P4e):n}function foe(n,a){return Nj(n,a)||(n=P4e(lb(n))),Ad(n)}function Krt(n,a,l){if(n&&vp(n)){const u=a?l?gw(a):a:void 0;n=foe(n,u)}return n}function _oe(n,a,l,u){if(n&&vp(n)){const h=a?fb(l,a,u):void 0;n=foe(n,h)}return n}function Go(n){return!!(ni(n)&4&&n.target.objectFlags&8)}function TA(n){return Go(n)&&!!(n.target.combinedFlags&8)}function F4e(n){return TA(n)&&n.target.elementFlags.length===1}function L3(n){return eI(n,n.target.fixedLength)}function Xrt(n){const a=L3(n);return a&&Ou(a)}function eI(n,a,l=0,u=!1,h=!1){const y=B0(n)-l;if(a<y){const A=ys(n),N=[];for(let F=a;F<y;F++){const K=A[F];N.push(n.target.elementFlags[F]&8?jd(K,mt):K)}return u?Ro(N):ei(N,h?0:1)}}function Yrt(n,a){return B0(n)===B0(a)&&Qn(n.target.elementFlags,(l,u)=>(l&12)===(a.target.elementFlags[u]&12))}function B4e({value:n}){return n.base10Value==="0"}function G4e(n){return gc(n,a=>!!(Pu(a)&4194304))}function $rt(n){return Zs(n,Qrt)}function Qrt(n){return n.flags&4?Vx:n.flags&8?x2:n.flags&64?jx:n===fe||n===at||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&B4e(n)?n:Et}function YV(n,a){const l=a&~n.flags&98304;return l===0?n:ei(l===32768?[n,He]:l===65536?[n,Sn]:[n,He,Sn])}function cy(n,a=!1){R.assert(z);const l=a?jt:He;return n===l||n.flags&1048576&&n.types[0]===l?n:ei([n,l])}function Zrt(n){return ko||(ko=j8("NonNullable",524288,void 0)||an),ko!==an?hA(ko,[n]):Ro([n,pa])}function uy(n){return z?aT(n,2097152):n}function U4e(n){return z?ei([n,cn]):n}function poe(n){return z?aj(n,cn):n}function $V(n,a,l){return l?tk(a)?cy(n):U4e(n):n}function $8(n,a){return DM(a)?uy(n):xu(a)?poe(n):n}function tT(n,a){return Je&&a?aj(n,Ye):n}function Q8(n){return n===Ye||!!(n.flags&1048576)&&n.types[0]===Ye}function moe(n){return Je?aj(n,Ye):m_(n,524288)}function eit(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function QV(n){const a=ni(n);return n.flags&2097152?Qn(n.types,QV):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!Xj(n))||!!(a&4194304)||!!(a&1024&&QV(n.source))}function nT(n,a){const l=rs(n.flags,n.escapedName,Dl(n)&8);l.declarations=n.declarations,l.parent=n.parent,l.links.type=a,l.links.target=n,n.valueDeclaration&&(l.valueDeclaration=n.valueDeclaration);const u=zi(n).nameType;return u&&(l.links.nameType=u),l}function tit(n,a){const l=uo();for(const u of hv(n)){const h=or(u),y=a(h);l.set(u.escapedName,y===h?u:nT(u,y))}return l}function I3(n){if(!(q0(n)&&ni(n)&8192))return n;const a=n.regularType;if(a)return a;const l=n,u=tit(n,I3),h=Os(l.symbol,u,l.callSignatures,l.constructSignatures,l.indexInfos);return h.flags=l.flags,h.objectFlags|=l.objectFlags&-8193,n.regularType=h,h}function V4e(n,a,l){return{parent:n,propertyName:a,siblings:l,resolvedProperties:void 0}}function j4e(n){if(!n.siblings){const a=[];for(const l of j4e(n.parent))if(q0(l)){const u=Q1(l,n.propertyName);u&&oT(or(u),h=>{a.push(h)})}n.siblings=a}return n.siblings}function nit(n){if(!n.resolvedProperties){const a=new Map;for(const l of j4e(n))if(q0(l)&&!(ni(l)&2097152))for(const u of gs(l))a.set(u.escapedName,u);n.resolvedProperties=Oo(a.values())}return n.resolvedProperties}function rit(n,a){if(!(n.flags&4))return n;const l=or(n),u=a&&V4e(a,n.escapedName,void 0),h=hoe(l,u);return h===l?n:nT(n,h)}function iit(n){const a=bi.get(n.escapedName);if(a)return a;const l=nT(n,jt);return l.flags|=16777216,bi.set(n.escapedName,l),l}function ait(n,a){const l=uo();for(const h of hv(n))l.set(h.escapedName,rit(h,a));if(a)for(const h of nit(a))l.has(h.escapedName)||l.set(h.escapedName,iit(h));const u=Os(n.symbol,l,it,it,Ui(Nu(n),h=>Cm(h.keyType,of(h.type),h.isReadonly)));return u.objectFlags|=ni(n)&266240,u}function of(n){return hoe(n,void 0)}function hoe(n,a){if(ni(n)&196608){if(a===void 0&&n.widened)return n.widened;let l;if(n.flags&98305)l=Oe;else if(q0(n))l=ait(n,a);else if(n.flags&1048576){const u=a||V4e(void 0,void 0,n.types),h=Ui(n.types,y=>y.flags&98304?y:hoe(y,u));l=ei(h,Dt(h,ag)?2:1)}else n.flags&2097152?l=Ro(Ui(n.types,of)):eT(n)&&(l=ay(n.target,Ui(ys(n),of)));return l&&a===void 0&&(n.widened=l),l||n}return n}function ZV(n){let a=!1;if(ni(n)&65536){if(n.flags&1048576)if(Dt(n.types,ag))a=!0;else for(const l of n.types)ZV(l)&&(a=!0);if(eT(n))for(const l of ys(n))ZV(l)&&(a=!0);if(q0(n))for(const l of hv(n)){const u=or(l);ni(u)&65536&&(ZV(u)||Xe(l.valueDeclaration,m.Object_literal_s_property_0_implicitly_has_an_1_type,x(l),Re(of(u))),a=!0)}}return a}function z0(n,a,l){const u=Re(of(a));if(_r(n)&&!YR(Zn(n),ne))return;let h;switch(n.kind){case 223:case 169:case 168:h=Ae?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 166:const y=n;if(We(y.name)){const A=o1(y.name);if((GC(y.parent)||Mh(y.parent)||Ph(y.parent))&&y.parent.parameters.indexOf(y)>-1&&(ml(y,y.name.escapedText,788968,void 0,y.name.escapedText,!0)||A&&NJ(A))){const N="arg"+y.parent.parameters.indexOf(y),F=Ds(y.name)+(y.dotDotDotToken?"[]":"");hm(Ae,n,m.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,N,F);return}}h=n.dotDotDotToken?Ae?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:Ae?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 205:if(h=m.Binding_element_0_implicitly_has_an_1_type,!Ae)return;break;case 320:Xe(n,m.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return;case 326:Ae&&m4(n.parent)&&Xe(n.parent.tagName,m.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,u);return;case 259:case 171:case 170:case 174:case 175:case 215:case 216:if(Ae&&!n.name){l===3?Xe(n,m.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,u):Xe(n,m.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return}h=Ae?l===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 197:Ae&&Xe(n,m.Mapped_object_type_implicitly_has_an_any_template_type);return;default:h=Ae?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}hm(Ae,n,h,Ds(ka(n)),u)}function ej(n,a,l){i(()=>{Ae&&ni(a)&65536&&(!l||!Koe(n))&&(ZV(a)||z0(n,a,l))})}function goe(n,a,l){const u=sf(n),h=sf(a),y=uw(n),A=uw(a),N=A?h-1:h,F=y?N:Math.min(u,N),K=eb(n);if(K){const Q=eb(a);Q&&l(K,Q)}for(let Q=0;Q<F;Q++)l(bp(n,Q),bp(a,Q));A&&l(cw(n,F),A)}function yoe(n,a,l){const u=f_(n),h=f_(a);u&&h&&Mae(u,h)&&u.type&&h.type?l(u.type,h.type):l(vs(n),vs(a))}function Z8(n,a,l,u){return voe(n.map(boe),a,l,u||Qae)}function oit(n,a=0){return n&&voe(Pt(n.inferences,H4e),n.signature,n.flags|a,n.compareTypes)}function voe(n,a,l,u){const h={inferences:n,signature:a,flags:l,compareTypes:u,mapper:wn,nonFixingMapper:wn};return h.mapper=sit(h),h.nonFixingMapper=lit(h),h}function sit(n){return qae(Pt(n.inferences,a=>a.typeParameter),Pt(n.inferences,(a,l)=>()=>(a.isFixed||(cit(n),tj(n.inferences),a.isFixed=!0),koe(n,l))))}function lit(n){return qae(Pt(n.inferences,a=>a.typeParameter),Pt(n.inferences,(a,l)=>()=>koe(n,l)))}function tj(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function W4e(n,a,l){var u;((u=n.intraExpressionInferenceSites)!=null?u:n.intraExpressionInferenceSites=[]).push({node:a,type:l})}function cit(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:l}of n.intraExpressionInferenceSites){const u=a.kind===171?M8e(a,2):pd(a,2);u&&sg(n.inferences,l,u)}n.intraExpressionInferenceSites=void 0}}function boe(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function H4e(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 uit(n){const a=ur(n.inferences,IA);return a.length?voe(Pt(a,H4e),n.signature,n.flags,n.compareTypes):void 0}function Eoe(n){return n&&n.mapper}function rT(n){const a=ni(n);if(a&524288)return!!(a&1048576);const l=!!(n.flags&465829888||n.flags&524288&&!z4e(n)&&(a&4&&(n.node||Ie(ys(n),rT))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!z4e(n)&&Dt(n.types,rT));return n.flags&3899393&&(n.objectFlags|=524288|(l?1048576:0)),l}function z4e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const a=Il(n.aliasSymbol,262);return!!(a&&rr(a.parent,l=>l.kind===308?!0:l.kind===264?!1:"quit"))}return!1}function ew(n,a,l=0){return!!(n===a||n.flags&3145728&&Dt(n.types,u=>ew(u,a,l))||l<3&&n.flags&16777216&&(ew(U0(n),a,l+1)||ew(V0(n),a,l+1)))}function dit(n,a){const l=f_(n);return l?!!l.type&&ew(l.type,a):ew(vs(n),a)}function fit(n){const a=uo();oT(n,u=>{if(!(u.flags&128))return;const h=cl(u.value),y=rs(4,h);y.links.type=Oe,u.symbol&&(y.declarations=u.symbol.declarations,y.valueDeclaration=u.symbol.valueDeclaration),a.set(h,y)});const l=n.flags&4?[Cm(de,pa,!1)]:it;return Os(void 0,a,it,it,l)}function q4e(n,a,l){if(Sa)return;const u=n.id+","+a.id+","+l.id;if(Mr.has(u))return Mr.get(u);Sa=!0;const h=_it(n,a,l);return Sa=!1,Mr.set(u,h),h}function Toe(n){return!(ni(n)&262144)||q0(n)&&Dt(gs(n),a=>Toe(or(a)))||Go(n)&&Dt(ys(n),Toe)}function _it(n,a,l){if(!(mh(n,de)||gs(n).length!==0&&Toe(n)))return;if(Yf(n))return Ou(nj(ys(n)[0],a,l),QL(n));if(Go(n)){const h=Pt(ys(n),A=>nj(A,a,l)),y=xm(a)&4?Ui(n.target.elementFlags,A=>A&2?1:A):n.target.elementFlags;return qp(h,y,n.target.readonly,n.target.labeledElementDeclarations)}const u=Sf(1040,void 0);return u.source=n,u.mappedType=a,u.constraintType=l,u}function pit(n){const a=zi(n);return a.type||(a.type=nj(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function nj(n,a,l){const u=jd(l.type,hp(a)),h=rg(a),y=boe(u);return sg([y],n,h),J4e(y)||ye}function*Soe(n,a,l,u){const h=gs(a);for(const y of h)if(!jIe(y)&&(l||!(y.flags&16777216||Dl(y)&48))){const A=_o(n,y.escapedName);if(!A)yield y;else if(u){const N=or(y);if(N.flags&109472){const F=or(A);F.flags&1||Ad(F)===Ad(N)||(yield y)}}}}function xoe(n,a,l,u){return B7(Soe(n,a,l,u))}function mit(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 hit(n,a){return Go(n)&&Go(a)?mit(n,a):!!xoe(n,a,!1,!0)&&!!xoe(a,n,!1,!1)}function J4e(n){return n.candidates?ei(n.candidates,2):n.contraCandidates?Ro(n.contraCandidates):void 0}function Aoe(n){return!!Xr(n).skipDirectInference}function K4e(n){return!!(n.symbol&&Dt(n.symbol.declarations,Aoe))}function git(n,a){const l=n.texts[0],u=a.texts[0],h=n.texts[n.texts.length-1],y=a.texts[a.texts.length-1],A=Math.min(l.length,u.length),N=Math.min(h.length,y.length);return l.slice(0,A)!==u.slice(0,A)||h.slice(h.length-N)!==y.slice(y.length-N)}function X4e(n,a){if(n==="")return!1;const l=+n;return isFinite(l)&&(!a||""+l===n)}function yit(n){return NV(ZJ(n))}function Coe(n,a){if(a.flags&1)return!0;if(a.flags&134217732)return Co(n,a);if(a.flags&268435456){const l=[];for(;a.flags&268435456;)l.unshift(a.symbol),a=a.type;return Vu(l,(h,y)=>j2(y,h),n)===n&&Coe(n,a)}return!1}function vit(n,a){if(n===a||a.flags&5)return!0;if(n.flags&128){const l=n.value;return!!(a.flags&8&&X4e(l,!1)||a.flags&64&&JP(l,!1)||a.flags&98816&&l===a.intrinsicName||a.flags&268435456&&Coe(Xf(l),a))}if(n.flags&134217728){const l=n.texts;return l.length===2&&l[0]===""&&l[1]===""&&Co(n.types[0],a)}return Co(n,a)}function Y4e(n,a){return n.flags&128?$4e([n.value],it,a):n.flags&134217728?Jo(n.texts,a.texts)?Pt(n.types,bit):$4e(n.texts,n.types,a):void 0}function Loe(n,a){const l=Y4e(n,a);return!!l&&Qn(l,(u,h)=>vit(u,a.types[h]))}function bit(n){return n.flags&402653317?n:QE(["",""],[n])}function $4e(n,a,l){const u=n.length-1,h=n[0],y=n[u],A=l.texts,N=A.length-1,F=A[0],K=A[N];if(u===0&&h.length<F.length+K.length||!h.startsWith(F)||!y.endsWith(K))return;const Q=y.slice(0,y.length-K.length),ve=[];let Pe=0,Me=F.length;for(let Mn=1;Mn<N;Mn++){const xn=A[Mn];if(xn.length>0){let Kn=Pe,hn=Me;for(;hn=_t(Kn).indexOf(xn,hn),!(hn>=0);){if(Kn++,Kn===n.length)return;hn=0}Ut(Kn,hn),Me+=xn.length}else if(Me<_t(Pe).length)Ut(Pe,Me+1);else if(Pe<u)Ut(Pe+1,0);else return}return Ut(u,_t(u).length),ve;function _t(Mn){return Mn<u?n[Mn]:Q}function Ut(Mn,xn){const Kn=Mn===Pe?Xf(_t(Mn).slice(Me,xn)):QE([n[Pe].slice(Me),...n.slice(Pe+1,Mn),_t(Mn).slice(0,xn)],a.slice(Pe,Mn));ve.push(Kn),Pe=Mn,Me=xn}}function sg(n,a,l,u=0,h=!1){let y=!1,A,N=2048,F=!0,K,Q,ve,Pe=0;Me(a,l);function Me(Un,cr){if(rT(cr)){if(Un===Ot){const na=A;A=Un,Me(cr,cr),A=na;return}if(Un.aliasSymbol&&Un.aliasSymbol===cr.aliasSymbol){if(Un.aliasTypeArguments){const na=zi(Un.aliasSymbol).typeParameters,Ga=Am(na),aa=yv(Un.aliasTypeArguments,na,Ga,_r(Un.aliasSymbol.valueDeclaration)),ts=yv(cr.aliasTypeArguments,na,Ga,_r(Un.aliasSymbol.valueDeclaration));hn(aa,ts,w4e(Un.aliasSymbol))}return}if(Un===cr&&Un.flags&3145728){for(const na of Un.types)Me(na,na);return}if(cr.flags&1048576){const[na,Ga]=Kn(Un.flags&1048576?Un.types:[Un],cr.types,Eit),[aa,ts]=Kn(na,Ga,Tit);if(ts.length===0)return;if(cr=ei(ts),aa.length===0){_t(Un,cr,1);return}Un=ei(aa)}else if(cr.flags&2097152&&!Qn(cr.types,DV)){if(!(Un.flags&1048576)){const[na,Ga]=Kn(Un.flags&2097152?Un.types:[Un],cr.types,ig);if(na.length===0||Ga.length===0)return;Un=Ro(na),cr=Ro(Ga)}}else cr.flags&41943040&&(cr=Ev(cr));if(cr.flags&8650752){if(K4e(Un))return;const na=ln(cr);if(na){if(ni(Un)&262144||Un===me)return;if(!na.isFixed){if((na.priority===void 0||u<na.priority)&&(na.candidates=void 0,na.contraCandidates=void 0,na.topLevel=!0,na.priority=u),u===na.priority){const aa=A||Un;h&&!y?Fr(na.contraCandidates,aa)||(na.contraCandidates=Pn(na.contraCandidates,aa),tj(n)):Fr(na.candidates,aa)||(na.candidates=Pn(na.candidates,aa),tj(n))}!(u&128)&&cr.flags&262144&&na.topLevel&&!ew(l,cr)&&(na.topLevel=!1,tj(n))}N=Math.min(N,u);return}const Ga=sy(cr,!1);if(Ga!==cr)Me(Un,Ga);else if(cr.flags&8388608){const aa=sy(cr.indexType,!1);if(aa.flags&465829888){const ts=Zke(sy(cr.objectType,!1),aa,!1);ts&&ts!==cr&&Me(Un,ts)}}}if(ni(Un)&4&&ni(cr)&4&&(Un.target===cr.target||Yf(Un)&&Yf(cr))&&!(Un.node&&cr.node))hn(ys(Un),ys(cr),aoe(Un.target));else if(Un.flags&4194304&&cr.flags&4194304)Tn(Un.type,cr.type);else if((Y8(Un)||Un.flags&4)&&cr.flags&4194304){const na=fit(Un);Ut(na,cr.type,256)}else if(Un.flags&8388608&&cr.flags&8388608)Me(Un.objectType,cr.objectType),Me(Un.indexType,cr.indexType);else if(Un.flags&268435456&&cr.flags&268435456)Un.symbol===cr.symbol&&Me(Un.type,cr.type);else if(Un.flags&33554432)Me(Un.baseType,cr),_t(xae(Un),cr,4);else if(cr.flags&16777216)xn(Un,cr,oi);else if(cr.flags&3145728)qn(Un,cr.types,cr.flags);else if(Un.flags&1048576){const na=Un.types;for(const Ga of na)Me(Ga,cr)}else if(cr.flags&134217728)ma(Un,cr);else{if(Un=yp(Un),!(u&512&&Un.flags&467927040)){const na=nd(Un);if(na!==Un&&F&&!(na.flags&2621440))return F=!1,Me(na,cr);Un=na}Un.flags&2621440&&xn(Un,cr,eo)}}}function _t(Un,cr,na){const Ga=u;u|=na,Me(Un,cr),u=Ga}function Ut(Un,cr,na){const Ga=u;u|=na,Tn(Un,cr),u=Ga}function Mn(Un,cr,na,Ga){const aa=u;u|=Ga,qn(Un,cr,na),u=aa}function xn(Un,cr,na){const Ga=Un.id+","+cr.id,aa=K&&K.get(Ga);if(aa!==void 0){N=Math.min(N,aa);return}(K||(K=new Map)).set(Ga,-1);const ts=N;N=2048;const Ms=Pe,vl=$L(Un),Lo=$L(cr);Fr(Q,vl)&&(Pe|=1),Fr(ve,Lo)&&(Pe|=2),Pe!==3?((Q||(Q=[])).push(vl),(ve||(ve=[])).push(Lo),na(Un,cr),ve.pop(),Q.pop()):N=-1,Pe=Ms,K.set(Ga,N),N=Math.min(N,ts)}function Kn(Un,cr,na){let Ga,aa;for(const ts of cr)for(const Ms of Un)na(Ms,ts)&&(Me(Ms,ts),Ga=vy(Ga,Ms),aa=vy(aa,ts));return[Ga?ur(Un,ts=>!Fr(Ga,ts)):Un,aa?ur(cr,ts=>!Fr(aa,ts)):cr]}function hn(Un,cr,na){const Ga=Un.length<cr.length?Un.length:cr.length;for(let aa=0;aa<Ga;aa++)aa<na.length&&(na[aa]&7)===2?Tn(Un[aa],cr[aa]):Me(Un[aa],cr[aa])}function Tn(Un,cr){h=!h,Me(Un,cr),h=!h}function br(Un,cr){ce||u&1024?Tn(Un,cr):Me(Un,cr)}function ln(Un){if(Un.flags&8650752){for(const cr of n)if(Un===cr.typeParameter)return cr}}function Gn(Un){let cr;for(const na of Un){const Ga=na.flags&2097152&&$t(na.types,aa=>!!ln(aa));if(!Ga||cr&&Ga!==cr)return;cr=Ga}return cr}function qn(Un,cr,na){let Ga=0;if(na&1048576){let aa;const ts=Un.flags&1048576?Un.types:[Un],Ms=new Array(ts.length);let vl=!1;for(const Lo of cr)if(ln(Lo))aa=Lo,Ga++;else for(let rd=0;rd<ts.length;rd++){const ft=N;N=2048,Me(ts[rd],Lo),N===u&&(Ms[rd]=!0),vl=vl||N===-1,N=Math.min(N,ft)}if(Ga===0){const Lo=Gn(cr);Lo&&_t(Un,Lo,1);return}if(Ga===1&&!vl){const Lo=ji(ts,(rd,ft)=>Ms[ft]?void 0:rd);if(Lo.length){Me(ei(Lo),aa);return}}}else for(const aa of cr)ln(aa)?Ga++:Me(Un,aa);if(na&2097152?Ga===1:Ga>0)for(const aa of cr)ln(aa)&&_t(Un,aa,1)}function ti(Un,cr,na){if(na.flags&1048576){let Ga=!1;for(const aa of na.types)Ga=ti(Un,cr,aa)||Ga;return Ga}if(na.flags&4194304){const Ga=ln(na.type);if(Ga&&!Ga.isFixed&&!K4e(Un)){const aa=q4e(Un,cr,na);aa&&_t(aa,Ga.typeParameter,ni(Un)&262144?16:8)}return!0}if(na.flags&262144){_t(Lm(Un),na,32);const Ga=XE(na);if(Ga&&ti(Un,cr,Ga))return!0;const aa=Pt(gs(Un),or),ts=Pt(Nu(Un),Ms=>Ms!==Zu?Ms.type:Et);return Me(ei(ba(aa,ts)),rg(cr)),!0}return!1}function oi(Un,cr){if(Un.flags&16777216)Me(Un.checkType,cr.checkType),Me(Un.extendsType,cr.extendsType),Me(U0(Un),U0(cr)),Me(V0(Un),V0(cr));else{const na=[U0(cr),V0(cr)];Mn(Un,na,cr.flags,h?64:0)}}function ma(Un,cr){const na=Y4e(Un,cr),Ga=cr.types;if(na||Qn(cr.texts,aa=>aa.length===0))for(let aa=0;aa<Ga.length;aa++){const ts=na?na[aa]:Et,Ms=Ga[aa];if(ts.flags&128&&Ms.flags&8650752){const vl=ln(Ms),Lo=vl?td(vl.typeParameter):void 0;if(Lo&&!xs(Lo)){const rd=Lo.flags&1048576?Lo.types:[Lo];let ft=Vu(rd,(xe,er)=>xe|er.flags,0);if(!(ft&4)){const xe=ts.value;ft&296&&!X4e(xe,!0)&&(ft&=-297),ft&2112&&!JP(xe,!0)&&(ft&=-2113);const er=Vu(rd,($n,Sr)=>Sr.flags&ft?$n.flags&4?$n:Sr.flags&4?ts:$n.flags&134217728?$n:Sr.flags&134217728&&Loe(ts,Sr)?ts:$n.flags&268435456?$n:Sr.flags&268435456&&xe===Yke(Sr.symbol,xe)?ts:$n.flags&128?$n:Sr.flags&128&&Sr.value===xe?Sr:$n.flags&8?$n:Sr.flags&8?Jp(+xe):$n.flags&32?$n:Sr.flags&32?Jp(+xe):$n.flags&256?$n:Sr.flags&256&&Sr.value===+xe?Sr:$n.flags&64?$n:Sr.flags&64?yit(xe):$n.flags&2048?$n:Sr.flags&2048&&Yb(Sr.value)===xe?Sr:$n.flags&16?$n:Sr.flags&16?xe==="true"?Te:xe==="false"?at:Ne:$n.flags&512?$n:Sr.flags&512&&Sr.intrinsicName===xe?Sr:$n.flags&32768?$n:Sr.flags&32768&&Sr.intrinsicName===xe?Sr:$n.flags&65536?$n:Sr.flags&65536&&Sr.intrinsicName===xe?Sr:$n:$n,Et);if(!(er.flags&131072)){Me(er,Ms);continue}}}}Me(ts,Ms)}}function eo(Un,cr){var na,Ga;if(ni(Un)&4&&ni(cr)&4&&(Un.target===cr.target||Yf(Un)&&Yf(cr))){hn(ys(Un),ys(cr),aoe(Un.target));return}if(Kf(Un)&&Kf(cr)){Me(Hp(Un),Hp(cr)),Me(rg(Un),rg(cr));const aa=mv(Un),ts=mv(cr);aa&&ts&&Me(aa,ts)}if(ni(cr)&32&&!cr.declaration.nameType){const aa=Hp(cr);if(ti(Un,cr,aa))return}if(!hit(Un,cr)){if(eT(Un)){if(Go(cr)){const aa=B0(Un),ts=B0(cr),Ms=ys(cr),vl=cr.target.elementFlags;if(Go(Un)&&Yrt(Un,cr)){for(let ft=0;ft<ts;ft++)Me(ys(Un)[ft],Ms[ft]);return}const Lo=Go(Un)?Math.min(Un.target.fixedLength,cr.target.fixedLength):0,rd=Math.min(Go(Un)?p3(Un.target,3):0,cr.target.hasRestElement?p3(cr.target,3):0);for(let ft=0;ft<Lo;ft++)Me(ys(Un)[ft],Ms[ft]);if(!Go(Un)||aa-Lo-rd===1&&Un.target.elementFlags[Lo]&4){const ft=ys(Un)[Lo];for(let xe=Lo;xe<ts-rd;xe++)Me(vl[xe]&8?Ou(ft):ft,Ms[xe])}else{const ft=ts-Lo-rd;if(ft===2){if(vl[Lo]&vl[Lo+1]&8){const xe=ln(Ms[Lo]);xe&&xe.impliedArity!==void 0&&(Me(JL(Un,Lo,rd+aa-xe.impliedArity),Ms[Lo]),Me(JL(Un,Lo+xe.impliedArity,rd),Ms[Lo+1]))}else if(vl[Lo]&8&&vl[Lo+1]&4){const xe=(na=ln(Ms[Lo]))==null?void 0:na.typeParameter,er=xe&&td(xe);if(er&&Go(er)&&!er.target.hasRestElement){const $n=er.target.fixedLength;Me(JL(Un,Lo,aa-(Lo+$n)),Ms[Lo]),Me(eI(Un,Lo+$n,rd),Ms[Lo+1])}}else if(vl[Lo]&4&&vl[Lo+1]&8){const xe=(Ga=ln(Ms[Lo+1]))==null?void 0:Ga.typeParameter,er=xe&&td(xe);if(er&&Go(er)&&!er.target.hasRestElement){const $n=er.target.fixedLength,Sr=aa-p3(cr.target,3),wr=Sr-$n,Ra=qp(ys(Un).slice(wr,Sr),Un.target.elementFlags.slice(wr,Sr),!1,Un.target.labeledElementDeclarations&&Un.target.labeledElementDeclarations.slice(wr,Sr));Me(eI(Un,Lo,rd+$n),Ms[Lo]),Me(Ra,Ms[Lo+1])}}}else if(ft===1&&vl[Lo]&8){const xe=cr.target.elementFlags[ts-1]&2,er=JL(Un,Lo,rd);_t(er,Ms[Lo],xe?2:0)}else if(ft===1&&vl[Lo]&4){const xe=eI(Un,Lo,rd);xe&&Me(xe,Ms[Lo])}}for(let ft=0;ft<rd;ft++)Me(ys(Un)[aa-ft-1],Ms[ts-ft-1]);return}if(Yf(cr)){ca(Un,cr);return}}Cc(Un,cr),$f(Un,cr,0),$f(Un,cr,1),ca(Un,cr)}}function Cc(Un,cr){const na=hv(cr);for(const Ga of na){const aa=_o(Un,Ga.escapedName);aa&&!Dt(aa.declarations,Aoe)&&Me(or(aa),or(Ga))}}function $f(Un,cr,na){const Ga=Ja(Un,na),aa=Ja(cr,na),ts=Ga.length,Ms=aa.length,vl=ts<Ms?ts:Ms;for(let Lo=0;Lo<vl;Lo++)Lf(Itt(Ga[ts-vl+Lo]),V8(aa[Ms-vl+Lo]))}function Lf(Un,cr){const na=y,Ga=cr.declaration?cr.declaration.kind:0;y=y||Ga===171||Ga===170||Ga===173,goe(Un,cr,br),y=na,yoe(Un,cr,Me)}function ca(Un,cr){const na=ni(Un)&ni(cr)&32?8:0,Ga=Nu(cr);if(QV(Un))for(const aa of Ga){const ts=[];for(const Ms of gs(Un))if(dA(KL(Ms,8576),aa.keyType)){const vl=or(Ms);ts.push(Ms.flags&16777216?moe(vl):vl)}for(const Ms of Nu(Un))dA(Ms.keyType,aa.keyType)&&ts.push(Ms.type);ts.length&&_t(ei(ts),aa.type,na)}for(const aa of Ga){const ts=u3(Un,aa.keyType);ts&&_t(ts.type,aa.type,na)}}}function Eit(n,a){return a===Ye?n===a:ig(n,a)||!!(a.flags&4&&n.flags&128||a.flags&8&&n.flags&256)}function Tit(n,a){return!!(n.flags&524288&&a.flags&524288&&n.symbol&&n.symbol===a.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===a.aliasSymbol)}function Sit(n){const a=Ru(n);return!!a&&hl(a.flags&16777216?rae(a):a,406978556)}function q0(n){return!!(ni(n)&128)}function Ioe(n){return!!(ni(n)&16512)}function xit(n){if(n.length>1){const a=ur(n,Ioe);if(a.length){const l=ei(a,2);return ba(ur(n,u=>!Ioe(u)),[l])}}return n}function Ait(n){return n.priority&416?Ro(n.contraCandidates):Wrt(n.contraCandidates)}function Cit(n,a){const l=xit(n.candidates),u=Sit(n.typeParameter)||l3(n.typeParameter),h=!u&&n.topLevel&&(n.isFixed||!dit(a,n.typeParameter)),y=u?Ui(l,Ad):h?Ui(l,lb):l,A=n.priority&416?ei(y,2):jrt(y);return of(A)}function koe(n,a){const l=n.inferences[a];if(!l.inferredType){let u;const h=n.signature;if(h){const A=l.candidates?Cit(l,h):void 0;if(l.contraCandidates)u=A&&!(A.flags&131072)&&Dt(l.contraCandidates,F=>Tv(A,F))&&Qn(n.inferences,F=>F!==l&&Ru(F.typeParameter)!==l.typeParameter||Qn(F.candidates,K=>Tv(K,A)))?A:Ait(l);else if(A)u=A;else if(n.flags&1)u=ut;else{const N=YE(l.typeParameter);N&&(u=Zi(N,nrt(trt(n,a),n.nonFixingMapper)))}}else u=J4e(l);l.inferredType=u||woe(!!(n.flags&2));const y=Ru(l.typeParameter);if(y){const A=Zi(y,n.nonFixingMapper);(!u||!n.compareTypes(u,Jf(A,u)))&&(l.inferredType=u=A)}}return l.inferredType}function woe(n){return n?Oe:ye}function Doe(n){const a=[];for(let l=0;l<n.inferences.length;l++)a.push(koe(n,l));return a}function Q4e(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 ne.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 ne.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 ne.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"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(io(n.parent))return m.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return n.parent.kind===300?m.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:m.Cannot_find_name_0}}function F_(n){const a=Xr(n);return a.resolvedSymbol||(a.resolvedSymbol=!kl(n)&&ml(n,n.escapedText,1160127,Q4e(n),n,!wJ(n),!1)||an),a.resolvedSymbol}function tI(n){return!!rr(n,a=>a.kind===183?!0:a.kind===79||a.kind===163?!1:"quit")}function Z4e(n){return!!(n.flags&16777216||rr(n,a=>dd(a)||hf(a)))}function rj(n,a,l,u){switch(n.kind){case 79:if(!GS(n)){const A=F_(n);return A!==an?`${u?hs(u):"-1"}|${Mu(a)}|${Mu(l)}|${To(A)}`:void 0}case 108:return`0|${u?hs(u):"-1"}|${Mu(a)}|${Mu(l)}`;case 232:case 214:return rj(n.expression,a,l,u);case 163:const h=rj(n.left,a,l,u);return h&&h+"."+n.right.escapedText;case 208:case 209:const y=iT(n);if(y!==void 0){const A=rj(n.expression,a,l,u);return A&&A+"."+y}break;case 203:case 204:case 259:case 215:case 216:case 171:return`${hs(n)}#${Mu(a)}`}}function eu(n,a){switch(a.kind){case 214:case 232:return eu(n,a.expression);case 223:return cd(a)&&eu(n,a.left)||Tr(a)&&a.operatorToken.kind===27&&eu(n,a.right)}switch(n.kind){case 233:return a.kind===233&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 79:case 80:return GS(n)?a.kind===108:a.kind===79&&F_(n)===F_(a)||($i(a)||ms(a))&&jp(F_(n))===kr(a);case 108:return a.kind===108;case 106:return a.kind===106;case 232:case 214:return eu(n.expression,a);case 208:case 209:const l=iT(n),u=ul(a)?iT(a):void 0;return l!==void 0&&u!==void 0&&u===l&&eu(n.expression,a.expression);case 163:return ul(a)&&n.right.escapedText===iT(a)&&eu(n.left,a.expression);case 223:return Tr(n)&&n.operatorToken.kind===27&&eu(n.right,a)}return!1}function iT(n){if(Br(n))return n.name.escapedText;if(dl(n))return Lit(n);if(ms(n)){const a=An(n);return a?cl(a):void 0}if(Ba(n))return""+n.parent.parameters.indexOf(n)}function e8e(n){return n.flags&8192?n.escapedName:n.flags&384?cl(""+n.value):void 0}function Lit(n){if(n_(n.argumentExpression))return cl(n.argumentExpression.text);if(Jl(n.argumentExpression)){const a=Pl(n.argumentExpression,111551,!0);if(!a||!(rI(a)||a.flags&8))return;const l=a.valueDeclaration;if(l===void 0)return;const u=Vd(l);if(u){const h=e8e(u);if(h!==void 0)return h}if(CT(l)&&Wg(l,n.argumentExpression)){const h=rR(l);if(h)return e8e(Fu(h));if(nE(l))return rC(l.name)}}}function t8e(n,a){for(;ul(n);)if(n=n.expression,eu(n,a))return!0;return!1}function q2(n,a){for(;xu(n);)if(n=n.expression,eu(n,a))return!0;return!1}function tw(n,a){if(n&&n.flags&1048576){const l=sae(n,a);if(l&&Dl(l)&2)return l.links.isDiscriminantProperty===void 0&&(l.links.isDiscriminantProperty=(l.links.checkFlags&192)===192&&!XL(or(l))),!!l.links.isDiscriminantProperty}return!1}function n8e(n,a){let l;for(const u of n)if(tw(a,u.escapedName)){if(l){l.push(u);continue}l=[u]}return l}function Iit(n,a){const l=new Map;let u=0;for(const h of n)if(h.flags&61603840){const y=hc(h,a);if(y){if(!Y8(y))return;let A=!1;oT(y,N=>{const F=Mu(Ad(N)),K=l.get(F);K?K!==ye&&(l.set(F,ye),A=!0):l.set(F,h)}),A||u++}}return u>=10&&u*2>=n.length?l:void 0}function k3(n){const a=n.types;if(!(a.length<10||ni(n)&32768||Hc(a,l=>!!(l.flags&59506688))<10)){if(n.keyPropertyName===void 0){const l=Ie(a,h=>h.flags&59506688?Ie(gs(h),y=>vp(or(y))?y.escapedName:void 0):void 0),u=l&&Iit(a,l);n.keyPropertyName=u?l:"",n.constituentMap=u}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function w3(n,a){var l;const u=(l=n.constituentMap)==null?void 0:l.get(Mu(Ad(a)));return u!==ye?u:void 0}function r8e(n,a){const l=k3(n),u=l&&hc(a,l);return u&&w3(n,u)}function kit(n,a){const l=k3(n),u=l&&$t(a.properties,y=>y.symbol&&y.kind===299&&y.symbol.escapedName===l&&F3(y.initializer)),h=u&&e7(u.initializer);return h&&w3(n,h)}function i8e(n,a){return eu(n,a)||t8e(n,a)}function a8e(n,a){if(n.arguments){for(const l of n.arguments)if(i8e(a,l))return!0}return!!(n.expression.kind===208&&i8e(a,n.expression.expression))}function Roe(n){return(!n.id||n.id<0)&&(n.id=DY,DY++),n.id}function wit(n,a){if(!(n.flags&1048576))return Co(n,a);for(const l of n.types)if(Co(l,a))return!0;return!1}function Dit(n,a){var l;if(n===a)return n;if(a.flags&131072)return a;const u=`A${Mu(n)},${Mu(a)}`;return(l=M1(u))!=null?l:Ug(u,Rit(n,a))}function Rit(n,a){const l=gc(n,h=>wit(a,h)),u=a.flags&512&&ab(a)?Zs(l,bA):l;return Co(a,u)?u:n}function Noe(n){const a=gp(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Tv(n,_l))}function Pu(n){n.flags&467927040&&(n=td(n)||ye);const a=n.flags;if(a&268435460)return z?16317953:16776705;if(a&134217856){const l=a&128&&n.value==="";return z?l?12123649:7929345:l?12582401:16776705}if(a&40)return z?16317698:16776450;if(a&256){const l=n.value===0;return z?l?12123394:7929090:l?12582146:16776450}if(a&64)return z?16317188:16775940;if(a&2048){const l=B4e(n);return z?l?12122884:7928580:l?12581636:16775940}return a&16?z?16316168:16774920:a&528?z?n===at||n===fe?12121864:7927560:n===at||n===fe?12580616:16774920:a&524288?ni(n)&16&&ag(n)?z?83427327:83886079:Noe(n)?z?7880640:16728e3:z?7888800:16736160:a&16384?9830144:a&32768?26607360:a&65536?42917664:a&12288?z?7925520:16772880:a&67108864?z?7888800:16736160:a&131072?0:a&1048576?Vu(n.types,(l,u)=>l|Pu(u),0):a&2097152?Nit(n):83886079}function Nit(n){const a=hl(n,134348796);let l=0,u=134217727;for(const h of n.types)if(!(a&&h.flags&524288)){const y=Pu(h);l|=y,u&=y}return l&8256|u&134209471}function m_(n,a){return gc(n,l=>(Pu(l)&a)!==0)}function aT(n,a){const l=o8e(m_(z&&n.flags&2?Wl:n,a));if(z)switch(a){case 524288:return Zs(l,u=>Pu(u)&65536?Ro([u,Pu(u)&131072&&!hl(l,65536)?ei([pa,Sn]):pa]):u);case 1048576:return Zs(l,u=>Pu(u)&131072?Ro([u,Pu(u)&65536&&!hl(l,32768)?ei([pa,He]):pa]):u);case 2097152:case 4194304:return Zs(l,u=>Pu(u)&262144?Zrt(u):u)}return l}function o8e(n){return n===Wl?ye:n}function Ooe(n,a){return a?ei([Se(n),Fu(a)]):n}function s8e(n,a){var l;const u=oy(a);if(!ng(u))return Le;const h=Sm(u);return hc(n,h)||nw((l=fA(n,h))==null?void 0:l.type)||Le}function l8e(n,a){return hh(n,ZL)&&Hrt(n,a)||nw(Cv(65,n,He,void 0))||Le}function nw(n){return n&&(ne.noUncheckedIndexedAccess?ei([n,Ye]):n)}function c8e(n){return Ou(Cv(65,n,He,void 0)||Le)}function Oit(n){return n.parent.kind===206&&Moe(n.parent)||n.parent.kind===299&&Moe(n.parent.parent)?Ooe(D3(n),n.right):Fu(n.right)}function Moe(n){return n.parent.kind===223&&n.parent.left===n||n.parent.kind===247&&n.parent.initializer===n}function Mit(n,a){return l8e(D3(n),n.elements.indexOf(a))}function Pit(n){return c8e(D3(n.parent))}function u8e(n){return s8e(D3(n.parent),n.name)}function Fit(n){return Ooe(u8e(n),n.objectAssignmentInitializer)}function D3(n){const{parent:a}=n;switch(a.kind){case 246:return de;case 247:return s7(a)||Le;case 223:return Oit(a);case 217:return He;case 206:return Mit(a,n);case 227:return Pit(a);case 299:return u8e(a);case 300:return Fit(a)}return Le}function Bit(n){const a=n.parent,l=f8e(a.parent),u=a.kind===203?s8e(l,n.propertyName||n.name):n.dotDotDotToken?c8e(l):l8e(l,a.elements.indexOf(n));return Ooe(u,n.initializer)}function d8e(n){return Xr(n).resolvedType||Fu(n)}function Git(n){return n.initializer?d8e(n.initializer):n.parent.parent.kind===246?de:n.parent.parent.kind===247&&s7(n.parent.parent)||Le}function f8e(n){return n.kind===257?Git(n):Bit(n)}function Uit(n){return n.kind===257&&n.initializer&&ks(n.initializer)||n.kind!==205&&n.parent.kind===223&&ks(n.parent.right)}function cb(n){switch(n.kind){case 214:return cb(n.expression);case 223:switch(n.operatorToken.kind){case 63:case 75:case 76:case 77:return cb(n.left);case 27:return cb(n.right)}}return n}function _8e(n){const{parent:a}=n;return a.kind===214||a.kind===223&&a.operatorToken.kind===63&&a.left===n||a.kind===223&&a.operatorToken.kind===27&&a.right===n?_8e(a):n}function Vit(n){return n.kind===292?Ad(Fu(n.expression)):Et}function ij(n){const a=Xr(n);if(!a.switchTypes){a.switchTypes=[];for(const l of n.caseBlock.clauses)a.switchTypes.push(Vit(l))}return a.switchTypes}function p8e(n){if(Dt(n.caseBlock.clauses,l=>l.kind===292&&!As(l.expression)))return;const a=[];for(const l of n.caseBlock.clauses){const u=l.kind===292?l.expression.text:void 0;a.push(u&&!Fr(a,u)?u:void 0)}return a}function jit(n,a){return n.flags&1048576?!Ie(n.types,l=>!Fr(a,l)):Fr(a,n)}function rw(n,a){return n===a||a.flags&1048576&&Wit(n,a)}function Wit(n,a){if(n.flags&1048576){for(const l of n.types)if(!nb(a.types,l))return!1;return!0}return n.flags&1056&&N8(n)===a?!0:nb(a.types,n)}function oT(n,a){return n.flags&1048576?Ie(n.types,a):a(n)}function lg(n,a){return n.flags&1048576?Dt(n.types,a):a(n)}function hh(n,a){return n.flags&1048576?Qn(n.types,a):a(n)}function Hit(n,a){return n.flags&3145728?Qn(n.types,a):a(n)}function gc(n,a){if(n.flags&1048576){const l=n.types,u=ur(l,a);if(u===l)return n;const h=n.origin;let y;if(h&&h.flags&1048576){const A=h.types,N=ur(A,F=>!!(F.flags&1048576)||a(F));if(A.length-N.length===l.length-u.length){if(N.length===1)return N[0];y=Oae(1048576,N)}}return Pae(u,n.objectFlags&16809984,void 0,void 0,y)}return n.flags&131072||a(n)?n:Et}function aj(n,a){return gc(n,l=>l!==a)}function zit(n){return n.flags&1048576?n.types.length:1}function Zs(n,a,l){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);const u=n.origin,h=u&&u.flags&1048576?u.types:n.types;let y,A=!1;for(const N of h){const F=N.flags&1048576?Zs(N,a,l):a(N);A||(A=N!==F),F&&(y?y.push(F):y=[F])}return A?y&&ei(y,l?0:1):n}function m8e(n,a,l,u){return n.flags&1048576&&l?ei(Pt(n.types,a),1,l,u):Zs(n,a)}function nI(n,a){return gc(n,l=>(l.flags&a)!==0)}function h8e(n,a){return hl(n,134217804)&&hl(a,402655616)?Zs(n,l=>l.flags&4?nI(a,402653316):yA(l)&&!hl(a,402653188)?nI(a,128):l.flags&8?nI(a,264):l.flags&64?nI(a,2112):l):n}function SA(n){return n.flags===0}function sT(n){return n.flags===0?n.type:n}function xA(n,a){return a?{flags:0,type:n.flags&131072?ut:n}:n}function qit(n){const a=Sf(256);return a.elementType=n,a}function Poe(n){return Oi[n.id]||(Oi[n.id]=qit(n))}function g8e(n,a){const l=I3(xv(e7(a)));return rw(l,n.elementType)?n:Poe(ei([n.elementType,l]))}function Jit(n){return n.flags&131072?Nn:Ou(n.flags&1048576?ei(n.types,2):n)}function Kit(n){return n.finalArrayType||(n.finalArrayType=Jit(n.elementType))}function R3(n){return ni(n)&256?Kit(n):n}function Xit(n){return ni(n)&256?n.elementType:Et}function Yit(n){let a=!1;for(const l of n)if(!(l.flags&131072)){if(!(ni(l)&256))return!1;a=!0}return a}function y8e(n){const a=_8e(n),l=a.parent,u=Br(l)&&(l.name.escapedText==="length"||l.parent.kind===210&&We(l.name)&&nJ(l.name)),h=l.kind===209&&l.expression===a&&l.parent.kind===223&&l.parent.operatorToken.kind===63&&l.parent.left===l&&!wh(l.parent)&&Vc(Fu(l.argumentExpression),296);return u||h}function $it(n){return($i(n)||ro(n)||Mf(n)||Ba(n))&&!!(iu(n)||_r(n)&&Wv(n)&&n.initializer&&DC(n.initializer)&&Lp(n.initializer))}function oj(n,a){if(n=Ql(n),n.flags&8752)return or(n);if(n.flags&7){if(Dl(n)&262144){const u=n.links.syntheticOrigin;if(u&&oj(u))return or(n)}const l=n.valueDeclaration;if(l){if($it(l))return or(n);if($i(l)&&l.parent.parent.kind===247){const u=l.parent.parent,h=N3(u.expression,void 0);if(h){const y=u.awaitModifier?15:13;return Cv(y,h,He,void 0)}}a&&$o(a,Nr(l,m._0_needs_an_explicit_type_annotation,x(n)))}}}function N3(n,a){if(!(n.flags&33554432))switch(n.kind){case 79:const l=jp(F_(n));return oj(l,a);case 108:return hat(n);case 106:return Voe(n);case 208:{const u=N3(n.expression,a);if(u){const h=n.name;let y;if(Ri(h)){if(!u.symbol)return;y=_o(u,SR(u.symbol,h.escapedText))}else y=_o(u,h.escapedText);return y&&oj(y,a)}return}case 214:return N3(n.expression,a)}}function sj(n){const a=Xr(n);let l=a.effectsSignature;if(l===void 0){let u;n.parent.kind===241?u=N3(n.expression,void 0):n.expression.kind!==106&&(xu(n)?u=Kp($8(ga(n.expression),n.expression),n.expression):u=oI(n.expression));const h=Ja(u&&nd(u)||ye,0),y=h.length===1&&!h[0].typeParameters?h[0]:Dt(h,v8e)?lI(n):void 0;l=a.effectsSignature=y&&v8e(y)?y:rn}return l===rn?void 0:l}function v8e(n){return!!(f_(n)||n.declaration&&(_A(n.declaration)||ye).flags&131072)}function Qit(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const l=Hs(a.expression);return ul(l)?Hs(l.expression):void 0}function Zit(n){const a=rr(n,Zz),l=Zn(n),u=wy(l,a.statements.pos);es.add(Pc(l,u.start,u.length,m.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function O3(n){const a=lj(n,!1);return _n=n,dr=a,a}function M3(n){const a=Hs(n,!0);return a.kind===95||a.kind===223&&(a.operatorToken.kind===55&&(M3(a.left)||M3(a.right))||a.operatorToken.kind===56&&M3(a.left)&&M3(a.right))}function lj(n,a){for(;;){if(n===_n)return dr;const l=n.flags;if(l&4096){if(!a){const u=Roe(n),h=Wx[u];return h!==void 0?h:Wx[u]=lj(n,!0)}a=!1}if(l&368)n=n.antecedent;else if(l&512){const u=sj(n.node);if(u){const h=f_(u);if(h&&h.kind===3&&!h.type){const y=n.node.arguments[h.parameterIndex];if(y&&M3(y))return!1}if(vs(u).flags&131072)return!1}n=n.antecedent}else{if(l&4)return Dt(n.antecedents,u=>lj(u,!1));if(l&8){const u=n.antecedents;if(u===void 0||u.length===0)return!1;n=u[0]}else if(l&128){if(n.clauseStart===n.clauseEnd&&Kwe(n.switchStatement))return!1;n=n.antecedent}else if(l&1024){_n=void 0;const u=n.target,h=u.antecedents;u.antecedents=n.antecedents;const y=lj(n.antecedent,!1);return u.antecedents=h,y}else return!(l&1)}}}function cj(n,a){for(;;){const l=n.flags;if(l&4096){if(!a){const u=Roe(n),h=EE[u];return h!==void 0?h:EE[u]=cj(n,!0)}a=!1}if(l&496)n=n.antecedent;else if(l&512){if(n.node.expression.kind===106)return!0;n=n.antecedent}else{if(l&4)return Qn(n.antecedents,u=>cj(u,!1));if(l&8)n=n.antecedents[0];else if(l&1024){const u=n.target,h=u.antecedents;u.antecedents=n.antecedents;const y=cj(n.antecedent,!1);return u.antecedents=h,y}else return!!(l&1)}}}function b8e(n){switch(n.kind){case 79:if(!GS(n)){const a=F_(n);return rI(a)||tK(a)&&!uj(a)}break;case 208:case 209:return b8e(n.expression)&&Ep(Xr(n).resolvedSymbol||an)}return!1}function J0(n,a,l=a,u,h=(y=>(y=li(n,mR))==null?void 0:y.flowNode)()){let y,A=!1,N=0;if(Xi)return Le;if(!h)return a;nr++;const F=Jr,K=sT(Pe(h));Jr=F;const Q=ni(K)&256&&y8e(n)?Nn:R3(K);if(Q===ir||n.parent&&n.parent.kind===232&&!(Q.flags&131072)&&m_(Q,2097152).flags&131072)return a;return Q===W?ye:Q;function ve(){return A?y:(A=!0,y=rj(n,a,l,u))}function Pe(vt){var Gt;if(N===2e3)return(Gt=Ti)==null||Gt.instant(Ti.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:vt.id}),Xi=!0,Zit(n),Le;N++;let en;for(;;){const Qt=vt.flags;if(Qt&4096){for(let tr=F;tr<Jr;tr++)if(bE[tr]===vt)return N--,m0[tr];en=vt}let kn;if(Qt&16){if(kn=_t(vt),!kn){vt=vt.antecedent;continue}}else if(Qt&512){if(kn=Mn(vt),!kn){vt=vt.antecedent;continue}}else if(Qt&96)kn=Kn(vt);else if(Qt&128)kn=hn(vt);else if(Qt&12){if(vt.antecedents.length===1){vt=vt.antecedents[0];continue}kn=Qt&4?Tn(vt):br(vt)}else if(Qt&256){if(kn=xn(vt),!kn){vt=vt.antecedent;continue}}else if(Qt&1024){const tr=vt.target,Pi=tr.antecedents;tr.antecedents=vt.antecedents,kn=Pe(vt.antecedent),tr.antecedents=Pi}else if(Qt&2){const tr=vt.node;if(tr&&tr!==u&&n.kind!==208&&n.kind!==209&&n.kind!==108){vt=tr.flowNode;continue}kn=l}else kn=Ew(a);return en&&(bE[Jr]=en,m0[Jr]=kn,Jr++),N--,kn}}function Me(vt){const Gt=vt.node;return Foe(Gt.kind===257||Gt.kind===205?f8e(Gt):D3(Gt),n)}function _t(vt){const Gt=vt.node;if(eu(n,Gt)){if(!O3(vt))return ir;if(MT(Gt)===2){const en=Pe(vt.antecedent);return xA(xv(sT(en)),SA(en))}if(a===gt||a===Nn){if(Uit(Gt))return Poe(Et);const en=lb(Me(vt));return Co(en,a)?en:Nt}return a.flags&1048576?Dit(a,Me(vt)):a}if(t8e(n,Gt)){if(!O3(vt))return ir;if($i(Gt)&&(_r(Gt)||Eg(Gt))){const en=iR(Gt);if(en&&(en.kind===215||en.kind===216))return Pe(vt.antecedent)}return a}if($i(Gt)&&Gt.parent.parent.kind===246&&(eu(n,Gt.parent.parent.expression)||q2(Gt.parent.parent.expression,n)))return ise(R3(sT(Pe(vt.antecedent))))}function Ut(vt,Gt){const en=Hs(Gt,!0);if(en.kind===95)return ir;if(en.kind===223){if(en.operatorToken.kind===55)return Ut(Ut(vt,en.left),en.right);if(en.operatorToken.kind===56)return ei([Ut(vt,en.left),Ut(vt,en.right)])}return Di(vt,en,!0)}function Mn(vt){const Gt=sj(vt.node);if(Gt){const en=f_(Gt);if(en&&(en.kind===2||en.kind===3)){const Qt=Pe(vt.antecedent),kn=R3(sT(Qt)),tr=en.type?Ra(kn,en,vt.node,!0):en.kind===3&&en.parameterIndex>=0&&en.parameterIndex<vt.node.arguments.length?Ut(kn,vt.node.arguments[en.parameterIndex]):kn;return tr===kn?Qt:xA(tr,SA(Qt))}if(vs(Gt).flags&131072)return ir}}function xn(vt){if(a===gt||a===Nn){const Gt=vt.node,en=Gt.kind===210?Gt.expression.expression:Gt.left.expression;if(eu(n,cb(en))){const Qt=Pe(vt.antecedent),kn=sT(Qt);if(ni(kn)&256){let tr=kn;if(Gt.kind===210)for(const Pi of Gt.arguments)tr=g8e(tr,Pi);else{const Pi=e7(Gt.left.argumentExpression);Vc(Pi,296)&&(tr=g8e(tr,Gt.right))}return tr===kn?Qt:xA(tr,SA(Qt))}return Qt}}}function Kn(vt){const Gt=Pe(vt.antecedent),en=sT(Gt);if(en.flags&131072)return Gt;const Qt=(vt.flags&32)!==0,kn=R3(en),tr=Di(kn,vt.node,Qt);return tr===kn?Gt:xA(tr,SA(Gt))}function hn(vt){const Gt=vt.switchStatement.expression,en=Pe(vt.antecedent);let Qt=sT(en);if(eu(n,Gt))Qt=ts(Qt,vt.switchStatement,vt.clauseStart,vt.clauseEnd);else if(Gt.kind===218&&eu(n,Gt.expression))Qt=Lo(Qt,vt.switchStatement,vt.clauseStart,vt.clauseEnd);else{z&&(q2(Gt,n)?Qt=aa(Qt,vt.switchStatement,vt.clauseStart,vt.clauseEnd,tr=>!(tr.flags&163840)):Gt.kind===218&&q2(Gt.expression,n)&&(Qt=aa(Qt,vt.switchStatement,vt.clauseStart,vt.clauseEnd,tr=>!(tr.flags&131072||tr.flags&128&&tr.value==="undefined"))));const kn=qn(Gt,Qt);kn&&(Qt=ma(Qt,kn,vt.switchStatement,vt.clauseStart,vt.clauseEnd))}return xA(Qt,SA(en))}function Tn(vt){const Gt=[];let en=!1,Qt=!1,kn;for(const tr of vt.antecedents){if(!kn&&tr.flags&128&&tr.clauseStart===tr.clauseEnd){kn=tr;continue}const Pi=Pe(tr),Yi=sT(Pi);if(Yi===a&&a===l)return Yi;y_(Gt,Yi),rw(Yi,a)||(en=!0),SA(Pi)&&(Qt=!0)}if(kn){const tr=Pe(kn),Pi=sT(tr);if(!(Pi.flags&131072)&&!Fr(Gt,Pi)&&!Kwe(kn.switchStatement)){if(Pi===a&&a===l)return Pi;Gt.push(Pi),rw(Pi,a)||(en=!0),SA(tr)&&(Qt=!0)}}return xA(ln(Gt,en?2:1),Qt)}function br(vt){const Gt=Roe(vt),en=Fg[Gt]||(Fg[Gt]=new Map),Qt=ve();if(!Qt)return a;const kn=en.get(Qt);if(kn)return kn;for(let gr=En;gr<Wn;gr++)if(A2[gr]===vt&&yE[gr]===Qt&&vE[gr].length)return xA(ln(vE[gr],1),!0);const tr=[];let Pi=!1,Yi;for(const gr of vt.antecedents){let Vr;if(!Yi)Vr=Yi=Pe(gr);else{A2[Wn]=vt,yE[Wn]=Qt,vE[Wn]=tr,Wn++;const Ji=Aa;Aa=void 0,Vr=Pe(gr),Aa=Ji,Wn--;const us=en.get(Qt);if(us)return us}const Kr=sT(Vr);if(y_(tr,Kr),rw(Kr,a)||(Pi=!0),Kr===a)break}const dn=ln(tr,Pi?2:1);return SA(Yi)?xA(dn,!0):(en.set(Qt,dn),dn)}function ln(vt,Gt){if(Yit(vt))return Poe(ei(Pt(vt,Xit)));const en=o8e(ei(Ui(vt,R3),Gt));return en!==a&&en.flags&a.flags&1048576&&Jo(en.types,a.types)?a:en}function Gn(vt){if($a(n)||DC(n)||q_(n)){if(We(vt)){const en=F_(vt).valueDeclaration;if(en&&(ms(en)||Ba(en))&&n===en.parent&&!en.initializer&&!en.dotDotDotToken)return en}}else if(ul(vt)){if(eu(n,vt.expression))return vt}else if(We(vt)){const Gt=F_(vt);if(rI(Gt)){const en=Gt.valueDeclaration;if($i(en)&&!en.type&&en.initializer&&ul(en.initializer)&&eu(n,en.initializer.expression))return en.initializer;if(ms(en)&&!en.initializer){const Qt=en.parent.parent;if($i(Qt)&&!Qt.type&&Qt.initializer&&(We(Qt.initializer)||ul(Qt.initializer))&&eu(n,Qt.initializer))return en}}}}function qn(vt,Gt){const en=a.flags&1048576?a:Gt;if(en.flags&1048576){const Qt=Gn(vt);if(Qt){const kn=iT(Qt);if(kn&&tw(en,kn))return Qt}}}function ti(vt,Gt,en){const Qt=iT(Gt);if(Qt===void 0)return vt;const kn=xu(Gt),tr=z&&(kn||_me(Gt))&&hl(vt,98304);let Pi=hc(tr?m_(vt,2097152):vt,Qt);if(!Pi)return vt;Pi=tr&&kn?cy(Pi):Pi;const Yi=en(Pi);return gc(vt,dn=>{const gr=e3(dn,Qt);return!(gr.flags&131072)&&!(Yi.flags&131072)&&b3(Yi,gr)})}function oi(vt,Gt,en,Qt,kn){if((en===36||en===37)&&vt.flags&1048576){const tr=k3(vt);if(tr&&tr===iT(Gt)){const Pi=w3(vt,Fu(Qt));if(Pi)return en===(kn?36:37)?Pi:vp(hc(Pi,tr)||ye)?aj(vt,Pi):vt}}return ti(vt,Gt,tr=>cr(tr,en,Qt,kn))}function ma(vt,Gt,en,Qt,kn){if(Qt<kn&&vt.flags&1048576&&k3(vt)===iT(Gt)){const tr=ij(en).slice(Qt,kn),Pi=ei(Pt(tr,Yi=>w3(vt,Yi)||ye));if(Pi!==ye)return Pi}return ti(vt,Gt,tr=>ts(tr,en,Qt,kn))}function eo(vt,Gt,en){if(eu(n,Gt))return aT(vt,en?4194304:8388608);z&&en&&q2(Gt,n)&&(vt=aT(vt,2097152));const Qt=qn(Gt,vt);return Qt?ti(vt,Qt,kn=>m_(kn,en?4194304:8388608)):vt}function Cc(vt,Gt,en){const Qt=_o(vt,Gt);return Qt?!!(Qt.flags&16777216)||en:!!fA(vt,Gt)||!en}function $f(vt,Gt,en){const Qt=Sm(Gt);if(lg(vt,tr=>Cc(tr,Qt,!0)))return gc(vt,tr=>Cc(tr,Qt,en));if(en){const tr=int();if(tr)return Ro([vt,hA(tr,[Gt,ye])])}return vt}function Lf(vt,Gt,en){switch(Gt.operatorToken.kind){case 63:case 75:case 76:case 77:return eo(Di(vt,Gt.right,en),Gt.left,en);case 34:case 35:case 36:case 37:const Qt=Gt.operatorToken.kind,kn=cb(Gt.left),tr=cb(Gt.right);if(kn.kind===218&&As(tr))return na(vt,kn,Qt,tr,en);if(tr.kind===218&&As(kn))return na(vt,tr,Qt,kn,en);if(eu(n,kn))return cr(vt,Qt,tr,en);if(eu(n,tr))return cr(vt,Qt,kn,en);z&&(q2(kn,n)?vt=Un(vt,Qt,tr,en):q2(tr,n)&&(vt=Un(vt,Qt,kn,en)));const Pi=qn(kn,vt);if(Pi)return oi(vt,Pi,Qt,tr,en);const Yi=qn(tr,vt);if(Yi)return oi(vt,Yi,Qt,kn,en);if(rd(kn))return ft(vt,Qt,tr,en);if(rd(tr))return ft(vt,Qt,kn,en);break;case 102:return xe(vt,Gt,en);case 101:if(Ri(Gt.left))return ca(vt,Gt,en);const dn=cb(Gt.right),gr=Fu(Gt.left);if(gr.flags&8576){if(Q8(vt)&&ul(n)&&eu(n.expression,dn)&&iT(n)===Sm(gr))return m_(vt,en?524288:65536);if(eu(n,dn))return $f(vt,gr,en)}break;case 27:return Di(vt,Gt.right,en);case 55:return en?Di(Di(vt,Gt.left,!0),Gt.right,!0):ei([Di(vt,Gt.left,!1),Di(vt,Gt.right,!1)]);case 56:return en?ei([Di(vt,Gt.left,!0),Di(vt,Gt.right,!0)]):Di(Di(vt,Gt.left,!1),Gt.right,!1)}return vt}function ca(vt,Gt,en){const Qt=cb(Gt.right);if(!eu(n,Qt))return vt;R.assertNode(Gt.left,Ri);const kn=Ej(Gt.left);if(kn===void 0)return vt;const tr=kn.parent,Pi=Tc(R.checkDefined(kn.valueDeclaration,"should always have a declaration"))?or(tr):Vs(tr);return $n(vt,Pi,en,!0)}function Un(vt,Gt,en,Qt){const kn=Gt===34||Gt===36,tr=Gt===34||Gt===35?98304:32768,Pi=Fu(en);return kn!==Qt&&hh(Pi,dn=>!!(dn.flags&tr))||kn===Qt&&hh(Pi,dn=>!(dn.flags&(3|tr)))?aT(vt,2097152):vt}function cr(vt,Gt,en,Qt){if(vt.flags&1)return vt;(Gt===35||Gt===37)&&(Qt=!Qt);const kn=Fu(en),tr=Gt===34||Gt===35;if(kn.flags&98304){if(!z)return vt;const Pi=tr?Qt?262144:2097152:kn.flags&65536?Qt?131072:1048576:Qt?65536:524288;return aT(vt,Pi)}if(Qt){if(!tr&&(vt.flags&2||lg(vt,og))){if(kn.flags&201457660||og(kn))return kn;if(kn.flags&524288)return ai}const Pi=gc(vt,Yi=>b3(Yi,kn)||tr&&eit(Yi,kn));return h8e(Pi,kn)}return vp(kn)?gc(vt,Pi=>!(M4e(Pi)&&b3(Pi,kn))):vt}function na(vt,Gt,en,Qt,kn){(en===35||en===37)&&(kn=!kn);const tr=cb(Gt.expression);if(!eu(n,tr)){z&&q2(tr,n)&&kn===(Qt.text!=="undefined")&&(vt=aT(vt,2097152));const Pi=qn(tr,vt);return Pi?ti(vt,Pi,Yi=>Ga(Yi,Qt,kn)):vt}return Ga(vt,Qt,kn)}function Ga(vt,Gt,en){return en?Ms(vt,Gt.text):aT(vt,U9.get(Gt.text)||32768)}function aa(vt,Gt,en,Qt,kn){return en!==Qt&&Qn(ij(Gt).slice(en,Qt),kn)?m_(vt,2097152):vt}function ts(vt,Gt,en,Qt){const kn=ij(Gt);if(!kn.length)return vt;const tr=kn.slice(en,Qt),Pi=en===Qt||Fr(tr,Et);if(vt.flags&2&&!Pi){let Vr;for(let Kr=0;Kr<tr.length;Kr+=1){const Ji=tr[Kr];if(Ji.flags&201457660)Vr!==void 0&&Vr.push(Ji);else if(Ji.flags&524288)Vr===void 0&&(Vr=tr.slice(0,Kr)),Vr.push(ai);else return vt}return ei(Vr===void 0?tr:Vr)}const Yi=ei(tr),dn=Yi.flags&131072?Et:h8e(gc(vt,Vr=>b3(Yi,Vr)),Yi);if(!Pi)return dn;const gr=gc(vt,Vr=>!(M4e(Vr)&&Fr(kn,Ad(qrt(Vr)))));return dn.flags&131072?gr:ei([dn,gr])}function Ms(vt,Gt){switch(Gt){case"string":return vl(vt,de,1);case"number":return vl(vt,mt,2);case"bigint":return vl(vt,Jt,4);case"boolean":return vl(vt,Ne,8);case"symbol":return vl(vt,J,16);case"object":return vt.flags&1?vt:ei([vl(vt,ai,32),vl(vt,Sn,131072)]);case"function":return vt.flags&1?vt:vl(vt,_l,64);case"undefined":return vl(vt,He,65536)}return vl(vt,ai,128)}function vl(vt,Gt,en){return Zs(vt,Qt=>Im(Qt,Gt,cp)?Pu(Qt)&en?Qt:Et:Tv(Gt,Qt)?Gt:Pu(Qt)&en?Ro([Qt,Gt]):Et)}function Lo(vt,Gt,en,Qt){const kn=p8e(Gt);if(!kn)return vt;const tr=ii(Gt.caseBlock.clauses,dn=>dn.kind===293);if(en===Qt||tr>=en&&tr<Qt){const dn=Jwe(en,Qt,kn);return gc(vt,gr=>(Pu(gr)&dn)===dn)}const Yi=kn.slice(en,Qt);return ei(Pt(Yi,dn=>dn?Ms(vt,dn):Et))}function rd(vt){return(Br(vt)&&Pr(vt.name)==="constructor"||dl(vt)&&As(vt.argumentExpression)&&vt.argumentExpression.text==="constructor")&&eu(n,vt.expression)}function ft(vt,Gt,en,Qt){if(Qt?Gt!==34&&Gt!==36:Gt!==35&&Gt!==37)return vt;const kn=Fu(en);if(!ole(kn)&&!F0(kn))return vt;const tr=_o(kn,"prototype");if(!tr)return vt;const Pi=or(tr),Yi=xs(Pi)?void 0:Pi;if(!Yi||Yi===Qa||Yi===_l)return vt;if(xs(vt))return Yi;return gc(vt,gr=>dn(gr,Yi));function dn(gr,Vr){return gr.flags&524288&&ni(gr)&1||Vr.flags&524288&&ni(Vr)&1?gr.symbol===Vr.symbol:Tv(gr,Vr)}}function xe(vt,Gt,en){const Qt=cb(Gt.left);if(!eu(n,Qt))return en&&z&&q2(Qt,n)?aT(vt,2097152):vt;const kn=Fu(Gt.right);if(!sb(kn,_l))return vt;const tr=Zs(kn,er);return xs(vt)&&(tr===Qa||tr===_l)||!en&&!(tr.flags&524288&&!og(tr))?vt:$n(vt,tr,en,!0)}function er(vt){const Gt=hc(vt,"prototype");if(Gt&&!xs(Gt))return Gt;const en=Ja(vt,1);return en.length?ei(Pt(en,Qt=>vs(V8(Qt)))):pa}function $n(vt,Gt,en,Qt){var kn;const tr=vt.flags&1048576?`N${Mu(vt)},${Mu(Gt)},${(en?1:0)|(Qt?2:0)}`:void 0;return(kn=M1(tr))!=null?kn:Ug(tr,Sr(vt,Gt,en,Qt))}function Sr(vt,Gt,en,Qt){if(!en){if(Qt)return gc(vt,dn=>!sb(dn,Gt));const Yi=$n(vt,Gt,!0,!1);return gc(vt,dn=>!rw(dn,Yi))}if(vt.flags&3)return Gt;const kn=Qt?sb:Tv,tr=vt.flags&1048576?k3(vt):void 0,Pi=Zs(Gt,Yi=>{const dn=tr&&hc(Yi,tr),gr=dn&&w3(vt,dn),Vr=Zs(gr||vt,Qt?Kr=>sb(Kr,Yi)?Kr:sb(Yi,Kr)?Yi:Et:Kr=>y4e(Kr,Yi)?Kr:y4e(Yi,Kr)?Yi:Tv(Kr,Yi)?Kr:Tv(Yi,Kr)?Yi:Et);return Vr.flags&131072?Zs(vt,Kr=>hl(Kr,465829888)&&kn(Yi,td(Kr)||ye)?Ro([Kr,Yi]):Et):Vr});return Pi.flags&131072?Tv(Gt,vt)?Gt:Co(vt,Gt)?vt:Co(Gt,vt)?Gt:Ro([vt,Gt]):Pi}function wr(vt,Gt,en){if(a8e(Gt,n)){const Qt=en||!TT(Gt)?sj(Gt):void 0,kn=Qt&&f_(Qt);if(kn&&(kn.kind===0||kn.kind===1))return Ra(vt,kn,Gt,en)}if(Q8(vt)&&ul(n)&&Br(Gt.expression)){const Qt=Gt.expression;if(eu(n.expression,cb(Qt.expression))&&We(Qt.name)&&Qt.name.escapedText==="hasOwnProperty"&&Gt.arguments.length===1){const kn=Gt.arguments[0];if(As(kn)&&iT(n)===cl(kn.text))return m_(vt,en?524288:65536)}}return vt}function Ra(vt,Gt,en,Qt){if(Gt.type&&!(xs(vt)&&(Gt.type===Qa||Gt.type===_l))){const kn=Qit(Gt,en);if(kn){if(eu(n,kn))return $n(vt,Gt.type,Qt,!1);z&&Qt&&q2(kn,n)&&!(Pu(Gt.type)&65536)&&(vt=aT(vt,2097152));const tr=qn(kn,vt);if(tr)return ti(vt,tr,Pi=>$n(Pi,Gt.type,Qt,!1))}}return vt}function Di(vt,Gt,en){if(DM(Gt)||Tr(Gt.parent)&&(Gt.parent.operatorToken.kind===60||Gt.parent.operatorToken.kind===77)&&Gt.parent.left===Gt)return Lr(vt,Gt,en);switch(Gt.kind){case 79:if(!eu(n,Gt)&&k<5){const Qt=F_(Gt);if(rI(Qt)){const kn=Qt.valueDeclaration;if(kn&&$i(kn)&&!kn.type&&kn.initializer&&b8e(n)){k++;const tr=Di(vt,kn.initializer,en);return k--,tr}}}case 108:case 106:case 208:case 209:return eo(vt,Gt,en);case 210:return wr(vt,Gt,en);case 214:case 232:return Di(vt,Gt.expression,en);case 223:return Lf(vt,Gt,en);case 221:if(Gt.operator===53)return Di(vt,Gt.operand,!en);break}return vt}function Lr(vt,Gt,en){if(eu(n,Gt))return aT(vt,en?2097152:262144);const Qt=qn(Gt,vt);return Qt?ti(vt,Qt,kn=>m_(kn,en?2097152:262144)):vt}}function eat(n,a){if(n=jp(n),(a.kind===79||a.kind===80)&&(Dk(a)&&(a=a.parent),Tg(a)&&(!wh(a)||Pk(a)))){const l=Fu(a);if(jp(Xr(a).resolvedSymbol)===n)return l}return xg(a)&&ky(a.parent)&&G(a.parent)?ra(a.parent.symbol):M0(n)}function iw(n){return rr(n.parent,a=>Ya(a)&&!RT(a)||a.kind===265||a.kind===308||a.kind===169)}function uj(n){if(!n.valueDeclaration)return!1;const a=zm(n.valueDeclaration).parent,l=Xr(a);return l.flags&524288||(l.flags|=524288,tat(a)||E8e(a)),n.isAssigned||!1}function tat(n){return!!rr(n.parent,a=>(Ya(a)||JC(a))&&!!(Xr(a).flags&524288))}function E8e(n){if(n.kind===79){if(wh(n)){const a=F_(n);tK(a)&&(a.isAssigned=!0)}}else Pa(n,E8e)}function rI(n){return n.flags&3&&(yj(n)&2)!==0}function nat(n){const a=Xr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!zf(n,9))return UL(n.symbol),!0;const l=!!(Pu(_w(n,0))&16777216);if(!d_())return UL(n.symbol),!0;a.parameterInitializerContainsUndefined=l}return a.parameterInitializerContainsUndefined}function rat(n,a){return z&&a.kind===166&&a.initializer&&Pu(n)&16777216&&!nat(a)?m_(n,524288):n}function iat(n,a){const l=a.parent;return l.kind===208||l.kind===163||l.kind===210&&l.expression===a||l.kind===209&&l.expression===a&&!(lg(n,S8e)&&G0(Fu(l.argumentExpression)))}function T8e(n){return n.flags&2097152?Dt(n.types,T8e):!!(n.flags&465829888&&gv(n).flags&1146880)}function S8e(n){return n.flags&2097152?Dt(n.types,S8e):!!(n.flags&465829888&&!hl(gv(n),98304))}function aat(n,a){const l=(We(n)||Br(n)||dl(n))&&!((Gh(n.parent)||sx(n.parent))&&n.parent.tagName===n)&&(a&&a&64?pd(n,8):pd(n,void 0));return l&&!XL(l)}function Foe(n,a,l){return!(l&&l&2)&&lg(n,T8e)&&(iat(n,a)||aat(a,l))?Zs(n,gv):n}function x8e(n){return!!rr(n,a=>{const l=a.parent;return l===void 0?"quit":Vl(l)?l.expression===a&&Jl(a):yd(l)?l.name===a||l.propertyName===a:!1})}function dj(n,a){if(!ne.verbatimModuleSyntax&&ev(n,111551)&&!tI(a)&&!Bd(n,111551)){const l=ic(n);mu(l)&1160127&&(Y_(ne)||Kb(ne)&&x8e(a)||!Tw(jp(l))?J1(n):K1(n))}}function oat(n,a){var l;const u=or(n),h=n.valueDeclaration;if(h){if(ms(h)&&!h.initializer&&!h.dotDotDotToken&&h.parent.elements.length>=2){const y=h.parent.parent;if(y.kind===257&&Ap(h)&2||y.kind===166){const A=Xr(y);if(!(A.flags&16777216)){A.flags|=16777216;const N=aA(y,0),F=N&&Zs(N,gv);if(A.flags&=-16777217,F&&F.flags&1048576&&!(y.kind===166&&uj(n))){const K=h.parent,Q=J0(K,F,F,void 0,a.flowNode);return Q.flags&131072?Et:Ci(h,Q)}}}}if(Ba(h)&&!h.type&&!h.initializer&&!h.dotDotDotToken){const y=h.parent;if(y.parameters.length>=2&&UV(y)){const A=ow(y);if(A&&A.parameters.length===1&&Lu(A)){const N=zL(Zi(or(A.parameters[0]),(l=J2(y))==null?void 0:l.nonFixingMapper));if(N.flags&1048576&&hh(N,Go)&&!uj(n)){const F=J0(y,N,N,void 0,a.flowNode),K=y.parameters.indexOf(h)-(zb(y)?1:0);return jd(F,Jp(K))}}}}}return u}function sat(n,a){if(GS(n))return P3(n);const l=F_(n);if(l===an)return Le;if(l===Ct){if(swe(n))return Xe(n,m.arguments_cannot_be_referenced_in_property_initializers),Le;const Kn=Nf(n);return P<2&&(Kn.kind===216?Xe(n,m.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Qr(Kn,512)&&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)),Xr(Kn).flags|=512,or(l)}cat(n)&&dj(l,n);const u=jp(l),h=oRe(u,n);b0(h)&&Bae(n,h)&&h.declarations&&Vg(n,h.declarations,n.escapedText);let y=u.valueDeclaration;if(y&&u.flags&32){if(y.kind===260&&cC(re,y)){let Kn=wc(n);for(;Kn!==void 0;){if(Kn===y&&Kn.name!==n){Xr(y).flags|=1048576,Xr(n).flags|=2097152;break}Kn=wc(Kn)}}else if(y.kind===228){let Kn=kd(n,!1,!1);for(;Kn.kind!==308;){if(Kn.parent===y){(ro(Kn)&&Xa(Kn)||Rl(Kn))&&(Xr(y).flags|=1048576,Xr(n).flags|=2097152);break}Kn=kd(Kn,!1,!1)}}}fat(n,l);let A=oat(u,n);const N=MT(n);if(N){if(!(u.flags&3)&&!(_r(n)&&u.flags&512)){const Kn=u.flags&384?m.Cannot_assign_to_0_because_it_is_an_enum:u.flags&32?m.Cannot_assign_to_0_because_it_is_a_class:u.flags&1536?m.Cannot_assign_to_0_because_it_is_a_namespace:u.flags&16?m.Cannot_assign_to_0_because_it_is_a_function:u.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,Kn,x(l)),Le}if(Ep(u))return u.flags&3?Xe(n,m.Cannot_assign_to_0_because_it_is_a_constant,x(l)):Xe(n,m.Cannot_assign_to_0_because_it_is_a_read_only_property,x(l)),Le}const F=u.flags&2097152;if(u.flags&3){if(N===1)return A}else if(F)y=Td(l);else return A;if(!y)return A;A=Foe(A,n,a);const K=zm(y).kind===166,Q=iw(y);let ve=iw(n);const Pe=ve!==Q,Me=n.parent&&n.parent.parent&&dx(n.parent)&&Moe(n.parent.parent),_t=l.flags&134217728;for(;ve!==Q&&(ve.kind===215||ve.kind===216||iP(ve))&&(rI(u)&&A!==Nn||K&&!uj(u));)ve=iw(ve);const Ut=K||F||Pe||Me||_t||lat(n,y)||A!==gt&&A!==Nn&&(!z||(A.flags&16387)!==0||tI(n)||Z4e(n)||n.parent.kind===278)||n.parent.kind===232||y.kind===257&&y.exclamationToken||y.flags&16777216,Mn=Ut?K?rat(A,y):A:A===gt||A===Nn?He:cy(A),xn=J0(n,A,Mn,ve);if(!y8e(n)&&(A===gt||A===Nn)){if(xn===gt||xn===Nn)return Ae&&(Xe(ka(y),m.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,x(l),Re(xn)),Xe(n,m.Variable_0_implicitly_has_an_1_type,x(l),Re(xn))),Ew(xn)}else if(!Ut&&!YL(A)&&YL(xn))return Xe(n,m.Variable_0_is_used_before_being_assigned,x(l)),A;return N?xv(xn):xn}function lat(n,a){if(ms(a)){const l=rr(n,ms);return l&&zm(l)===zm(a)}}function cat(n){var a;const l=n.parent;if(l){if(Br(l)&&l.expression===n||yd(l)&&l.isTypeOnly)return!1;const u=(a=l.parent)==null?void 0:a.parent;if(u&&au(u)&&u.isTypeOnly)return!1}return!0}function uat(n,a){return!!rr(n,l=>l===a?"quit":Ya(l)||l.parent&&ro(l.parent)&&!Tc(l.parent)&&l.parent.initializer===l)}function dat(n,a){return rr(n,l=>l===a?"quit":l===a.initializer||l===a.condition||l===a.incrementor||l===a.statement)}function Boe(n){return rr(n,a=>!a||rJ(a)?"quit":Vv(a,!1))}function fat(n,a){if(P>=2||!(a.flags&34)||!a.valueDeclaration||Ki(a.valueDeclaration)||a.valueDeclaration.parent.kind===295)return;const l=Hm(a.valueDeclaration),u=uat(n,l),h=Boe(l);if(h){if(u){let y=!0;if(KT(l)){const A=f1(a.valueDeclaration,258);if(A&&A.parent===l){const N=dat(n.parent,l);if(N){const F=Xr(N);F.flags|=8192;const K=F.capturedBlockScopeBindings||(F.capturedBlockScopeBindings=[]);y_(K,a),N===l.initializer&&(y=!1)}}}y&&(Xr(h).flags|=4096)}if(KT(l)){const y=f1(a.valueDeclaration,258);y&&y.parent===l&&pat(n,l)&&(Xr(a.valueDeclaration).flags|=262144)}Xr(a.valueDeclaration).flags|=32768}u&&(Xr(a.valueDeclaration).flags|=16384)}function _at(n,a){const l=Xr(n);return!!l&&Fr(l.capturedBlockScopeBindings,kr(a))}function pat(n,a){let l=n;for(;l.parent.kind===214;)l=l.parent;let u=!1;if(wh(l))u=!0;else if(l.parent.kind===221||l.parent.kind===222){const h=l.parent;u=h.operator===45||h.operator===46}return u?!!rr(l,h=>h===a?"quit":h===a.statement):!1}function Goe(n,a){if(Xr(n).flags|=2,a.kind===169||a.kind===173){const l=a.parent;Xr(l).flags|=4}else Xr(a).flags|=4}function A8e(n){return aC(n)?n:Ya(n)?void 0:Pa(n,A8e)}function C8e(n){const a=kr(n),l=Vs(a);return si(l)===Er}function L8e(n,a,l){const u=a.parent;Wb(u)&&!C8e(u)&&mR(n)&&n.flowNode&&!cj(n.flowNode,!1)&&Xe(n,l)}function mat(n,a){ro(a)&&Tc(a)&&re&&a.initializer&&xM(a.initializer,n.pos)&&i_(a.parent)&&Xe(n,m.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function P3(n){const a=tI(n);let l=kd(n,!0,!0),u=!1,h=!1;for(l.kind===173&&L8e(n,l,m.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(l.kind===216&&(l=kd(l,!1,!h),u=!0),l.kind===164){l=kd(l,!u,!1),h=!0;continue}break}if(mat(n,l),h)Xe(n,m.this_cannot_be_referenced_in_a_computed_property_name);else switch(l.kind){case 264:Xe(n,m.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 263:Xe(n,m.this_cannot_be_referenced_in_current_location);break;case 173:I8e(n,l)&&Xe(n,m.this_cannot_be_referenced_in_constructor_arguments);break}!a&&u&&P<2&&Goe(n,l);const y=Uoe(n,!0,l);if(te){const A=or(lt);if(y===A&&u)Xe(n,m.The_containing_arrow_function_captures_the_global_value_of_this);else if(!y){const N=Xe(n,m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Ki(l)){const F=Uoe(l);F&&F!==A&&$o(N,Nr(l,m.An_outer_value_of_this_is_shadowed_by_this_container))}}}return y||Oe}function Uoe(n,a=!0,l=kd(n,!1,!1)){const u=_r(n);if(Ya(l)&&(!Woe(n)||zb(l))){let h=Xt(l)||u&&yat(l);if(!h){const y=gat(l);if(u&&y){const A=ga(y).symbol;A&&A.members&&A.flags&16&&(h=Vs(A).thisType)}else Xp(l)&&(h=Vs(os(l.symbol)).thisType);h||(h=w8e(l))}if(h)return J0(n,h)}if(_i(l.parent)){const h=kr(l.parent),y=Xa(l)?or(h):Vs(h).thisType;return J0(n,y)}if(Ki(l))if(l.commonJsModuleIndicator){const h=kr(l);return h&&or(h)}else{if(l.externalModuleIndicator)return He;if(a)return or(lt)}}function hat(n){const a=kd(n,!1,!1);if(Ya(a)){const l=zp(a);if(l.thisParameter)return oj(l.thisParameter)}if(_i(a.parent)){const l=kr(a.parent);return Xa(a)?or(l):Vs(l).thisType}}function gat(n){if(n.kind===215&&Tr(n.parent)&&wl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===171&&n.parent.kind===207&&Tr(n.parent.parent)&&wl(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===215&&n.parent.kind===299&&n.parent.parent.kind===207&&Tr(n.parent.parent.parent)&&wl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===215&&$c(n.parent)&&We(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&Is(n.parent.parent)&&io(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&wl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(sc(n)&&We(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&Is(n.parent)&&io(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&wl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function yat(n){const a=Bv(n);if(a&&a.kind===320){const u=a;if(u.parameters.length>0&&u.parameters[0].name&&u.parameters[0].name.escapedText==="this")return pi(u.parameters[0].type)}const l=IM(n);if(l&&l.typeExpression)return pi(l.typeExpression)}function I8e(n,a){return!!rr(n,l=>el(l)?"quit":l.kind===166&&l.parent===a)}function Voe(n){const a=n.parent.kind===210&&n.parent.expression===n,l=$D(n,!0);let u=l,h=!1,y=!1;if(!a){for(;u&&u.kind===216;)Qr(u,512)&&(y=!0),u=$D(u,!0),h=P<2;u&&Qr(u,512)&&(y=!0)}let A=0;if(!u||!Q(u)){const ve=rr(n,Pe=>Pe===u?"quit":Pe.kind===164);return ve&&ve.kind===164?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):!u||!u.parent||!(_i(u.parent)||u.parent.kind===207)?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),Le}if(!a&&l.kind===173&&L8e(n,u,m.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Xa(u)||a?(A=32,!a&&P>=2&&P<=8&&(ro(u)||Rl(u))&&h_e(n.parent,ve=>{(!Ki(ve)||_f(ve))&&(Xr(ve).flags|=8388608)})):A=16,Xr(n).flags|=A,u.kind===171&&y&&(gd(n.parent)&&wh(n.parent)?Xr(u).flags|=256:Xr(u).flags|=128),h&&Goe(n.parent,u),u.parent.kind===207)return P<2?(Xe(n,m.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Le):Oe;const N=u.parent;if(!Wb(N))return Xe(n,m.super_can_only_be_referenced_in_a_derived_class),Le;const F=Vs(kr(N)),K=F&&Bo(F)[0];if(!K)return Le;if(u.kind===173&&I8e(n,u))return Xe(n,m.super_cannot_be_referenced_in_constructor_arguments),Le;return A===32?si(F):Jf(K,F.thisType);function Q(ve){return a?ve.kind===173:_i(ve.parent)||ve.parent.kind===207?Xa(ve)?ve.kind===171||ve.kind===170||ve.kind===174||ve.kind===175||ve.kind===169||ve.kind===172:ve.kind===171||ve.kind===170||ve.kind===174||ve.kind===175||ve.kind===169||ve.kind===168||ve.kind===173:!1}}function vat(n){return(n.kind===171||n.kind===174||n.kind===175)&&n.parent.kind===207?n.parent:n.kind===215&&n.parent.kind===299?n.parent.parent:void 0}function k8e(n){return ni(n)&4&&n.target===Ce?ys(n)[0]:void 0}function bat(n){return Zs(n,a=>a.flags&2097152?Ie(a.types,k8e):k8e(a))}function w8e(n){if(n.kind===216)return;if(UV(n)){const l=ow(n);if(l){const u=l.thisParameter;if(u)return or(u)}}const a=_r(n);if(te||a){const l=vat(n);if(l){const h=ub(l,void 0);let y=l,A=h;for(;A;){const N=bat(A);if(N)return Zi(N,Eoe(J2(l)));if(y.parent.kind!==299)break;y=y.parent.parent,A=ub(y,void 0)}return of(h?uy(h):ec(l))}const u=zv(n.parent);if(u.kind===223&&u.operatorToken.kind===63){const h=u.left;if(ul(h)){const{expression:y}=h;if(a&&We(y)){const A=Zn(u);if(A.commonJsModuleIndicator&&F_(y)===A.symbol)return}return of(ec(y))}}}}function D8e(n){const a=n.parent;if(!UV(a))return;const l=RT(a);if(l&&l.arguments){const h=gse(l),y=a.parameters.indexOf(n);if(n.dotDotDotToken)return mse(h,y,h.length,Oe,void 0,0);const A=Xr(l),N=A.resolvedSignature;A.resolvedSignature=Ys;const F=y<h.length?lb(ga(h[y])):n.initializer?void 0:et;return A.resolvedSignature=N,F}const u=ow(a);if(u){const h=a.parameters.indexOf(n)-(zb(a)?1:0);return n.dotDotDotToken&&rl(a.parameters)===n?cw(u,h):cT(u,h)}}function joe(n,a){const l=iu(n)||(_r(n)?YP(n):void 0);if(l)return pi(l);switch(n.kind){case 166:return D8e(n);case 205:return Eat(n,a);case 169:if(Xa(n))return Tat(n,a)}}function Eat(n,a){const l=n.parent.parent,u=n.propertyName||n.name,h=joe(l,a)||l.kind!==205&&l.initializer&&_w(l,n.dotDotDotToken?64:0);if(!h||$a(u)||KD(u))return;if(l.name.kind===204){const A=nC(n.parent.elements,n);return A<0?void 0:P8e(h,A)}const y=oy(u);if(ng(y)){const A=Sm(y);return hc(h,A)}}function Tat(n,a){const l=yt(n.parent)&&pd(n.parent,a);if(l)return lT(l,kr(n).escapedName)}function Sat(n,a){const l=n.parent;if(Wv(l)&&n===l.initializer){const u=joe(l,a);if(u)return u;if(!(a&8)&&$a(l.name)&&l.name.elements.length>0)return Do(l.name,!0,!1)}}function xat(n,a){const l=Nf(n);if(l){let u=Hoe(l,a);if(u){const h=Jc(l);if(h&1){const y=(h&2)!==0;u.flags&1048576&&(u=gc(u,N=>!!fb(1,N,y)));const A=fb(1,u,(h&2)!==0);if(!A)return;u=A}if(h&2){const y=Zs(u,fy);return y&&ei([y,Hwe(y)])}return u}}}function Aat(n,a){const l=pd(n,a);if(l){const u=fy(l);return u&&ei([u,Hwe(u)])}}function Cat(n,a){const l=Nf(n);if(l){const u=Jc(l);let h=Hoe(l,a);if(h){const y=(u&2)!==0;return!n.asteriskToken&&h.flags&1048576&&(h=gc(h,A=>!!fb(1,A,y))),n.asteriskToken?h:fb(0,h,y)}}}function Woe(n){let a=!1;for(;n.parent&&!Ya(n.parent);){if(Ba(n.parent)&&(a||n.parent.initializer===n))return!0;ms(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function R8e(n,a){const l=!!(Jc(a)&2),u=Hoe(a,void 0);if(u)return fb(n,u,l)||void 0}function Hoe(n,a){const l=_A(n);if(l)return l;const u=Koe(n);if(u&&!gae(u))return vs(u);const h=RT(n);if(h)return pd(h,a)}function N8e(n,a){const u=gse(n).indexOf(a);return u===-1?void 0:zoe(n,u)}function zoe(n,a){if(pf(n))return a===0?de:a===1?Cke(!1):Oe;const l=Xr(n).resolvedSignature===zl?zl:lI(n);if(sd(n)&&a===0)return mj(l,n);const u=l.parameters.length-1;return Lu(l)&&a>=u?jd(or(l.parameters[u]),Jp(a-u),256):bp(l,a)}function Lat(n){const a=Lse(n);return a?$E(a):void 0}function Iat(n,a){if(n.parent.kind===212)return N8e(n.parent,a)}function kat(n,a){const l=n.parent,{left:u,operatorToken:h,right:y}=l;switch(h.kind){case 63:case 76:case 75:case 77:return n===y?Dat(l):void 0;case 56:case 60:const A=pd(l,a);return n===y&&(A&&A.pattern||!A&&!M_e(l))?Fu(u):A;case 55:case 27:return n===y?pd(l,a):void 0;default:return}}function wat(n){if(Um(n)&&n.symbol)return n.symbol;if(We(n))return F_(n);if(Br(n)){const l=Fu(n.expression);return Ri(n.name)?a(l,n.name):_o(l,n.name.escapedText)}if(dl(n)){const l=ec(n.argumentExpression);if(!ng(l))return;const u=Fu(n.expression);return _o(u,Sm(l))}return;function a(l,u){const h=bj(u.escapedText,u);return h&&ase(l,h)}}function Dat(n){var a,l;const u=wl(n);switch(u){case 0:case 4:const h=wat(n.left),y=h&&h.valueDeclaration;if(y&&(ro(y)||Mf(y))){const F=iu(y);return F&&Zi(pi(F),zi(h).mapper)||(ro(y)?y.initializer&&Fu(n.left):void 0)}return u===0?Fu(n.left):O8e(n);case 5:if(fj(n,u))return O8e(n);if(!Um(n.left)||!n.left.symbol)return Fu(n.left);{const F=n.left.symbol.valueDeclaration;if(!F)return;const K=lo(n.left,ul),Q=iu(F);if(Q)return pi(Q);if(We(K.expression)){const ve=K.expression,Pe=ml(ve,ve.escapedText,111551,void 0,ve.escapedText,!0);if(Pe){const Me=Pe.valueDeclaration&&iu(Pe.valueDeclaration);if(Me){const _t=Sg(K);if(_t!==void 0)return lT(pi(Me),_t)}return}}return _r(F)?void 0:Fu(n.left)}case 1:case 6:case 3:case 2:let A;u!==2&&(A=Um(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),A||(A=(l=n.symbol)==null?void 0:l.valueDeclaration);const N=A&&iu(A);return N?pi(N):void 0;case 7:case 8:case 9:return R.fail("Does not apply");default:return R.assertNever(u)}}function fj(n,a=wl(n)){if(a===4)return!0;if(!_r(n)||a!==5||!We(n.left.expression))return!1;const l=n.left.expression.escapedText,u=ml(n.left,l,111551,void 0,void 0,!0,!0);return lP(u==null?void 0:u.valueDeclaration)}function O8e(n){if(!n.symbol)return Fu(n.left);if(n.symbol.valueDeclaration){const h=iu(n.symbol.valueDeclaration);if(h){const y=pi(h);if(y)return y}}const a=lo(n.left,ul);if(!q_(kd(a.expression,!1,!1)))return;const l=P3(a.expression),u=Sg(a);return u!==void 0&&lT(l,u)||void 0}function Rat(n){return!!(Dl(n)&262144&&!n.links.type&&fh(n,0)>=0)}function lT(n,a,l){return Zs(n,u=>{var h;if(Kf(u)&&!u.declaration.nameType){const y=Hp(u),A=td(y)||y,N=l||Xf(ia(a));if(Co(N,A))return wV(u,N)}else if(u.flags&3670016){const y=_o(u,a);if(y)return Rat(y)?void 0:or(y);if(Go(u)&&Oh(a)&&+a>=0){const A=eI(u,u.target.fixedLength,0,!1,!0);if(A)return A}return(h=dae(fae(u),l||Xf(ia(a))))==null?void 0:h.type}},!0)}function M8e(n,a){if(R.assert(q_(n)),!(n.flags&33554432))return qoe(n,a)}function qoe(n,a){const l=n.parent,u=$c(n)&&joe(n,a);if(u)return u;const h=ub(l,a);if(h){if(uA(n)){const y=kr(n);return lT(h,y.escapedName,zi(y).nameType)}if(n.name){const y=oy(n.name);return Zs(h,A=>{var N;return(N=dae(fae(A),y))==null?void 0:N.type},!0)}}}function P8e(n,a){return n&&(a>=0&&lT(n,""+a)||Zs(n,l=>Go(l)?eI(l,0,0,!1,!0):qse(1,l,He,void 0,!1),!0))}function Nat(n,a){const l=n.parent;return n===l.whenTrue||n===l.whenFalse?pd(l,a):void 0}function Oat(n,a,l){const u=ub(n.openingElement.tagName,l),h=gj(AA(n));if(!(u&&!xs(u)&&h&&h!==""))return;const y=LR(n.children),A=y.indexOf(a),N=lT(u,h);return N&&(y.length===1?N:Zs(N,F=>H0(F)?jd(F,Jp(A)):F,!0))}function Mat(n,a){const l=n.parent;return GM(l)?pd(n,a):By(l)?Oat(l,n,a):void 0}function F8e(n,a){if(fm(n)){const l=ub(n.parent,a);return!l||xs(l)?void 0:lT(l,n.name.escapedText)}else return pd(n.parent,a)}function F3(n){switch(n.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 155:return!0;case 208:case 214:return F3(n.expression);case 291:return!n.expression||F3(n.expression)}return!1}function Pat(n,a){return kit(a,n)||ioe(a,ba(Pt(ur(n.properties,l=>!!l.symbol&&l.kind===299&&F3(l.initializer)&&tw(a,l.symbol.escapedName)),l=>[()=>e7(l.initializer),l.symbol.escapedName]),Pt(ur(gs(a),l=>{var u;return!!(l.flags&16777216)&&!!((u=n==null?void 0:n.symbol)!=null&&u.members)&&!n.symbol.members.has(l.escapedName)&&tw(a,l.escapedName)}),l=>[()=>He,l.escapedName])),Co,a)}function Fat(n,a){return ioe(a,ba(Pt(ur(n.properties,l=>!!l.symbol&&l.kind===288&&tw(a,l.symbol.escapedName)&&(!l.initializer||F3(l.initializer))),l=>[l.initializer?()=>e7(l.initializer):()=>Te,l.symbol.escapedName]),Pt(ur(gs(a),l=>{var u;return!!(l.flags&16777216)&&!!((u=n==null?void 0:n.symbol)!=null&&u.members)&&!n.symbol.members.has(l.escapedName)&&tw(a,l.escapedName)}),l=>[()=>He,l.escapedName])),Co,a)}function ub(n,a){const l=q_(n)?M8e(n,a):pd(n,a),u=_j(l,n,a);if(u&&!(a&&a&2&&u.flags&8650752)){const h=Zs(u,nd,!0);return h.flags&1048576&&Is(n)?Pat(n,h):h.flags&1048576&&tE(n)?Fat(n,h):h}}function _j(n,a,l){if(n&&hl(n,465829888)){const u=J2(a);if(u&&l&1&&Dt(u.inferences,hlt))return pj(n,u.nonFixingMapper);if(u!=null&&u.returnMapper){const h=pj(n,u.returnMapper);return h.flags&1048576&&nb(h.types,fe)&&nb(h.types,Y)?gc(h,y=>y!==fe&&y!==Y):h}}return n}function pj(n,a){return n.flags&465829888?Zi(n,a):n.flags&1048576?ei(Pt(n.types,l=>pj(l,a)),0):n.flags&2097152?Ro(Pt(n.types,l=>pj(l,a))):n}function pd(n,a){var l,u;if(n.flags&33554432)return;const h=G8e(n,!a);if(h>=0)return cc[h];const{parent:y}=n;switch(y.kind){case 257:case 166:case 169:case 168:case 205:return Sat(n,a);case 216:case 250:return xat(n,a);case 226:return Cat(y,a);case 220:return Aat(y,a);case 210:case 211:return N8e(y,n);case 167:return Lat(y);case 213:case 231:return yg(y.type)?pd(y,a):pi(y.type);case 223:return kat(n,a);case 299:case 300:return qoe(y,a);case 301:return pd(y.parent,a);case 206:{const A=y,N=ub(A,a),F=(u=(l=Xr(A)).firstSpreadIndex)!=null?u:l.firstSpreadIndex=ii(A.elements,Fh),K=nC(A.elements,n);return P8e(N,F<0||K<F?K:-1)}case 224:return Nat(n,a);case 236:return R.assert(y.parent.kind===225),Iat(y.parent,n);case 214:{if(_r(y)){if(aK(y))return pi(oK(y));const A=Rb(y);if(A&&!yg(A.typeExpression.type))return pi(A.typeExpression.type)}return pd(y,a)}case 232:return pd(y,a);case 235:return pi(y.type);case 274:return Vd(y);case 291:return Mat(y,a);case 288:case 290:return F8e(y,a);case 283:case 282:return Uat(y,a)}}function B8e(n){B3(n,pd(n,void 0),!0)}function B3(n,a,l){Qs[Mg]=n,cc[Mg]=a,ih[Mg]=l,Mg++}function aw(){Mg--}function G8e(n,a){for(let l=Mg-1;l>=0;l--)if(n===Qs[l]&&(a||!ih[l]))return l;return-1}function Bat(n,a){sp[f0]=n,w1[f0]=a,f0++}function Gat(){f0--}function J2(n){for(let a=f0-1;a>=0;a--)if(PT(n,sp[a]))return w1[a]}function Uat(n,a){if(Gh(n)&&a!==4){const l=G8e(n.parent,!a);if(l>=0)return cc[l]}return zoe(n,0)}function mj(n,a){return Ewe(a)!==0?Vat(n,a):Hat(n,a)}function Vat(n,a){let l=Ase(n,ye);l=U8e(a,AA(a),l);const u=db(Pf.IntrinsicAttributes,a);return is(u)||(l=a3(u,l)),l}function jat(n,a){if(n.compositeSignatures){const u=[];for(const h of n.compositeSignatures){const y=vs(h);if(xs(y))return y;const A=hc(y,a);if(!A)return;u.push(A)}return Ro(u)}const l=vs(n);return xs(l)?l:hc(l,a)}function Wat(n){if(aI(n.tagName)){const l=X8e(n),u=Lj(n,l);return $E(u)}const a=ec(n.tagName);if(a.flags&128){const l=K8e(a,n);if(!l)return Le;const u=Lj(n,l);return $E(u)}return a}function U8e(n,a,l){const u=cot(a);if(u){const h=Vs(u),y=Wat(n);if(u.flags&524288){const A=zi(u).typeParameters;if(ge(A)>=2){const N=yv([y,l],A,2,_r(n));return hA(u,N)}}if(ge(h.typeParameters)>=2){const A=yv([y,l],h.typeParameters,2,_r(n));return ay(h,A)}}return l}function Hat(n,a){const l=AA(a),u=uot(l);let h=u===void 0?Ase(n,ye):u===""?vs(n):jat(n,u);if(!h)return u&&ge(a.attributes.properties)&&Xe(a,m.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,ia(u)),ye;if(h=U8e(a,l,h),xs(h))return h;{let y=h;const A=db(Pf.IntrinsicClassAttributes,a);if(!is(A)){const F=_v(A.symbol),K=vs(n);let Q;if(F){const ve=yv([K],F,Am(F),_r(a));Q=Zi(A,Cd(F,ve))}else Q=A;y=a3(Q,y)}const N=db(Pf.IntrinsicAttributes,a);return is(N)||(y=a3(N,y)),y}}function zat(n){return A_(ne,"noImplicitAny")?Vu(n,(a,l)=>a===l||!a?a:JIe(a.typeParameters,l.typeParameters)?Kat(a,l):void 0):void 0}function qat(n,a,l){if(!n||!a)return n||a;const u=ei([or(n),Zi(or(a),l)]);return nT(n,u)}function Jat(n,a,l){const u=sf(n),h=sf(a),y=u>=h?n:a,A=y===n?a:n,N=y===n?u:h,F=Dm(n)||Dm(a),K=F&&!Dm(y),Q=new Array(N+(K?1:0));for(let ve=0;ve<N;ve++){let Pe=cT(y,ve);y===a&&(Pe=Zi(Pe,l));let Me=cT(A,ve)||ye;A===a&&(Me=Zi(Me,l));const _t=ei([Pe,Me]),Ut=F&&!K&&ve===N-1,Mn=ve>=wm(y)&&ve>=wm(A),xn=ve>=u?void 0:cI(n,ve),Kn=ve>=h?void 0:cI(a,ve),hn=xn===Kn?xn:xn?Kn?void 0:xn:Kn,Tn=rs(1|(Mn&&!Ut?16777216:0),hn||`arg${ve}`);Tn.links.type=Ut?Ou(_t):_t,Q[ve]=Tn}if(K){const ve=rs(1,"args");ve.links.type=Ou(bp(A,N)),A===a&&(ve.links.type=Zi(ve.links.type,l)),Q[N]=ve}return Q}function Kat(n,a){const l=n.typeParameters||a.typeParameters;let u;n.typeParameters&&a.typeParameters&&(u=Cd(a.typeParameters,n.typeParameters));const h=n.declaration,y=Jat(n,a,u),A=qat(n.thisParameter,a.thisParameter,u),N=Math.max(n.minArgumentCount,a.minArgumentCount),F=ph(h,l,A,y,void 0,void 0,N,(n.flags|a.flags)&39);return F.compositeKind=2097152,F.compositeSignatures=ba(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),u&&(F.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?W0(n.mapper,u):u),F}function Joe(n,a){const l=Ja(n,0),u=ur(l,h=>!Xat(h,a));return u.length===1?u[0]:zat(u)}function Xat(n,a){let l=0;for(;l<a.parameters.length;l++){const u=a.parameters[l];if(u.initializer||u.questionToken||u.dotDotDotToken||ZR(u))break}return a.parameters.length&&qb(a.parameters[0])&&l--,!Dm(n)&&sf(n)<l}function Koe(n){return DC(n)||q_(n)?ow(n):void 0}function ow(n){R.assert(n.kind!==171||q_(n));const a=G8(n);if(a)return a;const l=ub(n,1);if(!l)return;if(!(l.flags&1048576))return Joe(l,n);let u;const h=l.types;for(const y of h){const A=Joe(y,n);if(A)if(!u)u=[A];else if(C3(u[0],A,!1,!0,!0,J8))u.push(A);else return}if(u)return u.length===1?u[0]:zIe(u[0],u)}function Yat(n,a){P<2&&yc(n,ne.downlevelIteration?1536:1024);const l=ga(n.expression,a);return Cv(33,l,He,n.expression)}function $at(n){return n.isSpread?jd(n.type,mt):n.type}function iI(n){return n.kind===205&&!!n.initializer||n.kind===223&&n.operatorToken.kind===63}function V8e(n,a,l){const u=n.elements,h=u.length,y=[],A=[];B8e(n);const N=wh(n),F=uI(n),K=ub(n,void 0),Q=!!K&&lg(K,ZL);let ve=!1;for(let Pe=0;Pe<h;Pe++){const Me=u[Pe];if(Me.kind===227){P<2&&yc(Me,ne.downlevelIteration?1536:1024);const _t=ga(Me.expression,a,l);if(H0(_t))y.push(_t),A.push(8);else if(N){const Ut=iy(_t,mt)||qse(65,_t,He,void 0,!1)||ye;y.push(Ut),A.push(4)}else y.push(Cv(33,_t,He,Me.expression)),A.push(4)}else if(Je&&Me.kind===229)ve=!0,y.push(jt),A.push(2);else{const _t=dI(Me,a,l);if(y.push(wo(_t,!0,ve)),A.push(ve?2:1),Q&&a&&a&2&&!(a&4)&&P_(Me)){const Ut=J2(n);R.assert(Ut),W4e(Ut,Me,_t)}}}return aw(),N?qp(y,A):j8e(l||F||Q?qp(y,A,F):Ou(y.length?ei(Ui(y,(Pe,Me)=>A[Me]&8?bv(Pe,mt)||Oe:Pe),2):z?nn:et,F))}function j8e(n){if(!(ni(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=pke(n),a.objectFlags|=147456),a}function Qat(n){switch(n.kind){case 164:return Zat(n);case 79:return Oh(n.escapedText);case 8:case 10:return Oh(n.text);default:return!1}}function Zat(n){return Vc(dy(n),296)}function dy(n){const a=Xr(n.expression);if(!a.resolvedType){if((hf(n.parent.parent)||_i(n.parent.parent)||dd(n.parent.parent))&&Tr(n.expression)&&n.expression.operatorToken.kind===101&&n.parent.kind!==174&&n.parent.kind!==175)return a.resolvedType=Le;if(a.resolvedType=ga(n.expression),ro(n.parent)&&!Tc(n.parent)&&Ku(n.parent.parent)){const l=Hm(n.parent.parent),u=Boe(l);u&&(Xr(u).flags|=4096,Xr(n).flags|=32768,Xr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Vc(a.resolvedType,402665900)&&!Co(a.resolvedType,ui))&&Xe(n,m.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function eot(n){var a;const l=(a=n.declarations)==null?void 0:a[0];return Oh(n.escapedName)||l&&Su(l)&&Qat(l.name)}function W8e(n){var a;const l=(a=n.declarations)==null?void 0:a[0];return xR(n)||l&&Su(l)&&Cs(l.name)&&Vc(dy(l.name),4096)}function Xoe(n,a,l,u){const h=[];for(let A=a;A<l.length;A++){const N=l[A];(u===de&&!W8e(N)||u===mt&&eot(N)||u===J&&W8e(N))&&h.push(or(l[A]))}const y=h.length?ei(h,2):He;return Cm(u,y,uI(n))}function Yoe(n){R.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=zi(n);if(!a.immediateTarget){const l=Td(n);if(!l)return R.fail();a.immediateTarget=_p(l,!0)}return a.immediateTarget}function tot(n,a){var l;const u=wh(n);nft(n,u);const h=z?uo():void 0;let y=uo(),A=[],N=pa;B8e(n);const F=ub(n,void 0),K=F&&F.pattern&&(F.pattern.kind===203||F.pattern.kind===207),Q=uI(n),ve=Q?8:0,Pe=_r(n)&&!_P(n),Me=Vz(n),_t=!F&&Pe&&!Me;let Ut=Ue,Mn=!1,xn=!1,Kn=!1,hn=!1;for(const ln of n.properties)ln.name&&Cs(ln.name)&&dy(ln.name);let Tn=0;for(const ln of n.properties){let Gn=kr(ln);const qn=ln.name&&ln.name.kind===164?dy(ln.name):void 0;if(ln.kind===299||ln.kind===300||q_(ln)){let ti=ln.kind===299?iDe(ln,a):ln.kind===300?dI(!u&&ln.objectAssignmentInitializer?ln.objectAssignmentInitializer:ln.name,a):aDe(ln,a);if(Pe){const eo=ki(ln);eo?(_d(ti,eo,ln),ti=eo):Me&&Me.typeExpression&&_d(ti,pi(Me.typeExpression),ln)}Ut|=ni(ti)&458752;const oi=qn&&ng(qn)?qn:void 0,ma=oi?rs(4|Gn.flags,Sm(oi),ve|4096):rs(4|Gn.flags,Gn.escapedName,ve);if(oi&&(ma.links.nameType=oi),u)(ln.kind===299&&iI(ln.initializer)||ln.kind===300&&ln.objectAssignmentInitializer)&&(ma.flags|=16777216);else if(K&&!(ni(F)&512)){const eo=_o(F,Gn.escapedName);eo?ma.flags|=eo.flags&16777216:!ne.suppressExcessPropertyErrors&&!mh(F,de)&&Xe(ln.name,m.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,x(Gn),Re(F))}if(ma.declarations=Gn.declarations,ma.parent=Gn.parent,Gn.valueDeclaration&&(ma.valueDeclaration=Gn.valueDeclaration),ma.links.type=ti,ma.links.target=Gn,Gn=ma,h==null||h.set(ma.escapedName,ma),F&&a&&a&2&&!(a&4)&&(ln.kind===299||ln.kind===171)&&P_(ln)){const eo=J2(n);R.assert(eo);const Cc=ln.kind===299?ln.initializer:ln;W4e(eo,Cc,ti)}}else if(ln.kind===301){P<2&&yc(ln,2),A.length>0&&(N=ib(N,br(),n.symbol,Ut,Q),A=[],y=uo(),xn=!1,Kn=!1,hn=!1);const ti=yp(ga(ln.expression));if(G3(ti)){const oi=Wae(ti,Q);if(h&&z8e(oi,h,ln),Tn=A.length,is(N))continue;N=ib(N,oi,n.symbol,Ut,Q)}else Xe(ln,m.Spread_types_may_only_be_created_from_object_types),N=Le;continue}else R.assert(ln.kind===174||ln.kind===175),gI(ln);qn&&!(qn.flags&8576)?Co(qn,ui)&&(Co(qn,mt)?Kn=!0:Co(qn,J)?hn=!0:xn=!0,u&&(Mn=!0)):y.set(Gn.escapedName,Gn),A.push(Gn)}if(aw(),K){const ln=rr(F.pattern.parent,qn=>qn.kind===257||qn.kind===223||qn.kind===166);if(rr(n,qn=>qn===ln||qn.kind===301).kind!==301)for(const qn of gs(F))!y.get(qn.escapedName)&&!_o(N,qn.escapedName)&&(qn.flags&16777216||Xe(qn.valueDeclaration||((l=li(qn,jm))==null?void 0:l.links.bindingElement),m.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),y.set(qn.escapedName,qn),A.push(qn))}if(is(N))return Le;if(N!==pa)return A.length>0&&(N=ib(N,br(),n.symbol,Ut,Q),A=[],y=uo(),xn=!1,Kn=!1),Zs(N,ln=>ln===pa?br():ln);return br();function br(){const ln=[];xn&&ln.push(Xoe(n,Tn,A,de)),Kn&&ln.push(Xoe(n,Tn,A,mt)),hn&&ln.push(Xoe(n,Tn,A,J));const Gn=Os(n.symbol,y,it,it,ln);return Gn.objectFlags|=Ut|128|131072,_t&&(Gn.objectFlags|=4096),Mn&&(Gn.objectFlags|=512),u&&(Gn.pattern=n),Gn}}function G3(n){const a=G4e(Zs(n,gv));return!!(a.flags&126615553||a.flags&3145728&&Qn(a.types,G3))}function not(n){ese(n)}function rot(n,a){return gI(n),U3(n)||Oe}function iot(n){ese(n.openingElement),aI(n.closingElement.tagName)?Qoe(n.closingElement):ga(n.closingElement.tagName),hj(n)}function aot(n,a){return gI(n),U3(n)||Oe}function oot(n){ese(n.openingFragment);const a=Zn(n);return GJ(ne)&&(ne.jsxFactory||a.pragmas.has("jsx"))&&!ne.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Xe(n,ne.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),hj(n),U3(n)||Oe}function $oe(n){return bu(n,"-")}function aI(n){return n.kind===79&&xk(n.escapedText)}function H8e(n,a){return n.initializer?dI(n.initializer,a):Te}function sot(n,a){const l=n.attributes,u=pd(l,0),h=z?uo():void 0;let y=uo(),A=nc,N=!1,F,K=!1,Q=2048;const ve=gj(AA(n));for(const _t of l.properties){const Ut=_t.symbol;if(fm(_t)){const Mn=H8e(_t,a);Q|=ni(Mn)&458752;const xn=rs(4|Ut.flags,Ut.escapedName);if(xn.declarations=Ut.declarations,xn.parent=Ut.parent,Ut.valueDeclaration&&(xn.valueDeclaration=Ut.valueDeclaration),xn.links.type=Mn,xn.links.target=Ut,y.set(xn.escapedName,xn),h==null||h.set(xn.escapedName,xn),_t.name.escapedText===ve&&(K=!0),u){const Kn=_o(u,Ut.escapedName);Kn&&Kn.declarations&&b0(Kn)&&Vg(_t.name,Kn.declarations,_t.name.escapedText)}}else{R.assert(_t.kind===290),y.size>0&&(A=ib(A,Me(),l.symbol,Q,!1),y=uo());const Mn=yp(ec(_t.expression,a));xs(Mn)&&(N=!0),G3(Mn)?(A=ib(A,Mn,l.symbol,Q,!1),h&&z8e(Mn,h,_t)):(Xe(_t.expression,m.Spread_types_may_only_be_created_from_object_types),F=F?Ro([F,Mn]):Mn)}}N||y.size>0&&(A=ib(A,Me(),l.symbol,Q,!1));const Pe=n.parent.kind===281?n.parent:void 0;if(Pe&&Pe.openingElement===n&&Pe.children.length>0){const _t=hj(Pe,a);if(!N&&ve&&ve!==""){K&&Xe(l,m._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,ia(ve));const Ut=ub(n.attributes,void 0),Mn=Ut&&lT(Ut,ve),xn=rs(4,ve);xn.links.type=_t.length===1?_t[0]:Mn&&lg(Mn,ZL)?qp(_t):Ou(ei(_t)),xn.valueDeclaration=O.createPropertySignature(void 0,ia(ve),void 0,void 0),jo(xn.valueDeclaration,l),xn.valueDeclaration.symbol=xn;const Kn=uo();Kn.set(ve,xn),A=ib(A,Os(l.symbol,Kn,it,it,it),l.symbol,Q,!1)}}if(N)return Oe;if(F&&A!==nc)return Ro([F,A]);return F||(A===nc?Me():A);function Me(){Q|=Ue;const _t=Os(l.symbol,y,it,it,it);return _t.objectFlags|=Q|128|131072,_t}}function hj(n,a){const l=[];for(const u of n.children)if(u.kind===11)u.containsOnlyTriviaWhiteSpaces||l.push(de);else{if(u.kind===291&&!u.expression)continue;l.push(dI(u,a))}return l}function z8e(n,a,l){for(const u of gs(n))if(!(u.flags&16777216)){const h=a.get(u.escapedName);if(h){const y=Xe(h.valueDeclaration,m._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,ia(h.escapedName));$o(y,Nr(l,m.This_spread_always_overwrites_this_property))}}}function lot(n,a){return sot(n.parent,a)}function db(n,a){const l=AA(a),u=l&&Tf(l),h=u&&ef(u,n,788968);return h?Vs(h):Le}function Qoe(n){const a=Xr(n);if(!a.resolvedSymbol){const l=db(Pf.IntrinsicElements,n);if(is(l))return Ae&&Xe(n,m.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,ia(Pf.IntrinsicElements)),a.resolvedSymbol=an;{if(!We(n.tagName))return R.fail();const u=_o(l,n.tagName.escapedText);return u?(a.jsxFlags|=1,a.resolvedSymbol=u):iy(l,de)?(a.jsxFlags|=2,a.resolvedSymbol=l.symbol):(Xe(n,m.Property_0_does_not_exist_on_type_1,Pr(n.tagName),"JSX."+Pf.IntrinsicElements),a.resolvedSymbol=an)}}return a.resolvedSymbol}function Zoe(n){const a=n&&Zn(n),l=a&&Xr(a);if(l&&l.jsxImplicitImportContainer===!1)return;if(l&&l.jsxImplicitImportContainer)return l.jsxImplicitImportContainer;const u=jP(VP(ne,a),ne);if(!u)return;const y=El(ne)===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,A=Ac(n,u,y,n),N=A&&A!==an?os(Ql(A)):void 0;return l&&(l.jsxImplicitImportContainer=N||!1),N}function AA(n){const a=n&&Xr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let u=Zoe(n);if(!u||u===an){const h=P1(n);u=ml(n,h,1920,void 0,h,!1)}if(u){const h=Ql(ef(Tf(Ql(u)),Pf.JSX,1920));if(h&&h!==an)return a&&(a.jsxNamespace=h),h}a&&(a.jsxNamespace=!1)}const l=Ql(j8(Pf.JSX,1920,void 0));if(l!==an)return l}function q8e(n,a){const l=a&&ef(a.exports,n,788968),u=l&&Vs(l),h=u&&gs(u);if(h){if(h.length===0)return"";if(h.length===1)return h[0].escapedName;h.length>1&&l.declarations&&Xe(l.declarations[0],m.The_global_type_JSX_0_may_not_have_more_than_one_property,ia(n))}}function cot(n){return n&&ef(n.exports,Pf.LibraryManagedAttributes,788968)}function uot(n){return q8e(Pf.ElementAttributesPropertyNameContainer,n)}function gj(n){return q8e(Pf.ElementChildrenAttributeNameContainer,n)}function J8e(n,a){if(n.flags&4)return[Ys];if(n.flags&128){const h=K8e(n,a);return h?[Lj(a,h)]:(Xe(a,m.Property_0_does_not_exist_on_type_1,n.value,"JSX."+Pf.IntrinsicElements),it)}const l=nd(n);let u=Ja(l,1);return u.length===0&&(u=Ja(l,0)),u.length===0&&l.flags&1048576&&(u=Qie(Pt(l.types,h=>J8e(h,a)))),u}function K8e(n,a){const l=db(Pf.IntrinsicElements,a);if(!is(l)){const u=n.value,h=_o(l,cl(u));if(h)return or(h);const y=iy(l,de);return y||void 0}return Oe}function dot(n,a,l){if(n===1){const h=$8e(l);h&&p_(a,h,Md,l.tagName,m.Its_return_type_0_is_not_a_valid_JSX_element,u)}else if(n===0){const h=Y8e(l);h&&p_(a,h,Md,l.tagName,m.Its_instance_type_0_is_not_a_valid_JSX_element,u)}else{const h=$8e(l),y=Y8e(l);if(!h||!y)return;const A=ei([h,y]);p_(a,A,Md,l.tagName,m.Its_element_type_0_is_not_a_valid_JSX_element,u)}function u(){const h=kc(l.tagName);return Na(void 0,m._0_cannot_be_used_as_a_JSX_component,h)}}function X8e(n){R.assert(aI(n.tagName));const a=Xr(n);if(!a.resolvedJsxElementAttributesType){const l=Qoe(n);return a.jsxFlags&1?a.resolvedJsxElementAttributesType=or(l)||Le:a.jsxFlags&2?a.resolvedJsxElementAttributesType=iy(db(Pf.IntrinsicElements,n),de)||Le:a.resolvedJsxElementAttributesType=Le}return a.resolvedJsxElementAttributesType}function Y8e(n){const a=db(Pf.ElementClass,n);if(!is(a))return a}function U3(n){return db(Pf.Element,n)}function $8e(n){const a=U3(n);if(a)return ei([a,Sn])}function fot(n){const a=db(Pf.IntrinsicElements,n);return a?gs(a):it}function _ot(n){(ne.jsx||0)===0&&Xe(n,m.Cannot_use_JSX_unless_the_jsx_flag_is_provided),U3(n)===void 0&&Ae&&Xe(n,m.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function ese(n){const a=sd(n);if(a&&rft(n),_ot(n),!Zoe(n)){const l=es&&ne.jsx===2?m.Cannot_find_name_0:void 0,u=P1(n),h=a?n.tagName:n;let y;if(ux(n)&&u==="null"||(y=ml(h,u,111551,l,u,!0)),y&&(y.isReferenced=67108863,!ne.verbatimModuleSyntax&&y.flags&2097152&&!Bd(y)&&J1(y)),ux(n)){const A=Zn(n),N=L2(A);N&&ml(h,N,111551,l,N,!0)}}if(a){const l=n,u=lI(l);kj(u,n),dot(Ewe(l),vs(u),l)}}function tse(n,a,l){if(n.flags&524288){if(Q1(n,a)||fA(n,a)||O8(a)&&mh(n,de)||l&&$oe(a))return!0}else if(n.flags&3145728&&V3(n)){for(const u of n.types)if(tse(u,a,l))return!0}return!1}function V3(n){return!!(n.flags&524288&&!(ni(n)&512)||n.flags&67108864||n.flags&1048576&&Dt(n.types,V3)||n.flags&2097152&&Qn(n.types,V3))}function pot(n,a){if(aft(n),n.expression){const l=ga(n.expression,a);return n.dotDotDotToken&&l!==Oe&&!Yf(l)&&Xe(n,m.JSX_spread_child_must_be_an_array_type),l}else return Le}function yj(n){return n.valueDeclaration?Ap(n.valueDeclaration):0}function nse(n){if(n.flags&8192||Dl(n)&4)return!0;if(_r(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&Tr(a)&&wl(a)===3}}function rse(n,a,l,u,h,y=!0){const A=y?n.kind===163?n.right:n.kind===202?n:n.kind===205&&n.propertyName?n.propertyName:n.name:void 0;return Q8e(n,a,l,u,h,A)}function Q8e(n,a,l,u,h,y){const A=a_(h,l);if(a){if(P<2&&Z8e(h))return y&&Xe(y,m.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(A&256)return y&&Xe(y,m.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,x(h),Re(z2(h))),!1}if(A&256&&Z8e(h)&&(QD(n)||D_e(n)||$m(n.parent)&&lP(n.parent.parent))){const F=Cg(xd(h));if(F&&idt(n))return y&&Xe(y,m.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,x(h),K_(F.name)),!1}if(!(A&24))return!0;if(A&8){const F=Cg(xd(h));return rle(n,F)?!0:(y&&Xe(y,m.Property_0_is_private_and_only_accessible_within_class_1,x(h),Re(z2(h))),!1)}if(a)return!0;let N=mRe(n,F=>{const K=Vs(kr(F));return R4e(K,h,l)});return!N&&(N=mot(n),N=N&&R4e(N,h,l),A&32||!N)?(y&&Xe(y,m.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,x(h),Re(z2(h)||u)),!1):A&32?!0:(u.flags&262144&&(u=u.isThisType?Ru(u):td(u)),!u||!JE(u,N)?(y&&Xe(y,m.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,x(h),Re(N),Re(u)),!1):!0)}function mot(n){const a=hot(n);let l=(a==null?void 0:a.type)&&pi(a.type);if(l&&l.flags&262144&&(l=Ru(l)),l&&ni(l)&7)return cA(l)}function hot(n){const a=kd(n,!1,!1);return a&&Ya(a)?zb(a):void 0}function Z8e(n){return!!x3(n,a=>!(a.flags&8192))}function oI(n){return Kp(ga(n),n)}function vj(n){return!!(Pu(n)&50331648)}function ise(n){return vj(n)?uy(n):n}function got(n,a){const l=Jl(n)?Rf(n):void 0;if(n.kind===104){Xe(n,m.The_value_0_cannot_be_used_here,"null");return}if(l!==void 0&&l.length<100){if(We(n)&&l==="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,l)}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 yot(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 ewe(n,a,l){if(z&&n.flags&2){if(Jl(a)){const h=Rf(a);if(h.length<100)return Xe(a,m._0_is_of_type_unknown,h),Le}return Xe(a,m.Object_is_of_type_unknown),Le}const u=Pu(n);if(u&50331648){l(a,u);const h=uy(n);return h.flags&229376?Le:h}return n}function Kp(n,a){return ewe(n,a,got)}function twe(n,a){const l=Kp(n,a);if(l.flags&16384){if(Jl(a)){const u=Rf(a);if(We(a)&&u==="undefined")return Xe(a,m.The_value_0_cannot_be_used_here,u),l;if(u.length<100)return Xe(a,m._0_is_possibly_undefined,u),l}Xe(a,m.Object_is_possibly_undefined)}return l}function nwe(n,a){return n.flags&32?vot(n,a):ose(n,n.expression,oI(n.expression),n.name,a)}function vot(n,a){const l=ga(n.expression),u=$8(l,n.expression);return $V(ose(n,n.expression,Kp(u,n.expression),n.name,a),n,u!==l)}function rwe(n,a){const l=fP(n)&&GT(n.left)?Kp(P3(n.left),n.left):oI(n.left);return ose(n,n.left,l,n.right,a)}function iwe(n){for(;n.parent.kind===214;)n=n.parent;return vg(n.parent)&&n.parent.expression===n}function bj(n,a){for(let l=wc(a);l;l=wc(l)){const{symbol:u}=l,h=SR(u,n),y=u.members&&u.members.get(h)||u.exports&&u.exports.get(h);if(y)return y}}function bot(n){if(!wc(n))return bn(n,m.Private_identifiers_are_not_allowed_outside_class_bodies);if(!YK(n.parent)){if(!Tg(n))return bn(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=Tr(n.parent)&&n.parent.operatorToken.kind===101;if(!Ej(n)&&!a)return bn(n,m.Cannot_find_name_0,Pr(n))}return!1}function Eot(n){bot(n);const a=Ej(n);return a&&W3(a,void 0,!1),Oe}function Ej(n){if(!Tg(n))return;const a=Xr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=bj(n.escapedText,n)),a.resolvedSymbol}function ase(n,a){return _o(n,a.escapedName)}function Tot(n,a,l){let u;const h=gs(n);h&&Ie(h,A=>{const N=A.valueDeclaration;if(N&&Su(N)&&Ri(N.name)&&N.name.escapedText===a.escapedText)return u=A,!0});const y=u_(a);if(u){const A=R.checkDefined(u.valueDeclaration),N=R.checkDefined(wc(A));if(l!=null&&l.valueDeclaration){const F=l.valueDeclaration,K=wc(F);if(R.assert(!!K),rr(K,Q=>N===Q)){const Q=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,Re(n));return $o(Q,Nr(F,m.The_shadowing_declaration_of_0_is_defined_here,y),Nr(A,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,u_(N.name||cN)),!0}return!1}function awe(n,a){return(Ud(a)||QD(n)&&Wp(a))&&kd(n,!0,!1)===Tm(a)}function ose(n,a,l,u,h){const y=Xr(a).resolvedSymbol,A=MT(n),N=nd(A!==0||iwe(n)?of(l):l),F=xs(N)||N===ut;let K;if(Ri(u)){P<99&&(A!==0&&yc(n,1048576),A!==1&&yc(n,524288));const ve=bj(u.escapedText,u);if(A&&ve&&ve.valueDeclaration&&sc(ve.valueDeclaration)&&bn(u,m.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Pr(u)),F){if(ve)return is(N)?Le:N;if(!wc(u))return bn(u,m.Private_identifiers_are_not_allowed_outside_class_bodies),Oe}if(K=ve?ase(l,ve):void 0,!K&&Tot(l,u,ve))return Le;K&&K.flags&65536&&!(K.flags&32768)&&A!==1&&Xe(n,m.Private_accessor_was_defined_without_a_getter)}else{if(F)return We(a)&&y&&dj(y,n),is(N)?Le:N;K=_o(N,u.escapedText,!1,n.kind===163)}We(a)&&y&&(Y_(ne)||!(K&&(Tw(K)||K.flags&8&&n.parent.kind===302))||Kb(ne)&&x8e(n))&&dj(y,n);let Q;if(K){b0(K)&&Bae(n,K)&&K.declarations&&Vg(u,K.declarations,u.escapedText),Sot(K,n,u),W3(K,n,fwe(a,y)),Xr(n).resolvedSymbol=K;const ve=Pk(n);if(rse(n,a.kind===106,ve,N,K),Qwe(n,K,A))return Xe(u,m.Cannot_assign_to_0_because_it_is_a_read_only_property,Pr(u)),Le;Q=awe(n,K)?gt:ve?VL(K):or(K)}else{const ve=!Ri(u)&&(A===0||!rb(l)||Xk(l))?fA(N,u.escapedText):void 0;if(!(ve&&ve.type)){const Pe=sse(n,l.symbol,!0);return!Pe&&H8(l)?Oe:l.symbol===lt?(lt.exports.has(u.escapedText)&&lt.exports.get(u.escapedText).flags&418?Xe(u,m.Property_0_does_not_exist_on_type_1,ia(u.escapedText),Re(l)):Ae&&Xe(u,m.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Re(l)),Oe):(u.escapedText&&!E0(n)&&lwe(u,Xk(l)?N:l,Pe),Le)}ve.isReadonly&&(wh(n)||Qq(n))&&Xe(n,m.Index_signature_in_type_0_only_permits_reading,Re(N)),Q=ne.noUncheckedIndexedAccess&&!wh(n)?ei([ve.type,Ye]):ve.type,ne.noPropertyAccessFromIndexSignature&&Br(n)&&Xe(u,m.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,ia(u.escapedText)),ve.declaration&&Ap(ve.declaration)&268435456&&Vg(u,[ve.declaration],u.escapedText)}return owe(n,K,Q,u,h)}function sse(n,a,l){const u=Zn(n);if(u&&ne.checkJs===void 0&&u.checkJsDirective===void 0&&(u.scriptKind===1||u.scriptKind===2)){const h=Ie(a==null?void 0:a.declarations,Zn);return!(u!==h&&h&&oh(h))&&!(l&&a&&a.flags&32)&&!(n&&l&&Br(n)&&n.expression.kind===108)}return!1}function owe(n,a,l,u,h){const y=MT(n);if(y===1)return tT(l,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&l.flags&1048576)&&!qj(a.declarations))return l;if(l===gt)return sA(n,a);l=Foe(l,n,h);let A=!1;if(z&&Ee&&ul(n)&&n.expression.kind===108){const F=a&&a.valueDeclaration;if(F&&tRe(F)&&!Xa(F)){const K=iw(n);K.kind===173&&K.parent===F.parent&&!(F.flags&16777216)&&(A=!0)}}else z&&a&&a.valueDeclaration&&Br(a.valueDeclaration)&&lR(a.valueDeclaration)&&iw(n)===iw(a.valueDeclaration)&&(A=!0);const N=J0(n,l,A?cy(l):l);return A&&!YL(l)&&YL(N)?(Xe(u,m.Property_0_is_used_before_being_assigned,x(a)),l):y?xv(N):N}function Sot(n,a,l){const{valueDeclaration:u}=n;if(!u||Zn(a).isDeclarationFile)return;let h;const y=Pr(l);swe(a)&&!ytt(u)&&!(ul(a)&&ul(a.expression))&&!Wg(u,l)&&!(sc(u)&&Cy(u)&32)&&(ne.useDefineForClassFields||!xot(n))?h=Xe(l,m.Property_0_is_used_before_its_initialization,y):u.kind===260&&a.parent.kind!==180&&!(u.flags&16777216)&&!Wg(u,l)&&(h=Xe(l,m.Class_0_used_before_its_declaration,y)),h&&$o(h,Nr(u,m._0_is_declared_here,y))}function swe(n){return!!rr(n,a=>{switch(a.kind){case 169:return!0;case 299:case 171:case 174:case 175:case 301:case 164:case 236:case 291:case 288:case 289:case 290:case 283:case 230:case 294:return!1;case 216:case 241:return fo(a.parent)&&Rl(a.parent.parent)?!0:"quit";default:return Tg(a)?!1:"quit"}})}function xot(n){if(!(n.parent.flags&32))return!1;let a=or(n.parent);for(;;){if(a=a.symbol&&Aot(a),!a)return!1;const l=_o(a,n.escapedName);if(l&&l.valueDeclaration)return!0}}function Aot(n){const a=Bo(n);if(a.length!==0)return Ro(a)}function lwe(n,a,l){let u,h;if(!Ri(n)&&a.flags&1048576&&!(a.flags&134348796)){for(const A of a.types)if(!_o(A,n.escapedText)&&!fA(A,n.escapedText)){u=Na(u,m.Property_0_does_not_exist_on_type_1,Ds(n),Re(A));break}}if(cwe(n.escapedText,a)){const A=Ds(n),N=Re(a);u=Na(u,m.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,A,N,N+"."+A)}else{const A=gw(a);if(A&&_o(A,n.escapedText))u=Na(u,m.Property_0_does_not_exist_on_type_1,Ds(n),Re(a)),h=Nr(n,m.Did_you_forget_to_use_await);else{const N=Ds(n),F=Re(a),K=Iot(N,a);if(K!==void 0)u=Na(u,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,N,F,K);else{const Q=lse(n,a);if(Q!==void 0){const ve=Gl(Q),Pe=l?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;u=Na(u,Pe,N,F,ve),h=Q.valueDeclaration&&Nr(Q.valueDeclaration,m._0_is_declared_here,ve)}else{const ve=Cot(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;u=Na(cae(u,a),ve,N,F)}}}}const y=bg(Zn(n),n,u);h&&$o(y,h),Xy(!l||u.code!==m.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,y)}function Cot(n){return ne.lib&&!ne.lib.includes("dom")&&Hit(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(ia(a.symbol.escapedName)))&&ag(n)}function cwe(n,a){const l=a.symbol&&_o(or(a.symbol),n);return l!==void 0&&!!l.valueDeclaration&&Xa(l.valueDeclaration)}function Lot(n){const a=u_(n),u=bq().get(a);return u&&Bue(u.keys())}function Iot(n,a){const l=nd(a).symbol;if(!l)return;const u=Gl(l),y=bq().get(u);if(y){for(const[A,N]of y)if(Fr(N,n))return A}}function uwe(n,a){return j3(n,gs(a),106500)}function lse(n,a){let l=gs(a);if(typeof n!="string"){const u=n.parent;Br(u)&&(l=ur(l,h=>_we(u,a,h))),n=Pr(n)}return j3(n,l,111551)}function dwe(n,a){const l=za(n)?n:Pr(n),u=gs(a),h=l==="for"?$t(u,y=>Gl(y)==="htmlFor"):l==="class"?$t(u,y=>Gl(y)==="className"):void 0;return h!=null?h:j3(l,u,111551)}function cse(n,a){const l=lse(n,a);return l&&Gl(l)}function use(n,a,l){return R.assert(a!==void 0,"outername should always be defined"),V1(n,a,l,void 0,a,!1,!1,!0,(h,y,A)=>{R.assertEqual(a,y,"name should equal outerName");const N=ef(h,y,A);if(N)return N;let F;return h===ze?F=ua(["string","number","boolean","object","bigint","symbol"],Q=>h.has(Q.charAt(0).toUpperCase()+Q.slice(1))?rs(524288,Q):void 0).concat(Oo(h.values())):F=Oo(h.values()),j3(ia(y),F,A)})}function kot(n,a,l){const u=use(n,a,l);return u&&Gl(u)}function Tj(n,a){return a.exports&&j3(Pr(n),nv(a),2623475)}function wot(n,a){const l=Tj(n,a);return l&&Gl(l)}function Dot(n,a,l){function u(A){const N=Q1(n,A);if(N){const F=K2(or(N));return!!F&&wm(F)>=1&&Co(l,bp(F,0))}return!1}const h=wh(a)?"set":"get";if(!u(h))return;let y=PR(a.expression);return y===void 0?y=h:y+="."+h,y}function Rot(n,a){const l=a.types.filter(u=>!!(u.flags&128));return FI(n.value,l,u=>u.value)}function j3(n,a,l){return FI(n,a,u);function u(h){const y=Gl(h);if(!xa(y,'"')){if(h.flags&l)return y;if(h.flags&2097152){const A=Jg(h);if(A&&A.flags&l)return y}}}}function W3(n,a,l){const u=n&&n.flags&106500&&n.valueDeclaration;if(!u)return;const h=Hd(u,8),y=n.valueDeclaration&&Su(n.valueDeclaration)&&Ri(n.valueDeclaration.name);if(!(!h&&!y)&&!(a&&wJ(a)&&!(n.flags&65536))){if(l){const A=rr(a,el);if(A&&A.symbol===n)return}(Dl(n)&1?zi(n).target:n).isReferenced=67108863}}function fwe(n,a){return n.kind===108||!!a&&Jl(n)&&a===F_(Of(n))}function Not(n,a){switch(n.kind){case 208:return dse(n,n.expression.kind===106,a,of(ga(n.expression)));case 163:return dse(n,!1,a,of(ga(n.left)));case 202:return dse(n,!1,a,pi(n))}}function _we(n,a,l){return fse(n,n.kind===208&&n.expression.kind===106,!1,a,l)}function dse(n,a,l,u){if(xs(u))return!0;const h=_o(u,l);return!!h&&fse(n,a,!1,u,h)}function fse(n,a,l,u,h){if(xs(u))return!0;if(h.valueDeclaration&&od(h.valueDeclaration)){const y=wc(h.valueDeclaration);return!xu(n)&&!!rr(n,A=>A===y)}return Q8e(n,a,l,u,h)}function Oot(n){const a=n.initializer;if(a.kind===258){const l=a.declarations[0];if(l&&!$a(l.name))return kr(l)}else if(a.kind===79)return F_(a)}function Mot(n){return Nu(n).length===1&&!!mh(n,mt)}function Pot(n){const a=Hs(n);if(a.kind===79){const l=F_(a);if(l.flags&3){let u=n,h=n.parent;for(;h;){if(h.kind===246&&u===h.statement&&Oot(h)===l&&Mot(Fu(h.expression)))return!0;u=h,h=h.parent}}}return!1}function Fot(n,a){return n.flags&32?Bot(n,a):pwe(n,oI(n.expression),a)}function Bot(n,a){const l=ga(n.expression),u=$8(l,n.expression);return $V(pwe(n,Kp(u,n.expression),a),n,u!==l)}function pwe(n,a,l){const u=MT(n)!==0||iwe(n)?of(a):a,h=n.argumentExpression,y=ga(h);if(is(u)||u===ut)return u;if(wse(u)&&!As(h))return Xe(h,m.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Le;const A=Pot(h)?mt:y,N=wh(n)?4|(rb(u)&&!Xk(u)?2:0):32,F=bv(u,A,N,n)||Le;return yDe(owe(n,Xr(n).resolvedSymbol,F,h,l),n)}function mwe(n){return vg(n)||qT(n)||sd(n)}function CA(n){return mwe(n)&&Ie(n.typeArguments,vo),n.kind===212?ga(n.template):sd(n)?ga(n.attributes):n.kind!==167&&Ie(n.arguments,a=>{ga(a)}),Ys}function km(n){return CA(n),rn}function Got(n,a,l){let u,h,y=0,A,N=-1,F;R.assert(!a.length);for(const K of n){const Q=K.declaration&&kr(K.declaration),ve=K.declaration&&K.declaration.parent;!h||Q===h?u&&ve===u?A=A+1:(u=ve,A=y):(A=y=a.length,u=ve),h=Q,LY(K)?(N++,F=N,y++):F=A,a.splice(F,0,l?jet(K,l):K)}}function Sj(n){return!!n&&(n.kind===227||n.kind===234&&n.isSpread)}function xj(n){return ii(n,Sj)}function hwe(n){return!!(n.flags&16384)}function Uot(n){return!!(n.flags&49155)}function Aj(n,a,l,u=!1){let h,y=!1,A=sf(l),N=wm(l);if(n.kind===212)if(h=a.length,n.template.kind===225){const F=Ko(n.template.templateSpans);y=kl(F.literal)||!!F.literal.isUnterminated}else{const F=n.template;R.assert(F.kind===14),y=!!F.isUnterminated}else if(n.kind===167)h=Swe(n,l);else if(sd(n)){if(y=n.attributes.end===n.end,y)return!0;h=N===0?a.length:1,A=a.length===0?A:1,N=Math.min(N,1)}else if(n.arguments){h=u?a.length+1:a.length,y=n.arguments.end===n.end;const F=xj(a);if(F>=0)return F>=wm(l)&&(Dm(l)||F<sf(l))}else return R.assert(n.kind===211),wm(l)===0;if(!Dm(l)&&h>A)return!1;if(y||h>=N)return!0;for(let F=h;F<N;F++){const K=bp(l,F);if(gc(K,_r(n)&&!z?Uot:hwe).flags&131072)return!1}return!0}function _se(n,a){const l=ge(n.typeParameters),u=Am(n.typeParameters);return!Dt(a)||a.length>=u&&a.length<=l}function K2(n){return sw(n,0,!1)}function gwe(n){return sw(n,0,!1)||sw(n,1,!1)}function sw(n,a,l){if(n.flags&524288){const u=gp(n);if(l||u.properties.length===0&&u.indexInfos.length===0){if(a===0&&u.callSignatures.length===1&&u.constructSignatures.length===0)return u.callSignatures[0];if(a===1&&u.constructSignatures.length===1&&u.callSignatures.length===0)return u.constructSignatures[0]}}}function ywe(n,a,l,u){const h=Z8(n.typeParameters,n,0,u),y=uw(a),A=l&&(y&&y.flags&262144?l.nonFixingMapper:l.mapper),N=A?EA(a,A):a;return goe(N,n,(F,K)=>{sg(h.inferences,F,K)}),l||yoe(a,n,(F,K)=>{sg(h.inferences,F,K,128)}),U8(n,Doe(h),_r(a.declaration))}function Vot(n,a,l,u){const h=mj(a,n),y=LA(n.attributes,h,u,l);return sg(u.inferences,y,h),Doe(u)}function vwe(n){if(!n)return wt;const a=ga(n);return ek(n.parent)?uy(a):xu(n.parent)?poe(a):a}function pse(n,a,l,u,h){if(sd(n))return Vot(n,a,u,h);if(n.kind!==167){const F=Qn(a.typeParameters,Q=>!!YE(Q)),K=pd(n,F?8:0);if(K){const Q=vs(a);if(rT(Q)){const ve=J2(n);if(!(!F&&pd(n,8)!==K)){const Ut=Eoe(oit(ve,1)),Mn=Zi(K,Ut),xn=K2(Mn),Kn=xn&&xn.typeParameters?$E(yae(xn,xn.typeParameters)):Mn;sg(h.inferences,Kn,Q,128)}const Me=Z8(a.typeParameters,a,h.flags),_t=Zi(K,ve&&ve.returnMapper);sg(Me.inferences,_t,Q),h.returnMapper=Dt(Me.inferences,IA)?Eoe(uit(Me)):void 0}}}const y=dw(a),A=y?Math.min(sf(a)-1,l.length):l.length;if(y&&y.flags&262144){const F=$t(h.inferences,K=>K.typeParameter===y);F&&(F.impliedArity=ii(l,Sj,A)<0?l.length-A:void 0)}const N=eb(a);if(N&&rT(N)){const F=Twe(n);sg(h.inferences,vwe(F),N)}for(let F=0;F<A;F++){const K=l[F];if(K.kind!==229&&!(u&32&&Aoe(K))){const Q=bp(a,F);if(rT(Q)){const ve=LA(K,Q,h,u);sg(h.inferences,ve,Q)}}}if(y&&rT(y)){const F=mse(l,A,l.length,y,h,u);sg(h.inferences,F,y)}return Doe(h)}function bwe(n){return n.flags&1048576?Zs(n,bwe):n.flags&1||JV(td(n)||n)?n:Go(n)?qp(ys(n),n.target.elementFlags,!1,n.target.labeledElementDeclarations):qp([n],[8])}function mse(n,a,l,u,h,y){if(a>=l-1){const Q=n[l-1];if(Sj(Q))return bwe(Q.kind===234?Q.type:LA(Q.expression,u,h,y))}const A=[],N=[],F=[],K=l3(u);for(let Q=a;Q<l;Q++){const ve=n[Q];if(Sj(ve)){const Pe=ve.kind===234?ve.type:ga(ve.expression);H0(Pe)?(A.push(Pe),N.push(8)):(A.push(Cv(33,Pe,He,ve.kind===227?ve.expression:ve)),N.push(4))}else{const Pe=jd(u,Jp(Q-a),256),Me=LA(ve,Pe,h,y),_t=K||hl(Pe,406978556);A.push(_t?Ad(Me):lb(Me)),N.push(1)}ve.kind===234&&ve.tupleNameSource&&F.push(ve.tupleNameSource)}return qp(A,N,K,ge(F)===ge(A)?F:void 0)}function hse(n,a,l,u){const h=_r(n.declaration),y=n.typeParameters,A=yv(Pt(a,pi),y,Am(y),h);let N;for(let F=0;F<a.length;F++){R.assert(y[F]!==void 0,"Should not call checkTypeArguments with too many type arguments");const K=Ru(y[F]);if(K){const Q=l&&u?()=>Na(void 0,m.Type_0_does_not_satisfy_the_constraint_1):void 0,ve=u||m.Type_0_does_not_satisfy_the_constraint_1;N||(N=Cd(y,A));const Pe=A[F];if(!_d(Pe,Jf(Zi(K,N),Pe),l?a[F]:void 0,ve,Q))return}}return A}function Ewe(n){if(aI(n.tagName))return 2;const a=nd(ga(n.tagName));return ge(Ja(a,1))?0:ge(Ja(a,0))?1:2}function jot(n,a,l,u,h,y,A){const N=mj(a,n),F=LA(n.attributes,N,void 0,u);return K()&&Zae(F,N,l,h?n.tagName:void 0,n.attributes,void 0,y,A);function K(){var Q;if(Zoe(n))return!0;const ve=Gh(n)||sx(n)&&!aI(n.tagName)?ga(n.tagName):void 0;if(!ve)return!0;const Pe=Ja(ve,0);if(!ge(Pe))return!0;const Me=CRe(n);if(!Me)return!0;const _t=Pl(Me,111551,!0,!1,n);if(!_t)return!0;const Ut=or(_t),Mn=Ja(Ut,0);if(!ge(Mn))return!0;let xn=!1,Kn=0;for(const Tn of Mn){const br=bp(Tn,0),ln=Ja(br,0);if(ge(ln))for(const Gn of ln){if(xn=!0,Dm(Gn))return!0;const qn=sf(Gn);qn>Kn&&(Kn=qn)}}if(!xn)return!0;let hn=1/0;for(const Tn of Pe){const br=wm(Tn);br<hn&&(hn=br)}if(hn<=Kn)return!0;if(h){const Tn=Nr(n.tagName,m.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,Rf(n.tagName),hn,Rf(Me),Kn),br=(Q=B_(n.tagName))==null?void 0:Q.valueDeclaration;br&&$o(Tn,Nr(br,m._0_is_declared_here,Rf(n.tagName))),A&&A.skipLogging&&(A.errors||(A.errors=[])).push(Tn),A.skipLogging||es.add(Tn)}return!1}}function H3(n,a,l,u,h,y,A){const N={errors:void 0,skipLogging:!0};if(sd(n))return jot(n,l,u,h,y,A,N)?void 0:(R.assert(!y||!!N.errors,"jsx should have errors when reporting errors"),N.errors||it);const F=eb(l);if(F&&F!==wt&&!(Zb(n)||io(n)&&gd(n.expression))){const Me=Twe(n),_t=vwe(Me),Ut=y?Me||n:void 0,Mn=m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!p_(_t,F,u,Ut,Mn,A,N))return R.assert(!y||!!N.errors,"this parameter should have errors when reporting errors"),N.errors||it}const K=m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,Q=dw(l),ve=Q?Math.min(sf(l)-1,a.length):a.length;for(let Me=0;Me<ve;Me++){const _t=a[Me];if(_t.kind!==229){const Ut=bp(l,Me),Mn=LA(_t,Ut,void 0,h),xn=h&4?I3(Mn):Mn;if(!Zae(xn,Ut,u,y?_t:void 0,_t,K,A,N))return R.assert(!y||!!N.errors,"parameter should have errors when reporting errors"),Pe(_t,xn,Ut),N.errors||it}}if(Q){const Me=mse(a,ve,a.length,Q,void 0,h),_t=a.length-ve,Ut=y?_t===0?n:_t===1?a[ve]:Xm(z3(n,Me),a[ve].pos,a[a.length-1].end):void 0;if(!p_(Me,Q,u,Ut,K,void 0,N))return R.assert(!y||!!N.errors,"rest parameter should have errors when reporting errors"),Pe(Ut,Me,Q),N.errors||it}return;function Pe(Me,_t,Ut){if(Me&&y&&N.errors&&N.errors.length){if(hw(Ut))return;const Mn=hw(_t);Mn&&Im(Mn,Ut,u)&&$o(N.errors[0],Nr(Me,m.Did_you_forget_to_use_await))}}}function Twe(n){const a=n.kind===210?n.expression:n.kind===212?n.tag:void 0;if(a){const l=Cu(a);if(ul(l))return l.expression}}function z3(n,a,l,u){const h=th.createSyntheticExpression(a,l,u);return ht(h,n),jo(h,n),h}function gse(n){if(n.kind===212){const u=n.template,h=[z3(u,Mtt())];return u.kind===225&&Ie(u.templateSpans,y=>{h.push(y.expression)}),h}if(n.kind===167)return Wot(n);if(sd(n))return n.attributes.properties.length>0||Gh(n)&&n.parent.children.length>0?[n.attributes]:it;const a=n.arguments||it,l=xj(a);if(l>=0){const u=a.slice(0,l);for(let h=l;h<a.length;h++){const y=a[h],A=y.kind===227&&(Wn?ga(y.expression):ec(y.expression));A&&Go(A)?Ie(ys(A),(N,F)=>{var K;const Q=A.target.elementFlags[F],ve=z3(y,Q&4?Ou(N):N,!!(Q&12),(K=A.target.labeledElementDeclarations)==null?void 0:K[F]);u.push(ve)}):u.push(y)}return u}return a}function Wot(n){const a=n.expression,l=Lse(n);if(l){const u=[];for(const h of l.parameters){const y=or(h);u.push(z3(a,y))}return u}return R.fail()}function Swe(n,a){return ne.experimentalDecorators?Hot(n,a):2}function Hot(n,a){switch(n.parent.kind){case 260:case 228:return 1;case 169:return qm(n.parent)?3:2;case 171:case 174:case 175:return P===0||a.parameters.length<=2?2:3;case 166:return 3;default:return R.fail()}}function xwe(n,a){let l,u;const h=Zn(n);if(Br(n.expression)){const y=Gb(h,n.expression.name);l=y.start,u=a?y.length:n.end-l}else{const y=Gb(h,n.expression);l=y.start,u=a?y.length:n.end-l}return{start:l,length:u,sourceFile:h}}function lw(n,a,l,u,h,y){if(io(n)){const{sourceFile:A,start:N,length:F}=xwe(n);return"message"in a?Pc(A,N,F,a,l,u,h,y):Rq(A,a)}else return"message"in a?Nr(n,a,l,u,h,y):bg(Zn(n),n,a)}function zot(n){if(!io(n)||!We(n.expression))return!1;const a=ml(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),l=a==null?void 0:a.valueDeclaration;if(!l||!Ba(l)||!DC(l.parent)||!Zb(l.parent.parent)||!We(l.parent.parent.expression))return!1;const u=Lae(!1);return u?B_(l.parent.parent.expression,!0)===u:!1}function Awe(n,a,l,u){var h;const y=xj(l);if(y>-1)return Nr(l[y],m.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let A=Number.POSITIVE_INFINITY,N=Number.NEGATIVE_INFINITY,F=Number.NEGATIVE_INFINITY,K=Number.POSITIVE_INFINITY,Q;for(const Ut of a){const Mn=wm(Ut),xn=sf(Ut);Mn<A&&(A=Mn,Q=Ut),N=Math.max(N,xn),Mn<l.length&&Mn>F&&(F=Mn),l.length<xn&&xn<K&&(K=xn)}const ve=Dt(a,Dm),Pe=ve?A:A<N?A+"-"+N:A,Me=!ve&&Pe===1&&l.length===0&&zot(n);if(Me&&_r(n))return lw(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 _t=qu(n)?ve?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:ve?m.Expected_at_least_0_arguments_but_got_1:Me?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(A<l.length&&l.length<N){if(u){let Ut=Na(void 0,m.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,l.length,F,K);return Ut=Na(Ut,u),lw(n,Ut)}return lw(n,m.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,l.length,F,K)}else if(l.length<A){let Ut;if(u){let xn=Na(void 0,_t,Pe,l.length);xn=Na(xn,u),Ut=lw(n,xn)}else Ut=lw(n,_t,Pe,l.length);const Mn=(h=Q==null?void 0:Q.declaration)==null?void 0:h.parameters[Q.thisParameter?l.length+1:l.length];if(Mn){const xn=Nr(Mn,$a(Mn.name)?m.An_argument_matching_this_binding_pattern_was_not_provided:Lh(Mn)?m.Arguments_for_the_rest_parameter_0_were_not_provided:m.An_argument_for_0_was_not_provided,Mn.name?$a(Mn.name)?void 0:Pr(Of(Mn.name)):l.length);return $o(Ut,xn)}return Ut}else{const Ut=O.createNodeArray(l.slice(N)),Mn=ds(Ut).pos;let xn=Ko(Ut).end;if(xn===Mn&&xn++,Xm(Ut,Mn,xn),u){let Kn=Na(void 0,_t,Pe,l.length);return Kn=Na(Kn,u),XD(Zn(n),Ut,Kn)}return iC(Zn(n),Ut,_t,Pe,l.length)}}function qot(n,a,l,u){const h=l.length;if(a.length===1){const N=a[0],F=Am(N.typeParameters),K=ge(N.typeParameters);if(u){let Q=Na(void 0,m.Expected_0_type_arguments_but_got_1,F<K?F+"-"+K:F,h);return Q=Na(Q,u),XD(Zn(n),l,Q)}return iC(Zn(n),l,m.Expected_0_type_arguments_but_got_1,F<K?F+"-"+K:F,h)}let y=-1/0,A=1/0;for(const N of a){const F=Am(N.typeParameters),K=ge(N.typeParameters);F>h?A=Math.min(A,F):K<h&&(y=Math.max(y,K))}if(y!==-1/0&&A!==1/0){if(u){let N=Na(void 0,m.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,h,y,A);return N=Na(N,u),XD(Zn(n),l,N)}return iC(Zn(n),l,m.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,h,y,A)}if(u){let N=Na(void 0,m.Expected_0_type_arguments_but_got_1,y===-1/0?A:y,h);return N=Na(N,u),XD(Zn(n),l,N)}return iC(Zn(n),l,m.Expected_0_type_arguments_but_got_1,y===-1/0?A:y,h)}function sI(n,a,l,u,h,y){const A=n.kind===212,N=n.kind===167,F=sd(n),K=!H&&!l;let Q;!N&&!aC(n)&&(Q=n.typeArguments,(A||F||n.expression.kind!==106)&&Ie(Q,vo));const ve=l||[];if(Got(a,ve,h),!ve.length)return K&&es.add(lw(n,m.Call_target_does_not_contain_any_signatures)),km(n);const Pe=gse(n),Me=ve.length===1&&!ve[0].typeParameters;let _t=!N&&!Me&&Dt(Pe,P_)?4:0;_t|=u&32;let Ut,Mn,xn,Kn;const hn=!!(u&16)&&n.kind===210&&n.arguments.hasTrailingComma;if(ve.length>1&&(Kn=br(ve,ah,Me,hn)),Kn||(Kn=br(ve,Md,Me,hn)),Kn)return Kn;if(Kn=Jot(n,ve,Pe,!!l,u),Xr(n).resolvedSignature=Kn,K)if(Ut)if(Ut.length===1||Ut.length>3){const ln=Ut[Ut.length-1];let Gn;Ut.length>3&&(Gn=Na(Gn,m.The_last_overload_gave_the_following_error),Gn=Na(Gn,m.No_overload_matches_this_call)),y&&(Gn=Na(Gn,y));const qn=H3(n,Pe,ln,Md,0,!0,()=>Gn);if(qn)for(const ti of qn)ln.declaration&&Ut.length>3&&$o(ti,Nr(ln.declaration,m.The_last_overload_is_declared_here)),Tn(ln,ti),es.add(ti);else R.fail("No error for last overload signature")}else{const ln=[];let Gn=0,qn=Number.MAX_VALUE,ti=0,oi=0;for(const Lf of Ut){const Un=H3(n,Pe,Lf,Md,0,!0,()=>Na(void 0,m.Overload_0_of_1_2_gave_the_following_error,oi+1,ve.length,le(Lf)));Un?(Un.length<=qn&&(qn=Un.length,ti=oi),Gn=Math.max(Gn,Un.length),ln.push(Un)):R.fail("No error for 3 or fewer overload signatures"),oi++}const ma=Gn>1?ln[ti]:Ha(ln);R.assert(ma.length>0,"No errors reported for 3 or fewer overload signatures");let eo=Na(Pt(ma,y_e),m.No_overload_matches_this_call);y&&(eo=Na(eo,y));const Cc=[...ji(ma,Lf=>Lf.relatedInformation)];let $f;if(Qn(ma,Lf=>Lf.start===ma[0].start&&Lf.length===ma[0].length&&Lf.file===ma[0].file)){const{file:Lf,start:ca,length:Un}=ma[0];$f={file:Lf,start:ca,length:Un,code:eo.code,category:eo.category,messageText:eo,relatedInformation:Cc}}else $f=bg(Zn(n),n,eo,Cc);Tn(Ut[0],$f),es.add($f)}else if(Mn)es.add(Awe(n,[Mn],Pe,y));else if(xn)hse(xn,n.typeArguments,!0,y);else{const ln=ur(a,Gn=>_se(Gn,Q));ln.length===0?es.add(qot(n,a,Q,y)):es.add(Awe(n,ln,Pe,y))}return Kn;function Tn(ln,Gn){var qn,ti;const oi=Ut,ma=Mn,eo=xn,Cc=((ti=(qn=ln.declaration)==null?void 0:qn.symbol)==null?void 0:ti.declarations)||it,Lf=Cc.length>1?$t(Cc,ca=>el(ca)&&b_(ca.body)):void 0;if(Lf){const ca=zp(Lf),Un=!ca.typeParameters;br([ca],Md,Un)&&$o(Gn,Nr(Lf,m.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Ut=oi,Mn=ma,xn=eo}function br(ln,Gn,qn,ti=!1){if(Ut=void 0,Mn=void 0,xn=void 0,qn){const oi=ln[0];if(Dt(Q)||!Aj(n,Pe,oi,ti))return;if(H3(n,Pe,oi,Gn,0,!1,void 0)){Ut=[oi];return}return oi}for(let oi=0;oi<ln.length;oi++){const ma=ln[oi];if(!_se(ma,Q)||!Aj(n,Pe,ma,ti))continue;let eo,Cc;if(ma.typeParameters){let $f;if(Dt(Q)){if($f=hse(ma,Q,!1),!$f){xn=ma;continue}}else Cc=Z8(ma.typeParameters,ma,_r(n)?2:0),$f=pse(n,ma,Pe,_t|8,Cc),_t|=Cc.flags&4?8:0;if(eo=U8(ma,$f,_r(ma.declaration),Cc&&Cc.inferredTypeParameters),dw(ma)&&!Aj(n,Pe,eo,ti)){Mn=eo;continue}}else eo=ma;if(H3(n,Pe,eo,Gn,_t,!1,void 0)){(Ut||(Ut=[])).push(eo);continue}if(_t){if(_t=u&32,Cc){const $f=pse(n,ma,Pe,_t,Cc);if(eo=U8(ma,$f,_r(ma.declaration),Cc.inferredTypeParameters),dw(ma)&&!Aj(n,Pe,eo,ti)){Mn=eo;continue}}if(H3(n,Pe,eo,Gn,_t,!1,void 0)){(Ut||(Ut=[])).push(eo);continue}}return ln[oi]=eo,eo}}}function Jot(n,a,l,u,h){return R.assert(a.length>0),gI(n),u||a.length===1||a.some(y=>!!y.typeParameters)?Yot(n,a,l,h):Kot(a)}function Kot(n){const a=ua(n,F=>F.thisParameter);let l;a.length&&(l=Cwe(a,a.map(J3)));const{min:u,max:h}=ime(n,Xot),y=[];for(let F=0;F<h;F++){const K=ua(n,Q=>Lu(Q)?F<Q.parameters.length-1?Q.parameters[F]:Ko(Q.parameters):F<Q.parameters.length?Q.parameters[F]:void 0);R.assert(K.length!==0),y.push(Cwe(K,ua(n,Q=>cT(Q,F))))}const A=ua(n,F=>Lu(F)?Ko(F.parameters):void 0);let N=0;if(A.length!==0){const F=Ou(ei(ua(n,cke),2));y.push(Lwe(A,F)),N|=1}return n.some(LY)&&(N|=2),ph(n[0].declaration,void 0,l,y,Ro(n.map(vs)),void 0,u,N)}function Xot(n){const a=n.parameters.length;return Lu(n)?a-1:a}function Cwe(n,a){return Lwe(n,ei(a,2))}function Lwe(n,a){return nT(ds(n),a)}function Yot(n,a,l,u){const h=Zot(a,nt===void 0?l.length:nt),y=a[h],{typeParameters:A}=y;if(!A)return y;const N=mwe(n)?n.typeArguments:void 0,F=N?bV(y,$ot(N,A,_r(n))):Qot(n,A,y,l,u);return a[h]=F,F}function $ot(n,a,l){const u=n.map(X2);for(;u.length>a.length;)u.pop();for(;u.length<a.length;)u.push(YE(a[u.length])||Ru(a[u.length])||woe(l));return u}function Qot(n,a,l,u,h){const y=Z8(a,l,_r(n)?2:0),A=pse(n,l,u,h|4|8,y);return bV(l,A)}function Zot(n,a){let l=-1,u=-1;for(let h=0;h<n.length;h++){const y=n[h],A=sf(y);if(Dm(y)||A>=a)return h;A>u&&(u=A,l=h)}return l}function est(n,a,l){if(n.expression.kind===106){const F=Voe(n.expression);if(xs(F)){for(const K of n.arguments)ga(K);return Ys}if(!is(F)){const K=am(wc(n));if(K){const Q=jr(F,K.typeArguments,K);return sI(n,Q,a,l,0)}}return CA(n)}let u,h=ga(n.expression);if(TT(n)){const F=$8(h,n.expression);u=F===h?0:tk(n)?16:8,h=F}else u=0;if(h=ewe(h,n.expression,yot),h===ut)return wu;const y=nd(h);if(is(y))return km(n);const A=Ja(y,0),N=Ja(y,1).length;if(Cj(h,y,A.length,N))return!is(h)&&n.typeArguments&&Xe(n,m.Untyped_function_calls_may_not_accept_type_arguments),CA(n);if(!A.length){if(N)Xe(n,m.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Re(h));else{let F;if(n.arguments.length===1){const K=Zn(n).text;Tu(K.charCodeAt(Yo(K,n.expression.end,!0)-1))&&(F=Nr(n.expression,m.Are_you_missing_a_semicolon))}vse(n.expression,y,0,F)}return km(n)}return l&8&&!n.typeArguments&&A.some(tst)?(sDe(n,l),zl):A.some(F=>_r(F.declaration)&&!!Gz(F.declaration))?(Xe(n,m.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Re(h)),km(n)):sI(n,A,a,l,u)}function tst(n){return!!(n.typeParameters&&ole(vs(n)))}function Cj(n,a,l,u){return xs(n)||xs(a)&&!!(n.flags&262144)||!l&&!u&&!(a.flags&1048576)&&!(yp(a).flags&131072)&&Co(n,_l)}function nst(n,a,l){if(n.arguments&&P<1){const A=xj(n.arguments);A>=0&&Xe(n.arguments[A],m.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let u=oI(n.expression);if(u===ut)return wu;if(u=nd(u),is(u))return km(n);if(xs(u))return n.typeArguments&&Xe(n,m.Untyped_function_calls_may_not_accept_type_arguments),CA(n);const h=Ja(u,1);if(h.length){if(!rst(n,h[0]))return km(n);if(Iwe(h,N=>!!(N.flags&4)))return Xe(n,m.Cannot_create_an_instance_of_an_abstract_class),km(n);const A=u.symbol&&Cg(u.symbol);return A&&Qr(A,256)?(Xe(n,m.Cannot_create_an_instance_of_an_abstract_class),km(n)):sI(n,h,a,l,0)}const y=Ja(u,0);if(y.length){const A=sI(n,y,a,l,0);return Ae||(A.declaration&&!Xp(A.declaration)&&vs(A)!==wt&&Xe(n,m.Only_a_void_function_can_be_called_with_the_new_keyword),eb(A)===wt&&Xe(n,m.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),A}return vse(n.expression,u,1),km(n)}function Iwe(n,a){return ja(n)?Dt(n,l=>Iwe(l,a)):n.compositeKind===1048576?Dt(n.compositeSignatures,a):a(n)}function yse(n,a){const l=Bo(a);if(!ge(l))return!1;const u=l[0];if(u.flags&2097152){const h=u.types,y=XIe(h);let A=0;for(const N of u.types){if(!y[A]&&ni(N)&3&&(N.symbol===n||yse(n,N)))return!0;A++}return!1}return u.symbol===n?!0:yse(n,u)}function rst(n,a){if(!a||!a.declaration)return!0;const l=a.declaration,u=US(l,24);if(!u||l.kind!==173)return!0;const h=Cg(l.parent.symbol),y=Vs(l.parent.symbol);if(!rle(n,h)){const A=wc(n);if(A&&u&16){const N=X2(A);if(yse(l.parent.symbol,N))return!0}return u&8&&Xe(n,m.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Re(y)),u&16&&Xe(n,m.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Re(y)),!1}return!0}function kwe(n,a,l){let u;const h=l===0,y=dT(a),A=y&&Ja(y,l).length>0;if(a.flags&1048576){const F=a.types;let K=!1;for(const Q of F)if(Ja(Q,l).length!==0){if(K=!0,u)break}else if(u||(u=Na(u,h?m.Type_0_has_no_call_signatures:m.Type_0_has_no_construct_signatures,Re(Q)),u=Na(u,h?m.Not_all_constituents_of_type_0_are_callable:m.Not_all_constituents_of_type_0_are_constructable,Re(a))),K)break;K||(u=Na(void 0,h?m.No_constituent_of_type_0_is_callable:m.No_constituent_of_type_0_is_constructable,Re(a))),u||(u=Na(u,h?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,Re(a)))}else u=Na(u,h?m.Type_0_has_no_call_signatures:m.Type_0_has_no_construct_signatures,Re(a));let N=h?m.This_expression_is_not_callable:m.This_expression_is_not_constructable;if(io(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:F}=Xr(n);F&&F.flags&32768&&(N=m.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Na(u,N),relatedMessage:A?m.Did_you_forget_to_use_await:void 0}}function vse(n,a,l,u){const{messageChain:h,relatedMessage:y}=kwe(n,a,l),A=bg(Zn(n),n,h);if(y&&$o(A,Nr(n,y)),io(n.parent)){const{start:N,length:F}=xwe(n.parent,!0);A.start=N,A.length=F}es.add(A),wwe(a,l,u?$o(A,u):A)}function wwe(n,a,l){if(!n.symbol)return;const u=zi(n.symbol).originatingImport;if(u&&!pf(u)){const h=Ja(or(zi(n.symbol).target),a);if(!h||!h.length)return;$o(l,Nr(u,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 ist(n,a,l){const u=ga(n.tag),h=nd(u);if(is(h))return km(n);const y=Ja(h,0),A=Ja(h,1).length;if(Cj(u,h,y.length,A))return CA(n);if(!y.length){if(Ju(n.parent)){const N=Nr(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 es.add(N),km(n)}return vse(n.tag,h,0),km(n)}return sI(n,y,a,l,0)}function ast(n){switch(n.parent.kind){case 260:case 228:return m.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 166:return m.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 169:return m.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 171:case 174:case 175:return m.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return R.fail()}}function ost(n,a,l){const u=ga(n.expression),h=nd(u);if(is(h))return km(n);const y=Ja(h,0),A=Ja(h,1).length;if(Cj(u,h,y.length,A))return CA(n);if(lst(n,y)&&!qd(n.expression)){const F=kc(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,F),km(n)}const N=ast(n);if(!y.length){const F=kwe(n.expression,h,0),K=Na(F.messageChain,N),Q=bg(Zn(n.expression),n.expression,K);return F.relatedMessage&&$o(Q,Nr(n.expression,F.relatedMessage)),es.add(Q),wwe(h,0,Q),km(n)}return sI(n,y,a,l,0,N)}function Lj(n,a){const l=AA(n),u=l&&Tf(l),h=u&&ef(u,Pf.Element,788968),y=h&&$e.symbolToEntityName(h,788968,n),A=O.createFunctionTypeNode(void 0,[O.createParameterDeclaration(void 0,void 0,"props",void 0,$e.typeToTypeNode(a,n))],y?O.createTypeReferenceNode(y,void 0):O.createKeywordTypeNode(131)),N=rs(1,"props");return N.links.type=a,ph(A,void 0,void 0,[N],h?Vs(h):Le,void 0,1,0)}function sst(n,a,l){if(aI(n.tagName)){const A=X8e(n),N=Lj(n,A);return Sv(LA(n.attributes,mj(N,n),void 0,0),A,n.tagName,n.attributes),ge(n.typeArguments)&&(Ie(n.typeArguments,vo),es.add(iC(Zn(n),n.typeArguments,m.Expected_0_type_arguments_but_got_1,0,ge(n.typeArguments)))),N}const u=ga(n.tagName),h=nd(u);if(is(h))return km(n);const y=J8e(u,n);return Cj(u,h,y.length,0)?CA(n):y.length===0?(Xe(n.tagName,m.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,kc(n.tagName)),km(n)):sI(n,y,a,l,0)}function lst(n,a){return a.length&&Qn(a,l=>l.minArgumentCount===0&&!Lu(l)&&l.parameters.length<Swe(n,l))}function cst(n,a,l){switch(n.kind){case 210:return est(n,a,l);case 211:return nst(n,a,l);case 212:return ist(n,a,l);case 167:return ost(n,a,l);case 283:case 282:return sst(n,a,l)}throw R.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function lI(n,a,l){const u=Xr(n),h=u.resolvedSignature;if(h&&h!==zl&&!a)return h;u.resolvedSignature=zl;const y=cst(n,a,l||0);return y!==zl&&(u.resolvedSignature=En===Wn?y:h),y}function Xp(n){var a;if(!n||!_r(n))return!1;const l=Sc(n)||Us(n)?n:($i(n)||$c(n))&&n.initializer&&Us(n.initializer)?n.initializer:void 0;if(l){if(Gz(n))return!0;if($c(zv(l.parent)))return!1;const u=kr(l);return!!((a=u==null?void 0:u.members)!=null&&a.size)}return!1}function bse(n,a){var l,u;if(a){const h=zi(a);if(!h.inferredClassSymbol||!h.inferredClassSymbol.has(To(n))){const y=jm(n)?n:G1(n);return y.exports=y.exports||uo(),y.members=y.members||uo(),y.flags|=a.flags&32,(l=a.exports)!=null&&l.size&&Uc(y.exports,a.exports),(u=a.members)!=null&&u.size&&Uc(y.members,a.members),(h.inferredClassSymbol||(h.inferredClassSymbol=new Map)).set(To(y),y),y}return h.inferredClassSymbol.get(To(n))}}function ust(n){var a;const l=n&&Ij(n,!0),u=(a=l==null?void 0:l.exports)==null?void 0:a.get("prototype"),h=(u==null?void 0:u.valueDeclaration)&&dst(u.valueDeclaration);return h?kr(h):void 0}function Ij(n,a){if(!n.parent)return;let l,u;if($i(n.parent)&&n.parent.initializer===n){if(!_r(n)&&!(Eg(n.parent)&&el(n)))return;l=n.parent.name,u=n.parent}else if(Tr(n.parent)){const h=n.parent,y=n.parent.operatorToken.kind;if(y===63&&(a||h.right===n))l=h.left,u=l;else if((y===56||y===60)&&($i(h.parent)&&h.parent.initializer===h?(l=h.parent.name,u=h.parent):Tr(h.parent)&&h.parent.operatorToken.kind===63&&(a||h.parent.right===h)&&(l=h.parent.left,u=l),!l||!RS(l)||!dC(l,h.left)))return}else a&&Sc(n)&&(l=n.name,u=n);if(!(!u||!l||!a&&!u1(n,p1(l))))return tf(u)}function dst(n){if(!n.parent)return!1;let a=n.parent;for(;a&&a.kind===208;)a=a.parent;if(a&&Tr(a)&&p1(a.left)&&a.operatorToken.kind===63){const l=Jq(a);return Is(l)&&l}}function fst(n,a){var l,u,h;f7(n,n.typeArguments);const y=lI(n,void 0,a);if(y===zl)return ut;if(kj(y,n),n.expression.kind===106)return wt;if(n.kind===211){const N=y.declaration;if(N&&N.kind!==173&&N.kind!==177&&N.kind!==182&&!(rE(N)&&((u=(l=vk(N))==null?void 0:l.parent)==null?void 0:u.kind)===173)&&!pC(N)&&!Xp(N))return Ae&&Xe(n,m.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Oe}if(_r(n)&&El(ne)!==100&&Mwe(n))return ske(n.arguments[0]);const A=vs(y);if(A.flags&12288&&Dwe(n))return zae(zv(n.parent));if(n.kind===210&&!n.questionDotToken&&n.parent.kind===241&&A.flags&16384&&f_(y)){if(!wk(n.expression))Xe(n.expression,m.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!sj(n)){const N=Xe(n.expression,m.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);N3(n.expression,N)}}if(_r(n)){const N=Ij(n,!1);if((h=N==null?void 0:N.exports)!=null&&h.size){const F=Os(N,N.exports,it,it,it);return F.objectFlags|=4096,Ro([A,F])}}return A}function kj(n,a){if(n.declaration&&n.declaration.flags&268435456){const l=q3(a),u=PR(cP(a));I2(l,n.declaration,u,le(n))}}function q3(n){switch(n=Hs(n),n.kind){case 210:case 167:case 211:return q3(n.expression);case 212:return q3(n.tag);case 283:case 282:return q3(n.tagName);case 209:return n.argumentExpression;case 208:return n.name;case 180:const a=n;return Rd(a.typeName)?a.typeName.right:a;default:return n}}function Dwe(n){if(!io(n))return!1;let a=n.expression;if(Br(a)&&a.name.escapedText==="for"&&(a=a.expression),!We(a)||a.escapedText!=="Symbol")return!1;const l=Lke(!1);return l?l===ml(a,"Symbol",111551,void 0,void 0,!1):!1}function _st(n){if(Ift(n),n.arguments.length===0)return Y3(n,Oe);const a=n.arguments[0],l=ec(a),u=n.arguments.length>1?ec(n.arguments[1]):void 0;for(let y=2;y<n.arguments.length;++y)ec(n.arguments[y]);if((l.flags&32768||l.flags&65536||!Co(l,de))&&Xe(a,m.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Re(l)),u){const y=Cke(!0);y!==pa&&_d(u,YV(y,32768),n.arguments[1])}const h=hu(n,a);if(h){const y=Y1(h,a,!0,!1);if(y)return Y3(n,Nwe(or(y),y,h,a)||Owe(or(y),y,h,a))}return Y3(n,Oe)}function Rwe(n,a,l){const u=uo(),h=rs(2097152,"default");return h.parent=a,h.links.nameType=Xf("default"),h.links.aliasTarget=Ql(n),u.set("default",h),Os(l,u,it,it,it)}function Nwe(n,a,l,u){if(Ns(u)&&n&&!is(n)){const y=n;if(!y.defaultOnlyType){const A=Rwe(a,l);y.defaultOnlyType=A}return y.defaultOnlyType}}function Owe(n,a,l,u){var h;if(ae&&n&&!is(n)){const y=n;if(!y.syntheticType){const A=(h=l.declarations)==null?void 0:h.find(Ki);if($y(A,l,!1,u)){const F=rs(2048,"__type"),K=Rwe(a,l,F);F.links.type=K,y.syntheticType=G3(n)?ib(n,K,F,0,!1):K}else y.syntheticType=n}return y.syntheticType}return n}function Mwe(n){if(!wd(n,!0))return!1;if(!We(n.expression))return R.fail();const a=ml(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(a===bt)return!0;if(a.flags&2097152)return!1;const l=a.flags&16?259:a.flags&3?257:0;if(l!==0){const u=Il(a,l);return!!u&&!!(u.flags&16777216)}return!1}function pst(n){Zdt(n)||f7(n,n.typeArguments),P<2&&yc(n,262144);const a=lI(n);return kj(a,n),vs(a)}function mst(n){if(n.kind===213){const a=Zn(n);a&&Ic(a.fileName,[".cts",".mts"])&&bn(n,m.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return Pwe(n,n.type,n.expression)}function Ese(n){switch(n.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 206:case 207:case 225:return!0;case 214:return Ese(n.expression);case 221:const a=n.operator,l=n.operand;return a===40&&(l.kind===8||l.kind===9)||a===39&&l.kind===8;case 208:case 209:const u=Hs(n.expression),h=Jl(u)?Pl(u,111551,!0):void 0;return!!(h&&h.flags&384)}return!1}function Pwe(n,a,l,u){let h=ga(l,u);if(yg(a))return Ese(l)||Xe(l,m.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Ad(h);vo(a),h=I3(xv(h));const y=pi(a);return is(y)||i(()=>{const A=of(h);VV(y,A)||x4e(h,y,n,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)}),y}function hst(n){const a=ga(n.expression),l=$8(a,n.expression);return $V(uy(l),n,l!==a)}function gst(n){return n.flags&32?hst(n):uy(ga(n.expression))}function Fwe(n){kRe(n),Ie(n.typeArguments,vo);const a=n.kind===230?ga(n.expression):GT(n.exprName)?P3(n.exprName):ga(n.exprName);return Bwe(a,n)}function Bwe(n,a){const l=a.typeArguments;if(n===ut||is(n)||!Dt(l))return n;let u=!1,h;const y=N(n),A=u?h:n;return A&&es.add(iC(Zn(a),l,m.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Re(A))),y;function N(K){let Q=!1,ve=!1;const Pe=Me(K);return u||(u=ve),Q&&!ve&&(h!=null||(h=K)),Pe;function Me(_t){if(_t.flags&524288){const Ut=gp(_t),Mn=F(Ut.callSignatures),xn=F(Ut.constructSignatures);if(Q||(Q=Ut.callSignatures.length!==0||Ut.constructSignatures.length!==0),ve||(ve=Mn.length!==0||xn.length!==0),Mn!==Ut.callSignatures||xn!==Ut.constructSignatures){const Kn=Os(void 0,Ut.members,Mn,xn,Ut.indexInfos);return Kn.objectFlags|=8388608,Kn.node=a,Kn}}else if(_t.flags&58982400){const Ut=td(_t);if(Ut){const Mn=Me(Ut);if(Mn!==Ut)return Mn}}else{if(_t.flags&1048576)return Zs(_t,N);if(_t.flags&2097152)return Ro(Ui(_t.types,Me))}return _t}}function F(K){const Q=ur(K,ve=>!!ve.typeParameters&&_se(ve,l));return Ui(Q,ve=>{const Pe=hse(ve,l,!0);return Pe?U8(ve,Pe,_r(ve.declaration)):ve})}}function yst(n){return vo(n.type),Tse(n.expression,n.type)}function Tse(n,a,l){const u=ga(n,l),h=pi(a);return is(h)?h:(Sv(u,h,a,n,m.Type_0_does_not_satisfy_the_expected_type_1),u)}function vst(n){return mft(n),n.keywordToken===103?Sse(n):n.keywordToken===100?bst(n):R.assertNever(n.keywordToken)}function Gwe(n){switch(n.keywordToken){case 100:return Ake();case 103:const a=Sse(n);return is(a)?Le:Bst(a);default:R.assertNever(n.keywordToken)}}function Sse(n){const a=w_e(n);if(a)if(a.kind===173){const l=kr(a.parent);return or(l)}else{const l=kr(a);return or(l)}else return Xe(n,m.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Le}function bst(n){ue===100||ue===199?Zn(n).impliedNodeFormat!==99&&Xe(n,m.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ue<6&&ue!==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=Zn(n);return R.assert(!!(a.flags&4194304),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?xke():Le}function J3(n){const a=or(n);if(z){const l=n.valueDeclaration;if(l&&Wv(l))return cy(a)}return a}function wj(n){return R.assert(We(n.name)),n.name.escapedText}function cI(n,a,l){const u=n.parameters.length-(Lu(n)?1:0);if(a<u)return n.parameters[a].escapedName;const h=n.parameters[u]||an,y=l||or(h);if(Go(y)){const A=y.target.labeledElementDeclarations,N=a-u;return A&&wj(A[N])||h.escapedName+"_"+N}return h.escapedName}function Est(n,a){var l;if(((l=n.declaration)==null?void 0:l.kind)===320)return;const u=n.parameters.length-(Lu(n)?1:0);if(a<u){const A=n.parameters[a];return Uwe(A)?[A.escapedName,!1]:void 0}const h=n.parameters[u]||an;if(!Uwe(h))return;const y=or(h);if(Go(y)){const A=y.target.labeledElementDeclarations,N=a-u,F=A==null?void 0:A[N],K=!!(F!=null&&F.dotDotDotToken);return F?[wj(F),K]:void 0}if(a===u)return[h.escapedName,!0]}function Uwe(n){return n.valueDeclaration&&Ba(n.valueDeclaration)&&We(n.valueDeclaration.name)}function Vwe(n){return n.kind===199||Ba(n)&&n.name&&We(n.name)}function Tst(n,a){const l=n.parameters.length-(Lu(n)?1:0);if(a<l){const y=n.parameters[a].valueDeclaration;return y&&Vwe(y)?y:void 0}const u=n.parameters[l]||an,h=or(u);if(Go(h)){const y=h.target.labeledElementDeclarations,A=a-l;return y&&y[A]}return u.valueDeclaration&&Vwe(u.valueDeclaration)?u.valueDeclaration:void 0}function bp(n,a){return cT(n,a)||Oe}function cT(n,a){const l=n.parameters.length-(Lu(n)?1:0);if(a<l)return J3(n.parameters[a]);if(Lu(n)){const u=or(n.parameters[l]),h=a-l;if(!Go(u)||u.target.hasRestElement||h<u.target.fixedLength)return jd(u,Jp(h))}}function cw(n,a){const l=sf(n),u=wm(n),h=uw(n);if(h&&a>=l-1)return a===l-1?h:Ou(jd(h,mt));const y=[],A=[],N=[];for(let F=a;F<l;F++){!h||F<l-1?(y.push(bp(n,F)),A.push(F<u?1:2)):(y.push(h),A.push(8));const K=Tst(n,F);K&&N.push(K)}return qp(y,A,!1,ge(N)===ge(y)?N:void 0)}function sf(n){const a=n.parameters.length;if(Lu(n)){const l=or(n.parameters[a-1]);if(Go(l))return a+l.target.fixedLength-(l.target.hasRestElement?0:1)}return a}function wm(n,a){const l=a&1,u=a&2;if(u||n.resolvedMinArgumentCount===void 0){let h;if(Lu(n)){const y=or(n.parameters[n.parameters.length-1]);if(Go(y)){const A=ii(y.target.elementFlags,F=>!(F&1)),N=A<0?y.target.fixedLength:A;N>0&&(h=n.parameters.length-1+N)}}if(h===void 0){if(!l&&n.flags&32)return 0;h=n.minArgumentCount}if(u)return h;for(let y=h-1;y>=0;y--){const A=bp(n,y);if(gc(A,hwe).flags&131072)break;h=y}n.resolvedMinArgumentCount=h}return n.resolvedMinArgumentCount}function Dm(n){if(Lu(n)){const a=or(n.parameters[n.parameters.length-1]);return!Go(a)||a.target.hasRestElement}return!1}function uw(n){if(Lu(n)){const a=or(n.parameters[n.parameters.length-1]);if(!Go(a))return a;if(a.target.hasRestElement)return JL(a,a.target.fixedLength)}}function dw(n){const a=uw(n);return a&&!Yf(a)&&!xs(a)&&!(yp(a).flags&131072)?a:void 0}function xse(n){return Ase(n,Et)}function Ase(n,a){return n.parameters.length>0?bp(n,0):a}function Sst(n,a,l){const u=n.parameters.length-(Lu(n)?1:0);for(let h=0;h<u;h++){const y=n.parameters[h].valueDeclaration;if(y.type){const A=iu(y);A&&sg(l.inferences,pi(A),bp(a,h))}}}function xst(n,a){if(a.typeParameters)if(!n.typeParameters)n.typeParameters=a.typeParameters;else return;if(a.thisParameter){const u=n.thisParameter;(!u||u.valueDeclaration&&!u.valueDeclaration.type)&&(u||(n.thisParameter=nT(a.thisParameter,void 0)),K3(n.thisParameter,or(a.thisParameter)))}const l=n.parameters.length-(Lu(n)?1:0);for(let u=0;u<l;u++){const h=n.parameters[u];if(!iu(h.valueDeclaration)){const y=cT(a,u);K3(h,y)}}if(Lu(n)){const u=Ko(n.parameters);if(u.valueDeclaration?!iu(u.valueDeclaration):Dl(u)&65536){const h=cw(a,l);K3(u,h)}}}function Ast(n){n.thisParameter&&K3(n.thisParameter);for(const a of n.parameters)K3(a)}function K3(n,a){const l=zi(n);if(l.type)a&&R.assertEqual(l.type,a,"Parameter symbol already has a cached type which differs from newly assigned type");else{const u=n.valueDeclaration;l.type=a||(u?Sl(u,!0):or(n)),u&&u.name.kind!==79&&(l.type===ye&&(l.type=Do(u.name)),jwe(u.name,l.type))}}function jwe(n,a){for(const l of n.elements)if(!Fc(l)){const u=Ci(l,a);l.name.kind===79?zi(kr(l)).type=u:jwe(l.name,u)}}function Cst(n){return mA(Xtt(!0),[n])}function Lst(n,a){return mA(Ytt(!0),[n,a])}function Ist(n,a){return mA($tt(!0),[n,a])}function kst(n,a){return mA(Qtt(!0),[n,a])}function wst(n,a){return mA(Ztt(!0),[n,a])}function Dst(n,a){return mA(nnt(!0),[n,a])}function Rst(n,a,l){const u=`${a?"p":"P"}${l?"s":"S"}${n.id}`;let h=Bn.get(u);if(!h){const y=uo();y.set("name",AE("name",n)),y.set("private",AE("private",a?Te:at)),y.set("static",AE("static",l?Te:at)),h=Os(void 0,y,it,it,it),Bn.set(u,h)}return h}function Wwe(n,a,l){const u=Tc(n),h=Ri(n.name),y=h?Xf(Pr(n.name)):oy(n.name),A=sc(n)?Lst(a,l):Z_(n)?Ist(a,l):s_(n)?kst(a,l):df(n)?wst(a,l):ro(n)?Dst(a,l):R.failBadSyntaxKind(n),N=Rst(y,h,u);return Ro([A,N])}function Nst(n,a){return mA(ent(!0),[n,a])}function Ost(n,a){return mA(tnt(!0),[n,a])}function Mst(n,a){const l=up("this",n),u=up("value",a);return Use(void 0,l,[u],a,void 0,1)}function Cse(n,a,l){const u=up("target",n),h=up("context",a),y=ei([l,wt]);return vw(void 0,void 0,[u,h],y)}function Pst(n){const{parent:a}=n,l=Xr(a);if(!l.decoratorSignature)switch(l.decoratorSignature=Ys,a.kind){case 260:case 228:{const h=or(kr(a)),y=Cst(h);l.decoratorSignature=Cse(h,y,h);break}case 171:case 174:case 175:{const u=a;if(!_i(u.parent))break;const h=sc(u)?$E(zp(u)):X2(u),y=Tc(u)?or(kr(u.parent)):ed(kr(u.parent)),A=Z_(u)?EDe(h):s_(u)?TDe(h):h,N=Wwe(u,y,h),F=Z_(u)?EDe(h):s_(u)?TDe(h):h;l.decoratorSignature=Cse(A,N,F);break}case 169:{const u=a;if(!_i(u.parent))break;const h=X2(u),y=Tc(u)?or(kr(u.parent)):ed(kr(u.parent)),A=qm(u)?Nst(y,h):He,N=Wwe(u,y,h),F=qm(u)?Ost(y,h):Mst(y,h);l.decoratorSignature=Cse(A,N,F);break}}return l.decoratorSignature===Ys?void 0:l.decoratorSignature}function Fst(n){const{parent:a}=n,l=Xr(a);if(!l.decoratorSignature)switch(l.decoratorSignature=Ys,a.kind){case 260:case 228:{const h=or(kr(a)),y=up("target",h);l.decoratorSignature=vw(void 0,void 0,[y],ei([h,wt]));break}case 166:{const u=a;if(!Kl(u.parent)&&!(sc(u.parent)||s_(u.parent)&&_i(u.parent.parent))||zb(u.parent)===u)break;const h=zb(u.parent)?u.parent.parameters.indexOf(u)-1:u.parent.parameters.indexOf(u);R.assert(h>=0);const y=Kl(u.parent)?or(kr(u.parent.parent)):yRe(u.parent),A=Kl(u.parent)?He:vRe(u.parent),N=Jp(h),F=up("target",y),K=up("propertyKey",A),Q=up("parameterIndex",N);l.decoratorSignature=vw(void 0,void 0,[F,K,Q],wt);break}case 171:case 174:case 175:case 169:{const u=a;if(!_i(u.parent))break;const h=yRe(u),y=up("target",h),A=vRe(u),N=up("propertyKey",A),F=ro(u)?wt:Dke(X2(u));if(P!==0&&(!ro(a)||qm(a))){const Q=Dke(X2(u)),ve=up("descriptor",Q);l.decoratorSignature=vw(void 0,void 0,[y,N,ve],ei([F,wt]))}else l.decoratorSignature=vw(void 0,void 0,[y,N],ei([F,wt]));break}}return l.decoratorSignature===Ys?void 0:l.decoratorSignature}function Lse(n){return re?Fst(n):Pst(n)}function X3(n){const a=_3(!0);return a!==Io?(n=fy(fI(n))||ye,ay(a,[n])):ye}function Hwe(n){const a=kke(!0);return a!==Io?(n=fy(fI(n))||ye,ay(a,[n])):ye}function Y3(n,a){const l=X3(a);return l===ye?(Xe(n,pf(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),Le):(Lae(!0)||Xe(n,pf(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),l)}function Bst(n){const a=rs(0,"NewTargetExpression"),l=rs(4,"target",8);l.parent=a,l.links.type=n;const u=uo([l]);return a.members=u,Os(a,u,it,it,it)}function Dj(n,a){if(!n.body)return Le;const l=Jc(n),u=(l&2)!==0,h=(l&1)!==0;let y,A,N,F=wt;if(n.body.kind!==238)y=ec(n.body,a&&a&-9),u&&(y=fI(yw(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(h){const K=Ywe(n,a);K?K.length>0&&(y=ei(K,2)):F=Et;const{yieldTypes:Q,nextTypes:ve}=Gst(n,a);A=Dt(Q)?ei(Q,2):void 0,N=Dt(ve)?Ro(ve):void 0}else{const K=Ywe(n,a);if(!K)return l&2?Y3(n,Et):Et;if(K.length===0)return l&2?Y3(n,wt):wt;y=ei(K,2)}if(y||A||N){if(A&&ej(n,A,3),y&&ej(n,y,1),N&&ej(n,N,2),y&&vp(y)||A&&vp(A)||N&&vp(N)){const K=Koe(n),Q=K?K===zp(n)?h?void 0:y:_j(vs(K),n,void 0):void 0;h?(A=_oe(A,Q,0,u),y=_oe(y,Q,1,u),N=_oe(N,Q,2,u)):y=Krt(y,Q,u)}A&&(A=of(A)),y&&(y=of(y)),N&&(N=of(N))}return h?zwe(A||Et,y||F,N||R8e(2,n)||ye,u):u?X3(y||F):y||F}function zwe(n,a,l,u){const h=u?At:fn,y=h.getGlobalGeneratorType(!1);if(n=h.resolveIterationType(n,void 0)||ye,a=h.resolveIterationType(a,void 0)||ye,l=h.resolveIterationType(l,void 0)||ye,y===Io){const A=h.getGlobalIterableIteratorType(!1),N=A!==Io?BDe(A,h):void 0,F=N?N.returnType:Oe,K=N?N.nextType:He;return Co(a,F)&&Co(K,l)?A!==Io?W8(A,[n]):(h.getGlobalIterableIteratorType(!0),pa):(h.getGlobalGeneratorType(!0),pa)}return W8(y,[n,a,l])}function Gst(n,a){const l=[],u=[],h=(Jc(n)&2)!==0;return b_e(n.body,y=>{const A=y.expression?ga(y.expression,a):et;y_(l,qwe(y,A,Oe,h));let N;if(y.asteriskToken){const F=Vj(A,h?19:17,y.expression);N=F&&F.nextType}else N=pd(y,void 0);N&&y_(u,N)}),{yieldTypes:l,nextTypes:u}}function qwe(n,a,l,u){const h=n.expression||n,y=n.asteriskToken?Cv(u?19:17,a,l,h):a;return u?dT(y,h,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 Jwe(n,a,l){let u=0;for(let h=0;h<l.length;h++){const y=h<n||h>=a?l[h]:void 0;u|=y!==void 0?U9.get(y)||32768:0}return u}function Kwe(n){const a=Xr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const l=Ust(n);a.isExhaustive===0&&(a.isExhaustive=l)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function Ust(n){if(n.expression.kind===218){const u=p8e(n);if(!u)return!1;const h=gv(ec(n.expression.expression)),y=Jwe(0,0,u);return h.flags&3?(556800&y)===556800:!lg(h,A=>(Pu(A)&y)===y)}const a=ec(n.expression);if(!Y8(a))return!1;const l=ij(n);return!l.length||Dt(l,zrt)?!1:jit(Zs(a,Ad),l)}function Xwe(n){return n.endFlowNode&&O3(n.endFlowNode)}function Ywe(n,a){const l=Jc(n),u=[];let h=Xwe(n),y=!1;if(wT(n.body,A=>{const N=A.expression;if(N){let F=ec(N,a&&a&-9);l&2&&(F=fI(yw(F,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),F.flags&131072&&(y=!0),y_(u,F)}else h=!0}),!(u.length===0&&!h&&(y||Vst(n))))return z&&u.length&&h&&!(Xp(n)&&u.some(A=>A.symbol===n.symbol))&&y_(u,He),u}function Vst(n){switch(n.kind){case 215:case 216:return!0;case 171:return n.parent.kind===207;default:return!1}}function Ise(n,a){i(l);return;function l(){const u=Jc(n),h=a&&jj(a,u);if(h&&hl(h,16385)||n.kind===170||kl(n.body)||n.body.kind!==238||!Xwe(n))return;const y=n.flags&512,A=Lp(n)||n;if(h&&h.flags&131072)Xe(A,m.A_function_returning_never_cannot_have_a_reachable_end_point);else if(h&&!y)Xe(A,m.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(h&&z&&!Co(He,h))Xe(A,m.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(ne.noImplicitReturns){if(!h){if(!y)return;const N=vs(zp(n));if(zDe(n,N))return}Xe(A,m.Not_all_code_paths_return_a_value)}}}function $we(n,a){if(R.assert(n.kind!==171||q_(n)),gI(n),Us(n)&&pI(n,n.name),a&&a&4&&P_(n)){if(!Lp(n)&&!KP(n)){const u=ow(n);if(u&&rT(vs(u))){const h=Xr(n);if(h.contextFreeType)return h.contextFreeType;const y=Dj(n,a),A=ph(void 0,void 0,void 0,it,y,void 0,0,0),N=Os(n.symbol,ee,[A],it,it);return N.objectFlags|=262144,h.contextFreeType=N}}return La}return!Zj(n)&&n.kind===215&&ule(n),jst(n,a),or(kr(n))}function jst(n,a){const l=Xr(n);if(!(l.flags&64)){const u=ow(n);if(!(l.flags&64)){l.flags|=64;const h=tu(Ja(or(kr(n)),0));if(!h)return;if(P_(n))if(u){const y=J2(n);let A;if(a&&a&2){Sst(h,u,y);const N=uw(u);N&&N.flags&262144&&(A=EA(u,y.nonFixingMapper))}A||(A=y?EA(u,y.mapper):u),xst(h,A)}else Ast(h);if(u&&!_A(n)&&!h.resolvedReturnType){const y=Dj(n,a);h.resolvedReturnType||(h.resolvedReturnType=y)}pw(n)}}}function Wst(n){R.assert(n.kind!==171||q_(n));const a=Jc(n),l=_A(n);if(Ise(n,l),n.body)if(Lp(n)||vs(zp(n)),n.body.kind===238)vo(n.body);else{const u=ga(n.body),h=l&&jj(l,a);if(h)if((a&3)===2){const y=yw(u,!1,n.body,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Sv(y,h,n.body,n.body)}else Sv(u,h,n.body,n.body)}}function Rj(n,a,l,u=!1){if(!Co(a,go)){const h=u&&hw(a);return v0(n,!!h&&Co(h,go),l),!1}return!0}function Hst(n){if(!io(n)||!DS(n))return!1;const a=ec(n.arguments[2]);if(hc(a,"value")){const h=_o(a,"writable"),y=h&&or(h);if(!y||y===at||y===fe)return!0;if(h&&h.valueDeclaration&&$c(h.valueDeclaration)){const A=h.valueDeclaration.initializer,N=ga(A);if(N===at||N===fe)return!0}return!1}return!_o(a,"set")}function Ep(n){return!!(Dl(n)&8||n.flags&4&&a_(n)&64||n.flags&3&&yj(n)&2||n.flags&98304&&!(n.flags&65536)||n.flags&8||Dt(n.declarations,Hst))}function Qwe(n,a,l){var u,h;if(l===0)return!1;if(Ep(a)){if(a.flags&4&&ul(n)&&n.expression.kind===108){const y=Nf(n);if(!(y&&(y.kind===173||Xp(y))))return!0;if(a.valueDeclaration){const A=Tr(a.valueDeclaration),N=y.parent===a.valueDeclaration.parent,F=y===a.valueDeclaration.parent,K=A&&((u=a.parent)==null?void 0:u.valueDeclaration)===y.parent,Q=A&&((h=a.parent)==null?void 0:h.valueDeclaration)===y;return!(N||F||K||Q)}}return!0}if(ul(n)){const y=Hs(n.expression);if(y.kind===79){const A=Xr(y).resolvedSymbol;if(A.flags&2097152){const N=Td(A);return!!N&&N.kind===271}}}return!1}function fw(n,a,l){const u=Cu(n,7);return u.kind!==79&&!ul(u)?(Xe(n,a),!1):u.flags&32?(Xe(n,l),!1):!0}function zst(n){ga(n.expression);const a=Hs(n.expression);if(!ul(a))return Xe(a,m.The_operand_of_a_delete_operator_must_be_a_property_reference),Ne;Br(a)&&Ri(a.name)&&Xe(a,m.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const l=Xr(a),u=jp(l.resolvedSymbol);return u&&(Ep(u)&&Xe(a,m.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),qst(a,u)),Ne}function qst(n,a){const l=or(a);z&&!(l.flags&131075)&&!(Je?a.flags&16777216:Pu(l)&16777216)&&Xe(n,m.The_operand_of_a_delete_operator_must_be_optional)}function Jst(n){return ga(n.expression),NL}function Kst(n){return ga(n.expression),et}function Xst(n){const a=oP(n);if(a&&Rl(a))Xe(n,m.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(n.flags&32768))if(sP(n)){const l=Zn(n);if(!_b(l)){let u;if(!kS(l,ne)){u!=null||(u=wy(l,n.pos));const h=Pc(l,u.start,u.length,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);es.add(h)}switch(ue){case 100:case 199:if(l.impliedNodeFormat===1){u!=null||(u=wy(l,n.pos)),es.add(Pc(l,u.start,u.length,m.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(P>=4)break;default:u!=null||(u=wy(l,n.pos)),es.add(Pc(l,u.start,u.length,m.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}}else{const l=Zn(n);if(!_b(l)){const u=wy(l,n.pos),h=Pc(l,u.start,u.length,m.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(a&&a.kind!==173&&!(Jc(a)&2)){const y=Nr(a,m.Did_you_mean_to_mark_this_function_as_async);$o(h,y)}es.add(h)}}Woe(n)&&Xe(n,m.await_expressions_cannot_be_used_in_a_parameter_initializer)}function Yst(n){i(()=>Xst(n));const a=ga(n.expression),l=yw(a,!0,n,m.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l===a&&!is(l)&&!(a.flags&3)&&Xy(!1,Nr(n,m.await_has_no_effect_on_the_type_of_this_expression)),l}function $st(n){const a=ga(n.operand);if(a===ut)return ut;switch(n.operand.kind){case 8:switch(n.operator){case 40:return bA(Jp(-n.operand.text));case 39:return bA(Jp(+n.operand.text))}break;case 9:if(n.operator===40)return bA(NV({negative:!0,base10Value:Hk(n.operand.text)}))}switch(n.operator){case 39:case 40:case 54:return Kp(a,n.operand),$3(a,12288)&&Xe(n.operand,m.The_0_operator_cannot_be_applied_to_type_symbol,bo(n.operator)),n.operator===39?($3(a,2112)&&Xe(n.operand,m.Operator_0_cannot_be_applied_to_type_1,bo(n.operator),Re(xv(a))),mt):kse(a);case 53:kA(n.operand);const l=Pu(a)&12582912;return l===4194304?at:l===8388608?Te:Ne;case 45:case 46:return Rj(n.operand,Kp(a,n.operand),m.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&fw(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),kse(a)}return Le}function Qst(n){const a=ga(n.operand);return a===ut?ut:(Rj(n.operand,Kp(a,n.operand),m.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&fw(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),kse(a))}function kse(n){return hl(n,2112)?Vc(n,3)||hl(n,296)?go:Jt:mt}function $3(n,a){if(hl(n,a))return!0;const l=gv(n);return!!l&&hl(l,a)}function hl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const l=n.types;for(const u of l)if(hl(u,a))return!0}return!1}function Vc(n,a,l){return n.flags&a?!0:l&&n.flags&114691?!1:!!(a&296)&&Co(n,mt)||!!(a&2112)&&Co(n,Jt)||!!(a&402653316)&&Co(n,de)||!!(a&528)&&Co(n,Ne)||!!(a&16384)&&Co(n,wt)||!!(a&131072)&&Co(n,Et)||!!(a&65536)&&Co(n,Sn)||!!(a&32768)&&Co(n,He)||!!(a&4096)&&Co(n,J)||!!(a&67108864)&&Co(n,ai)}function Q3(n,a,l){return n.flags&1048576?Qn(n.types,u=>Q3(u,a,l)):Vc(n,a,l)}function wse(n){return!!(ni(n)&16)&&!!n.symbol&&Dse(n.symbol)}function Dse(n){return(n.flags&128)!==0}function Zst(n,a,l,u){return l===ut||u===ut?ut:(!xs(l)&&Q3(l,134348796)&&Xe(n,m.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),xs(u)||Xj(u)||Tv(u,_l)||Xe(a,m.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Ne)}function elt(n){return lg(n,a=>a===$l||!!(a.flags&2097152)&&og(gv(a)))}function tlt(n,a,l,u){if(l===ut||u===ut)return ut;if(Ri(n)){if(P<99&&yc(n,2097152),!Xr(n).resolvedSymbol&&wc(n)){const h=sse(n,u.symbol,!0);lwe(n,u,h)}}else _d(Kp(l,n),ui,n);return _d(Kp(u,a),ai,a)&&elt(u)&&Xe(a,m.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Re(u)),Ne}function nlt(n,a,l){const u=n.properties;if(z&&u.length===0)return Kp(a,n);for(let h=0;h<u.length;h++)Zwe(n,a,h,u,l);return a}function Zwe(n,a,l,u,h=!1){const y=n.properties,A=y[l];if(A.kind===299||A.kind===300){const N=A.name,F=oy(N);if(ng(F)){const ve=Sm(F),Pe=_o(a,ve);Pe&&(W3(Pe,A,h),rse(A,!1,!0,a,Pe))}const K=jd(a,F,32,N),Q=Qe(A,K);return uT(A.kind===300?A:A.initializer,Q)}else if(A.kind===301)if(l<y.length-1)Xe(A,m.A_rest_element_must_be_last_in_a_destructuring_pattern);else{P<99&&yc(A,4);const N=[];if(u)for(const K of u)dx(K)||N.push(K.name);const F=oA(a,N,a.symbol);return Y2(u,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),uT(A.expression,F)}else Xe(A,m.Property_assignment_expected)}function rlt(n,a,l){const u=n.elements;P<2&&ne.downlevelIteration&&yc(n,512);const h=Cv(193,a,He,n)||Le;let y=ne.noUncheckedIndexedAccess?void 0:h;for(let A=0;A<u.length;A++){let N=h;n.elements[A].kind===227&&(N=y=y!=null?y:Cv(65,a,He,n)||Le),eDe(n,a,A,N,l)}return a}function eDe(n,a,l,u,h){const y=n.elements,A=y[l];if(A.kind!==229){if(A.kind!==227){const N=Jp(l);if(H0(a)){const F=32|(iI(A)?16:0),K=bv(a,N,F,z3(A,N))||Le,Q=iI(A)?m_(K,524288):K,ve=Qe(A,Q);return uT(A,ve,h)}return uT(A,u,h)}if(l<y.length-1)Xe(A,m.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const N=A.expression;if(N.kind===223&&N.operatorToken.kind===63)Xe(N.operatorToken,m.A_rest_element_cannot_have_an_initializer);else{Y2(n.elements,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);const F=hh(a,Go)?Zs(a,K=>JL(K,l)):Ou(u);return uT(N,F,h)}}}}function uT(n,a,l,u){let h;if(n.kind===300){const y=n;y.objectAssignmentInitializer&&(z&&!(Pu(ga(y.objectAssignmentInitializer))&16777216)&&(a=m_(a,524288)),slt(y.name,y.equalsToken,y.objectAssignmentInitializer,l)),h=n.name}else h=n;return h.kind===223&&h.operatorToken.kind===63&&(Fe(h,l),h=h.left,z&&(a=m_(a,524288))),h.kind===207?nlt(h,a,u):h.kind===206?rlt(h,a,l):ilt(h,a,l)}function ilt(n,a,l){const u=ga(n,l),h=n.parent.kind===301?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===301?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 fw(n,h,y)&&Sv(a,u,n,n),KA(n)&&yc(n.parent,1048576),a}function Z3(n){switch(n=Hs(n),n.kind){case 79:case 10:case 13:case 212:case 225:case 14:case 8:case 9:case 110:case 95:case 104:case 155:case 215:case 228:case 216:case 206:case 207:case 218:case 232:case 282:case 281:return!0;case 224:return Z3(n.whenTrue)&&Z3(n.whenFalse);case 223:return Dy(n.operatorToken.kind)?!1:Z3(n.left)&&Z3(n.right);case 221:case 222:switch(n.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 219:case 213:case 231:default:return!1}}function Rse(n,a){return(a.flags&98304)!==0||VV(n,a)}function alt(){const n=e9(a,l,u,h,y,A);return(Pe,Me)=>{const _t=n(Pe,Me);return R.assertIsDefined(_t),_t};function a(Pe,Me,_t){return Me?(Me.stackIndex++,Me.skip=!1,K(Me,void 0),ve(Me,void 0)):Me={checkMode:_t,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},_r(Pe)&&wS(Pe)?(Me.skip=!0,ve(Me,ga(Pe.right,_t)),Me):(olt(Pe),Pe.operatorToken.kind===63&&(Pe.left.kind===207||Pe.left.kind===206)&&(Me.skip=!0,ve(Me,uT(Pe.left,ga(Pe.right,_t),_t,Pe.right.kind===108))),Me)}function l(Pe,Me,_t){if(!Me.skip)return N(Me,Pe)}function u(Pe,Me,_t){if(!Me.skip){const Ut=Q(Me);R.assertIsDefined(Ut),K(Me,Ut),ve(Me,void 0);const Mn=Pe.kind;if(RR(Mn)){let xn=_t.parent;for(;xn.kind===214||NR(xn);)xn=xn.parent;(Mn===55||JT(xn))&&zse(_t.left,Ut,JT(xn)?xn.thenStatement:void 0),ODe(Ut,_t.left)}}}function h(Pe,Me,_t){if(!Me.skip)return N(Me,Pe)}function y(Pe,Me){let _t;if(Me.skip)_t=Q(Me);else{const Ut=F(Me);R.assertIsDefined(Ut);const Mn=Q(Me);R.assertIsDefined(Mn),_t=tDe(Pe.left,Pe.operatorToken,Pe.right,Ut,Mn,Pe)}return Me.skip=!1,K(Me,void 0),ve(Me,void 0),Me.stackIndex--,_t}function A(Pe,Me,_t){return ve(Pe,Me),Pe}function N(Pe,Me){if(Tr(Me))return Me;ve(Pe,ga(Me,Pe.checkMode))}function F(Pe){return Pe.typeStack[Pe.stackIndex]}function K(Pe,Me){Pe.typeStack[Pe.stackIndex]=Me}function Q(Pe){return Pe.typeStack[Pe.stackIndex+1]}function ve(Pe,Me){Pe.typeStack[Pe.stackIndex+1]=Me}}function olt(n){const{left:a,operatorToken:l,right:u}=n;l.kind===60&&(Tr(a)&&(a.operatorToken.kind===56||a.operatorToken.kind===55)&&bn(a,m._0_and_1_operations_cannot_be_mixed_without_parentheses,bo(a.operatorToken.kind),bo(l.kind)),Tr(u)&&(u.operatorToken.kind===56||u.operatorToken.kind===55)&&bn(u,m._0_and_1_operations_cannot_be_mixed_without_parentheses,bo(u.operatorToken.kind),bo(l.kind)))}function slt(n,a,l,u,h){const y=a.kind;if(y===63&&(n.kind===207||n.kind===206))return uT(n,ga(l,u),u,l.kind===108);let A;RR(y)?A=kA(n,u):A=ga(n,u);const N=ga(l,u);return tDe(n,a,l,A,N,h)}function tDe(n,a,l,u,h,y){const A=a.kind;switch(A){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(u===ut||h===ut)return ut;u=Kp(u,n),h=Kp(h,l);let hn;if(u.flags&528&&h.flags&528&&(hn=ve(a.kind))!==void 0)return Xe(y||a,m.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,bo(a.kind),bo(hn)),mt;{const ln=Rj(n,u,m.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Gn=Rj(l,h,m.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let qn;if(Vc(u,3)&&Vc(h,3)||!(hl(u,2112)||hl(h,2112)))qn=mt;else if(N(u,h)){switch(A){case 49:case 72:Ut();break;case 42:case 67:P<3&&Xe(y,m.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}qn=Jt}else Ut(N),qn=Le;return ln&&Gn&&Pe(qn),qn}case 39:case 64:if(u===ut||h===ut)return ut;!Vc(u,402653316)&&!Vc(h,402653316)&&(u=Kp(u,n),h=Kp(h,l));let Tn;return Vc(u,296,!0)&&Vc(h,296,!0)?Tn=mt:Vc(u,2112,!0)&&Vc(h,2112,!0)?Tn=Jt:Vc(u,402653316,!0)||Vc(h,402653316,!0)?Tn=de:(xs(u)||xs(h))&&(Tn=is(u)||is(h)?Le:Oe),Tn&&!Q(A)?Tn:Tn?(A===64&&Pe(Tn),Tn):(Ut((Gn,qn)=>Vc(Gn,402655727)&&Vc(qn,402655727)),Oe);case 29:case 31:case 32:case 33:return Q(A)&&(u=doe(Kp(u,n)),h=doe(Kp(h,l)),_t((ln,Gn)=>{if(xs(ln)||xs(Gn))return!0;const qn=Co(ln,go),ti=Co(Gn,go);return qn&&ti||!qn&&!ti&&b3(ln,Gn)})),Ne;case 34:case 35:case 36:case 37:if(Xz(n)||Xz(l)){const ln=A===34||A===36;Xe(y,m.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,ln?"false":"true")}return xn(y,A,n,l),_t((ln,Gn)=>Rse(ln,Gn)||Rse(Gn,ln)),Ne;case 102:return Zst(n,l,u,h);case 101:return tlt(n,l,u,h);case 55:case 76:{const ln=Pu(u)&4194304?ei([$rt(z?u:xv(h)),h]):u;return A===76&&Pe(h),ln}case 56:case 75:{const ln=Pu(u)&8388608?ei([uy(G4e(u)),h],2):u;return A===75&&Pe(h),ln}case 60:case 77:{const ln=Pu(u)&262144?ei([uy(u),h],2):u;return A===77&&Pe(h),ln}case 63:const br=Tr(n.parent)?wl(n.parent):0;return F(br,h),Me(br)?((!(h.flags&524288)||br!==2&&br!==6&&!ag(h)&&!Noe(h)&&!(ni(h)&1))&&Pe(h),u):(Pe(h),h);case 27:if(!ne.allowUnreachableCode&&Z3(n)&&!K(n.parent)){const ln=Zn(n),Gn=ln.text,qn=Yo(Gn,n.pos);ln.parseDiagnostics.some(oi=>oi.code!==m.JSX_expressions_must_have_one_parent_element.code?!1:Oz(oi,qn))||Xe(n,m.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return h;default:return R.fail()}function N(hn,Tn){return Vc(hn,2112)&&Vc(Tn,2112)}function F(hn,Tn){if(hn===2)for(const br of hv(Tn)){const ln=or(br);if(ln.symbol&&ln.symbol.flags&32){const Gn=br.escapedName,qn=ml(br.valueDeclaration,Gn,788968,void 0,Gn,!1);qn!=null&&qn.declarations&&qn.declarations.some(sX)&&(U1(qn,m.Duplicate_identifier_0,ia(Gn),br),U1(br,m.Duplicate_identifier_0,ia(Gn),qn))}}}function K(hn){return hn.parent.kind===214&&C_(hn.left)&&hn.left.text==="0"&&(io(hn.parent.parent)&&hn.parent.parent.expression===hn.parent||hn.parent.parent.kind===212)&&(ul(hn.right)||We(hn.right)&&hn.right.escapedText==="eval")}function Q(hn){const Tn=$3(u,12288)?n:$3(h,12288)?l:void 0;return Tn?(Xe(Tn,m.The_0_operator_cannot_be_applied_to_type_symbol,bo(hn)),!1):!0}function ve(hn){switch(hn){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function Pe(hn){Dy(A)&&i(Tn);function Tn(){if(fw(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 br;if(Je&&Br(n)&&hl(hn,32768)){const ln=hc(Fu(n.expression),n.name.escapedText);WV(hn,ln)&&(br=m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Sv(hn,u,n,l,br)}}}function Me(hn){var Tn;switch(hn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const br=tf(n),ln=wS(l);return!!ln&&Is(ln)&&!!((Tn=br==null?void 0:br.exports)!=null&&Tn.size);default:return!1}}function _t(hn){return hn(u,h)?!1:(Ut(hn),!0)}function Ut(hn){let Tn=!1;const br=y||a;if(hn){const oi=fy(u),ma=fy(h);Tn=!(oi===u&&ma===h)&&!!(oi&&ma)&&hn(oi,ma)}let ln=u,Gn=h;!Tn&&hn&&([ln,Gn]=llt(u,h,hn));const[qn,ti]=on(ln,Gn);Mn(br,Tn,qn,ti)||v0(br,Tn,m.Operator_0_cannot_be_applied_to_types_1_and_2,bo(a.kind),qn,ti)}function Mn(hn,Tn,br,ln){switch(a.kind){case 36:case 34:case 37:case 35:return v0(hn,Tn,m.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,br,ln);default:return}}function xn(hn,Tn,br,ln){const Gn=Kn(Hs(br)),qn=Kn(Hs(ln));if(Gn||qn){const ti=Xe(hn,m.This_condition_will_always_return_0,bo(Tn===36||Tn===34?95:110));if(Gn&&qn)return;const oi=Tn===37||Tn===35?bo(53):"",ma=Gn?ln:br,eo=Hs(ma);$o(ti,Nr(ma,m.Did_you_mean_0,`${oi}Number.isNaN(${Jl(eo)?Rf(eo):"..."})`))}}function Kn(hn){if(We(hn)&&hn.escapedText==="NaN"){const Tn=rnt();return!!Tn&&Tn===F_(hn)}return!1}}function llt(n,a,l){let u=n,h=a;const y=xv(n),A=xv(a);return l(y,A)||(u=y,h=A),[u,h]}function clt(n){i(Pe);const a=Nf(n);if(!a)return Oe;const l=Jc(a);if(!(l&1))return Oe;const u=(l&2)!==0;n.asteriskToken&&(u&&P<99&&yc(n,26624),!u&&P<2&&ne.downlevelIteration&&yc(n,256));const h=_A(a),y=h&&HDe(h,u),A=y&&y.yieldType||Oe,N=y&&y.nextType||Oe,F=u?dT(N)||Oe:N,K=n.expression?ga(n.expression):et,Q=qwe(n,K,F,u);if(h&&Q&&Sv(Q,A,n.expression||n,n.expression),n.asteriskToken)return Jse(u?19:17,1,K,n.expression)||Oe;if(h)return fb(2,h,u)||Oe;let ve=R8e(2,a);return ve||(ve=Oe,i(()=>{if(Ae&&!cme(n)){const Me=pd(n,void 0);(!Me||xs(Me))&&Xe(n,m.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),ve;function Pe(){n.flags&8192||jc(n,m.A_yield_expression_is_only_allowed_in_a_generator_body),Woe(n)&&Xe(n,m.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function ult(n,a){const l=kA(n.condition);zse(n.condition,l,n.whenTrue);const u=ga(n.whenTrue,a),h=ga(n.whenFalse,a);return ei([u,h],2)}function nDe(n){const a=n.parent;return qd(a)&&nDe(a)||dl(a)&&a.argumentExpression===n}function dlt(n){const a=[n.head.text],l=[];for(const u of n.templateSpans){const h=ga(u.expression);$3(h,12288)&&Xe(u.expression,m.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(u.literal.text),l.push(Co(h,xo)?h:de)}return uI(n)||nDe(n)||lg(pd(n,void 0)||ye,flt)?QE(a,l):de}function flt(n){return!!(n.flags&134217856||n.flags&58982400&&hl(td(n)||ye,402653316))}function _lt(n){return tE(n)&&!sx(n.parent)?n.parent.parent:n}function LA(n,a,l,u){const h=_lt(n);B3(h,a,!1),Bat(h,l);const y=ga(n,u|1|(l?2:0));l&&l.intraExpressionInferenceSites&&(l.intraExpressionInferenceSites=void 0);const A=hl(y,2944)&&Nj(y,_j(a,n,void 0))?Ad(y):y;return Gat(),aw(),A}function ec(n,a){if(a)return ga(n,a);const l=Xr(n);if(!l.resolvedType){const u=En,h=Aa;En=Wn,Aa=void 0,l.resolvedType=ga(n,a),Aa=h,En=u}return l.resolvedType}function rDe(n){return n=Hs(n,!0),n.kind===213||n.kind===231||y4(n)}function _w(n,a,l){const u=rR(n);if(_r(n)){const y=YP(n);if(y)return Tse(u,y,a)}const h=Mse(u)||(l?LA(u,l,void 0,a||0):ec(u,a));return Ba(n)&&n.name.kind===204&&Go(h)&&!h.target.hasRestElement&&B0(h)<n.name.elements.length?plt(h,n.name):h}function plt(n,a){const l=a.elements,u=ys(n).slice(),h=n.target.elementFlags.slice();for(let y=B0(n);y<l.length;y++){const A=l[y];(y<l.length-1||!(A.kind===205&&A.dotDotDotToken))&&(u.push(!Fc(A)&&iI(A)?dv(A,!1,!1):Oe),h.push(2),!Fc(A)&&!iI(A)&&z0(A,Oe))}return qp(u,h,n.target.readonly)}function Nse(n,a){const l=Ap(n)&2||QM(n)?a:lb(a);if(_r(n)){if(O4e(l))return z0(n,Oe),Oe;if(KV(l))return z0(n,Nt),Nt}return l}function Nj(n,a){if(a){if(a.flags&3145728){const l=a.types;return Dt(l,u=>Nj(n,u))}if(a.flags&58982400){const l=td(a)||ye;return hl(l,4)&&hl(n,128)||hl(l,8)&&hl(n,256)||hl(l,64)&&hl(n,2048)||hl(l,4096)&&hl(n,8192)||Nj(n,l)}return!!(a.flags&406847616&&hl(n,128)||a.flags&256&&hl(n,256)||a.flags&2048&&hl(n,2048)||a.flags&512&&hl(n,512)||a.flags&8192&&hl(n,8192))}return!1}function uI(n){const a=n.parent;return AT(a)&&yg(a.type)||y4(a)&&yg(Y5(a))||Ese(n)&&mlt(n)||(qd(a)||Ju(a)||Fh(a))&&uI(a)||($c(a)||l_(a)||u4(a))&&uI(a.parent)}function mlt(n){const a=pd(n,0);return!!a&&lg(a,l3)}function dI(n,a,l){const u=ga(n,a,l);return uI(n)||S_e(n)?Ad(u):rDe(n)?u:foe(u,_j(pd(n,void 0),n,void 0))}function iDe(n,a){return n.name.kind===164&&dy(n.name),dI(n.initializer,a)}function aDe(n,a){RRe(n),n.name.kind===164&&dy(n.name);const l=$we(n,a);return oDe(n,l,a)}function oDe(n,a,l){if(l&&l&10){const u=sw(a,0,!0),h=sw(a,1,!0),y=u||h;if(y&&y.typeParameters){const A=ub(n,2);if(A){const N=sw(uy(A),u?0:1,!1);if(N&&!N.typeParameters){if(l&8)return sDe(n,l),La;const F=J2(n),K=F.signature&&vs(F.signature),Q=K&&gwe(K);if(Q&&!Q.typeParameters&&!Qn(F.inferences,IA)){const ve=vlt(F,y.typeParameters),Pe=yae(y,ve),Me=Pt(F.inferences,_t=>boe(_t.typeParameter));if(goe(Pe,N,(_t,Ut)=>{sg(Me,_t,Ut,0,!0)}),Dt(Me,IA)&&(yoe(Pe,N,(_t,Ut)=>{sg(Me,_t,Ut)}),!glt(F.inferences,Me)))return ylt(F.inferences,Me),F.inferredTypeParameters=ba(F.inferredTypeParameters,ve),$E(Pe)}return $E(ywe(y,N,F))}}}}return a}function sDe(n,a){if(a&2){const l=J2(n);l.flags|=4}}function IA(n){return!!(n.candidates||n.contraCandidates)}function hlt(n){return!!(n.candidates||n.contraCandidates||nke(n.typeParameter))}function glt(n,a){for(let l=0;l<n.length;l++)if(IA(n[l])&&IA(a[l]))return!0;return!1}function ylt(n,a){for(let l=0;l<n.length;l++)!IA(n[l])&&IA(a[l])&&(n[l]=a[l])}function vlt(n,a){const l=[];let u,h;for(const y of a){const A=y.symbol.escapedName;if(Ose(n.inferredTypeParameters,A)||Ose(l,A)){const N=blt(ba(n.inferredTypeParameters,l),A),F=rs(262144,N),K=Gd(F);K.target=y,u=Pn(u,y),h=Pn(h,K),l.push(K)}else l.push(y)}if(h){const y=Cd(u,h);for(const A of h)A.mapper=y}return l}function Ose(n,a){return Dt(n,l=>l.symbol.escapedName===a)}function blt(n,a){let l=a.length;for(;l>1&&a.charCodeAt(l-1)>=48&&a.charCodeAt(l-1)<=57;)l--;const u=a.slice(0,l);for(let h=1;;h++){const y=u+h;if(!Ose(n,y))return y}}function lDe(n){const a=K2(n);if(a&&!a.typeParameters)return vs(a)}function Elt(n){const a=ga(n.expression),l=$8(a,n.expression),u=lDe(a);return u&&$V(u,n,l!==a)}function Fu(n){const a=Mse(n);if(a)return a;if(n.flags&134217728&&Aa){const h=Aa[hs(n)];if(h)return h}const l=nr,u=ga(n);if(nr!==l){const h=Aa||(Aa=[]);h[hs(n)]=u,lme(n,n.flags|134217728)}return u}function Mse(n){let a=Hs(n,!0);if(y4(a)){const l=Y5(a);if(!yg(l))return pi(l)}if(a=Hs(n),zC(a)){const l=Mse(a.expression);return l?dT(l):void 0}if(io(a)&&a.expression.kind!==106&&!wd(a,!0)&&!Dwe(a))return TT(a)?Elt(a):lDe(oI(a.expression));if(AT(a)&&!yg(a.type))return pi(a.type);if(ST(n)||wfe(n))return ga(n)}function e7(n){const a=Xr(n);if(a.contextFreeType)return a.contextFreeType;B3(n,Oe,!1);const l=a.contextFreeType=ga(n,4);return aw(),l}function ga(n,a,l){var u,h;(u=Ti)==null||u.push(Ti.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const y=U;U=n,I=0;const A=xlt(n,a,l),N=oDe(n,A,a);return wse(N)&&Tlt(n,N),U=y,(h=Ti)==null||h.pop(),N}function Tlt(n,a){n.parent.kind===208&&n.parent.expression===n||n.parent.kind===209&&n.parent.expression===n||(n.kind===79||n.kind===163)&&Jj(n)||n.parent.kind===183&&n.parent.exprName===n||n.parent.kind===278||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),Y_(ne)&&(R.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&16777216&&Xe(n,m.Cannot_access_ambient_const_enums_when_0_is_enabled,zt))}function Slt(n,a){if(Df(n)){if(aK(n))return Tse(n.expression,oK(n),a);if(y4(n)){const l=Y5(n);return Pwe(l,l,n.expression,a)}}return ga(n.expression,a)}function xlt(n,a,l){const u=n.kind;if(o)switch(u){case 228:case 215:case 216:o.throwIfCancellationRequested()}switch(u){case 79:return sat(n,a);case 80:return Eot(n);case 108:return P3(n);case 106:return Voe(n);case 104:return Er;case 14:case 10:return bA(Xf(n.text));case 8:return ple(n),bA(Jp(+n.text));case 9:return xft(n),bA(NV({negative:!1,base10Value:Hk(n.text)}));case 110:return Te;case 95:return at;case 225:return dlt(n);case 13:return Uf;case 206:return V8e(n,a,l);case 207:return tot(n,a);case 208:return nwe(n,a);case 163:return rwe(n,a);case 209:return Fot(n,a);case 210:if(n.expression.kind===100)return _st(n);case 211:return fst(n,a);case 212:return pst(n);case 214:return Slt(n,a);case 228:return uut(n);case 215:case 216:return $we(n,a);case 218:return Jst(n);case 213:case 231:return mst(n);case 232:return gst(n);case 230:return Fwe(n);case 235:return yst(n);case 233:return vst(n);case 217:return zst(n);case 219:return Kst(n);case 220:return Yst(n);case 221:return $st(n);case 222:return Qst(n);case 223:return Fe(n,a);case 224:return ult(n,a);case 227:return Yat(n,a);case 229:return et;case 226:return clt(n);case 234:return $at(n);case 291:return pot(n,a);case 281:return aot(n,a);case 282:return rot(n,a);case 285:return oot(n);case 289:return lot(n,a);case 283:R.fail("Shouldn't ever directly check a JsxOpeningElement")}return Le}function cDe(n){yh(n),n.expression&&jc(n.expression,m.Type_expected),vo(n.constraint),vo(n.default);const a=KE(kr(n));td(a),ftt(a)||Xe(n.default,m.Type_parameter_0_has_a_circular_default,Re(a));const l=Ru(a),u=YE(a);l&&u&&_d(u,Jf(Zi(l,ob(a,u)),u),n.default,m.Type_0_does_not_satisfy_the_constraint_1),gI(n),i(()=>mI(n.name,m.Type_parameter_name_cannot_be_0))}function Alt(n){var a,l;if(dd(n.parent)||_i(n.parent)||um(n.parent)){const u=KE(kr(n)),h=ooe(u)&98304;if(h){const y=kr(n.parent);if(um(n.parent)&&!(ni(Vs(y))&48))Xe(n,m.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(h===32768||h===65536){(a=Ti)==null||a.push(Ti.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Mu(Vs(y)),id:Mu(u)});const A=S3(y,u,h===65536?yl:Rs),N=S3(y,u,h===65536?Rs:yl),F=u;j=u,_d(A,N,n,m.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),j=F,(l=Ti)==null||l.pop()}}}}function uDe(n){yh(n),o7(n);const a=Nf(n);Qr(n,16476)&&(a.kind===173&&b_(a.body)||Xe(n,m.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===173&&We(n.name)&&n.name.escapedText==="constructor"&&Xe(n.name,m.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&iK(n)&&$a(n.name)&&a.body&&Xe(n,m.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&We(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===173||a.kind===177||a.kind===182)&&Xe(n,m.A_constructor_cannot_have_a_this_parameter),a.kind===216&&Xe(n,m.An_arrow_function_cannot_have_a_this_parameter),(a.kind===174||a.kind===175)&&Xe(n,m.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!$a(n.name)&&!Co(yp(or(n.symbol)),Qi)&&Xe(n,m.A_rest_parameter_must_be_of_an_array_type)}function Clt(n){const a=Llt(n);if(!a){Xe(n,m.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const l=zp(a),u=f_(l);if(!u)return;vo(n.type);const{parameterName:h}=n;if(u.kind===0||u.kind===2)OV(h);else if(u.parameterIndex>=0){if(Lu(l)&&u.parameterIndex===l.parameters.length-1)Xe(h,m.A_type_predicate_cannot_reference_a_rest_parameter);else if(u.type){const y=()=>Na(void 0,m.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);_d(u.type,or(l.parameters[u.parameterIndex]),n.type,void 0,y)}}else if(h){let y=!1;for(const{name:A}of a.parameters)if($a(A)&&dDe(A,h,u.parameterName)){y=!0;break}y||Xe(n.parameterName,m.Cannot_find_parameter_0,u.parameterName)}}function Llt(n){switch(n.parent.kind){case 216:case 176:case 259:case 215:case 181:case 171:case 170:const a=n.parent;if(n===a.type)return a}}function dDe(n,a,l){for(const u of n.elements){if(Fc(u))continue;const h=u.name;if(h.kind===79&&h.escapedText===l)return Xe(a,m.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,l),!0;if((h.kind===204||h.kind===203)&&dDe(h,a,l))return!0}}function pw(n){n.kind===178?$dt(n):(n.kind===181||n.kind===259||n.kind===182||n.kind===176||n.kind===173||n.kind===177)&&Zj(n);const a=Jc(n);a&4||((a&3)===3&&P<99&&yc(n,6144),(a&3)===2&&P<4&&yc(n,64),a&3&&P<2&&yc(n,128)),l7(Gv(n)),sut(n),Ie(n.parameters,uDe),n.type&&vo(n.type),i(l);function l(){xct(n);const u=Lp(n);if(Ae&&!u)switch(n.kind){case 177:Xe(n,m.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 176:Xe(n,m.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(u){const h=Jc(n);if((h&5)===1){const y=pi(u);if(y===wt)Xe(u,m.A_generator_cannot_have_a_void_type_annotation);else{const A=fb(0,y,(h&2)!==0)||Oe,N=fb(1,y,(h&2)!==0)||A,F=fb(2,y,(h&2)!==0)||ye,K=zwe(A,N,F,!!(h&2));_d(K,y,u)}}else(h&3)===2&&ict(n,u)}n.kind!==178&&n.kind!==320&&Av(n)}}function Ilt(n){const a=new Map,l=new Map,u=new Map;for(const y of n.members)if(y.kind===173)for(const A of y.parameters)cf(A,y)&&!$a(A.name)&&h(a,A.name,A.name.escapedText,3);else{const A=Xa(y),N=y.name;if(!N)continue;const F=Ri(N),K=F&&A?16:0,Q=F?u:A?l:a,ve=N&&Hb(N);if(ve)switch(y.kind){case 174:h(Q,N,ve,1|K);break;case 175:h(Q,N,ve,2|K);break;case 169:h(Q,N,ve,3|K);break;case 171:h(Q,N,ve,8|K);break}}function h(y,A,N,F){const K=y.get(N);if(K)if((K&16)!==(F&16))Xe(A,m.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,kc(A));else{const Q=!!(K&8),ve=!!(F&8);Q||ve?Q!==ve&&Xe(A,m.Duplicate_identifier_0,kc(A)):K&F&-17?Xe(A,m.Duplicate_identifier_0,kc(A)):y.set(N,K|F)}else y.set(N,F)}}function klt(n){for(const a of n.members){const l=a.name;if(Xa(a)&&l){const h=Hb(l);switch(h){case"name":case"length":case"caller":case"arguments":case"prototype":const y=m.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,A=lv(kr(n));Xe(l,y,h,A);break}}}}function fDe(n){const a=new Map;for(const l of n.members)if(l.kind===168){let u;const h=l.name;switch(h.kind){case 10:case 8:u=h.text;break;case 79:u=Pr(h);break;default:continue}a.get(u)?(Xe(ka(l.symbol.valueDeclaration),m.Duplicate_identifier_0,u),Xe(l.name,m.Duplicate_identifier_0,u)):a.set(u,!0)}}function Pse(n){if(n.kind===261){const l=kr(n);if(l.declarations&&l.declarations.length>0&&l.declarations[0]!==n)return}const a=uke(kr(n));if(a!=null&&a.declarations){const l=new Map;for(const u of a.declarations)u.parameters.length===1&&u.parameters[0].type&&oT(pi(u.parameters[0].type),h=>{const y=l.get(Mu(h));y?y.declarations.push(u):l.set(Mu(h),{type:h,declarations:[u]})});l.forEach(u=>{if(u.declarations.length>1)for(const h of u.declarations)Xe(h,m.Duplicate_index_signature_for_type_0,Re(u.type))})}}function _De(n){!yh(n)&&!vft(n)&&eW(n.name),o7(n),Fse(n),Qr(n,256)&&n.kind===169&&n.initializer&&Xe(n,m.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ds(n.name))}function wlt(n){return Ri(n.name)&&Xe(n,m.Private_identifiers_are_not_allowed_outside_class_bodies),_De(n)}function Dlt(n){RRe(n)||eW(n.name),sc(n)&&n.asteriskToken&&We(n.name)&&Pr(n.name)==="constructor"&&Xe(n.name,m.Class_constructor_may_not_be_a_generator),CDe(n),Qr(n,256)&&n.kind===171&&n.body&&Xe(n,m.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ds(n.name)),Ri(n.name)&&!wc(n)&&Xe(n,m.Private_identifiers_are_not_allowed_outside_class_bodies),Fse(n)}function Fse(n){if(Ri(n.name)&&P<99){for(let a=Hm(n);a;a=Hm(a))Xr(a).flags|=4194304;if(Ku(n.parent)){const a=Boe(n.parent);a&&(Xr(n.name).flags|=32768,Xr(a).flags|=4096)}}}function Rlt(n){yh(n),Pa(n,vo)}function Nlt(n){pw(n),gft(n)||yft(n),vo(n.body);const a=kr(n),l=Il(a,n.kind);if(n===l&&Pj(a),kl(n.body))return;i(h);return;function u(y){return od(y)?!0:y.kind===169&&!Xa(y)&&!!y.initializer}function h(){const y=n.parent;if(Wb(y)){Goe(n.parent,y);const A=C8e(y),N=A8e(n.body);if(N){if(A&&Xe(N,m.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(ns(ne)!==99||!be)&&(Dt(n.parent.members,u)||Dt(n.parameters,K=>Qr(K,16476))))if(!Olt(N,n.body))Xe(N,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 K;for(const Q of n.body.statements){if(du(Q)&&aC(Cu(Q.expression))){K=Q;break}if(pDe(Q))break}K===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 A||Xe(n,m.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Olt(n,a){const l=zv(n.parent);return du(l)&&l.parent===a}function pDe(n){return n.kind===106||n.kind===108?!0:k_e(n)?!1:!!Pa(n,pDe)}function mDe(n){We(n.name)&&Pr(n.name)==="constructor"&&Xe(n.name,m.Class_constructor_may_not_be_an_accessor),i(a),vo(n.body),Fse(n);function a(){if(!Zj(n)&&!oft(n)&&eW(n.name),n7(n),pw(n),n.kind===174&&!(n.flags&16777216)&&b_(n.body)&&n.flags&256&&(n.flags&512||Xe(n.name,m.A_get_accessor_must_return_a_value)),n.name.kind===164&&dy(n.name),uA(n)){const u=kr(n),h=Il(u,174),y=Il(u,175);if(h&&y&&!(DA(h)&1)){Xr(h).flags|=1;const A=zu(h),N=zu(y);(A&256)!==(N&256)&&(Xe(h.name,m.Accessors_must_both_be_abstract_or_non_abstract),Xe(y.name,m.Accessors_must_both_be_abstract_or_non_abstract)),(A&16&&!(N&24)||A&8&&!(N&8))&&(Xe(h.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 F=se(h),K=se(y);F&&K&&_d(F,K,h,m.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}const l=Ur(kr(n));n.kind===174&&Ise(n,l)}}function Mlt(n){n7(n)}function Plt(n,a,l){return n.typeArguments&&l<n.typeArguments.length?pi(n.typeArguments[l]):Oj(n,a)[l]}function Oj(n,a){return yv(Pt(n.typeArguments,pi),a,Am(a),_r(n))}function hDe(n,a){let l,u,h=!0;for(let y=0;y<a.length;y++){const A=Ru(a[y]);A&&(l||(l=Oj(n,a),u=Cd(a,l)),h=h&&_d(l[y],Zi(A,u),n.typeArguments[y],m.Type_0_does_not_satisfy_the_constraint_1))}return h}function Flt(n,a){if(!is(n))return a.flags&524288&&zi(a).typeParameters||(ni(n)&4?n.target.localTypeParameters:void 0)}function Bse(n){const a=pi(n);if(!is(a)){const l=Xr(n).resolvedSymbol;if(l)return Flt(a,l)}}function Gse(n){if(f7(n,n.typeArguments),n.kind===180&&!_r(n)&&!tR(n)&&n.typeArguments&&n.typeName.end!==n.typeArguments.pos){const a=Zn(n);v_e(a,n.typeName.end)===24&&pb(n,Yo(a.text,n.typeName.end),1,m.JSDoc_types_can_only_be_used_inside_documentation_comments)}Ie(n.typeArguments,vo),gDe(n)}function gDe(n){const a=pi(n);if(!is(a)){n.typeArguments&&i(()=>{const u=Bse(n);u&&hDe(n,u)});const l=Xr(n).resolvedSymbol;l&&Dt(l.declarations,u=>RC(u)&&!!(u.flags&268435456))&&Vg(q3(n),l.declarations,l.escapedName)}}function Blt(n){const a=li(n.parent,VM);if(!a)return;const l=Bse(a);if(!l)return;const u=Ru(l[a.typeArguments.indexOf(n)]);return u&&Zi(u,Cd(l,Oj(a,l)))}function Glt(n){Eke(n)}function Ult(n){Ie(n.members,vo),i(a);function a(){const l=l4e(n);Wj(l,l.symbol),Pse(n),fDe(n)}}function Vlt(n){vo(n.elementType)}function jlt(n){const a=n.elements;let l=!1,u=!1;const h=Dt(a,o4);for(const y of a){if(y.kind!==199&&h){bn(y,m.Tuple_members_must_all_have_names_or_all_not_have_names);break}const A=wae(y);if(A&8){const N=pi(y.type);if(!H0(N)){Xe(y,m.A_rest_element_type_must_be_an_array_type);break}(Yf(N)||Go(N)&&N.target.combinedFlags&4)&&(u=!0)}else if(A&4){if(u){bn(y,m.A_rest_element_cannot_follow_another_rest_element);break}u=!0}else if(A&2){if(u){bn(y,m.An_optional_element_cannot_follow_a_rest_element);break}l=!0}else if(l){bn(y,m.A_required_element_cannot_follow_an_optional_element);break}}Ie(n.elements,vo),pi(n)}function Wlt(n){Ie(n.types,vo),pi(n)}function yDe(n,a){if(!(n.flags&8388608))return n;const l=n.objectType,u=n.indexType;if(Co(u,Lm(l,!1)))return a.kind===209&&wh(a)&&ni(l)&32&&xm(l)&1&&Xe(a,m.Index_signature_in_type_0_only_permits_reading,Re(l)),n;const h=nd(l);if(mh(h,mt)&&Vc(u,296))return n;if(rb(l)){const y=IV(u,a);if(y){const A=oT(h,N=>_o(N,y));if(A&&a_(A)&24)return Xe(a,m.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,ia(y)),Le}}return Xe(a,m.Type_0_cannot_be_used_to_index_type_1,Re(u),Re(l)),Le}function Hlt(n){vo(n.objectType),vo(n.indexType),yDe(n4e(n),n)}function zlt(n){qlt(n),vo(n.typeParameter),vo(n.nameType),vo(n.type),n.type||z0(n,Oe);const a=Uae(n),l=mv(a);if(l)_d(l,Wi,n.nameType);else{const u=Hp(a);_d(u,Wi,JA(n.typeParameter))}}function qlt(n){var a;if((a=n.members)!=null&&a.length)return bn(n.members[0],m.A_mapped_type_may_not_declare_properties_or_methods)}function Jlt(n){OV(n)}function Klt(n){lft(n),vo(n.type)}function Xlt(n){Pa(n,vo)}function Ylt(n){rr(n,l=>l.parent&&l.parent.kind===191&&l.parent.extendsType===l)||bn(n,m.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),vo(n.typeParameter);const a=kr(n.typeParameter);if(a.declarations&&a.declarations.length>1){const l=zi(a);if(!l.typeParametersChecked){l.typeParametersChecked=!0;const u=KE(a),h=Xfe(a,165);if(!KDe(h,[u],y=>[y])){const y=x(a);for(const A of h)Xe(A.name,m.All_declarations_of_0_must_have_identical_constraints,y)}}}Av(n)}function $lt(n){for(const a of n.templateSpans){vo(a.type);const l=pi(a.type);_d(l,xo,a.type)}pi(n)}function Qlt(n){vo(n.argument),n.assertions&&yx(n.assertions.assertClause,bn)&&(kR()||bn(n.assertions.assertClause,m.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),El(ne)!==3&&El(ne)!==99&&bn(n.assertions.assertClause,m.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),gDe(n)}function Zlt(n){n.dotDotDotToken&&n.questionToken&&bn(n,m.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===187&&bn(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===188&&bn(n.type,m.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),vo(n.type),pi(n)}function t7(n){return(Hd(n,8)||od(n))&&!!(n.flags&16777216)}function Mj(n,a){let l=Cy(n);return n.parent.kind!==261&&n.parent.kind!==260&&n.parent.kind!==228&&n.flags&16777216&&(!(l&2)&&!(dm(n.parent)&&Xl(n.parent.parent)&&im(n.parent.parent))&&(l|=1),l|=2),l&a}function Pj(n){i(()=>ect(n))}function ect(n){function a(Tn,br){return br!==void 0&&br.parent===Tn[0].parent?br:Tn[0]}function l(Tn,br,ln,Gn,qn){if((Gn^qn)!==0){const oi=Mj(a(Tn,br),ln);Ie(Tn,ma=>{const eo=Mj(ma,ln)^oi;eo&1?Xe(ka(ma),m.Overload_signatures_must_all_be_exported_or_non_exported):eo&2?Xe(ka(ma),m.Overload_signatures_must_all_be_ambient_or_non_ambient):eo&24?Xe(ka(ma)||ma,m.Overload_signatures_must_all_be_public_private_or_protected):eo&256&&Xe(ka(ma),m.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function u(Tn,br,ln,Gn){if(ln!==Gn){const qn=OS(a(Tn,br));Ie(Tn,ti=>{OS(ti)!==qn&&Xe(ka(ti),m.Overload_signatures_must_all_be_optional_or_required)})}}const h=283;let y=0,A=h,N=!1,F=!0,K=!1,Q,ve,Pe;const Me=n.declarations,_t=(n.flags&16384)!==0;function Ut(Tn){if(Tn.name&&kl(Tn.name))return;let br=!1;const ln=Pa(Tn.parent,qn=>{if(br)return qn;br=qn===Tn});if(ln&&ln.pos===Tn.end&&ln.kind===Tn.kind){const qn=ln.name||ln,ti=ln.name;if(Tn.name&&ti&&(Ri(Tn.name)&&Ri(ti)&&Tn.name.escapedText===ti.escapedText||Cs(Tn.name)&&Cs(ti)||J_(Tn.name)&&J_(ti)&&Tk(Tn.name)===Tk(ti))){if((Tn.kind===171||Tn.kind===170)&&Xa(Tn)!==Xa(ln)){const ma=Xa(Tn)?m.Function_overload_must_be_static:m.Function_overload_must_not_be_static;Xe(qn,ma)}return}if(b_(ln.body)){Xe(qn,m.Function_implementation_name_must_be_0,Ds(Tn.name));return}}const Gn=Tn.name||Tn;_t?Xe(Gn,m.Constructor_implementation_is_missing):Qr(Tn,256)?Xe(Gn,m.All_declarations_of_an_abstract_method_must_be_consecutive):Xe(Gn,m.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Mn=!1,xn=!1,Kn=!1;const hn=[];if(Me)for(const Tn of Me){const br=Tn,ln=br.flags&16777216,Gn=br.parent&&(br.parent.kind===261||br.parent.kind===184)||ln;if(Gn&&(Pe=void 0),(br.kind===260||br.kind===228)&&!ln&&(Kn=!0),br.kind===259||br.kind===171||br.kind===170||br.kind===173){hn.push(br);const qn=Mj(br,h);y|=qn,A&=qn,N=N||OS(br),F=F&&OS(br);const ti=b_(br.body);ti&&Q?_t?xn=!0:Mn=!0:(Pe==null?void 0:Pe.parent)===br.parent&&Pe.end!==br.pos&&Ut(Pe),ti?Q||(Q=br):K=!0,Pe=br,Gn||(ve=br)}if(_r(Tn)&&Ya(Tn)&&Tn.jsDoc){for(const qn of Tn.jsDoc)if(qn.tags)for(const ti of qn.tags)m4(ti)&&(K=!0)}}if(xn&&Ie(hn,Tn=>{Xe(Tn,m.Multiple_constructor_implementations_are_not_allowed)}),Mn&&Ie(hn,Tn=>{Xe(ka(Tn)||Tn,m.Duplicate_function_implementation)}),Kn&&!_t&&n.flags&16&&Me){const Tn=ur(Me,br=>br.kind===260).map(br=>Nr(br,m.Consider_adding_a_declare_modifier_to_this_class));Ie(Me,br=>{const ln=br.kind===260?m.Class_declaration_cannot_implement_overload_list_for_0:br.kind===259?m.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;ln&&$o(Xe(ka(br)||br,ln,Gl(n)),...Tn)})}if(ve&&!ve.body&&!Qr(ve,256)&&!ve.questionToken&&Ut(ve),K&&(Me&&(l(Me,Q,h,y,A),u(Me,Q,N,F)),Q)){const Tn=Z1(n),br=zp(Q);for(const ln of Tn)if(!Lrt(br,ln)){const Gn=ln.declaration&&rE(ln.declaration)?ln.declaration.parent.tagName:ln.declaration;$o(Xe(Gn,m.This_overload_signature_is_not_compatible_with_its_implementation_signature),Nr(Q,m.The_implementation_signature_is_declared_here));break}}}function mw(n){i(()=>tct(n))}function tct(n){let a=n.localSymbol;if(!a&&(a=kr(n),!a.exportSymbol)||Il(a,n.kind)!==n)return;let l=0,u=0,h=0;for(const K of a.declarations){const Q=F(K),ve=Mj(K,1025);ve&1?ve&1024?h|=Q:l|=Q:u|=Q}const y=l|u,A=l&u,N=h&y;if(A||N)for(const K of a.declarations){const Q=F(K),ve=ka(K);Q&N?Xe(ve,m.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ds(ve)):Q&A&&Xe(ve,m.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ds(ve))}function F(K){let Q=K;switch(Q.kind){case 261:case 262:case 349:case 341:case 343:return 2;case 264:return Hu(Q)||wg(Q)!==0?5:4;case 260:case 263:case 302:return 3;case 308:return 7;case 274:case 223:const ve=Q,Pe=Vl(ve)?ve.expression:ve.right;if(!Jl(Pe))return 1;Q=Pe;case 268:case 271:case 270:let Me=0;const _t=ic(kr(Q));return Ie(_t.declarations,Ut=>{Me|=F(Ut)}),Me;case 257:case 205:case 259:case 273:case 79:return 1;case 170:case 168:return 2;default:return R.failBadSyntaxKind(Q)}}}function hw(n,a,l,u){const h=gw(n,a);return h&&dT(h,a,l,u)}function gw(n,a,l){if(xs(n))return;const u=n;if(u.promisedTypeOfPromise)return u.promisedTypeOfPromise;if(P0(n,_3(!1)))return u.promisedTypeOfPromise=ys(n)[0];if(Q3(gv(n),134479868))return;const h=hc(n,"then");if(xs(h))return;const y=h?Ja(h,0):it;if(y.length===0){a&&Xe(a,m.A_promise_must_have_a_then_method);return}let A,N;for(const Q of y){const ve=eb(Q);ve&&ve!==wt&&!Im(n,ve,ah)?A=ve:N=Pn(N,Q)}if(!N){R.assertIsDefined(A),l&&(l.value=A),a&&Xe(a,m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Re(n),Re(A));return}const F=m_(ei(Pt(N,xse)),2097152);if(xs(F))return;const K=Ja(F,0);if(K.length===0){a&&Xe(a,m.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return u.promisedTypeOfPromise=ei(Pt(K,xse),2)}function yw(n,a,l,u,h){return(a?dT(n,l,u,h):fy(n,l,u,h))||Le}function vDe(n){if(Q3(gv(n),134479868))return!1;const a=hc(n,"then");return!!a&&Ja(m_(a,2097152),0).length>0}function Fj(n){var a;if(n.flags&16777216){const l=kae(!1);return!!l&&n.aliasSymbol===l&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function fI(n){return n.flags&1048576?Zs(n,fI):Fj(n)?n.aliasTypeArguments[0]:n}function bDe(n){if(xs(n)||Fj(n))return!1;if(rb(n)){const a=td(n);if(a?a.flags&3||ag(a)||lg(a,vDe):hl(n,8650752))return!0}return!1}function nct(n){const a=kae(!0);if(a)return hA(a,[fI(n)])}function rct(n){if(bDe(n)){const a=nct(n);if(a)return a}return R.assert(Fj(n)||gw(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function dT(n,a,l,u){const h=fy(n,a,l,u);return h&&rct(h)}function fy(n,a,l,u){if(xs(n)||Fj(n))return n;const h=n;if(h.awaitedTypeOfType)return h.awaitedTypeOfType;if(n.flags&1048576){if(Bg.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 N=a?K=>fy(K,a,l,u):fy;Bg.push(n.id);const F=Zs(n,N);return Bg.pop(),h.awaitedTypeOfType=F}if(bDe(n))return h.awaitedTypeOfType=n;const y={value:void 0},A=gw(n,void 0,y);if(A){if(n.id===A.id||Bg.lastIndexOf(A.id)>=0){a&&Xe(a,m.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Bg.push(n.id);const N=fy(A,a,l,u);return Bg.pop(),N?h.awaitedTypeOfType=N:void 0}if(vDe(n)){if(a){R.assertIsDefined(l);let N;y.value&&(N=Na(N,m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Re(n),Re(y.value))),N=Na(N,l,u),es.add(bg(Zn(a),a,N))}return}return h.awaitedTypeOfType=n}function ict(n,a){const l=pi(a);if(P>=2){if(is(l))return;const u=_3(!0);if(u!==Io&&!P0(l,u)){Xe(a,m.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Re(fy(l)||wt));return}}else{if(oct(a),is(l))return;const u=ZD(a);if(u===void 0){Xe(a,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,Re(l));return}const h=Pl(u,111551,!0),y=h?or(h):Le;if(is(y)){u.kind===79&&u.escapedText==="Promise"&&cA(l)===_3(!1)?Xe(a,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):Xe(a,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,Rf(u));return}const A=Ftt(!0);if(A===pa){Xe(a,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,Rf(u));return}if(!_d(y,A,a,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))return;const N=u&&Of(u),F=ef(n.locals,N.escapedText,111551);if(F){Xe(F.valueDeclaration,m.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Pr(N),Rf(u));return}}yw(l,!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 act(n){const a=lI(n);kj(a,n);const l=vs(a);if(l.flags&1)return;const u=Lse(n);if(!(u!=null&&u.resolvedReturnType))return;let h;const y=u.resolvedReturnType;switch(n.parent.kind){case 260:case 228:h=m.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 169:if(!re){h=m.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 166:h=m.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 171:case 174:case 175:h=m.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return R.failBadSyntaxKind(n.parent)}_d(l,y,n.expression,h)}function vw(n,a,l,u,h,y=l.length,A=0){const N=O.createFunctionTypeNode(void 0,it,O.createKeywordTypeNode(131));return ph(N,n,a,l,u,h,y,A)}function Use(n,a,l,u,h,y,A){const N=vw(n,a,l,u,h,y,A);return $E(N)}function EDe(n){return Use(void 0,void 0,it,n)}function TDe(n){const a=up("value",n);return Use(void 0,void 0,[a],wt)}function oct(n){SDe(n&&ZD(n),!1)}function SDe(n,a){if(!n)return;const l=Of(n),u=(n.kind===79?788968:1920)|2097152,h=ml(l,l.escapedText,u,void 0,void 0,!0);if(h&&h.flags&2097152){if(!ne.verbatimModuleSyntax&&Yg(h)&&!Tw(ic(h))&&!Bd(h))J1(h);else if(a&&Y_(ne)&&uu(ne)>=5&&!Yg(h)&&!Dt(h.declarations,Mb)){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),A=$t(h.declarations||it,zg);A&&$o(y,Nr(A,m._0_was_imported_here,Pr(l)))}}}function _I(n){const a=Vse(n);a&&uf(a)&&SDe(a,!0)}function Vse(n){if(n)switch(n.kind){case 190:case 189:return xDe(n.types);case 191:return xDe([n.trueType,n.falseType]);case 193:case 199:return Vse(n.type);case 180:return n.typeName}}function xDe(n){let a;for(let l of n){for(;l.kind===193||l.kind===199;)l=l.type;if(l.kind===144||!z&&(l.kind===198&&l.literal.kind===104||l.kind===155))continue;const u=Vse(l);if(!u)return;if(a){if(!We(a)||!We(u)||a.escapedText!==u.escapedText)return}else a=u}return a}function Bj(n){const a=iu(n);return Lh(n)?Fq(a):a}function n7(n){if(!_x(n)||!i_(n)||!n.modifiers||!uP(re,n,n.parent,n.parent.parent))return;const a=$t(n.modifiers,qu);if(a){if(re?(yc(a,8),n.kind===166&&yc(a,32)):P<99&&(yc(a,8),Bc(n)?n.name?XDe(n)&&yc(a,8388608):yc(a,8388608):Ku(n)||(Ri(n.name)&&(sc(n)||s1(n)||df(n))&&yc(a,8388608),Cs(n.name)&&yc(a,16777216))),ne.emitDecoratorMetadata)switch(yc(a,16),n.kind){case 260:const l=Dh(n);if(l)for(const A of l.parameters)_I(Bj(A));break;case 174:case 175:const u=n.kind===174?175:174,h=Il(kr(n),u);_I(G(n)||h&&G(h));break;case 171:for(const A of n.parameters)_I(Bj(A));_I(Lp(n));break;case 169:_I(iu(n));break;case 166:_I(Bj(n));const y=n.parent;for(const A of y.parameters)_I(Bj(A));break}for(const l of n.modifiers)qu(l)&&act(l)}}function sct(n){i(a);function a(){CDe(n),ule(n),pI(n,n.name)}}function lct(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&&mI(n.name,m.Type_alias_name_cannot_be_0),vo(n.typeExpression),l7(Gv(n))}function cct(n){vo(n.constraint);for(const a of n.typeParameters)vo(a)}function uct(n){vo(n.typeExpression)}function dct(n){vo(n.typeExpression);const a=hC(n);if(a){const l=Wz(a,J5);if(ge(l)>1)for(let u=1;u<ge(l);u++){const h=l[u].tagName;Xe(h,m._0_tag_already_specified,Pr(h))}}}function fct(n){n.name&&u7(n.name,!0)}function _ct(n){vo(n.typeExpression)}function pct(n){vo(n.typeExpression)}function mct(n){i(a),pw(n);function a(){!n.type&&!pC(n)&&z0(n,Oe)}}function hct(n){const a=hC(n);(!a||!Bc(a)&&!Ku(a))&&Xe(a,m.JSDoc_0_is_not_attached_to_a_class,Pr(n.tagName))}function gct(n){const a=hC(n);if(!a||!Bc(a)&&!Ku(a)){Xe(a,m.JSDoc_0_is_not_attached_to_a_class,Pr(n.tagName));return}const l=Nb(a).filter(YC);R.assert(l.length>0),l.length>1&&Xe(l[1],m.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const u=ADe(n.class.expression),h=Wb(a);if(h){const y=ADe(h.expression);y&&u.escapedText!==y.escapedText&&Xe(u,m.JSDoc_0_1_does_not_match_the_extends_2_clause,Pr(n.tagName),Pr(u),Pr(y))}}function yct(n){const a=MS(n);a&&od(a)&&Xe(n,m.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function ADe(n){switch(n.kind){case 79:return n;case 208:return n.name;default:return}}function CDe(n){var a;n7(n),pw(n);const l=Jc(n);if(n.name&&n.name.kind===164&&dy(n.name),uA(n)){const y=kr(n),A=n.localSymbol||y,N=(a=A.declarations)==null?void 0:a.find(F=>F.kind===n.kind&&!(F.flags&262144));n===N&&Pj(A),y.parent&&Pj(y)}const u=n.kind===170?void 0:n.body;if(vo(u),Ise(n,_A(n)),i(h),_r(n)){const y=Rb(n);y&&y.typeExpression&&!Joe(pi(y.typeExpression),n)&&Xe(y.typeExpression.type,m.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function h(){Lp(n)||(kl(u)&&!t7(n)&&z0(n,Oe),l&1&&b_(u)&&vs(zp(n)))}}function Av(n){i(a);function a(){const l=Zn(n);let u=vn.get(l.path);u||(u=[],vn.set(l.path,u)),u.push(n)}}function LDe(n,a){for(const l of n)switch(l.kind){case 260:case 228:vct(l,a),jse(l,a);break;case 308:case 264:case 238:case 266:case 245:case 246:case 247:wDe(l,a);break;case 173:case 215:case 259:case 216:case 171:case 174:case 175:l.body&&wDe(l,a),jse(l,a);break;case 170:case 176:case 177:case 181:case 182:case 262:case 261:jse(l,a);break;case 192:bct(l,a);break;default:R.assertNever(l,"Node should not have been registered for unused identifiers check")}}function IDe(n,a,l){const u=ka(n)||n,h=RC(n)?m._0_is_declared_but_never_used:m._0_is_declared_but_its_value_is_never_read;l(n,0,Nr(u,h,a))}function r7(n){return We(n)&&Pr(n).charCodeAt(0)===95}function vct(n,a){for(const l of n.members)switch(l.kind){case 171:case 169:case 174:case 175:if(l.kind===175&&l.symbol.flags&32768)break;const u=kr(l);!u.isReferenced&&(Hd(l,8)||Su(l)&&Ri(l.name))&&!(l.flags&16777216)&&a(l,0,Nr(l.name,m._0_is_declared_but_its_value_is_never_read,x(u)));break;case 173:for(const h of l.parameters)!h.symbol.isReferenced&&Qr(h,8)&&a(h,0,Nr(h.name,m.Property_0_is_declared_but_its_value_is_never_read,Gl(h.symbol)));break;case 178:case 237:case 172:break;default:R.fail("Unexpected class member")}}function bct(n,a){const{typeParameter:l}=n;Wse(l)&&a(n,1,Nr(n,m._0_is_declared_but_its_value_is_never_read,Pr(l.name)))}function jse(n,a){const l=kr(n).declarations;if(!l||Ko(l)!==n)return;const u=Gv(n),h=new Set;for(const y of u){if(!Wse(y))continue;const A=Pr(y.name),{parent:N}=y;if(N.kind!==192&&N.typeParameters.every(Wse)){if(wv(h,N)){const F=Zn(N),K=wp(N)?YJ(N):$J(F,N.typeParameters),Q=N.typeParameters.length===1,ve=Q?m._0_is_declared_but_its_value_is_never_read:m.All_type_parameters_are_unused,Pe=Q?A:void 0;a(y,1,Pc(F,K.pos,K.end-K.pos,ve,Pe))}}else a(y,1,Nr(y,m._0_is_declared_but_its_value_is_never_read,A))}}function Wse(n){return!(os(n.symbol).isReferenced&262144)&&!r7(n.name)}function i7(n,a,l,u){const h=String(u(a)),y=n.get(h);y?y[1].push(l):n.set(h,[a,[l]])}function kDe(n){return li(zm(n),Ba)}function Ect(n){return ms(n)?$m(n.parent)?!!(n.propertyName&&r7(n.name)):r7(n.name):Hu(n)||($i(n)&&QA(n.parent.parent)||DDe(n))&&r7(n.name)}function wDe(n,a){const l=new Map,u=new Map,h=new Map;n.locals.forEach(y=>{if(!(y.flags&262144?!(y.flags&3&&!(y.isReferenced&3)):y.isReferenced||y.exportSymbol)&&y.declarations){for(const A of y.declarations)if(!Ect(A))if(DDe(A))i7(l,Sct(A),A,hs);else if(ms(A)&&$m(A.parent)){const N=Ko(A.parent.elements);(A===N||!Ko(A.parent.elements).dotDotDotToken)&&i7(u,A.parent,A,hs)}else if($i(A))i7(h,A.parent,A,hs);else{const N=y.valueDeclaration&&kDe(y.valueDeclaration),F=y.valueDeclaration&&ka(y.valueDeclaration);N&&F?!cf(N,N.parent)&&!qb(N)&&!r7(F)&&(ms(A)&&WC(A.parent)?i7(u,A.parent,A,hs):a(N,1,Nr(F,m._0_is_declared_but_its_value_is_never_read,Gl(y)))):IDe(A,Gl(y),a)}}}),l.forEach(([y,A])=>{const N=y.parent;if((y.name?1:0)+(y.namedBindings?y.namedBindings.kind===271?1:y.namedBindings.elements.length:0)===A.length)a(N,0,A.length===1?Nr(N,m._0_is_declared_but_its_value_is_never_read,Pr(ds(A).name)):Nr(N,m.All_imports_in_import_declaration_are_unused));else for(const K of A)IDe(K,Pr(K.name),a)}),u.forEach(([y,A])=>{const N=kDe(y.parent)?1:0;if(y.elements.length===A.length)A.length===1&&y.parent.kind===257&&y.parent.parent.kind===258?i7(h,y.parent.parent,y.parent,hs):a(y,N,A.length===1?Nr(y,m._0_is_declared_but_its_value_is_never_read,a7(ds(A).name)):Nr(y,m.All_destructured_elements_are_unused));else for(const F of A)a(F,N,Nr(F,m._0_is_declared_but_its_value_is_never_read,a7(F.name)))}),h.forEach(([y,A])=>{if(y.declarations.length===A.length)a(y,0,A.length===1?Nr(ds(A).name,m._0_is_declared_but_its_value_is_never_read,a7(ds(A).name)):Nr(y.parent.kind===240?y.parent:y,m.All_variables_are_unused));else for(const N of A)a(N,0,Nr(N,m._0_is_declared_but_its_value_is_never_read,a7(N.name)))})}function Tct(){var n;for(const a of C2)if(!((n=kr(a))!=null&&n.isReferenced)){const l=qA(a);R.assert(FT(l),"Only parameter declaration should be checked here");const u=Nr(a.name,m._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ds(a.name),Ds(a.propertyName));l.type||$o(u,Pc(Zn(l),l.end,1,m.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ds(a.propertyName))),es.add(u)}}function a7(n){switch(n.kind){case 79:return Pr(n);case 204:case 203:return a7(lo(ds(n.elements),ms).name);default:return R.assertNever(n)}}function DDe(n){return n.kind===270||n.kind===273||n.kind===271}function Sct(n){return n.kind===270?n:n.kind===271?n.parent:n.parent.parent}function Gj(n){if(n.kind===238&&cg(n),Zz(n)){const a=Xi;Ie(n.statements,vo),Xi=a}else Ie(n.statements,vo);n.locals&&Av(n)}function xct(n){P>=2||!uq(n)||n.flags&16777216||kl(n.body)||Ie(n.parameters,a=>{a.name&&!$a(a.name)&&a.name.escapedText===Ct.escapedName&&y0("noEmit",a,m.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function bw(n,a,l){if((a==null?void 0:a.escapedText)!==l||n.kind===169||n.kind===168||n.kind===171||n.kind===170||n.kind===174||n.kind===175||n.kind===299||n.flags&16777216||(Qm(n)||fu(n)||Nd(n))&&Mb(n))return!1;const u=zm(n);return!(Ba(u)&&kl(u.parent.body))}function Act(n){rr(n,a=>DA(a)&4?(n.kind!==79?Xe(ka(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 Cct(n){rr(n,a=>DA(a)&8?(n.kind!==79?Xe(ka(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 Lct(n,a){if(ue>=5&&!(ue>=100&&Zn(n).impliedNodeFormat===1)||!a||!bw(n,a,"require")&&!bw(n,a,"exports")||Xl(n)&&wg(n)!==1)return;const l=zE(n);l.kind===308&&_f(l)&&y0("noEmit",a,m.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ds(a),Ds(a))}function Ict(n,a){if(!a||P>=4||!bw(n,a,"Promise")||Xl(n)&&wg(n)!==1)return;const l=zE(n);l.kind===308&&_f(l)&&l.flags&2048&&y0("noEmit",a,m.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ds(a),Ds(a))}function kct(n,a){P<=8&&(bw(n,a,"WeakMap")||bw(n,a,"WeakSet"))&&R1.push(n)}function wct(n){const a=Hm(n);DA(a)&4194304&&(R.assert(Su(n)&&We(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),y0("noEmit",n,m.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function Dct(n,a){a&&P>=2&&P<=8&&bw(n,a,"Reflect")&&g0.push(n)}function Rct(n){let a=!1;if(Ku(n)){for(const l of n.members)if(DA(l)&8388608){a=!0;break}}else if(Us(n))DA(n)&8388608&&(a=!0);else{const l=Hm(n);l&&DA(l)&8388608&&(a=!0)}a&&(R.assert(Su(n)&&We(n.name),"The target of a Reflect collision check should be an identifier"),y0("noEmit",n,m.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ds(n.name),"Reflect"))}function pI(n,a){a&&(Lct(n,a),Ict(n,a),kct(n,a),Dct(n,a),_i(n)?(mI(a,m.Class_name_cannot_be_0),n.flags&16777216||out(a)):b1(n)&&mI(a,m.Enum_name_cannot_be_0))}function Nct(n){if(Ap(n)&3||FT(n)||n.kind===257&&!n.initializer)return;const a=kr(n);if(a.flags&1){if(!We(n.name))return R.fail();const l=ml(n,n.name.escapedText,3,void 0,void 0,!1);if(l&&l!==a&&l.flags&2&&yj(l)&3){const u=f1(l.valueDeclaration,258),h=u.parent.kind===240&&u.parent.parent?u.parent.parent:void 0;if(!(h&&(h.kind===238&&Ya(h.parent)||h.kind===265||h.kind===264||h.kind===308))){const A=x(l);Xe(n,m.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,A,A)}}}}function Ew(n){return n===gt?Oe:n===Nn?Nt:n}function o7(n){var a;if(n7(n),ms(n)||vo(n.type),!n.name)return;if(n.name.kind===164&&(dy(n.name),CT(n)&&n.initializer&&ec(n.initializer)),ms(n)){if(n.propertyName&&We(n.name)&&FT(n)&&kl(Nf(n).body)){C2.push(n);return}$m(n.parent)&&n.dotDotDotToken&&P<5&&yc(n,4),n.propertyName&&n.propertyName.kind===164&&dy(n.propertyName);const h=n.parent.parent,y=n.dotDotDotToken?64:0,A=aA(h,y),N=n.propertyName||n.name;if(A&&!$a(N)){const F=oy(N);if(ng(F)){const K=Sm(F),Q=_o(A,K);Q&&(W3(Q,void 0,!1),rse(n,!!h.initializer&&h.initializer.kind===106,!1,A,Q))}}}if($a(n.name)&&(n.name.kind===204&&P<2&&ne.downlevelIteration&&yc(n,512),Ie(n.name.elements,vo)),Ba(n)&&n.initializer&&kl(Nf(n).body)){Xe(n,m.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if($a(n.name)){const h=CT(n)&&n.initializer&&n.parent.parent.kind!==246,y=!Dt(n.name.elements,q7(Fc));if(h||y){const A=Sl(n);if(h){const N=ec(n.initializer);z&&y?twe(N,n):Sv(N,Sl(n),n,n.initializer)}y&&(WC(n.name)?Cv(65,A,He,n):z&&twe(A,n))}return}const l=kr(n);if(l.flags&2097152&&(jb(n)||N_e(n))){Hj(n);return}const u=Ew(or(l));if(n===l.valueDeclaration){const h=CT(n)&&rR(n);h&&!(_r(n)&&Is(h)&&(h.properties.length===0||p1(n.name))&&((a=l.exports)!=null&&a.size))&&n.parent.parent.kind!==246&&Sv(ec(h),u,n,h,void 0),l.declarations&&l.declarations.length>1&&Dt(l.declarations,y=>y!==n&&sC(y)&&!NDe(y,n))&&Xe(n.name,m.All_declarations_of_0_must_have_identical_modifiers,Ds(n.name))}else{const h=Ew(Sl(n));!is(u)&&!is(h)&&!ig(u,h)&&!(l.flags&67108864)&&RDe(l.valueDeclaration,u,n,h),CT(n)&&n.initializer&&Sv(ec(n.initializer),h,n,n.initializer,void 0),l.valueDeclaration&&!NDe(n,l.valueDeclaration)&&Xe(n.name,m.All_declarations_of_0_must_have_identical_modifiers,Ds(n.name))}n.kind!==169&&n.kind!==168&&(mw(n),(n.kind===257||n.kind===205)&&Nct(n),pI(n,n.name))}function RDe(n,a,l,u){const h=ka(l),y=l.kind===169||l.kind===168?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,A=Ds(h),N=Xe(h,y,A,Re(a),Re(u));n&&$o(N,Nr(n,m._0_was_also_declared_here,A))}function NDe(n,a){if(n.kind===166&&a.kind===257||n.kind===257&&a.kind===166)return!0;if(OS(n)!==OS(a))return!1;const l=888;return US(n,l)===US(a,l)}function Hse(n){var a,l;(a=Ti)==null||a.push(Ti.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),_ft(n),o7(n),(l=Ti)==null||l.pop()}function Oct(n){return uft(n),o7(n)}function Mct(n){!yh(n)&&!_le(n.declarationList)&&pft(n),Ie(n.declarationList.declarations,vo)}function Pct(n){cg(n),ga(n.expression)}function Fct(n){cg(n);const a=kA(n.expression);zse(n.expression,a,n.thenStatement),vo(n.thenStatement),n.thenStatement.kind===239&&Xe(n.thenStatement,m.The_body_of_an_if_statement_cannot_be_the_empty_statement),vo(n.elseStatement)}function zse(n,a,l){if(!z)return;u(n,l);function u(y,A){for(y=Hs(y),h(y,A);Tr(y)&&(y.operatorToken.kind===56||y.operatorToken.kind===60);)y=Hs(y.left),h(y,A)}function h(y,A){const N=NR(y)?Hs(y.right):y;if(kh(N))return;if(NR(N)){u(N,A);return}const F=N===y?a:kA(N),K=Br(N)&&rDe(N.expression);if(!(Pu(F)&4194304)||K)return;const Q=Ja(F,0),ve=!!hw(F);if(Q.length===0&&!ve)return;const Pe=We(N)?N:Br(N)?N.name:void 0,Me=Pe&&B_(Pe);if(!Me&&!ve)return;Me&&Tr(y.parent)&&Gct(y.parent,Me)||Me&&A&&Bct(y,A,Pe,Me)||(ve?v0(N,!0,m.This_condition_will_always_return_true_since_this_0_is_always_defined,Cr(F)):Xe(N,m.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Bct(n,a,l,u){return!!Pa(a,function h(y){if(We(y)){const A=B_(y);if(A&&A===u){if(We(n)||We(l)&&Tr(l.parent))return!0;let N=l.parent,F=y.parent;for(;N&&F;){if(We(N)&&We(F)||N.kind===108&&F.kind===108)return B_(N)===B_(F);if(Br(N)&&Br(F)){if(B_(N.name)!==B_(F.name))return!1;F=F.expression,N=N.expression}else if(io(N)&&io(F))F=F.expression,N=N.expression;else return!1}}}return Pa(y,h)})}function Gct(n,a){for(;Tr(n)&&n.operatorToken.kind===55;){if(Pa(n.right,function u(h){if(We(h)){const y=B_(h);if(y&&y===a)return!0}return Pa(h,u)}))return!0;n=n.parent}return!1}function Uct(n){cg(n),vo(n.statement),kA(n.expression)}function Vct(n){cg(n),kA(n.expression),vo(n.statement)}function ODe(n,a){return n.flags&16384&&Xe(a,m.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function kA(n,a){return ODe(ga(n,a),n)}function jct(n){cg(n)||n.initializer&&n.initializer.kind===258&&_le(n.initializer),n.initializer&&(n.initializer.kind===258?Ie(n.initializer.declarations,Hse):ga(n.initializer)),n.condition&&kA(n.condition),n.incrementor&&ga(n.incrementor),vo(n.statement),n.locals&&Av(n)}function Wct(n){DRe(n);const a=oP(n);if(n.awaitModifier?a&&Rl(a)?bn(n.awaitModifier,m.For_await_loops_cannot_be_used_inside_a_class_static_block):(Jc(a)&6)===2&&P<99&&yc(n,16384):ne.downlevelIteration&&P<2&&yc(n,256),n.initializer.kind===258)MDe(n);else{const l=n.initializer,u=s7(n);if(l.kind===206||l.kind===207)uT(l,u||Le);else{const h=ga(l);fw(l,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),u&&Sv(u,h,l,n.expression)}}vo(n.statement),n.locals&&Av(n)}function Hct(n){DRe(n);const a=ise(ga(n.expression));if(n.initializer.kind===258){const l=n.initializer.declarations[0];l&&$a(l.name)&&Xe(l.name,m.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),MDe(n)}else{const l=n.initializer,u=ga(l);l.kind===206||l.kind===207?Xe(l,m.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Co(Dnt(a),u)?fw(l,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(l,m.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Et||!Vc(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,Re(a)),vo(n.statement),n.locals&&Av(n)}function MDe(n){const a=n.initializer;if(a.declarations.length>=1){const l=a.declarations[0];Hse(l)}}function s7(n){const a=n.awaitModifier?15:13;return Cv(a,oI(n.expression),He,n.expression)}function Cv(n,a,l,u){return xs(a)?a:qse(n,a,l,u,!0)||Oe}function qse(n,a,l,u,h){const y=(n&2)!==0;if(a===Et){$se(u,a,y);return}const A=P>=2,N=!A&&ne.downlevelIteration,F=ne.noUncheckedIndexedAccess&&!!(n&128);if(A||N||y){const _t=Vj(a,n,A?u:void 0);if(h&&_t){const Ut=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;Ut&&_d(l,_t.nextType,u,Ut)}if(_t||A)return F?nw(_t&&_t.yieldType):_t&&_t.yieldType}let K=a,Q=!1,ve=!1;if(n&4){if(K.flags&1048576){const _t=a.types,Ut=ur(_t,Mn=>!(Mn.flags&402653316));Ut!==_t&&(K=ei(Ut,2))}else K.flags&402653316&&(K=Et);if(ve=K!==a,ve&&(P<1&&u&&(Xe(u,m.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),Q=!0),K.flags&131072))return F?nw(de):de}if(!H0(K)){if(u&&!Q){const _t=!!(n&4)&&!ve,[Ut,Mn]=Me(_t,N);v0(u,Mn&&!!hw(K),Ut,Re(K))}return ve?F?nw(de):de:void 0}const Pe=iy(K,mt);if(ve&&Pe)return Pe.flags&402653316&&!ne.noUncheckedIndexedAccess?de:ei(F?[Pe,de,He]:[Pe,de],2);return n&128?nw(Pe):Pe;function Me(_t,Ut){var Mn;return Ut?_t?[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]:Jse(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]:zct((Mn=a.symbol)==null?void 0:Mn.escapedName)?[m.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:_t?[m.Type_0_is_not_an_array_type_or_a_string_type,!0]:[m.Type_0_is_not_an_array_type,!0]}}function zct(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 Jse(n,a,l,u){if(xs(l))return;const h=Vj(l,n,u);return h&&h[nve(a)]}function _y(n=Et,a=Et,l=ye){if(n.flags&67359327&&a.flags&180227&&l.flags&180227){const u=__([n,a,l]);let h=_e.get(u);return h||(h={yieldType:n,returnType:a,nextType:l},_e.set(u,h)),h}return{yieldType:n,returnType:a,nextType:l}}function PDe(n){let a,l,u;for(const h of n)if(!(h===void 0||h===kt)){if(h===Ht)return Ht;a=Pn(a,h.yieldType),l=Pn(l,h.returnType),u=Pn(u,h.nextType)}return a||l||u?_y(a&&ei(a),l&&ei(l),u&&Ro(u)):kt}function Uj(n,a){return n[a]}function gh(n,a,l){return n[a]=l}function Vj(n,a,l){var u,h;if(xs(n))return Ht;if(!(n.flags&1048576)){const K=l?{errors:void 0}:void 0,Q=FDe(n,a,l,K);if(Q===kt){if(l){const ve=$se(l,n,!!(a&2));K!=null&&K.errors&&$o(ve,...K.errors)}return}else if((u=K==null?void 0:K.errors)!=null&&u.length)for(const ve of K.errors)es.add(ve);return Q}const y=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",A=Uj(n,y);if(A)return A===kt?void 0:A;let N;for(const K of n.types){const Q=l?{errors:void 0}:void 0,ve=FDe(K,a,l,Q);if(ve===kt){if(l){const Pe=$se(l,n,!!(a&2));Q!=null&&Q.errors&&$o(Pe,...Q.errors)}gh(n,y,kt);return}else if((h=Q==null?void 0:Q.errors)!=null&&h.length)for(const Pe of Q.errors)es.add(Pe);N=Pn(N,ve)}const F=N?PDe(N):kt;return gh(n,y,F),F===kt?void 0:F}function Kse(n,a){if(n===kt)return kt;if(n===Ht)return Ht;const{yieldType:l,returnType:u,nextType:h}=n;return a&&kae(!0),_y(dT(l,a)||Oe,dT(u,a)||Oe,h)}function FDe(n,a,l,u){if(xs(n))return Ht;let h=!1;if(a&2){const y=Xse(n,At)||GDe(n,At);if(y)if(y===kt&&l)h=!0;else return a&8?Kse(y,l):y}if(a&1){let y=Xse(n,fn)||GDe(n,fn);if(y)if(y===kt&&l)h=!0;else if(a&2){if(y!==kt)return y=Kse(y,l),h?y:gh(n,"iterationTypesOfAsyncIterable",y)}else return y}if(a&2){const y=Yse(n,At,l,u,h);if(y!==kt)return y}if(a&1){let y=Yse(n,fn,l,u,h);if(y!==kt)return a&2?(y=Kse(y,l),h?y:gh(n,"iterationTypesOfAsyncIterable",y)):y}return kt}function Xse(n,a){return Uj(n,a.iterableCacheKey)}function BDe(n,a){const l=Xse(n,a)||Yse(n,a,void 0,void 0,!1);return l===kt?st:l}function GDe(n,a){let l;if(P0(n,l=a.getGlobalIterableType(!1))||P0(n,l=a.getGlobalIterableIteratorType(!1))){const[u]=ys(n),{returnType:h,nextType:y}=BDe(l,a);return gh(n,a.iterableCacheKey,_y(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(h,void 0)||h,y))}if(P0(n,a.getGlobalGeneratorType(!1))){const[u,h,y]=ys(n);return gh(n,a.iterableCacheKey,_y(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(h,void 0)||h,y))}}function qct(n){const a=Lke(!1),l=a&&hc(or(a),cl(n));return l&&ng(l)?Sm(l):`__@${n}`}function Yse(n,a,l,u,h){var y;const A=_o(n,qct(a.iteratorSymbolName)),N=A&&!(A.flags&16777216)?or(A):void 0;if(xs(N))return h?Ht:gh(n,a.iterableCacheKey,Ht);const F=N?Ja(N,0):void 0;if(!Dt(F))return h?kt:gh(n,a.iterableCacheKey,kt);const K=Ro(Pt(F,vs)),Q=(y=UDe(K,a,l,u,h))!=null?y:kt;return h?Q:gh(n,a.iterableCacheKey,Q)}function $se(n,a,l){const u=l?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,h=!!hw(a)||!l&&b6(n.parent)&&n.parent.expression===n&&LV(!1)!==Io&&Co(a,LV(!1));return v0(n,h,u,Re(a))}function Jct(n,a,l,u){return UDe(n,a,l,u,!1)}function UDe(n,a,l,u,h){if(xs(n))return Ht;let y=VDe(n,a)||Kct(n,a);return y===kt&&l&&(y=void 0,h=!0),y!=null||(y=WDe(n,a,l,u,h)),y===kt?void 0:y}function VDe(n,a){return Uj(n,a.iteratorCacheKey)}function Kct(n,a){const l=a.getGlobalIterableIteratorType(!1);if(P0(n,l)){const[u]=ys(n),h=VDe(l,a)||WDe(l,a,void 0,void 0,!1),{returnType:y,nextType:A}=h===kt?st:h;return gh(n,a.iteratorCacheKey,_y(u,y,A))}if(P0(n,a.getGlobalIteratorType(!1))||P0(n,a.getGlobalGeneratorType(!1))){const[u,h,y]=ys(n);return gh(n,a.iteratorCacheKey,_y(u,h,y))}}function jDe(n,a){const l=hc(n,"done")||at;return Co(a===0?at:Te,l)}function Xct(n){return jDe(n,0)}function Yct(n){return jDe(n,1)}function $ct(n){if(xs(n))return Ht;const a=Uj(n,"iterationTypesOfIteratorResult");if(a)return a;if(P0(n,Htt(!1))){const A=ys(n)[0];return gh(n,"iterationTypesOfIteratorResult",_y(A,void 0,void 0))}if(P0(n,ztt(!1))){const A=ys(n)[0];return gh(n,"iterationTypesOfIteratorResult",_y(void 0,A,void 0))}const l=gc(n,Xct),u=l!==Et?hc(l,"value"):void 0,h=gc(n,Yct),y=h!==Et?hc(h,"value"):void 0;return!u&&!y?gh(n,"iterationTypesOfIteratorResult",kt):gh(n,"iterationTypesOfIteratorResult",_y(u,y||wt,void 0))}function Qse(n,a,l,u,h){var y,A,N,F,K,Q;const ve=_o(n,l);if(!ve&&l!=="next")return;const Pe=ve&&!(l==="next"&&ve.flags&16777216)?l==="next"?or(ve):m_(or(ve),2097152):void 0;if(xs(Pe))return l==="next"?Ht:Z;const Me=Pe?Ja(Pe,0):it;if(Me.length===0){if(u){const ln=l==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;h?((y=h.errors)!=null||(h.errors=[]),h.errors.push(Nr(u,ln,l))):Xe(u,ln,l)}return l==="next"?kt:void 0}if(Pe!=null&&Pe.symbol&&Me.length===1){const ln=a.getGlobalGeneratorType(!1),Gn=a.getGlobalIteratorType(!1),qn=((N=(A=ln.symbol)==null?void 0:A.members)==null?void 0:N.get(l))===Pe.symbol,ti=!qn&&((K=(F=Gn.symbol)==null?void 0:F.members)==null?void 0:K.get(l))===Pe.symbol;if(qn||ti){const oi=qn?ln:Gn,{mapper:ma}=Pe;return _y(j0(oi.typeParameters[0],ma),j0(oi.typeParameters[1],ma),l==="next"?j0(oi.typeParameters[2],ma):void 0)}}let _t,Ut;for(const ln of Me)l!=="throw"&&Dt(ln.parameters)&&(_t=Pn(_t,bp(ln,0))),Ut=Pn(Ut,vs(ln));let Mn,xn;if(l!=="throw"){const ln=_t?ei(_t):ye;if(l==="next")xn=ln;else if(l==="return"){const Gn=a.resolveIterationType(ln,u)||Oe;Mn=Pn(Mn,Gn)}}let Kn;const hn=Ut?Ro(Ut):Et,Tn=a.resolveIterationType(hn,u)||Oe,br=$ct(Tn);return br===kt?(u&&(h?((Q=h.errors)!=null||(h.errors=[]),h.errors.push(Nr(u,a.mustHaveAValueDiagnostic,l))):Xe(u,a.mustHaveAValueDiagnostic,l)),Kn=Oe,Mn=Pn(Mn,Oe)):(Kn=br.yieldType,Mn=Pn(Mn,br.returnType)),_y(Kn,ei(Mn),xn)}function WDe(n,a,l,u,h){const y=PDe([Qse(n,a,"next",l,u),Qse(n,a,"return",l,u),Qse(n,a,"throw",l,u)]);return h?y:gh(n,a.iteratorCacheKey,y)}function fb(n,a,l){if(xs(a))return;const u=HDe(a,l);return u&&u[nve(n)]}function HDe(n,a){if(xs(n))return Ht;const l=a?2:1,u=a?At:fn;return Vj(n,l,void 0)||Jct(n,u,void 0,void 0)}function Qct(n){cg(n)||cft(n)}function jj(n,a){const l=!!(a&1),u=!!(a&2);if(l){const h=fb(1,n,u);return h?u?fy(fI(h)):h:Le}return u?fy(n)||Le:n}function zDe(n,a){const l=jj(a,Jc(n));return!!l&&hl(l,16387)}function Zct(n){var a;if(cg(n))return;const l=oP(n);if(l&&Rl(l)){jc(n,m.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!l){jc(n,m.A_return_statement_can_only_be_used_within_a_function_body);return}const u=zp(l),h=vs(u),y=Jc(l);if(z||n.expression||h.flags&131072){const A=n.expression?ec(n.expression):He;if(l.kind===175)n.expression&&Xe(n,m.Setters_cannot_return_a_value);else if(l.kind===173)n.expression&&!Sv(A,h,n,n.expression)&&Xe(n,m.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(_A(l)){const N=(a=jj(h,y))!=null?a:h,F=y&2?yw(A,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):A;N&&Sv(F,N,n,n.expression)}}else l.kind!==173&&ne.noImplicitReturns&&!zDe(l,h)&&Xe(n,m.Not_all_code_paths_return_a_value)}function eut(n){cg(n)||n.flags&32768&&jc(n,m.with_statements_are_not_allowed_in_an_async_function_block),ga(n.expression);const a=Zn(n);if(!_b(a)){const l=wy(a,n.pos).start,u=n.statement.pos;pb(a,l,u-l,m.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function tut(n){cg(n);let a,l=!1;const u=ga(n.expression);Ie(n.caseBlock.clauses,h=>{h.kind===293&&!l&&(a===void 0?a=h:(bn(h,m.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),l=!0)),h.kind===292&&i(y(h)),Ie(h.statements,vo),ne.noFallthroughCasesInSwitch&&h.fallthroughFlowNode&&O3(h.fallthroughFlowNode)&&Xe(h,m.Fallthrough_case_in_switch);function y(A){return()=>{const N=ga(A.expression);Rse(u,N)||x4e(N,u,A.expression,void 0)}}}),n.caseBlock.locals&&Av(n.caseBlock)}function nut(n){cg(n)||rr(n.parent,a=>Ya(a)?"quit":a.kind===253&&a.label.escapedText===n.label.escapedText?(bn(n.label,m.Duplicate_label_0,kc(n.label)),!0):!1),vo(n.statement)}function rut(n){cg(n)||We(n.expression)&&!n.expression.escapedText&&Aft(n,m.Line_break_not_permitted_here),n.expression&&ga(n.expression)}function iut(n){cg(n),Gj(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const l=a.variableDeclaration;o7(l);const u=iu(l);if(u){const h=pi(u);h&&!(h.flags&3)&&jc(u,m.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(l.initializer)jc(l.initializer,m.Catch_clause_variable_cannot_have_an_initializer);else{const h=a.block.locals;h&&lk(a.locals,y=>{const A=h.get(y);A!=null&&A.valueDeclaration&&A.flags&2&&bn(A.valueDeclaration,m.Cannot_redeclare_identifier_0_in_catch_clause,y)})}}Gj(a.block)}n.finallyBlock&&Gj(n.finallyBlock)}function Wj(n,a,l){const u=Nu(n);if(u.length===0)return;for(const y of hv(n))l&&y.flags&4194304||qDe(n,y,KL(y,8576,!0),M0(y));const h=a.valueDeclaration;if(h&&_i(h)){for(const y of h.members)if(!Xa(y)&&!uA(y)){const A=kr(y);qDe(n,A,Fu(y.name.expression),M0(A))}}if(u.length>1)for(const y of u)aut(n,y)}function qDe(n,a,l,u){const h=a.valueDeclaration,y=ka(h);if(y&&Ri(y))return;const A=_ae(n,l),N=ni(n)&2?Il(n.symbol,261):void 0,F=h&&h.kind===223||y&&y.kind===164?h:void 0,K=xd(a)===n.symbol?h:void 0;for(const Q of A){const ve=Q.declaration&&xd(kr(Q.declaration))===n.symbol?Q.declaration:void 0,Pe=K||ve||(N&&!Dt(Bo(n),Me=>!!Q1(Me,a.escapedName)&&!!iy(Me,Q.keyType))?N:void 0);if(Pe&&!Co(u,Q.type)){const Me=xE(Pe,m.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,x(a),Re(u),Re(Q.keyType),Re(Q.type));F&&Pe!==F&&$o(Me,Nr(F,m._0_is_declared_here,x(a))),es.add(Me)}}}function aut(n,a){const l=a.declaration,u=_ae(n,a.keyType),h=ni(n)&2?Il(n.symbol,261):void 0,y=l&&xd(kr(l))===n.symbol?l:void 0;for(const A of u){if(A===a)continue;const N=A.declaration&&xd(kr(A.declaration))===n.symbol?A.declaration:void 0,F=y||N||(h&&!Dt(Bo(n),K=>!!mh(K,a.keyType)&&!!iy(K,A.keyType))?h:void 0);F&&!Co(a.type,A.type)&&Xe(F,m._0_index_type_1_is_not_assignable_to_2_index_type_3,Re(a.keyType),Re(a.type),Re(A.keyType),Re(A.type))}}function mI(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 out(n){P>=1&&n.escapedText==="Object"&&(ue<5||Zn(n).impliedNodeFormat===1)&&Xe(n,m.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,dM[ue])}function sut(n){const a=ur(Nb(n),_m);if(!ge(a))return;const l=_r(n),u=new Set,h=new Set;if(Ie(n.parameters,({name:A},N)=>{We(A)&&u.add(A.escapedText),$a(A)&&h.add(N)}),hae(n)){const A=a.length-1,N=a[A];l&&N&&We(N.name)&&N.typeExpression&&N.typeExpression.type&&!u.has(N.name.escapedText)&&!h.has(A)&&!Yf(pi(N.typeExpression.type))&&Xe(N.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,Pr(N.name))}else Ie(a,({name:A,isNameFirst:N},F)=>{h.has(F)||We(A)&&u.has(A.escapedText)||(Rd(A)?l&&Xe(A,m.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Rf(A),Rf(A.left)):N||hm(l,A,m.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Pr(A)))})}function l7(n){let a=!1;if(n)for(let u=0;u<n.length;u++){const h=n[u];cDe(h),i(l(h,u))}function l(u,h){return()=>{u.default?(a=!0,lut(u.default,n,h)):a&&Xe(u,m.Required_type_parameters_may_not_follow_optional_type_parameters);for(let y=0;y<h;y++)n[y].symbol===u.symbol&&Xe(u.name,m.Duplicate_identifier_0,Ds(u.name))}}}function lut(n,a,l){u(n);function u(h){if(h.kind===180){const y=Aae(h);if(y.flags&262144)for(let A=l;A<a.length;A++)y.symbol===kr(a[A])&&Xe(h,m.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Pa(h,u)}}function JDe(n){if(n.declarations&&n.declarations.length===1)return;const a=zi(n);if(!a.typeParametersChecked){a.typeParametersChecked=!0;const l=hut(n);if(!l||l.length<=1)return;const u=Vs(n);if(!KDe(l,u.localTypeParameters,Gv)){const h=x(n);for(const y of l)Xe(y.name,m.All_declarations_of_0_must_have_identical_type_parameters,h)}}}function KDe(n,a,l){const u=ge(a),h=Am(a);for(const y of n){const A=l(y),N=A.length;if(N<h||N>u)return!1;for(let F=0;F<N;F++){const K=A[F],Q=a[F];if(K.name.escapedText!==Q.symbol.escapedName)return!1;const ve=JA(K),Pe=ve&&pi(ve),Me=Ru(Q);if(Pe&&Me&&!ig(Pe,Me))return!1;const _t=K.default&&pi(K.default),Ut=YE(Q);if(_t&&Ut&&!ig(_t,Ut))return!1}}return!0}function XDe(n){var a;const l=!re&&P<99&&Vb(!1,n),u=P<=9,h=!be||P<9;if(l||u)for(const y of n.members){if(l&&Gq(!1,y,n))return(a=tu(Fv(n)))!=null?a:n;if(u){if(Rl(y))return y;if(Xa(y)&&(od(y)||h&&pN(y)))return y}}}function cut(n){var a;if(n.name)return;const l=Lhe(n);if(!tJ(l))return;const u=!re&&P<99;let h;u&&Vb(!1,n)?h=(a=tu(Fv(n)))!=null?a:n:h=XDe(n),h&&(yc(h,8388608),($c(l)||ro(l)||ms(l))&&Cs(l.name)&&yc(h,16777216))}function uut(n){return YDe(n),gI(n),cut(n),or(kr(n))}function dut(n){Ie(n.members,vo),Av(n)}function fut(n){const a=$t(n.modifiers,qu);re&&a&&Dt(n.members,l=>Tc(l)&&od(l))&&bn(a,m.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Qr(n,1024)&&jc(n,m.A_class_declaration_without_the_default_modifier_must_have_a_name),YDe(n),Ie(n.members,vo),Av(n)}function YDe(n){Kdt(n),n7(n),pI(n,n.name),l7(Gv(n)),mw(n);const a=kr(n),l=Vs(a),u=Jf(l),h=or(a);JDe(a),Pj(a),Ilt(n),!!(n.flags&16777216)||klt(n);const A=am(n);if(A){Ie(A.typeArguments,vo),P<2&&yc(A.parent,1);const K=Wb(n);K&&K!==A&&ga(K.expression);const Q=Bo(l);Q.length&&i(()=>{const ve=Q[0],Pe=si(l),Me=nd(Pe);if(put(Me,A),vo(A.expression),Dt(A.typeArguments)){Ie(A.typeArguments,vo);for(const Ut of Yr(Me,A.typeArguments,A))if(!hDe(A,Ut.typeParameters))break}const _t=Jf(ve,l.thisType);if(_d(u,_t,void 0)?_d(h,g4e(Me),n.name||n,m.Class_static_side_0_incorrectly_extends_base_class_static_side_1):ZDe(n,u,_t,m.Class_0_incorrectly_extends_base_class_1),Pe.flags&8650752&&(n3(h)?Ja(Pe,1).some(Mn=>Mn.flags&4)&&!Qr(n,256)&&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)),!(Me.symbol&&Me.symbol.flags&32)&&!(Pe.flags&8650752)){const Ut=jr(Me,A.typeArguments,A);Ie(Ut,Mn=>!Xp(Mn.declaration)&&!ig(vs(Mn),ve))&&Xe(A.expression,m.Base_constructors_must_all_have_the_same_return_type)}gut(l,ve)})}_ut(n,l,u,h);const N=yC(n);if(N)for(const K of N)(!Jl(K.expression)||xu(K.expression))&&Xe(K.expression,m.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Gse(K),i(F(K));i(()=>{Wj(l,a),Wj(h,a,!0),Pse(n),but(n)});function F(K){return()=>{const Q=yp(pi(K));if(!is(Q))if(_h(Q)){const ve=Q.symbol&&Q.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,Pe=Jf(Q,l.thisType);_d(u,Pe,void 0)||ZDe(n,u,Pe,ve)}else Xe(K,m.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function _ut(n,a,l,u){const y=am(n)&&Bo(a),A=y!=null&&y.length?Jf(ds(y),a.thisType):void 0,N=si(a);for(const F of n.members)vJ(F)||(Kl(F)&&Ie(F.parameters,K=>{cf(K,F)&&$De(n,u,N,A,a,l,K,!0)}),$De(n,u,N,A,a,l,F,!1))}function $De(n,a,l,u,h,y,A,N,F=!0){const K=A.name&&B_(A.name)||B_(A);return K?QDe(n,a,l,u,h,y,yJ(A),Jb(A),Xa(A),N,Gl(K),F?A:void 0):0}function QDe(n,a,l,u,h,y,A,N,F,K,Q,ve){const Pe=_r(n),Me=!!(n.flags&16777216);if(u&&(A||ne.noImplicitOverride)){const _t=cl(Q),Ut=F?a:y,Mn=F?l:u,xn=_o(Ut,_t),Kn=_o(Mn,_t),hn=Re(u);if(xn&&!Kn&&A){if(ve){const Tn=uwe(Q,Mn);Tn?Xe(ve,Pe?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,hn,x(Tn)):Xe(ve,Pe?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,hn)}return 2}else if(xn&&(Kn!=null&&Kn.declarations)&&ne.noImplicitOverride&&!Me){const Tn=Dt(Kn.declarations,Jb);if(A)return 0;if(Tn){if(N&&Tn)return ve&&Xe(ve,m.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,hn),1}else{if(ve){const br=K?Pe?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:Pe?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(ve,br,hn)}return 1}}}else if(A){if(ve){const _t=Re(h);Xe(ve,Pe?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,_t)}return 2}return 0}function ZDe(n,a,l,u){let h=!1;for(const y of n.members){if(Xa(y))continue;const A=y.name&&B_(y.name)||B_(y);if(A){const N=_o(a,A.escapedName),F=_o(l,A.escapedName);if(N&&F){const K=()=>Na(void 0,m.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,x(A),Re(a),Re(l));_d(or(N),or(F),y.name||y,void 0,K)||(h=!0)}}}h||_d(a,l,n.name||n,u)}function put(n,a){const l=Ja(n,1);if(l.length){const u=l[0].declaration;if(u&&Hd(u,8)){const h=Cg(n.symbol);rle(a,h)||Xe(a,m.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Jh(n.symbol))}}}function mut(n,a,l){if(!a.name)return 0;const u=kr(n),h=Vs(u),y=Jf(h),A=or(u),F=am(n)&&Bo(h),K=F!=null&&F.length?Jf(ds(F),h.thisType):void 0,Q=si(h),ve=a.parent?yJ(a):Qr(a,16384);return QDe(n,A,Q,K,h,y,ve,Jb(a),Xa(a),!1,Gl(l))}function wA(n){return Dl(n)&1?n.links.target:n}function hut(n){return ur(n.declarations,a=>a.kind===260||a.kind===261)}function gut(n,a){var l,u,h,y;const A=gs(a);e:for(const N of A){const F=wA(N);if(F.flags&4194304)continue;const K=Q1(n,F.escapedName);if(!K)continue;const Q=wA(K),ve=a_(F);if(R.assert(!!Q,"derived should point to something, even if it is the base class' declaration."),Q===F){const Pe=Cg(n.symbol);if(ve&256&&(!Pe||!Qr(Pe,256))){for(const Me of Bo(n)){if(Me===a)continue;const _t=Q1(Me,F.escapedName),Ut=_t&&wA(_t);if(Ut&&Ut!==F)continue e}Pe.kind===228?Xe(Pe,m.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,x(N),Re(a)):Xe(Pe,m.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Re(n),x(N),Re(a))}}else{const Pe=a_(Q);if(ve&8||Pe&8)continue;let Me;const _t=F.flags&98308,Ut=Q.flags&98308;if(_t&&Ut){if((Dl(F)&6?(l=F.declarations)!=null&&l.some(Kn=>eRe(Kn,ve)):(u=F.declarations)!=null&&u.every(Kn=>eRe(Kn,ve)))||Dl(F)&262144||Q.valueDeclaration&&Tr(Q.valueDeclaration))continue;const Mn=_t!==4&&Ut===4;if(Mn||_t===4&&Ut!==4){const Kn=Mn?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(ka(Q.valueDeclaration)||Q.valueDeclaration,Kn,x(F),Re(a),Re(n))}else if(be){const Kn=(h=Q.declarations)==null?void 0:h.find(hn=>hn.kind===169&&!hn.initializer);if(Kn&&!(Q.flags&33554432)&&!(ve&256)&&!(Pe&256)&&!((y=Q.declarations)!=null&&y.some(hn=>!!(hn.flags&16777216)))){const hn=I0(Cg(n.symbol)),Tn=Kn.name;if(Kn.exclamationToken||!hn||!We(Tn)||!z||!nRe(Tn,n,hn)){const br=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(ka(Q.valueDeclaration)||Q.valueDeclaration,br,x(F),Re(a))}}}continue}else if(nse(F)){if(nse(Q)||Q.flags&4)continue;R.assert(!!(Q.flags&98304)),Me=m.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else F.flags&98304?Me=m.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Me=m.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Xe(ka(Q.valueDeclaration)||Q.valueDeclaration,Me,Re(a),x(F),Re(n))}}}function eRe(n,a){return a&256&&(!ro(n)||!n.initializer)||dd(n.parent)}function yut(n,a,l){if(!ge(a))return l;const u=new Map;Ie(l,h=>{u.set(h.escapedName,h)});for(const h of a){const y=gs(Jf(h,n.thisType));for(const A of y){const N=u.get(A.escapedName);N&&A.parent===N.parent&&u.delete(A.escapedName)}}return Oo(u.values())}function vut(n,a){const l=Bo(n);if(l.length<2)return!0;const u=new Map;Ie(Kie(n).declaredProperties,y=>{u.set(y.escapedName,{prop:y,containingType:n})});let h=!0;for(const y of l){const A=gs(Jf(y,n.thisType));for(const N of A){const F=u.get(N.escapedName);if(!F)u.set(N.escapedName,{prop:N,containingType:y});else if(F.containingType!==n&&!Brt(F.prop,N)){h=!1;const Q=Re(F.containingType),ve=Re(y);let Pe=Na(void 0,m.Named_property_0_of_types_1_and_2_are_not_identical,x(N),Q,ve);Pe=Na(Pe,m.Interface_0_cannot_simultaneously_extend_types_1_and_2,Re(n),Q,ve),es.add(bg(Zn(a),a,Pe))}}}return h}function but(n){if(!z||!Ee||n.flags&16777216)return;const a=I0(n);for(const l of n.members)if(!(zu(l)&2)&&!Xa(l)&&tRe(l)){const u=l.name;if(We(u)||Ri(u)||Cs(u)){const h=or(kr(l));h.flags&3||YL(h)||(!a||!nRe(u,h,a))&&Xe(l.name,m.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ds(u))}}}function tRe(n){return n.kind===169&&!Jb(n)&&!n.exclamationToken&&!n.initializer}function Eut(n,a,l,u,h){for(const y of l)if(y.pos>=u&&y.pos<=h){const A=O.createPropertyAccessExpression(O.createThis(),n);jo(A.expression,A),jo(A,y),A.flowNode=y.returnFlowNode;const N=J0(A,a,cy(a));if(!YL(N))return!0}return!1}function nRe(n,a,l){const u=Cs(n)?O.createElementAccessExpression(O.createThis(),n.expression):O.createPropertyAccessExpression(O.createThis(),n);jo(u.expression,u),jo(u,l),u.flowNode=l.returnFlowNode;const h=J0(u,a,cy(a));return!YL(h)}function Tut(n){yh(n)||tft(n),l7(n.typeParameters),i(()=>{mI(n.name,m.Interface_name_cannot_be_0),mw(n);const a=kr(n);JDe(a);const l=Il(a,261);if(n===l){const u=Vs(a),h=Jf(u);if(vut(u,n.name)){for(const y of Bo(u))_d(h,Jf(y,u.thisType),n.name,m.Interface_0_incorrectly_extends_interface_1);Wj(u,a)}}fDe(n)}),Ie(Ek(n),a=>{(!Jl(a.expression)||xu(a.expression))&&Xe(a.expression,m.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Gse(a)}),Ie(n.members,vo),i(()=>{Pse(n),Av(n)})}function Sut(n){yh(n),mI(n.name,m.Type_alias_name_cannot_be_0),mw(n),l7(n.typeParameters),n.type.kind===139?(!uN.has(n.name.escapedText)||ge(n.typeParameters)!==1)&&Xe(n.type,m.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(vo(n.type),Av(n))}function rRe(n){const a=Xr(n);if(!(a.flags&1024)){a.flags|=1024;let l=0;for(const u of n.members){const h=xut(u,l);Xr(u).enumMemberValue=h,l=typeof h=="number"?h+1:void 0}}}function xut(n,a){if(KD(n.name))Xe(n.name,m.Computed_property_names_are_not_allowed_in_enums);else{const l=rC(n.name);Oh(l)&&!Kk(l)&&Xe(n.name,m.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return Aut(n);if(!(n.parent.flags&16777216&&!Ub(n.parent))){if(a!==void 0)return a;Xe(n.name,m.Enum_member_must_have_initializer)}}function Aut(n){const a=Ub(n.parent),l=n.initializer,u=hI(l,n);return u!==void 0?a&&typeof u=="number"&&!isFinite(u)&&Xe(l,isNaN(u)?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(l,m.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&16777216?Xe(l,m.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):_d(ga(l),mt,l,m.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),u}function hI(n,a){switch(n.kind){case 221:const l=hI(n.operand,a);if(typeof l=="number")switch(n.operator){case 39:return l;case 40:return-l;case 54:return~l}break;case 223:const u=hI(n.left,a),h=hI(n.right,a);if(typeof u=="number"&&typeof h=="number")switch(n.operatorToken.kind){case 51:return u|h;case 50:return u&h;case 48:return u>>h;case 49:return u>>>h;case 47:return u<<h;case 52:return u^h;case 41:return u*h;case 43:return u/h;case 39:return u+h;case 40:return u-h;case 44:return u%h;case 42:return vle(u,h)}else if((typeof u=="string"||typeof u=="number")&&(typeof h=="string"||typeof h=="number")&&n.operatorToken.kind===39)return""+u+h;break;case 10:case 14:return n.text;case 225:return Cut(n,a);case 8:return ple(n),+n.text;case 214:return hI(n.expression,a);case 79:if(Kk(n.escapedText))return+n.escapedText;case 208:if(Jl(n)){const A=Pl(n,111551,!0);if(A){if(A.flags&8)return iRe(n,A,a);if(rI(A)){const N=A.valueDeclaration;if(N&&!N.type&&N.initializer&&N!==a&&Wg(N,a))return hI(N.initializer,N)}}}break;case 209:const y=n.expression;if(Jl(y)&&As(n.argumentExpression)){const A=Pl(y,111551,!0);if(A&&A.flags&384){const N=cl(n.argumentExpression.text),F=A.exports.get(N);if(F)return iRe(n,F,a)}}break}}function iRe(n,a,l){const u=a.valueDeclaration;if(!u||u===l){Xe(n,m.Property_0_is_used_before_being_assigned,x(a));return}return Wg(u,l)?Qj(u):(Xe(n,m.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function Cut(n,a){let l=n.head.text;for(const u of n.templateSpans){const h=hI(u.expression,a);if(h===void 0)return;l+=h,l+=u.literal.text}return l}function Lut(n){i(()=>Iut(n))}function Iut(n){yh(n),pI(n,n.name),mw(n),n.members.forEach(kut),rRe(n);const a=kr(n),l=Il(a,n.kind);if(n===l){if(a.declarations&&a.declarations.length>1){const h=Ub(n);Ie(a.declarations,y=>{b1(y)&&Ub(y)!==h&&Xe(ka(y),m.Enum_declarations_must_all_be_const_or_non_const)})}let u=!1;Ie(a.declarations,h=>{if(h.kind!==263)return!1;const y=h;if(!y.members.length)return!1;const A=y.members[0];A.initializer||(u?Xe(A.name,m.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):u=!0)})}}function kut(n){Ri(n.name)&&Xe(n,m.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&ga(n.initializer)}function wut(n){const a=n.declarations;if(a){for(const l of a)if((l.kind===260||l.kind===259&&b_(l.body))&&!(l.flags&16777216))return l}}function Dut(n,a){const l=Hm(n),u=Hm(a);return oh(l)?oh(u):oh(u)?!1:l===u}function Rut(n){n.body&&(vo(n.body),im(n)||Av(n)),i(a);function a(){var l,u;const h=im(n),y=n.flags&16777216;h&&!y&&Xe(n.name,m.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const A=Hu(n),N=A?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(c7(n,N))return;yh(n)||!y&&n.name.kind===10&&bn(n.name,m.Only_ambient_modules_can_use_quoted_names),We(n.name)&&pI(n,n.name),mw(n);const F=kr(n);if(F.flags&512&&!y&&CY(n,Kb(ne))){if(Y_(ne)&&!Zn(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,zt),((l=F.declarations)==null?void 0:l.length)>1){const K=wut(F);K&&(Zn(n)!==Zn(K)?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<K.pos&&Xe(n.name,m.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const Q=Il(F,260);Q&&Dut(n,Q)&&(Xr(n).flags|=2048)}if(ne.verbatimModuleSyntax&&n.parent.kind===308&&(ue===1||n.parent.impliedNodeFormat===1)){const K=(u=n.modifiers)==null?void 0:u.find(Q=>Q.kind===93);K&&Xe(K,m.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(A)if(Bb(n)){if((h||kr(n).flags&33554432)&&n.body)for(const Q of n.body.statements)Zse(Q,h)}else oh(n.parent)?h?Xe(n.name,m.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):zc(K_(n.name))&&Xe(n.name,m.Ambient_module_declaration_cannot_specify_relative_module_name):h?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 Zse(n,a){switch(n.kind){case 240:for(const u of n.declarationList.declarations)Zse(u,a);break;case 274:case 275:jc(n,m.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 268:case 269:jc(n,m.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 205:case 257:const l=n.name;if($a(l)){for(const u of l.elements)Zse(u,a);break}case 260:case 263:case 259:case 261:case 264:case 262:if(a)return;break}}function Nut(n){switch(n.kind){case 79:return n;case 163:do n=n.left;while(n.kind!==79);return n;case 208:do{if(kh(n.expression)&&!Ri(n.name))return n.name;n=n.expression}while(n.kind!==79);return n}}function ele(n){const a=fC(n);if(!a||kl(a))return!1;if(!Wo(a))return Xe(a,m.String_literal_expected),!1;const l=n.parent.kind===265&&Hu(n.parent.parent);if(n.parent.kind!==308&&!l)return Xe(a,n.kind===275?m.Export_declarations_are_not_permitted_in_a_namespace:m.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(l&&zc(a.text)&&!af(n))return Xe(n,m.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!fu(n)&&n.assertClause){let u=!1;for(const h of n.assertClause.elements)Wo(h.value)||(u=!0,Xe(h.value,m.Import_assertion_values_must_be_string_literal_expressions));return!u}return!0}function Hj(n){var a,l,u,h,y;let A=kr(n);const N=ic(A);if(N!==an){if(A=os(A.exportSymbol||A),_r(n)&&!(N.flags&111551)&&!Mb(n)){const Q=xS(n)?n.propertyName||n.name:Su(n)?n.name:n;if(R.assert(n.kind!==277),n.kind===278){const ve=Xe(Q,m.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Pe=(l=(a=Zn(n).symbol)==null?void 0:a.exports)==null?void 0:l.get((n.propertyName||n.name).escapedText);if(Pe===N){const Me=(u=Pe.declarations)==null?void 0:u.find(ZA);Me&&$o(ve,Nr(Me,m._0_is_automatically_exported_here,ia(Pe.escapedName)))}}else{R.assert(n.kind!==257);const ve=rr(n,Pm(Yc,fu)),Pe=(y=ve&&((h=dR(ve))==null?void 0:h.text))!=null?y:"...",Me=ia(We(Q)?Q.escapedText:A.escapedName);Xe(Q,m._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Me,`import("${Pe}").${Me}`)}return}const F=mu(N),K=(A.flags&1160127?111551:0)|(A.flags&788968?788968:0)|(A.flags&1920?1920:0);if(F&K){const Q=n.kind===278?m.Export_declaration_conflicts_with_exported_declaration_of_0:m.Import_declaration_conflicts_with_local_declaration_of_0;Xe(n,Q,x(A))}if(Y_(ne)&&!Mb(n)&&!(n.flags&16777216)){const Q=Bd(A),ve=!(F&111551);if(ve||Q)switch(n.kind){case 270:case 273:case 268:{if(ne.preserveValueImports||ne.verbatimModuleSyntax){R.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const Pe=ne.verbatimModuleSyntax&&uC(n)?m.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:ve?ne.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:ne.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,Me=Pr(n.kind===273&&n.propertyName||n.name);w2(Xe(n,Pe,Me),ve?void 0:Q,Me)}ve&&n.kind===268&&Hd(n,1)&&Xe(n,m.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,zt);break}case 278:if(ne.verbatimModuleSyntax||Zn(Q)!==Zn(n)){const Pe=Pr(n.propertyName||n.name),Me=ve?Xe(n,m.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,zt):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,Pe,zt);w2(Me,ve?void 0:Q,Pe);break}}ne.verbatimModuleSyntax&&n.kind!==268&&!_r(n)&&(ue===1||Zn(n).impliedNodeFormat===1)&&Xe(n,m.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(Nd(n)){const Q=oRe(A,n);aRe(Q)&&Q.declarations&&Vg(n,Q.declarations,Q.escapedName)}}}function aRe(n){return!!n.declarations&&Qn(n.declarations,a=>!!(Ap(a)&268435456))}function oRe(n,a){if(!(n.flags&2097152))return n;const l=ic(n);if(l===an)return l;for(;n.flags&2097152;){const u=Yoe(n);if(u){if(u===l)break;if(u.declarations&&ge(u.declarations))if(aRe(u)){Vg(a,u.declarations,u.escapedName);break}else{if(n===l)break;n=u}}else break}return l}function zj(n){pI(n,n.name),Hj(n),n.kind===273&&Pr(n.propertyName||n.name)==="default"&&$_(ne)&&ue!==4&&(ue<5||Zn(n).impliedNodeFormat===1)&&yc(n,131072)}function sRe(n){var a;if(n.assertClause){const l=b$(n),u=yx(n.assertClause,l?bn:void 0);if(l&&u)return kR()||bn(n.assertClause,m.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),El(ne)!==3&&El(ne)!==99?bn(n.assertClause,m.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if((ue===199&&n.moduleSpecifier&&Yy(n.moduleSpecifier))!==99&&ue!==99)return bn(n.assertClause,ue===199?m.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:m.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(Yc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return bn(n.assertClause,m.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(u)return bn(n.assertClause,m.resolution_mode_can_only_be_set_for_type_only_imports)}}function Out(n){if(!c7(n,_r(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(!yh(n)&&wP(n)&&jc(n,m.An_import_declaration_cannot_have_modifiers),ele(n)){const a=n.importClause;a&&!Lft(a)&&(a.name&&zj(a),a.namedBindings&&(a.namedBindings.kind===271?(zj(a.namedBindings),ue!==4&&(ue<5||Zn(n).impliedNodeFormat===1)&&$_(ne)&&yc(n,65536)):hu(n,n.moduleSpecifier)&&Ie(a.namedBindings.elements,zj)))}sRe(n)}}function Mut(n){if(!c7(n,_r(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)&&(yh(n),uC(n)||ele(n)))if(zj(n),Qr(n,1)&&wE(n),n.moduleReference.kind!==280){const a=ic(kr(n));if(a!==an){const l=mu(a);if(l&111551){const u=Of(n.moduleReference);Pl(u,112575).flags&1920||Xe(u,m.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ds(u))}l&788968&&mI(n.name,m.Import_name_cannot_be_0)}n.isTypeOnly&&bn(n,m.An_import_alias_cannot_use_import_type)}else ue>=5&&Zn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&16777216)&&bn(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 Put(n){if(!c7(n,_r(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(!yh(n)&&ppe(n)&&jc(n,m.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&tp(n.exportClause)&&ge(n.exportClause.elements)&&P===0&&yc(n,4194304),Fut(n),!n.moduleSpecifier||ele(n))if(n.exportClause&&!Bh(n.exportClause)){Ie(n.exportClause.elements,Wut);const a=n.parent.kind===265&&Hu(n.parent.parent),l=!a&&n.parent.kind===265&&!n.moduleSpecifier&&n.flags&16777216;n.parent.kind!==308&&!a&&!l&&Xe(n,m.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=hu(n,n.moduleSpecifier);a&&NE(a)?Xe(n.moduleSpecifier,m.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,x(a)):n.exportClause&&Hj(n.exportClause),ue!==4&&(ue<5||Zn(n).impliedNodeFormat===1)&&(n.exportClause?$_(ne)&&yc(n,65536):yc(n,32768))}sRe(n)}}function Fut(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===276?BRe(n.exportClause):!1}function c7(n,a){const l=n.parent.kind===308||n.parent.kind===265||n.parent.kind===264;return l||jc(n,a),!l}function But(n){return vP(n,a=>!!kr(a).isReferenced)}function Gut(n){return vP(n,a=>!!zi(kr(a)).constEnumReferenced)}function Uut(n){return Yc(n)&&n.importClause&&!n.importClause.isTypeOnly&&But(n.importClause)&&!$j(n.importClause,!0)&&!Gut(n.importClause)}function Vut(n){return fu(n)&&Zm(n.moduleReference)&&!n.isTypeOnly&&kr(n).isReferenced&&!$j(n,!1)&&!zi(kr(n)).constEnumReferenced}function jut(n){for(const a of n.statements)(Uut(a)||Vut(a))&&Xe(a,m.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Wut(n){if(Hj(n),Q_(ne)&&HE(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)$_(ne)&&ue!==4&&(ue<5||Zn(n).impliedNodeFormat===1)&&Pr(n.propertyName||n.name)==="default"&&yc(n,131072);else{const a=n.propertyName||n.name,l=ml(a,a.escapedText,2998271,void 0,void 0,!0);if(l&&(l===Ge||l===lt||l.declarations&&oh(zE(l.declarations[0]))))Xe(a,m.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Pr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&wE(n);const u=l&&(l.flags&2097152?ic(l):l);(!u||mu(u)&111551)&&ec(n.propertyName||n.name)}}}function Hut(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(c7(n,a))return;const l=n.parent.kind===308?n.parent:n.parent.parent;if(l.kind===264&&!Hu(l)){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}!yh(n)&&wP(n)&&jc(n,m.An_export_assignment_cannot_have_modifiers);const u=iu(n);u&&_d(ec(n.expression),pi(u),n.expression);const h=!n.isExportEquals&&!(n.flags&16777216)&&ne.verbatimModuleSyntax&&(ue===1||Zn(n).impliedNodeFormat===1);if(n.expression.kind===79){const y=n.expression,A=jp(Pl(y,67108863,!0,!0,n));A?(dj(A,y),mu(A)&111551?(ec(y),!h&&ne.verbatimModuleSyntax&&Bd(A,111551)&&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,Pr(y))):!h&&ne.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,Pr(y))):ec(y),Q_(ne)&&HE(y,!0)}else ec(n.expression);h&&Xe(n,m.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),lRe(l),n.flags&16777216&&!Jl(n.expression)&&bn(n.expression,m.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(ue>=5&&(n.flags&16777216&&Zn(n).impliedNodeFormat===99||!(n.flags&16777216)&&Zn(n).impliedNodeFormat!==1)?bn(n,m.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ue===4&&!(n.flags&16777216)&&bn(n,m.Export_assignment_is_not_supported_when_module_flag_is_system))}function zut(n){return ff(n.exports,(a,l)=>l!=="export=")}function lRe(n){const a=kr(n),l=zi(a);if(!l.exportsChecked){const u=a.exports.get("export=");if(u&&zut(a)){const y=Td(u)||u.valueDeclaration;y&&!af(y)&&!_r(y)&&Xe(y,m.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const h=$h(a);h&&h.forEach(({declarations:y,flags:A},N)=>{if(N==="__export"||A&1920)return;const F=Hc(y,z7(rve,q7(dd)));if(!(A&524288&&F<=2)&&F>1&&!qj(y))for(const K of y)eve(K)&&es.add(Nr(K,m.Cannot_redeclare_exported_variable_0,ia(N)))}),l.exportsChecked=!0}}function qj(n){return n&&n.length>1&&n.every(a=>_r(a)&&ul(a)&&(NT(a.expression)||kh(a.expression)))}function vo(n){if(n){const a=U;U=n,I=0,qut(n),U=a}}function qut(n){hR(n)&&Ie(n.jsDoc,({comment:l,tags:u})=>{cRe(l),Ie(u,h=>{cRe(h.comment),_r(n)&&vo(h)})});const a=n.kind;if(o)switch(a){case 264:case 260:case 261:case 259:o.throwIfCancellationRequested()}switch(a>=240&&a<=256&&mR(n)&&n.flowNode&&!O3(n.flowNode)&&hm(ne.allowUnreachableCode===!1,n,m.Unreachable_code_detected),a){case 165:return cDe(n);case 166:return uDe(n);case 169:return _De(n);case 168:return wlt(n);case 182:case 181:case 176:case 177:case 178:return pw(n);case 171:case 170:return Dlt(n);case 172:return Rlt(n);case 173:return Nlt(n);case 174:case 175:return mDe(n);case 180:return Gse(n);case 179:return Clt(n);case 183:return Glt(n);case 184:return Ult(n);case 185:return Vlt(n);case 186:return jlt(n);case 189:case 190:return Wlt(n);case 193:case 187:case 188:return vo(n.type);case 194:return Jlt(n);case 195:return Klt(n);case 191:return Xlt(n);case 192:return Ylt(n);case 200:return $lt(n);case 202:return Qlt(n);case 199:return Zlt(n);case 331:return gct(n);case 332:return hct(n);case 349:case 341:case 343:return lct(n);case 348:return cct(n);case 347:return uct(n);case 327:case 328:case 329:return fct(n);case 344:return _ct(n);case 351:return pct(n);case 320:mct(n);case 318:case 317:case 315:case 316:case 325:uRe(n),Pa(n,vo);return;case 321:Jut(n);return;case 312:return vo(n.type);case 336:case 338:case 337:return yct(n);case 353:return dct(n);case 196:return Hlt(n);case 197:return zlt(n);case 259:return sct(n);case 238:case 265:return Gj(n);case 240:return Mct(n);case 241:return Pct(n);case 242:return Fct(n);case 243:return Uct(n);case 244:return Vct(n);case 245:return jct(n);case 246:return Hct(n);case 247:return Wct(n);case 248:case 249:return Qct(n);case 250:return Zct(n);case 251:return eut(n);case 252:return tut(n);case 253:return nut(n);case 254:return rut(n);case 255:return iut(n);case 257:return Hse(n);case 205:return Oct(n);case 260:return fut(n);case 261:return Tut(n);case 262:return Sut(n);case 263:return Lut(n);case 264:return Rut(n);case 269:return Out(n);case 268:return Mut(n);case 275:return Put(n);case 274:return Hut(n);case 239:case 256:cg(n);return;case 279:return Mlt(n)}}function cRe(n){ja(n)&&Ie(n,a=>{IS(a)&&vo(a)})}function uRe(n){if(!_r(n))if(W5(n)||KC(n)){const a=bo(W5(n)?53:57),l=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,u=n.type,h=pi(u);bn(n,l,a,Re(KC(n)&&!(h===Et||h===wt)?ei(Pn([h,He],n.postfix?void 0:Sn)):h))}else bn(n,m.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Jut(n){uRe(n),vo(n.type);const{parent:a}=n;if(Ba(a)&&XC(a.parent)){Ko(a.parent.parameters)!==a&&Xe(n,m.A_rest_parameter_must_be_last_in_a_parameter_list);return}$T(a)||Xe(n,m.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const l=n.parent.parent;if(!_m(l)){Xe(n,m.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const u=gR(l);if(!u)return;const h=d1(l);(!h||Ko(h.parameters).symbol!==u)&&Xe(n,m.A_rest_parameter_must_be_last_in_a_parameter_list)}function Kut(n){const a=pi(n.type),{parent:l}=n,u=n.parent.parent;if($T(n.parent)&&_m(u)){const h=d1(u),y=tX(u.parent.parent);if(h||y){const A=rl(y?u.parent.parent.typeExpression.parameters:h.parameters),N=gR(u);if(!A||N&&A.symbol===N&&Lh(A))return Ou(a)}}return Ba(l)&&XC(l.parent)?Ou(a):wo(a)}function gI(n){const a=Zn(n),l=Xr(a);l.flags&1?R.assert(!l.deferredNodes,"A type-checked file should have no deferred nodes."):(l.deferredNodes||(l.deferredNodes=new Set),l.deferredNodes.add(n))}function Xut(n){const a=Xr(n);a.deferredNodes&&a.deferredNodes.forEach(Yut),a.deferredNodes=void 0}function Yut(n){var a,l;(a=Ti)==null||a.push(Ti.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const u=U;switch(U=n,I=0,n.kind){case 210:case 211:case 212:case 167:case 283:CA(n);break;case 215:case 216:case 171:case 170:Wst(n);break;case 174:case 175:mDe(n);break;case 228:dut(n);break;case 165:Alt(n);break;case 282:not(n);break;case 281:iot(n);break}U=u,(l=Ti)==null||l.pop()}function $ut(n){var a,l;(a=Ti)==null||a.push(Ti.Phase.Check,"checkSourceFile",{path:n.path},!0),sl("beforeCheck"),Qut(n),sl("afterCheck"),e_("Check","beforeCheck","afterCheck"),(l=Ti)==null||l.pop()}function dRe(n,a){if(a)return!1;switch(n){case 0:return!!ne.noUnusedLocals;case 1:return!!ne.noUnusedParameters;default:return R.assertNever(n)}}function fRe(n){return vn.get(n.path)||it}function Qut(n){const a=Xr(n);if(!(a.flags&1)){if(Wk(n,ne,e))return;Tft(n),Ta(TE),Ta(h0),Ta(R1),Ta(g0),Ta(C2),Ie(n.statements,vo),vo(n.endOfFileToken),Xut(n),_f(n)&&Av(n),i(()=>{!n.isDeclarationFile&&(ne.noUnusedLocals||ne.noUnusedParameters)&&LDe(fRe(n),(l,u,h)=>{!zD(l)&&dRe(u,!!(l.flags&16777216))&&es.add(h)}),n.isDeclarationFile||Tct()}),ne.importsNotUsedAsValues===2&&!n.isDeclarationFile&&tc(n)&&jut(n),_f(n)&&lRe(n),TE.length&&(Ie(TE,Act),Ta(TE)),h0.length&&(Ie(h0,Cct),Ta(h0)),R1.length&&(Ie(R1,wct),Ta(R1)),g0.length&&(Ie(g0,Rct),Ta(g0)),a.flags|=1}}function _Re(n,a){try{return o=a,Zut(n)}finally{o=void 0}}function tle(){for(const n of r)n();r=[]}function nle(n){tle();const a=i;i=l=>l(),$ut(n),i=a}function Zut(n){if(n){tle();const a=es.getGlobalDiagnostics(),l=a.length;nle(n);const u=es.getDiagnostics(n.fileName),h=es.getGlobalDiagnostics();if(h!==a){const y=Pue(a,h,Gk);return ba(y,u)}else if(l===0&&h.length>0)return ba(h,u);return u}return Ie(e.getSourceFiles(),nle),es.getDiagnostics()}function edt(){return tle(),es.getGlobalDiagnostics()}function tdt(n,a){if(n.flags&33554432)return[];const l=uo();let u=!1;return h(),l.delete("this"),pae(l);function h(){for(;n;){switch(Vm(n)&&n.locals&&!oh(n)&&A(n.locals,a),n.kind){case 308:if(!tc(n))break;case 264:N(kr(n).exports,a&2623475);break;case 263:A(kr(n).exports,a&8);break;case 228:n.name&&y(n.symbol,a);case 260:case 261:u||A(pv(kr(n)),a&788968);break;case 215:n.name&&y(n.symbol,a);break}A_e(n)&&y(Ct,a),u=Xa(n),n=n.parent}A(ze,a)}function y(F,K){if(Mk(F)&K){const Q=F.escapedName;l.has(Q)||l.set(Q,F)}}function A(F,K){K&&F.forEach(Q=>{y(Q,K)})}function N(F,K){K&&F.forEach(Q=>{!Il(Q,278)&&!Il(Q,277)&&y(Q,K)})}}function ndt(n){return n.kind===79&&RC(n.parent)&&ka(n.parent)===n}function pRe(n){for(;n.parent.kind===163;)n=n.parent;return n.parent.kind===180}function rdt(n){for(;n.parent.kind===208;)n=n.parent;return n.parent.kind===230}function mRe(n,a){let l,u=wc(n);for(;u&&!(l=a(u));)u=wc(u);return l}function idt(n){return!!rr(n,a=>Kl(a)&&b_(a.body)||ro(a)?!0:_i(a)||el(a)?"quit":!1)}function rle(n,a){return!!mRe(n,l=>l===a)}function adt(n){for(;n.parent.kind===163;)n=n.parent;if(n.parent.kind===268)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===274)return n.parent.expression===n?n.parent:void 0}function Jj(n){return adt(n)!==void 0}function odt(n){switch(wl(n.parent.parent)){case 1:case 3:return tf(n.parent);case 4:case 2:case 5:return kr(n.parent.parent)}}function sdt(n){let a=n.parent;for(;Rd(a);)n=a,a=a.parent;if(a&&a.kind===202&&a.qualifier===n)return a}function hRe(n){if(xg(n))return tf(n.parent);if(_r(n)&&n.parent.kind===208&&n.parent===n.parent.parent.left&&!Ri(n)&&!E1(n)){const a=odt(n);if(a)return a}if(n.parent.kind===274&&Jl(n)){const a=Pl(n,2998271,!0);if(a&&a!==an)return a}else if(uf(n)&&Jj(n)){const a=f1(n,268);return R.assert(a!==void 0),Vp(n,!0)}if(uf(n)){const a=sdt(n);if(a){pi(a);const l=Xr(n).resolvedSymbol;return l===an?void 0:l}}for(;Tpe(n);)n=n.parent;if(rdt(n)){let a=0;n.parent.kind===230?(a=Ih(n)?788968:111551,OR(n.parent)&&(a|=111551)):a=1920,a|=2097152;const l=Jl(n)?Pl(n,a):void 0;if(l)return l}if(n.parent.kind===344)return gR(n.parent);if(n.parent.kind===165&&n.parent.parent.kind===348){R.assert(!_r(n));const a=j_e(n.parent);return a&&a.symbol}if(Tg(n)){if(kl(n))return;const a=rr(n,Pm(IS,_4,E1)),l=a?901119:111551;if(n.kind===79){if(hk(n)&&aI(n)){const h=Qoe(n.parent);return h===an?void 0:h}const u=Pl(n,l,!1,!0,d1(n));if(!u&&a){const h=rr(n,Pm(_i,dd));if(h)return u7(n,!1,kr(h))}if(u&&a){const h=MS(n);if(h&&nE(h)&&h===u.valueDeclaration)return Pl(n,l,!0,!0,Zn(h))||u}return u}else{if(Ri(n))return Ej(n);if(n.kind===208||n.kind===163){const u=Xr(n);if(u.resolvedSymbol)return u.resolvedSymbol;if(n.kind===208){if(nwe(n,0),!u.resolvedSymbol){const h=ec(n.expression),y=_ae(h,oy(n.name));if(y.length&&h.members){const N=gp(h).members.get("__index");if(y===Nu(h))u.resolvedSymbol=N;else if(N){const F=zi(N),K=ua(y,ve=>ve.declaration),Q=Pt(K,hs).join(",");if(F.filteredIndexSymbolCache||(F.filteredIndexSymbolCache=new Map),F.filteredIndexSymbolCache.has(Q))u.resolvedSymbol=F.filteredIndexSymbolCache.get(Q);else{const ve=rs(131072,"__index");ve.declarations=ua(y,Pe=>Pe.declaration),ve.parent=h.aliasSymbol?h.aliasSymbol:h.symbol?h.symbol:B_(ve.declarations[0].parent),F.filteredIndexSymbolCache.set(Q,ve),u.resolvedSymbol=F.filteredIndexSymbolCache.get(Q)}}}}}else rwe(n,0);return!u.resolvedSymbol&&a&&Rd(n)?u7(n):u.resolvedSymbol}else if(E1(n))return u7(n)}}else if(pRe(n)){const a=n.parent.kind===180?788968:1920,l=Pl(n,a,!1,!0);return l&&l!==an?l:SV(n)}if(n.parent.kind===179)return Pl(n,1)}function u7(n,a,l){if(uf(n)){let A=Pl(n,901119,a,!0,d1(n));if(!A&&We(n)&&l&&(A=os(ef(Tf(l),n.escapedText,901119))),A)return A}const u=We(n)?l:u7(n.left,a,l),h=We(n)?n.escapedText:n.right.escapedText;if(u){const y=u.flags&111551&&_o(or(u),"prototype"),A=y?or(y):Vs(u);return _o(A,h)}}function B_(n,a){if(Ki(n))return tc(n)?os(n.symbol):void 0;const{parent:l}=n,u=l.parent;if(!(n.flags&33554432)){if(tve(n)){const h=kr(l);return xS(n.parent)&&n.parent.propertyName===n?Yoe(h):h}else if(bR(n))return kr(l.parent);if(n.kind===79){if(Jj(n))return hRe(n);if(l.kind===205&&u.kind===203&&n===l.propertyName){const h=X2(u),y=_o(h,n.escapedText);if(y)return y}else if(l4(l)&&l.name===n)return l.keywordToken===103&&Pr(n)==="target"?Sse(l).symbol:l.keywordToken===100&&Pr(n)==="meta"?Ake().members.get("meta"):void 0}switch(n.kind){case 79:case 80:case 208:case 163:if(!GS(n))return hRe(n);case 108:const h=kd(n,!1,!1);if(Ya(h)){const N=zp(h);if(N.thisParameter)return N.thisParameter}if(dP(n))return ga(n).symbol;case 194:return OV(n).symbol;case 106:return ga(n).symbol;case 135:const y=n.parent;return y&&y.kind===173?y.parent.symbol:void 0;case 10:case 14:if(c1(n.parent.parent)&&gk(n.parent.parent)===n||(n.parent.kind===269||n.parent.kind===275)&&n.parent.moduleSpecifier===n||_r(n)&&El(ne)!==100&&wd(n.parent,!1)||pf(n.parent)||v1(n.parent)&&l1(n.parent.parent)&&n.parent.parent.argument===n.parent)return hu(n,n,a);if(io(l)&&DS(l)&&l.arguments[1]===n)return kr(l);case 8:const A=dl(l)?l.argumentExpression===n?Fu(l.expression):void 0:v1(l)&&rx(u)?pi(u.objectType):void 0;return A&&_o(A,cl(n.text));case 88:case 98:case 38:case 84:return tf(n.parent);case 202:return l1(n)?B_(n.argument.literal,a):void 0;case 93:return Vl(n.parent)?R.checkDefined(n.parent.symbol):void 0;case 100:case 103:return l4(n.parent)?Gwe(n.parent).symbol:void 0;case 233:return ga(n).symbol;default:return}}}function ldt(n){if(We(n)&&Br(n.parent)&&n.parent.name===n){const a=oy(n),l=Fu(n.parent.expression),u=l.flags&1048576?l.types:[l];return ji(u,h=>ur(Nu(h),y=>dA(a,y.keyType)))}}function cdt(n){if(n&&n.kind===300)return Pl(n.name,2208703)}function udt(n){return yd(n)?n.parent.parent.moduleSpecifier?jf(n.parent.parent,n):Pl(n.propertyName||n.name,2998271):Pl(n,2998271)}function X2(n){if(Ki(n)&&!tc(n)||n.flags&33554432)return Le;const a=xJ(n),l=a&&ed(kr(a.class));if(Ih(n)){const u=pi(n);return l?Jf(u,l.thisType):u}if(Tg(n))return gRe(n);if(l&&!a.isImplements){const u=tu(Bo(l));return u?Jf(u,l.thisType):Le}if(RC(n)){const u=kr(n);return Vs(u)}if(ndt(n)){const u=B_(n);return u?Vs(u):Le}if(Au(n)){const u=kr(n);return u?or(u):Le}if(tve(n)){const u=B_(n);return u?or(u):Le}if($a(n))return as(n.parent,!0,0)||Le;if(Jj(n)){const u=B_(n);if(u){const h=Vs(u);return is(h)?or(u):h}}return l4(n.parent)&&n.parent.keywordToken===n.kind?Gwe(n.parent):Le}function Kj(n){if(R.assert(n.kind===207||n.kind===206),n.parent.kind===247){const h=s7(n.parent);return uT(n,h||Le)}if(n.parent.kind===223){const h=Fu(n.parent.right);return uT(n,h||Le)}if(n.parent.kind===299){const h=lo(n.parent.parent,Is),y=Kj(h)||Le,A=nC(h.properties,n.parent);return Zwe(h,y,A)}const a=lo(n.parent,Ju),l=Kj(a)||Le,u=Cv(65,l,He,n.parent)||Le;return eDe(a,l,a.elements.indexOf(n),u)}function ddt(n){const a=Kj(lo(n.parent.parent,ak));return a&&_o(a,n.escapedText)}function gRe(n){return Dk(n)&&(n=n.parent),Ad(Fu(n))}function yRe(n){const a=tf(n.parent);return Xa(n)?or(a):Vs(a)}function vRe(n){const a=n.name;switch(a.kind){case 79:return Xf(Pr(a));case 8:case 10:return Xf(a.text);case 164:const l=dy(a);return Vc(l,12288)?l:de;default:return R.fail("Unsupported property name.")}}function ile(n){n=nd(n);const a=uo(gs(n)),l=Ja(n,0).length?mc:Ja(n,1).length?bd:void 0;return l&&Ie(gs(l),u=>{a.has(u.escapedName)||a.set(u.escapedName,u)}),av(a)}function Xj(n){return Ja(n,0).length!==0||Ja(n,1).length!==0}function bRe(n){const a=fdt(n);return a?ji(a,bRe):[n]}function fdt(n){if(Dl(n)&6)return ua(zi(n).containingType.types,a=>_o(a,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:a,rightSpread:l,syntheticOrigin:u}}=n;return a?[a,l]:u?[u]:hT(_dt(n))}}function _dt(n){let a,l=n;for(;l=zi(l).target;)a=l;return a}function pdt(n){if(Ll(n))return!1;const a=Ea(n,We);if(!a)return!1;const l=a.parent;return l?!((Br(l)||$c(l))&&l.name===a)&&d7(a)===Ct:!1}function mdt(n){let a=hu(n.parent,n);if(!a||fk(a))return!0;const l=NE(a);a=Sd(a);const u=zi(a);return u.exportsSomeValue===void 0&&(u.exportsSomeValue=l?!!(a.flags&111551):ff($h(a),h)),u.exportsSomeValue;function h(y){return y=Ql(y),y&&!!(mu(y)&111551)}}function hdt(n){return UD(n.parent)&&n===n.parent.name}function gdt(n,a){var l;const u=Ea(n,We);if(u){let h=d7(u,hdt(u));if(h){if(h.flags&1048576){const A=os(h.exportSymbol);if(!a&&A.flags&944&&!(A.flags&3))return;h=A}const y=xd(h);if(y){if(y.flags&512&&((l=y.valueDeclaration)==null?void 0:l.kind)===308){const A=y.valueDeclaration,N=Zn(u);return A!==N?void 0:A}return rr(u.parent,A=>UD(A)&&kr(A)===y)}}}}function ydt(n){const a=zme(n);if(a)return a;const l=Ea(n,We);if(l){const u=Ddt(l);if(ev(u,111551)&&!Bd(u,111551))return Td(u)}}function vdt(n){return n.valueDeclaration&&ms(n.valueDeclaration)&&qA(n.valueDeclaration).parent.kind===295}function ERe(n){if(n.flags&418&&n.valueDeclaration&&!Ki(n.valueDeclaration)){const a=zi(n);if(a.isDeclarationWithCollidingName===void 0){const l=Hm(n.valueDeclaration);if(r_e(l)||vdt(n)){const u=Xr(n.valueDeclaration);if(ml(l.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(u.flags&16384){const h=u.flags&32768,y=Vv(l,!1),A=l.kind===238&&Vv(l.parent,!1);a.isDeclarationWithCollidingName=!__e(l)&&(!h||!y&&!A)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function bdt(n){if(!Ll(n)){const a=Ea(n,We);if(a){const l=d7(a);if(l&&ERe(l))return l.valueDeclaration}}}function Edt(n){const a=Ea(n,Au);if(a){const l=kr(a);if(l)return ERe(l)}return!1}function TRe(n){switch(R.assert(!ne.verbatimModuleSyntax),n.kind){case 268:return Yj(kr(n));case 270:case 271:case 273:case 278:const a=kr(n);return!!a&&Yj(a)&&!Bd(a,111551);case 275:const l=n.exportClause;return!!l&&(Bh(l)||Dt(l.elements,TRe));case 274:return n.expression&&n.expression.kind===79?Yj(kr(n)):!0}return!1}function Tdt(n){const a=Ea(n,fu);return a===void 0||a.parent.kind!==308||!uC(a)?!1:Yj(kr(a))&&a.moduleReference&&!kl(a.moduleReference)}function Yj(n){var a;if(!n)return!1;const l=jp(ic(n));return l===an?!0:!!(((a=mu(l))!=null?a:-1)&111551)&&(Kb(ne)||!Tw(l))}function Tw(n){return Dse(n)||!!n.constEnumOnlyModule}function $j(n,a){if(R.assert(!ne.verbatimModuleSyntax),zg(n)){const l=kr(n),u=l&&zi(l);if(u!=null&&u.referenced)return!0;const h=zi(l).aliasTarget;if(h&&zu(n)&1&&mu(h)&111551&&(Kb(ne)||!Tw(h)))return!0}return a?!!Pa(n,l=>$j(l,a)):!1}function SRe(n){if(b_(n.body)){if(jv(n)||ky(n))return!1;const a=kr(n),l=Z1(a);return l.length>1||l.length===1&&l[0].declaration!==n}return!1}function xRe(n){return!!z&&!B8(n)&&!_m(n)&&!!n.initializer&&!Qr(n,16476)}function Sdt(n){return z&&B8(n)&&!n.initializer&&Qr(n,16476)}function xdt(n){const a=Ea(n,Sc);if(!a)return!1;const l=kr(a);return!l||!(l.flags&16)?!1:!!ff(Tf(l),u=>u.flags&111551&&u.valueDeclaration&&Br(u.valueDeclaration))}function Adt(n){const a=Ea(n,Sc);if(!a)return it;const l=kr(a);return l&&gs(or(l))||it}function DA(n){var a;const l=n.id||0;return l<0||l>=D1.length?0:((a=D1[l])==null?void 0:a.flags)||0}function Qj(n){return rRe(n.parent),Xr(n).enumMemberValue}function ARe(n){switch(n.kind){case 302:case 208:case 209:return!0}return!1}function ale(n){if(n.kind===302)return Qj(n);const a=Xr(n).resolvedSymbol;if(a&&a.flags&8){const l=a.valueDeclaration;if(Ub(l.parent))return Qj(l)}}function ole(n){return!!(n.flags&524288)&&Ja(n,0).length>0}function Cdt(n,a){var l;const u=Ea(n,uf);if(!u||a&&(a=Ea(a),!a))return 0;let h=!1;if(Rd(u)){const K=Pl(Of(u),111551,!0,!0,a);h=!!((l=K==null?void 0:K.declarations)!=null&&l.every(Mb))}const y=Pl(u,111551,!0,!0,a),A=y&&y.flags&2097152?ic(y):y;h||(h=!!(y&&Bd(y,111551)));const N=Pl(u,788968,!0,!1,a);if(A&&A===N){const K=Lae(!1);if(K&&A===K)return 9;const Q=or(A);if(Q&&F0(Q))return h?10:1}if(!N)return h?11:0;const F=Vs(N);return is(F)?h?11:0:F.flags&3?11:Vc(F,245760)?2:Vc(F,528)?6:Vc(F,296)?3:Vc(F,2112)?4:Vc(F,402653316)?5:Go(F)?7:Vc(F,12288)?8:ole(F)?10:Yf(F)?7:11}function Ldt(n,a,l,u,h){const y=Ea(n,T_e);if(!y)return O.createToken(131);const A=kr(y);let N=A&&!(A.flags&133120)?lb(or(A)):Le;return N.flags&8192&&N.symbol===A&&(l|=1048576),h&&(N=cy(N)),$e.typeToTypeNode(N,a,l|1024,u)}function Idt(n,a,l,u){const h=Ea(n,Ya);if(!h)return O.createToken(131);const y=zp(h);return $e.typeToTypeNode(vs(y),a,l|1024,u)}function kdt(n,a,l,u){const h=Ea(n,yt);if(!h)return O.createToken(131);const y=of(gRe(h));return $e.typeToTypeNode(y,a,l|1024,u)}function wdt(n){return ze.has(cl(n))}function d7(n,a){const l=Xr(n).resolvedSymbol;if(l)return l;let u=n;if(a){const h=n.parent;Au(h)&&n===h.name&&(u=zE(h))}return ml(u,n.escapedText,3257279,void 0,void 0,!0)}function Ddt(n){const a=Xr(n).resolvedSymbol;return a&&a!==an?a:ml(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Rdt(n){if(!Ll(n)){const a=Ea(n,We);if(a){const l=d7(a);if(l)return jp(l).valueDeclaration}}}function Ndt(n){return QM(n)||$i(n)&&Eg(n)?ab(or(kr(n))):!1}function Odt(n,a,l){const u=n.flags&1056?$e.symbolToExpression(n.symbol,111551,a,void 0,l):n===Te?O.createTrue():n===at&&O.createFalse();if(u)return u;const h=n.value;return typeof h=="object"?O.createBigIntLiteral(h):typeof h=="number"?O.createNumericLiteral(h):O.createStringLiteral(h)}function Mdt(n,a){const l=or(kr(n));return Odt(l,n,a)}function CRe(n){return n?(P1(n),Zn(n).localJsxFactory||Gg):Gg}function sle(n){if(n){const a=Zn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const l=a.pragmas.get("jsxfrag"),u=ja(l)?l[0]:l;if(u)return a.localJsxFragmentFactory=mx(u.arguments.factory,P),a.localJsxFragmentFactory}}if(ne.jsxFragmentFactory)return mx(ne.jsxFragmentFactory,P)}function Pdt(){const n=e.getResolvedTypeReferenceDirectives();let a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:F},K,Q)=>{if(!(F!=null&&F.resolvedFileName))return;const ve=e.getSourceFile(F.resolvedFileName);ve&&N(ve,K,Q)})),{getReferencedExportContainer:gdt,getReferencedImportDeclaration:ydt,getReferencedDeclarationWithCollidingName:bdt,isDeclarationWithCollidingName:Edt,isValueAliasDeclaration:F=>{const K=Ea(F);return K?TRe(K):!0},hasGlobalName:wdt,isReferencedAliasDeclaration:(F,K)=>{const Q=Ea(F);return Q?$j(Q,K):!0},getNodeCheckFlags:F=>{const K=Ea(F);return K?DA(K):0},isTopLevelValueImportEqualsWithEntityName:Tdt,isDeclarationVisible:O_,isImplementationOfOverload:SRe,isRequiredInitializedParameter:xRe,isOptionalUninitializedParameterProperty:Sdt,isExpandoFunctionDeclaration:xdt,getPropertiesOfContainerFunction:Adt,createTypeOfDeclaration:Ldt,createReturnTypeOfSignatureDeclaration:Idt,createTypeOfExpression:kdt,createLiteralConstValue:Mdt,isSymbolAccessible:ov,isEntityNameVisible:iA,getConstantValue:F=>{const K=Ea(F,ARe);return K?ale(K):void 0},collectLinkedAliases:HE,getReferencedValueDeclaration:Rdt,getTypeReferenceSerializationKind:Cdt,isOptionalParameter:B8,moduleExportsSomeValue:mdt,isArgumentsLocalBinding:pdt,getExternalModuleFileFromDeclaration:F=>{const K=Ea(F,m_e);return K&&lle(K)},getTypeReferenceDirectivesForEntityName:h,getTypeReferenceDirectivesForSymbol:y,isLiteralConstDeclaration:Ndt,isLateBound:F=>{const K=Ea(F,Au),Q=K&&kr(K);return!!(Q&&Dl(Q)&4096)},getJsxFactoryEntity:CRe,getJsxFragmentFactoryEntity:sle,getAllAccessorDeclarations(F){F=Ea(F,kM);const K=F.kind===175?174:175,Q=Il(kr(F),K),ve=Q&&Q.pos<F.pos?Q:F,Pe=Q&&Q.pos<F.pos?F:Q,Me=F.kind===175?F:Q,_t=F.kind===174?F:Q;return{firstAccessor:ve,secondAccessor:Pe,setAccessor:Me,getAccessor:_t}},getSymbolOfExternalModuleSpecifier:F=>Xh(F,F,void 0),isBindingCapturedByNode:(F,K)=>{const Q=Ea(F),ve=Ea(K);return!!Q&&!!ve&&($i(ve)||ms(ve))&&_at(Q,ve)},getDeclarationStatementsForSourceFile:(F,K,Q,ve)=>{const Pe=Ea(F);R.assert(Pe&&Pe.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Me=kr(F);return Me?Me.exports?$e.symbolTableToDeclarationStatements(Me.exports,F,K,Q,ve):[]:F.locals?$e.symbolTableToDeclarationStatements(F.locals,F,K,Q,ve):[]},isImportRequiredByAugmentation:l};function l(F){const K=Zn(F);if(!K.symbol)return!1;const Q=lle(F);if(!Q||Q===K)return!1;const ve=$h(K.symbol);for(const Pe of Oo(ve.values()))if(Pe.mergeId){const Me=os(Pe);if(Me.declarations){for(const _t of Me.declarations)if(Zn(_t)===Q)return!0}}return!1}function u(F){return F.parent&&F.parent.kind===230&&F.parent.parent&&F.parent.parent.kind===294}function h(F){if(!a)return;let K;F.parent.kind===164?K=1160127:(K=790504,(F.kind===79&&tI(F)||F.kind===208&&!u(F))&&(K=1160127));const Q=Pl(F,K,!0);return Q&&Q!==an?y(Q,K):void 0}function y(F,K){if(!a||!A(F))return;let Q;for(const ve of F.declarations)if(ve.symbol&&ve.symbol.flags&K){const Pe=Zn(ve),Me=a.get(Pe.path);if(Me)(Q||(Q=[])).push(Me);else return}return Q}function A(F){if(!F.declarations)return!1;let K=F;for(;;){const Q=xd(K);if(Q)K=Q;else break}if(K.valueDeclaration&&K.valueDeclaration.kind===308&&K.flags&512)return!1;for(const Q of F.declarations){const ve=Zn(Q);if(a.has(ve.path))return!0}return!1}function N(F,K,Q){if(!a.has(F.path)){a.set(F.path,[K,Q]);for(const{fileName:ve,resolutionMode:Pe}of F.referencedFiles){const Me=aF(ve,F.fileName),_t=e.getSourceFile(Me);_t&&N(_t,K,Pe||F.impliedNodeFormat)}}}}function lle(n){const a=n.kind===264?li(n.name,Wo):fC(n),l=Xh(a,a,void 0);if(l)return Il(l,308)}function Fdt(){for(const a of e.getSourceFiles())Rye(a,ne);Dr=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!_f(a)){const l=a.locals.get("globalThis");if(l!=null&&l.declarations)for(const u of l.declarations)es.add(Nr(u,m.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Uc(ze,a.locals)}a.jsGlobalAugmentations&&Uc(ze,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(yo=ba(yo,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((u,h)=>{ze.has(h)||ze.set(h,u)})}if(n)for(const a of n)for(const l of a)im(l.parent)&&k2(l);if(ML(ze,O1,m.Declaration_name_conflicts_with_built_in_global_identifier_0),zi(Ge).type=et,zi(Ct).type=uc("IArguments",0,!0),zi(an).type=Le,zi(lt).type=Sf(16,lt),Ts=uc("Array",1,!0),Qa=uc("Object",0,!0),_l=uc("Function",0,!0),mc=he&&uc("CallableFunction",0,!0)||_l,bd=he&&uc("NewableFunction",0,!0)||_l,pl=uc("String",0,!0),Qd=uc("Number",0,!0),ql=uc("Boolean",0,!0),Uf=uc("RegExp",0,!0),Nt=Ou(Oe),Nn=Ou(gt),Nn===pa&&(Nn=Os(void 0,ee,it,it,it)),fs=wke("ReadonlyArray",1)||Ts,Qi=fs?W8(fs,[Oe]):Nt,Ce=wke("ThisType",1),n)for(const a of n)for(const l of a)im(l.parent)||k2(l);Dr.forEach(({firstFile:a,secondFile:l,conflictingSymbols:u})=>{if(u.size<8)u.forEach(({isBlockScoped:h,firstFileLocations:y,secondFileLocations:A},N)=>{const F=h?m.Cannot_redeclare_block_scoped_variable_0:m.Duplicate_identifier_0;for(const K of y)pu(K,F,N,A);for(const K of A)pu(K,F,N,y)});else{const h=Oo(u.keys()).join(", ");es.add($o(Nr(a,m.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,h),Nr(l,m.Conflicts_are_in_this_file))),es.add($o(Nr(l,m.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,h),Nr(a,m.Conflicts_are_in_this_file)))}}),Dr=void 0}function yc(n,a){if((c&a)!==a&&ne.importHelpers){const l=Zn(n);if(kS(l,ne)&&!(n.flags&16777216)){const u=Gdt(l,n);if(u!==an){const h=a&~c;for(let y=1;y<=16777216;y<<=1)if(h&y)for(const A of Bdt(y)){if(s.has(A))continue;s.add(A);const N=ef(u.exports,cl(A),111551);N?y&524288?Dt(Z1(N),F=>sf(F)>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,g1,A,4):y&1048576?Dt(Z1(N),F=>sf(F)>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,g1,A,5):y&1024&&(Dt(Z1(N),F=>sf(F)>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,g1,A,3)):Xe(n,m.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,g1,A)}}c|=a}}}function Bdt(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"];default:return R.fail("Unrecognized helper")}}function Gdt(n,a){return _||(_=Ac(n,g1,m.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||an),_}function yh(n){const a=jdt(n)||Udt(n);if(a!==void 0)return a;if(Ba(n)&&qb(n))return jc(n,m.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let l,u,h,y,A,N=0,F=!1,K=!1;for(const Q of n.modifiers)if(qu(Q)){if(uP(re,n,n.parent,n.parent.parent)){if(re&&(n.kind===174||n.kind===175)){const ve=UT(n.parent.members,n);if(i_(ve.firstAccessor)&&n===ve.secondAccessor)return jc(n,m.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===171&&!b_(n.body)?jc(n,m.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):jc(n,m.Decorators_are_not_valid_here);if(N&-132098)return bn(Q,m.Decorators_are_not_valid_here);if(K&&N&126975){R.assertIsDefined(A);const ve=Zn(Q);return _b(ve)?!1:($o(Xe(Q,m.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Nr(A,m.Decorator_used_before_export_here)),!0)}N|=131072,N&126975?N&1&&(F=!0):K=!0,A!=null||(A=Q)}else{if(Q.kind!==146){if(n.kind===168||n.kind===170)return bn(Q,m._0_modifier_cannot_appear_on_a_type_member,bo(Q.kind));if(n.kind===178&&(Q.kind!==124||!_i(n.parent)))return bn(Q,m._0_modifier_cannot_appear_on_an_index_signature,bo(Q.kind))}if(Q.kind!==101&&Q.kind!==145&&Q.kind!==85&&n.kind===165)return bn(Q,m._0_modifier_cannot_appear_on_a_type_parameter,bo(Q.kind));switch(Q.kind){case 85:if(n.kind!==263&&n.kind!==165)return bn(n,m.A_class_member_cannot_have_the_0_keyword,bo(85));const ve=n.parent;if(n.kind===165&&!(el(ve)||_i(ve)||Ph(ve)||i4(ve)||GC(ve)||g6(ve)||Mh(ve)))return bn(Q,m._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,bo(Q.kind));break;case 161:if(N&16384)return bn(Q,m._0_modifier_already_seen,"override");if(N&2)return bn(Q,m._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(N&64)return bn(Q,m._0_modifier_must_precede_1_modifier,"override","readonly");if(N&128)return bn(Q,m._0_modifier_must_precede_1_modifier,"override","accessor");if(N&512)return bn(Q,m._0_modifier_must_precede_1_modifier,"override","async");N|=16384,y=Q;break;case 123:case 122:case 121:const Pe=xf(VS(Q.kind));if(N&28)return bn(Q,m.Accessibility_modifier_already_seen);if(N&16384)return bn(Q,m._0_modifier_must_precede_1_modifier,Pe,"override");if(N&32)return bn(Q,m._0_modifier_must_precede_1_modifier,Pe,"static");if(N&128)return bn(Q,m._0_modifier_must_precede_1_modifier,Pe,"accessor");if(N&64)return bn(Q,m._0_modifier_must_precede_1_modifier,Pe,"readonly");if(N&512)return bn(Q,m._0_modifier_must_precede_1_modifier,Pe,"async");if(n.parent.kind===265||n.parent.kind===308)return bn(Q,m._0_modifier_cannot_appear_on_a_module_or_namespace_element,Pe);if(N&256)return Q.kind===121?bn(Q,m._0_modifier_cannot_be_used_with_1_modifier,Pe,"abstract"):bn(Q,m._0_modifier_must_precede_1_modifier,Pe,"abstract");if(od(n))return bn(Q,m.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);N|=VS(Q.kind);break;case 124:if(N&32)return bn(Q,m._0_modifier_already_seen,"static");if(N&64)return bn(Q,m._0_modifier_must_precede_1_modifier,"static","readonly");if(N&512)return bn(Q,m._0_modifier_must_precede_1_modifier,"static","async");if(N&128)return bn(Q,m._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===265||n.parent.kind===308)return bn(Q,m._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===166)return bn(Q,m._0_modifier_cannot_appear_on_a_parameter,"static");if(N&256)return bn(Q,m._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(N&16384)return bn(Q,m._0_modifier_must_precede_1_modifier,"static","override");N|=32,l=Q;break;case 127:if(N&128)return bn(Q,m._0_modifier_already_seen,"accessor");if(N&64)return bn(Q,m._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(N&2)return bn(Q,m._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==169)return bn(Q,m.accessor_modifier_can_only_appear_on_a_property_declaration);N|=128;break;case 146:if(N&64)return bn(Q,m._0_modifier_already_seen,"readonly");if(n.kind!==169&&n.kind!==168&&n.kind!==178&&n.kind!==166)return bn(Q,m.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(N&128)return bn(Q,m._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");N|=64;break;case 93:if(ne.verbatimModuleSyntax&&!(n.flags&16777216)&&n.kind!==262&&n.kind!==261&&n.kind!==264&&n.parent.kind===308&&(ue===1||Zn(n).impliedNodeFormat===1))return bn(Q,m.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(N&1)return bn(Q,m._0_modifier_already_seen,"export");if(N&2)return bn(Q,m._0_modifier_must_precede_1_modifier,"export","declare");if(N&256)return bn(Q,m._0_modifier_must_precede_1_modifier,"export","abstract");if(N&512)return bn(Q,m._0_modifier_must_precede_1_modifier,"export","async");if(_i(n.parent))return bn(Q,m._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===166)return bn(Q,m._0_modifier_cannot_appear_on_a_parameter,"export");N|=1;break;case 88:const Me=n.parent.kind===308?n.parent:n.parent.parent;if(Me.kind===264&&!Hu(Me))return bn(Q,m.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(N&1){if(F)return bn(A,m.Decorators_are_not_valid_here)}else return bn(Q,m._0_modifier_must_precede_1_modifier,"export","default");N|=1024;break;case 136:if(N&2)return bn(Q,m._0_modifier_already_seen,"declare");if(N&512)return bn(Q,m._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(N&16384)return bn(Q,m._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(_i(n.parent)&&!ro(n))return bn(Q,m._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===166)return bn(Q,m._0_modifier_cannot_appear_on_a_parameter,"declare");if(n.parent.flags&16777216&&n.parent.kind===265)return bn(Q,m.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(od(n))return bn(Q,m._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(N&128)return bn(Q,m._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");N|=2,u=Q;break;case 126:if(N&256)return bn(Q,m._0_modifier_already_seen,"abstract");if(n.kind!==260&&n.kind!==182){if(n.kind!==171&&n.kind!==169&&n.kind!==174&&n.kind!==175)return bn(Q,m.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===260&&Qr(n.parent,256)))return bn(Q,m.Abstract_methods_can_only_appear_within_an_abstract_class);if(N&32)return bn(Q,m._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(N&8)return bn(Q,m._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(N&512&&h)return bn(h,m._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(N&16384)return bn(Q,m._0_modifier_must_precede_1_modifier,"abstract","override");if(N&128)return bn(Q,m._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Su(n)&&n.name.kind===80)return bn(Q,m._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");N|=256;break;case 132:if(N&512)return bn(Q,m._0_modifier_already_seen,"async");if(N&2||n.parent.flags&16777216)return bn(Q,m._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===166)return bn(Q,m._0_modifier_cannot_appear_on_a_parameter,"async");if(N&256)return bn(Q,m._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");N|=512,h=Q;break;case 101:case 145:const _t=Q.kind===101?32768:65536,Ut=Q.kind===101?"in":"out";if(n.kind!==165||!(dd(n.parent)||_i(n.parent)||um(n.parent)))return bn(Q,m._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Ut);if(N&_t)return bn(Q,m._0_modifier_already_seen,Ut);if(_t&32768&&N&65536)return bn(Q,m._0_modifier_must_precede_1_modifier,"in","out");N|=_t;break}}return n.kind===173?N&32?bn(l,m._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):N&16384?bn(y,m._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):N&512?bn(h,m._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===269||n.kind===268)&&N&2?bn(u,m.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===166&&N&16476&&$a(n.name)?bn(n,m.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===166&&N&16476&&n.dotDotDotToken?bn(n,m.A_parameter_property_cannot_be_declared_using_a_rest_parameter):N&512?Hdt(n,h):!1}function Udt(n){if(!n.modifiers)return!1;const a=Vdt(n);return a&&jc(a,m.Modifiers_cannot_appear_here)}function cle(n,a){const l=$t(n.modifiers,po);return l&&l.kind!==a?l:void 0}function Vdt(n){switch(n.kind){case 174:case 175:case 173:case 169:case 168:case 171:case 170:case 178:case 264:case 269:case 268:case 275:case 274:case 215:case 216:case 166:case 165:return;case 172:case 299:case 300:case 267:case 279:return $t(n.modifiers,po);default:if(n.parent.kind===265||n.parent.kind===308)return;switch(n.kind){case 259:return cle(n,132);case 260:case 182:return cle(n,126);case 228:case 261:case 240:case 262:return $t(n.modifiers,po);case 263:return cle(n,85);default:R.assertNever(n)}}}function jdt(n){const a=Wdt(n);return a&&jc(a,m.Decorators_are_not_valid_here)}function Wdt(n){return vX(n)?$t(n.modifiers,qu):void 0}function Hdt(n,a){switch(n.kind){case 171:case 259:case 215:case 216:return!1}return bn(a,m._0_modifier_cannot_be_used_here,"async")}function Y2(n,a=m.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?pb(n[0],n.end-1,1,a):!1}function LRe(n,a){if(n&&n.length===0){const l=n.pos-1,u=Yo(a.text,n.end)+1;return pb(a,l,u-l,m.Type_parameter_list_cannot_be_empty)}return!1}function zdt(n){let a=!1;const l=n.length;for(let u=0;u<l;u++){const h=n[u];if(h.dotDotDotToken){if(u!==l-1)return bn(h.dotDotDotToken,m.A_rest_parameter_must_be_last_in_a_parameter_list);if(h.flags&16777216||Y2(n,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),h.questionToken)return bn(h.questionToken,m.A_rest_parameter_cannot_be_optional);if(h.initializer)return bn(h.name,m.A_rest_parameter_cannot_have_an_initializer)}else if(B8(h)){if(a=!0,h.questionToken&&h.initializer)return bn(h.name,m.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!h.initializer)return bn(h.name,m.A_required_parameter_cannot_follow_an_optional_parameter)}}function qdt(n){return ur(n,a=>!!a.initializer||$a(a.name)||Lh(a))}function Jdt(n){if(P>=3){const a=n.body&&fo(n.body)&&mX(n.body.statements);if(a){const l=qdt(n.parameters);if(ge(l)){Ie(l,h=>{$o(Xe(h,m.This_parameter_is_not_allowed_with_use_strict_directive),Nr(a,m.use_strict_directive_used_here))});const u=l.map((h,y)=>y===0?Nr(h,m.Non_simple_parameter_declared_here):Nr(h,m.and_here));return $o(Xe(a,m.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...u),!0}}}return!1}function Zj(n){const a=Zn(n);return yh(n)||LRe(n.typeParameters,a)||zdt(n.parameters)||Xdt(n,a)||el(n)&&Jdt(n)}function Kdt(n){const a=Zn(n);return eft(n)||LRe(n.typeParameters,a)}function Xdt(n,a){if(!Xs(n))return!1;n.typeParameters&&!(ge(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Ic(a.fileName,[".mts",".cts"])&&bn(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:l}=n,u=ll(a,l.pos).line,h=ll(a,l.end).line;return u!==h&&bn(l,m.Line_terminator_not_permitted_before_arrow)}function Ydt(n){const a=n.parameters[0];if(n.parameters.length!==1)return bn(a?a.name:n,m.An_index_signature_must_have_exactly_one_parameter);if(Y2(n.parameters,m.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return bn(a.dotDotDotToken,m.An_index_signature_cannot_have_a_rest_parameter);if(wP(a))return bn(a.name,m.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return bn(a.questionToken,m.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return bn(a.name,m.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return bn(a.name,m.An_index_signature_parameter_must_have_a_type_annotation);const l=pi(a.type);return lg(l,u=>!!(u.flags&8576))||XL(l)?bn(a.name,m.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):hh(l,EV)?n.type?!1:bn(n,m.An_index_signature_must_have_a_type_annotation):bn(a.name,m.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function $dt(n){return yh(n)||Ydt(n)}function Qdt(n,a){if(a&&a.length===0){const l=Zn(n),u=a.pos-1,h=Yo(l.text,a.end)+1;return pb(l,u,h-u,m.Type_argument_list_cannot_be_empty)}return!1}function f7(n,a){return Y2(a)||Qdt(n,a)}function Zdt(n){return n.questionDotToken||n.flags&32?bn(n.template,m.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function IRe(n){const a=n.types;if(Y2(a))return!0;if(a&&a.length===0){const l=bo(n.token);return pb(n,a.pos,0,m._0_list_cannot_be_empty,l)}return Dt(a,kRe)}function kRe(n){return Py(n)&&r4(n.expression)&&n.typeArguments?bn(n,m.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):f7(n,n.typeArguments)}function eft(n){let a=!1,l=!1;if(!yh(n)&&n.heritageClauses)for(const u of n.heritageClauses){if(u.token===94){if(a)return jc(u,m.extends_clause_already_seen);if(l)return jc(u,m.extends_clause_must_precede_implements_clause);if(u.types.length>1)return jc(u.types[1],m.Classes_can_only_extend_a_single_class);a=!0}else{if(R.assert(u.token===117),l)return jc(u,m.implements_clause_already_seen);l=!0}IRe(u)}}function tft(n){let a=!1;if(n.heritageClauses)for(const l of n.heritageClauses){if(l.token===94){if(a)return jc(l,m.extends_clause_already_seen);a=!0}else return R.assert(l.token===117),jc(l,m.Interface_declaration_cannot_have_implements_clause);IRe(l)}return!1}function eW(n){if(n.kind!==164)return!1;const a=n;return a.expression.kind===223&&a.expression.operatorToken.kind===27?bn(a.expression,m.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function ule(n){if(n.asteriskToken){if(R.assert(n.kind===259||n.kind===215||n.kind===171),n.flags&16777216)return bn(n.asteriskToken,m.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return bn(n.asteriskToken,m.An_overload_signature_cannot_be_declared_as_a_generator)}}function dle(n,a){return!!n&&bn(n,a)}function wRe(n,a){return!!n&&bn(n,a)}function nft(n,a){const l=new Map;for(const u of n.properties){if(u.kind===301){if(a){const A=Hs(u.expression);if(Ju(A)||Is(A))return bn(u.expression,m.A_rest_element_cannot_contain_a_binding_pattern)}continue}const h=u.name;if(h.kind===164&&eW(h),u.kind===300&&!a&&u.objectAssignmentInitializer&&bn(u.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),h.kind===80&&bn(h,m.Private_identifiers_are_not_allowed_outside_class_bodies),np(u)&&u.modifiers)for(const A of u.modifiers)po(A)&&(A.kind!==132||u.kind!==171)&&bn(A,m._0_modifier_cannot_be_used_here,kc(A));else if(Rhe(u)&&u.modifiers)for(const A of u.modifiers)po(A)&&bn(A,m._0_modifier_cannot_be_used_here,kc(A));let y;switch(u.kind){case 300:case 299:wRe(u.exclamationToken,m.A_definite_assignment_assertion_is_not_permitted_in_this_context),dle(u.questionToken,m.An_object_member_cannot_be_declared_optional),h.kind===8&&ple(h),y=4;break;case 171:y=8;break;case 174:y=1;break;case 175:y=2;break;default:throw R.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!a){const A=Hb(h);if(A===void 0)continue;const N=l.get(A);if(!N)l.set(A,y);else if(y&8&&N&8)bn(h,m.Duplicate_identifier_0,kc(h));else if(y&4&&N&4)bn(h,m.An_object_literal_cannot_have_multiple_properties_with_the_same_name,kc(h));else if(y&3&&N&3)if(N!==3&&y!==N)l.set(A,y|N);else return bn(h,m.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return bn(h,m.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function rft(n){ift(n.tagName),f7(n,n.typeArguments);const a=new Map;for(const l of n.attributes.properties){if(l.kind===290)continue;const{name:u,initializer:h}=l;if(!a.get(u.escapedText))a.set(u.escapedText,!0);else return bn(u,m.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(h&&h.kind===291&&!h.expression)return bn(h,m.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function ift(n){if(Br(n)){let l=n;do{const h=a(l.name);if(h)return h;l=l.expression}while(Br(l));const u=a(l);if(u)return u}function a(l){if(We(l)&&Pr(l).indexOf(":")!==-1)return bn(l,m.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function aft(n){if(n.expression&&g4(n.expression))return bn(n.expression,m.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function DRe(n){if(cg(n))return!0;if(n.kind===247&&n.awaitModifier&&!(n.flags&32768)){const a=Zn(n);if(sP(n)){if(!_b(a))switch(kS(a,ne)||es.add(Nr(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)),ue){case 100:case 199:if(a.impliedNodeFormat===1){es.add(Nr(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(P>=4)break;default:es.add(Nr(n.awaitModifier,m.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!_b(a)){const l=Nr(n.awaitModifier,m.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),u=Nf(n);if(u&&u.kind!==173){R.assert((Jc(u)&2)===0,"Enclosing function should never be an async function.");const h=Nr(u,m.Did_you_mean_to_mark_this_function_as_async);$o(l,h)}return es.add(l),!0}return!1}if(b6(n)&&!(n.flags&32768)&&We(n.initializer)&&n.initializer.escapedText==="async")return bn(n.initializer,m.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===258){const a=n.initializer;if(!_le(a)){const l=a.declarations;if(!l.length)return!1;if(l.length>1){const h=n.kind===246?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 jc(a.declarations[1],h)}const u=l[0];if(u.initializer){const h=n.kind===246?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 bn(u.name,h)}if(u.type){const h=n.kind===246?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 bn(u,h)}}}return!1}function oft(n){if(!(n.flags&16777216)&&n.parent.kind!==184&&n.parent.kind!==261){if(P<1)return bn(n.name,m.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(P<2&&Ri(n.name))return bn(n.name,m.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Qr(n,256))return pb(n,n.end-1,1,m._0_expected,"{")}if(n.body){if(Qr(n,256))return bn(n,m.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===184||n.parent.kind===261)return bn(n.body,m.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return bn(n.name,m.An_accessor_cannot_have_type_parameters);if(!sft(n))return bn(n.name,n.kind===174?m.A_get_accessor_cannot_have_parameters:m.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===175){if(n.type)return bn(n.name,m.A_set_accessor_cannot_have_a_return_type_annotation);const a=R.checkDefined(Lk(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return bn(a.dotDotDotToken,m.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return bn(a.questionToken,m.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return bn(n.name,m.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function sft(n){return fle(n)||n.parameters.length===(n.kind===174?0:1)}function fle(n){if(n.parameters.length===(n.kind===174?1:2))return zb(n)}function lft(n){if(n.operator===156){if(n.type.kind!==153)return bn(n.type,m._0_expected,bo(153));let a=yR(n.parent);if(_r(a)&&$T(a)){const l=MS(a);l&&(a=mC(l)||l)}switch(a.kind){case 257:const l=a;if(l.name.kind!==79)return bn(n,m.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!nP(l))return bn(n,m.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(l.parent.flags&2))return bn(a.name,m.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 169:if(!Xa(a)||!Ik(a))return bn(a.name,m.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 168:if(!Qr(a,64))return bn(a.name,m.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return bn(n,m.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===146&&n.type.kind!==185&&n.type.kind!==186)return jc(n,m.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,bo(153))}function yI(n,a){if(Bet(n))return bn(n,a)}function RRe(n){if(Zj(n))return!0;if(n.kind===171){if(n.parent.kind===207){if(n.modifiers&&!(n.modifiers.length===1&&ds(n.modifiers).kind===132))return jc(n,m.Modifiers_cannot_appear_here);if(dle(n.questionToken,m.An_object_member_cannot_be_declared_optional))return!0;if(wRe(n.exclamationToken,m.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return pb(n,n.end-1,1,m._0_expected,"{")}if(ule(n))return!0}if(_i(n.parent)){if(P<2&&Ri(n.name))return bn(n.name,m.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&16777216)return yI(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===171&&!n.body)return yI(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===261)return yI(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===184)return yI(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 cft(n){let a=n;for(;a;){if(XA(a))return bn(n,m.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 253:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===248&&!Vv(a.statement,!0)?bn(n,m.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 252:if(n.kind===249&&!n.label)return!1;break;default:if(Vv(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){const l=n.kind===249?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 bn(n,l)}else{const l=n.kind===249?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 bn(n,l)}}function uft(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==Ko(a))return bn(n,m.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Y2(a,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return bn(n.name,m.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return pb(n,n.initializer.pos-1,1,m.A_rest_element_cannot_have_an_initializer)}function NRe(n){return n_(n)||n.kind===221&&n.operator===40&&n.operand.kind===8}function dft(n){return n.kind===9||n.kind===221&&n.operator===40&&n.operand.kind===9}function fft(n){if((Br(n)||dl(n)&&NRe(n.argumentExpression))&&Jl(n.expression))return!!(ec(n).flags&1056)}function ORe(n){const a=n.initializer;if(a){const l=!(NRe(a)||fft(a)||a.kind===110||a.kind===95||dft(a));if((QM(n)||$i(n)&&Eg(n))&&!n.type){if(l)return bn(a,m.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return bn(a,m.Initializers_are_not_allowed_in_ambient_contexts)}}function _ft(n){if(n.parent.parent.kind!==246&&n.parent.parent.kind!==247){if(n.flags&16777216)ORe(n);else if(!n.initializer){if($a(n.name)&&!$a(n.parent))return bn(n,m.A_destructuring_declaration_must_have_an_initializer);if(Eg(n))return bn(n,m.const_declarations_must_be_initialized)}}if(n.exclamationToken&&(n.parent.parent.kind!==240||!n.type||n.initializer||n.flags&16777216)){const l=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 bn(n.exclamationToken,l)}return(ue<5||Zn(n).impliedNodeFormat===1)&&ue!==4&&!(n.parent.parent.flags&16777216)&&Qr(n.parent.parent,1)&&MRe(n.name),(_k(n)||Eg(n))&&PRe(n.name)}function MRe(n){if(n.kind===79){if(Pr(n)==="__esModule")return hft("noEmit",n,m.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=n.elements;for(const l of a)if(!Fc(l))return MRe(l.name)}return!1}function PRe(n){if(n.kind===79){if(n.escapedText==="let")return bn(n,m.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=n.elements;for(const l of a)Fc(l)||PRe(l.name)}return!1}function _le(n){const a=n.declarations;return Y2(n.declarations)?!0:n.declarations.length?!1:pb(n,a.pos,a.end-a.pos,m.Variable_declaration_list_cannot_be_empty)}function FRe(n){switch(n.kind){case 242:case 243:case 244:case 251:case 245:case 246:case 247:return!1;case 253:return FRe(n.parent)}return!0}function pft(n){if(!FRe(n.parent)){if(_k(n.declarationList))return bn(n,m.let_declarations_can_only_be_declared_inside_a_block);if(Eg(n.declarationList))return bn(n,m.const_declarations_can_only_be_declared_inside_a_block)}}function mft(n){const a=n.name.escapedText;switch(n.keywordToken){case 103:if(a!=="target")return bn(n.name,m._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,bo(n.keywordToken),"target");break;case 100:if(a!=="meta")return bn(n.name,m._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,bo(n.keywordToken),"meta");break}}function _b(n){return n.parseDiagnostics.length>0}function jc(n,a,l,u,h){const y=Zn(n);if(!_b(y)){const A=wy(y,n.pos);return es.add(Pc(y,A.start,A.length,a,l,u,h)),!0}return!1}function pb(n,a,l,u,h,y,A){const N=Zn(n);return _b(N)?!1:(es.add(Pc(N,a,l,u,h,y,A)),!0)}function hft(n,a,l,u,h,y){const A=Zn(a);return _b(A)?!1:(y0(n,a,l,u,h,y),!0)}function bn(n,a,l,u,h){const y=Zn(n);return _b(y)?!1:(es.add(Nr(n,a,l,u,h)),!0)}function gft(n){const a=_r(n)?kP(n):void 0,l=n.typeParameters||a&&tu(a);if(l){const u=l.pos===l.end?l.pos:Yo(Zn(n).text,l.pos);return pb(n,u,l.end-u,m.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function yft(n){const a=n.type||Lp(n);if(a)return bn(a,m.Type_annotation_cannot_appear_on_a_constructor_declaration)}function vft(n){if(Cs(n.name)&&Tr(n.name.expression)&&n.name.expression.operatorToken.kind===101)return bn(n.parent.members[0],m.A_mapped_type_may_not_declare_properties_or_methods);if(_i(n.parent)){if(Wo(n.name)&&n.name.text==="constructor")return bn(n.name,m.Classes_may_not_have_a_field_named_constructor);if(yI(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(P<2&&Ri(n.name))return bn(n.name,m.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(P<2&&df(n))return bn(n.name,m.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(df(n)&&dle(n.questionToken,m.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===261){if(yI(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(R.assertNode(n,Mf),n.initializer)return bn(n.initializer,m.An_interface_property_cannot_have_an_initializer)}else if(hf(n.parent)){if(yI(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(R.assertNode(n,Mf),n.initializer)return bn(n.initializer,m.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&16777216&&ORe(n),ro(n)&&n.exclamationToken&&(!_i(n.parent)||!n.type||n.initializer||n.flags&16777216||Xa(n)||Jb(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 bn(n.exclamationToken,a)}}function bft(n){return n.kind===261||n.kind===262||n.kind===269||n.kind===268||n.kind===275||n.kind===274||n.kind===267||Qr(n,1027)?!1:jc(n,m.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Eft(n){for(const a of n.statements)if((Au(a)||a.kind===240)&&bft(a))return!0;return!1}function Tft(n){return!!(n.flags&16777216)&&Eft(n)}function cg(n){if(n.flags&16777216){if(!Xr(n).hasReportedStatementInAmbientContext&&(Ya(n.parent)||s1(n.parent)))return Xr(n).hasReportedStatementInAmbientContext=jc(n,m.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===238||n.parent.kind===265||n.parent.kind===308){const l=Xr(n.parent);if(!l.hasReportedStatementInAmbientContext)return l.hasReportedStatementInAmbientContext=jc(n,m.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function ple(n){if(n.numericLiteralFlags&32){let a;if(P>=1?a=m.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:Pq(n,198)?a=m.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:Pq(n,302)&&(a=m.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),a){const l=Qv(n.parent)&&n.parent.operator===40,u=(l?"-":"")+"0o"+n.text;return bn(l?n.parent:n,a,u)}}return Sft(n),!1}function Sft(n){const a=kc(n).indexOf(".")!==-1,l=n.numericLiteralFlags&16;a||l||+n.text<=vle(2,53)-1||Xy(!1,Nr(n,m.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function xft(n){return!!(!(v1(n.parent)||Qv(n.parent)&&v1(n.parent.parent))&&P<7&&bn(n,m.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Aft(n,a,l,u,h){const y=Zn(n);if(!_b(y)){const A=wy(y,n.pos);return es.add(Pc(y,cu(A),0,a,l,u,h)),!0}return!1}function Cft(){return cs||(cs=[],ze.forEach((n,a)=>{B9.test(a)&&cs.push(n)})),cs}function Lft(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?bn(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)===272?BRe(n.namedBindings):!1}function BRe(n){return!!Ie(n.elements,a=>{if(a.isTypeOnly)return jc(a,a.kind===273?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 Ift(n){if(ne.verbatimModuleSyntax&&ue===1)return bn(n,m.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(ue===5)return bn(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 bn(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(ue!==99&&ue!==199&&ue!==100&&(Y2(a),a.length>1)){const u=a[1];return bn(u,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 bn(n,m.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);const l=$t(a,Fh);return l?bn(l,m.Argument_of_dynamic_import_cannot_be_spread_element):!1}function kft(n,a){const l=ni(n);if(l&20&&a.flags&1048576)return $t(a.types,u=>{if(u.flags&524288){const h=l&ni(u);if(h&4)return n.target===u.target;if(h&16)return!!n.aliasSymbol&&n.aliasSymbol===u.aliasSymbol}return!1})}function wft(n,a){if(ni(n)&128&&lg(a,H0))return $t(a.types,l=>!H0(l))}function Dft(n,a){let l=0;if(Ja(n,l).length>0||(l=1,Ja(n,l).length>0))return $t(a.types,h=>Ja(h,l).length>0)}function Rft(n,a){let l;if(!(n.flags&406978556)){let u=0;for(const h of a.types)if(!(h.flags&406978556)){const y=Ro([Lm(n),Lm(h)]);if(y.flags&4194304)return h;if(vp(y)||y.flags&1048576){const A=y.flags&1048576?Hc(y.types,vp):1;A>=u&&(l=h,u=A)}}}return l}function Nft(n){if(hl(n,67108864)){const a=gc(n,l=>!(l.flags&134348796));if(!(a.flags&131072))return a}return n}function GRe(n,a,l,u){if(a.flags&1048576&&n.flags&2621440){const h=r8e(a,n);if(h)return h;const y=gs(n);if(y){const A=n8e(y,a);if(A)return ioe(a,Pt(A,N=>[()=>or(N),N.escapedName]),l,void 0,u)}}}}function M9e(e){return!s1(e)}function eve(e){return e.kind!==259&&e.kind!==171||!!e.body}function tve(e){switch(e.parent.kind){case 273:case 278:return We(e);default:return xg(e)}}function nve(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Lu(e){return!!(e.flags&1)}function LY(e){return!!(e.flags&2)}function P9e(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Vo(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:Vo(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 B9,cN,IY,kY,wY,DY,G9,U9,V9,j9,rve,uN,RY,Pf,dN,F9e=b({"src/compiler/checker.ts"(){"use strict";Oa(),AY(),kb(),B9=/^".+"$/,cN="(anonymous)",IY=1,kY=1,wY=1,DY=1,G9=(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))(G9||{}),U9=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),V9=(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.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement",e))(V9||{}),j9=(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))(j9||{}),rve=z7(eve,M9e),uN=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),RY=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(Pf||(Pf={})),dN=class{constructor(e,t,r){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var i;t instanceof dN;)t=t.inner;this.inner=t,this.moduleResolverHost=r,this.context=e,this.canTrackSymbol=!!((i=this.inner)!=null&&i.trackSymbol)}trackSymbol(e,t,r){var i;return(i=this.inner)!=null&&i.trackSymbol&&!this.disableTrackSymbol&&this.inner.trackSymbol(e,t,r)?(this.onDiagnosticReported(),!0):!1}reportInaccessibleThisError(){var e;(e=this.inner)!=null&&e.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(t=this.inner)!=null&&t.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(e=this.inner)!=null&&e.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(e=this.inner)!=null&&e.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(t=this.inner)!=null&&t.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(e=this.inner)!=null&&e.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(e,t){var r;(r=this.inner)!=null&&r.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(e,t))}trackExternalModuleSymbolOfImportTypeNode(e){var t;(t=this.inner)!=null&&t.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(e))}reportNonlocalAugmentation(e,t,r){var i;(i=this.inner)!=null&&i.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,r))}reportNonSerializableProperty(e){var t;(t=this.inner)!=null&&t.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}reportImportTypeNodeResolutionModeOverride(){var e;(e=this.inner)!=null&&e.reportImportTypeNodeResolutionModeOverride&&(this.onDiagnosticReported(),this.inner.reportImportTypeNodeResolutionModeOverride())}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function ct(e,t,r,i){if(e===void 0)return e;const o=t(e);let s;if(o!==void 0)return ja(o)?s=(i||j9e)(o):s=o,R.assertNode(s,r),s}function Jn(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 c,_=-1,d=-1;i>0||o<s?c=e.hasTrailingComma&&i+o===s:(_=e.pos,d=e.end,c=e.hasTrailingComma);const v=ive(e,t,r,i,o);if(v!==e){const g=O.createNodeArray(v,c);return Xm(g,_,d),g}return e}function NY(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),ive(e,t,r,i,o)}function ive(e,t,r,i,o){let s;const c=e.length;(i>0||o<c)&&(s=[]);for(let _=0;_<o;_++){const d=e[_+i],v=d!==void 0?t?t(d):d:void 0;if((s!==void 0||v===void 0||v!==d)&&(s===void 0&&(s=e.slice(0,_),R.assertEachNode(s,r)),v))if(ja(v))for(const g of v)R.assertNode(g,r),s.push(g);else R.assertNode(v,r),s.push(v)}return s||(R.assertEachNode(e,r),e)}function W9(e,t,r,i,o,s=Jn){return r.startLexicalEnvironment(),e=s(e,t,wa,i),o&&(e=r.factory.ensureUseStrict(e)),O.mergeLexicalEnvironment(e,r.endLexicalEnvironment())}function Yl(e,t,r,i=Jn){let o;return r.startLexicalEnvironment(),e&&(r.setLexicalEnvironmentFlags(1,!0),o=i(e,t,Ba),r.getLexicalEnvironmentFlags()&2&&ns(r.getCompilerOptions())>=2&&(o=B9e(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function B9e(e,t){let r;for(let i=0;i<e.length;i++){const o=e[i],s=G9e(o,t);(r||s!==o)&&(r||(r=e.slice(0,i)),r[i]=s)}return r?ht(t.factory.createNodeArray(r,e.hasTrailingComma),e):e}function G9e(e,t){return e.dotDotDotToken?e:$a(e.name)?U9e(e,t):e.initializer?V9e(e,e.name,e.initializer,t):e}function U9e(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 V9e(e,t,r,i){const o=i.factory;return i.addInitializationStatement(o.createIfStatement(o.createTypeCheck(o.cloneNode(t),"undefined"),sr(ht(o.createBlock([o.createExpressionStatement(sr(ht(o.createAssignment(sr(o.cloneNode(t),96),sr(r,96|Eo(r)|3072)),e),3072))]),e),3905))),o.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function Ff(e,t,r,i=ct){r.resumeLexicalEnvironment();const o=i(e,t,BM),s=r.endLexicalEnvironment();if(Dt(s)){if(!o)return r.factory.createBlock(s);const c=r.factory.converters.convertToFunctionBlock(o),_=O.mergeLexicalEnvironment(c.statements,s);return r.factory.updateBlock(c,_)}return o}function L_(e,t,r,i=ct){r.startBlockScope();const o=i(e,t,wa,r.factory.liftToBlock);R.assert(o);const s=r.endBlockScope();return Dt(s)?fo(o)?(s.push(...o.statements),r.factory.updateBlock(o,s)):(s.push(o),r.factory.createBlock(s)):o}function fN(e,t,r=t){if(r===t||e.length<=1)return Jn(e,t,yt);let i=0;const o=e.length;return Jn(e,s=>{const c=i<o-1;return i++,c?r(s):t(s)},yt)}function Fn(e,t,r,i=Jn,o,s=ct){if(e===void 0)return;const c=ave[e.kind];return c===void 0?e:c(e,t,r,i,s,o)}function j9e(e){return R.assert(e.length<=1,"Too many nodes written to output."),Nm(e)}var ave,W9e=b({"src/compiler/visitorPublic.ts"(){"use strict";Oa(),ave={163:function(t,r,i,o,s,c){return i.factory.updateQualifiedName(t,R.checkDefined(s(t.left,r,uf)),R.checkDefined(s(t.right,r,We)))},164:function(t,r,i,o,s,c){return i.factory.updateComputedPropertyName(t,R.checkDefined(s(t.expression,r,yt)))},165:function(t,r,i,o,s,c){return i.factory.updateTypeParameterDeclaration(t,o(t.modifiers,r,po),R.checkDefined(s(t.name,r,We)),s(t.constraint,r,Bi),s(t.default,r,Bi))},166:function(t,r,i,o,s,c){return i.factory.updateParameterDeclaration(t,o(t.modifiers,r,il),c?s(t.dotDotDotToken,c,O5):t.dotDotDotToken,R.checkDefined(s(t.name,r,Ch)),c?s(t.questionToken,c,$v):t.questionToken,s(t.type,r,Bi),s(t.initializer,r,yt))},167:function(t,r,i,o,s,c){return i.factory.updateDecorator(t,R.checkDefined(s(t.expression,r,yt)))},168:function(t,r,i,o,s,c){return i.factory.updatePropertySignature(t,o(t.modifiers,r,po),R.checkDefined(s(t.name,r,bl)),c?s(t.questionToken,c,$v):t.questionToken,s(t.type,r,Bi))},169:function(t,r,i,o,s,c){var _,d;return i.factory.updatePropertyDeclaration(t,o(t.modifiers,r,il),R.checkDefined(s(t.name,r,bl)),c?s((_=t.questionToken)!=null?_:t.exclamationToken,c,Nhe):(d=t.questionToken)!=null?d:t.exclamationToken,s(t.type,r,Bi),s(t.initializer,r,yt))},170:function(t,r,i,o,s,c){return i.factory.updateMethodSignature(t,o(t.modifiers,r,po),R.checkDefined(s(t.name,r,bl)),c?s(t.questionToken,c,$v):t.questionToken,o(t.typeParameters,r,Ul),o(t.parameters,r,Ba),s(t.type,r,Bi))},171:function(t,r,i,o,s,c){return i.factory.updateMethodDeclaration(t,o(t.modifiers,r,il),c?s(t.asteriskToken,c,m6):t.asteriskToken,R.checkDefined(s(t.name,r,bl)),c?s(t.questionToken,c,$v):t.questionToken,o(t.typeParameters,r,Ul),Yl(t.parameters,r,i,o),s(t.type,r,Bi),Ff(t.body,r,i,s))},173:function(t,r,i,o,s,c){return i.factory.updateConstructorDeclaration(t,o(t.modifiers,r,il),Yl(t.parameters,r,i,o),Ff(t.body,r,i,s))},174:function(t,r,i,o,s,c){return i.factory.updateGetAccessorDeclaration(t,o(t.modifiers,r,il),R.checkDefined(s(t.name,r,bl)),Yl(t.parameters,r,i,o),s(t.type,r,Bi),Ff(t.body,r,i,s))},175:function(t,r,i,o,s,c){return i.factory.updateSetAccessorDeclaration(t,o(t.modifiers,r,il),R.checkDefined(s(t.name,r,bl)),Yl(t.parameters,r,i,o),Ff(t.body,r,i,s))},172:function(t,r,i,o,s,c){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,Ff(t.body,r,i,s))},176:function(t,r,i,o,s,c){return i.factory.updateCallSignature(t,o(t.typeParameters,r,Ul),o(t.parameters,r,Ba),s(t.type,r,Bi))},177:function(t,r,i,o,s,c){return i.factory.updateConstructSignature(t,o(t.typeParameters,r,Ul),o(t.parameters,r,Ba),s(t.type,r,Bi))},178:function(t,r,i,o,s,c){return i.factory.updateIndexSignature(t,o(t.modifiers,r,il),o(t.parameters,r,Ba),R.checkDefined(s(t.type,r,Bi)))},179:function(t,r,i,o,s,c){return i.factory.updateTypePredicateNode(t,s(t.assertsModifier,r,ehe),R.checkDefined(s(t.parameterName,r,Ohe)),s(t.type,r,Bi))},180:function(t,r,i,o,s,c){return i.factory.updateTypeReferenceNode(t,R.checkDefined(s(t.typeName,r,uf)),o(t.typeArguments,r,Bi))},181:function(t,r,i,o,s,c){return i.factory.updateFunctionTypeNode(t,o(t.typeParameters,r,Ul),o(t.parameters,r,Ba),R.checkDefined(s(t.type,r,Bi)))},182:function(t,r,i,o,s,c){return i.factory.updateConstructorTypeNode(t,o(t.modifiers,r,po),o(t.typeParameters,r,Ul),o(t.parameters,r,Ba),R.checkDefined(s(t.type,r,Bi)))},183:function(t,r,i,o,s,c){return i.factory.updateTypeQueryNode(t,R.checkDefined(s(t.exprName,r,uf)),o(t.typeArguments,r,Bi))},184:function(t,r,i,o,s,c){return i.factory.updateTypeLiteralNode(t,o(t.members,r,xT))},185:function(t,r,i,o,s,c){return i.factory.updateArrayTypeNode(t,R.checkDefined(s(t.elementType,r,Bi)))},186:function(t,r,i,o,s,c){return i.factory.updateTupleTypeNode(t,o(t.elements,r,Bi))},187:function(t,r,i,o,s,c){return i.factory.updateOptionalTypeNode(t,R.checkDefined(s(t.type,r,Bi)))},188:function(t,r,i,o,s,c){return i.factory.updateRestTypeNode(t,R.checkDefined(s(t.type,r,Bi)))},189:function(t,r,i,o,s,c){return i.factory.updateUnionTypeNode(t,o(t.types,r,Bi))},190:function(t,r,i,o,s,c){return i.factory.updateIntersectionTypeNode(t,o(t.types,r,Bi))},191:function(t,r,i,o,s,c){return i.factory.updateConditionalTypeNode(t,R.checkDefined(s(t.checkType,r,Bi)),R.checkDefined(s(t.extendsType,r,Bi)),R.checkDefined(s(t.trueType,r,Bi)),R.checkDefined(s(t.falseType,r,Bi)))},192:function(t,r,i,o,s,c){return i.factory.updateInferTypeNode(t,R.checkDefined(s(t.typeParameter,r,Ul)))},202:function(t,r,i,o,s,c){return i.factory.updateImportTypeNode(t,R.checkDefined(s(t.argument,r,Bi)),s(t.assertions,r,dhe),s(t.qualifier,r,uf),o(t.typeArguments,r,Bi),t.isTypeOf)},298:function(t,r,i,o,s,c){return i.factory.updateImportTypeAssertionContainer(t,R.checkDefined(s(t.assertClause,r,j5)),t.multiLine)},199:function(t,r,i,o,s,c){return i.factory.updateNamedTupleMember(t,c?s(t.dotDotDotToken,c,O5):t.dotDotDotToken,R.checkDefined(s(t.name,r,We)),c?s(t.questionToken,c,$v):t.questionToken,R.checkDefined(s(t.type,r,Bi)))},193:function(t,r,i,o,s,c){return i.factory.updateParenthesizedType(t,R.checkDefined(s(t.type,r,Bi)))},195:function(t,r,i,o,s,c){return i.factory.updateTypeOperatorNode(t,R.checkDefined(s(t.type,r,Bi)))},196:function(t,r,i,o,s,c){return i.factory.updateIndexedAccessTypeNode(t,R.checkDefined(s(t.objectType,r,Bi)),R.checkDefined(s(t.indexType,r,Bi)))},197:function(t,r,i,o,s,c){return i.factory.updateMappedTypeNode(t,c?s(t.readonlyToken,c,Mhe):t.readonlyToken,R.checkDefined(s(t.typeParameter,r,Ul)),s(t.nameType,r,Bi),c?s(t.questionToken,c,Phe):t.questionToken,s(t.type,r,Bi),o(t.members,r,xT))},198:function(t,r,i,o,s,c){return i.factory.updateLiteralTypeNode(t,R.checkDefined(s(t.literal,r,Ufe)))},200:function(t,r,i,o,s,c){return i.factory.updateTemplateLiteralType(t,R.checkDefined(s(t.head,r,BC)),o(t.templateSpans,r,ohe))},201:function(t,r,i,o,s,c){return i.factory.updateTemplateLiteralTypeSpan(t,R.checkDefined(s(t.type,r,Bi)),R.checkDefined(s(t.literal,r,OM)))},203:function(t,r,i,o,s,c){return i.factory.updateObjectBindingPattern(t,o(t.elements,r,ms))},204:function(t,r,i,o,s,c){return i.factory.updateArrayBindingPattern(t,o(t.elements,r,PM))},205:function(t,r,i,o,s,c){return i.factory.updateBindingElement(t,c?s(t.dotDotDotToken,c,O5):t.dotDotDotToken,s(t.propertyName,r,bl),R.checkDefined(s(t.name,r,Ch)),s(t.initializer,r,yt))},206:function(t,r,i,o,s,c){return i.factory.updateArrayLiteralExpression(t,o(t.elements,r,yt))},207:function(t,r,i,o,s,c){return i.factory.updateObjectLiteralExpression(t,o(t.properties,r,Iy))},208:function(t,r,i,o,s,c){return wM(t)?i.factory.updatePropertyAccessChain(t,R.checkDefined(s(t.expression,r,yt)),c?s(t.questionDotToken,c,M5):t.questionDotToken,R.checkDefined(s(t.name,r,gg))):i.factory.updatePropertyAccessExpression(t,R.checkDefined(s(t.expression,r,yt)),R.checkDefined(s(t.name,r,gg)))},209:function(t,r,i,o,s,c){return Hz(t)?i.factory.updateElementAccessChain(t,R.checkDefined(s(t.expression,r,yt)),c?s(t.questionDotToken,c,M5):t.questionDotToken,R.checkDefined(s(t.argumentExpression,r,yt))):i.factory.updateElementAccessExpression(t,R.checkDefined(s(t.expression,r,yt)),R.checkDefined(s(t.argumentExpression,r,yt)))},210:function(t,r,i,o,s,c){return TT(t)?i.factory.updateCallChain(t,R.checkDefined(s(t.expression,r,yt)),c?s(t.questionDotToken,c,M5):t.questionDotToken,o(t.typeArguments,r,Bi),o(t.arguments,r,yt)):i.factory.updateCallExpression(t,R.checkDefined(s(t.expression,r,yt)),o(t.typeArguments,r,Bi),o(t.arguments,r,yt))},211:function(t,r,i,o,s,c){return i.factory.updateNewExpression(t,R.checkDefined(s(t.expression,r,yt)),o(t.typeArguments,r,Bi),o(t.arguments,r,yt))},212:function(t,r,i,o,s,c){return i.factory.updateTaggedTemplateExpression(t,R.checkDefined(s(t.tag,r,yt)),o(t.typeArguments,r,Bi),R.checkDefined(s(t.template,r,$A)))},213:function(t,r,i,o,s,c){return i.factory.updateTypeAssertion(t,R.checkDefined(s(t.type,r,Bi)),R.checkDefined(s(t.expression,r,yt)))},214:function(t,r,i,o,s,c){return i.factory.updateParenthesizedExpression(t,R.checkDefined(s(t.expression,r,yt)))},215:function(t,r,i,o,s,c){return i.factory.updateFunctionExpression(t,o(t.modifiers,r,po),c?s(t.asteriskToken,c,m6):t.asteriskToken,s(t.name,r,We),o(t.typeParameters,r,Ul),Yl(t.parameters,r,i,o),s(t.type,r,Bi),Ff(t.body,r,i,s))},216:function(t,r,i,o,s,c){return i.factory.updateArrowFunction(t,o(t.modifiers,r,po),o(t.typeParameters,r,Ul),Yl(t.parameters,r,i,o),s(t.type,r,Bi),c?R.checkDefined(s(t.equalsGreaterThanToken,c,Qme)):t.equalsGreaterThanToken,Ff(t.body,r,i,s))},217:function(t,r,i,o,s,c){return i.factory.updateDeleteExpression(t,R.checkDefined(s(t.expression,r,yt)))},218:function(t,r,i,o,s,c){return i.factory.updateTypeOfExpression(t,R.checkDefined(s(t.expression,r,yt)))},219:function(t,r,i,o,s,c){return i.factory.updateVoidExpression(t,R.checkDefined(s(t.expression,r,yt)))},220:function(t,r,i,o,s,c){return i.factory.updateAwaitExpression(t,R.checkDefined(s(t.expression,r,yt)))},221:function(t,r,i,o,s,c){return i.factory.updatePrefixUnaryExpression(t,R.checkDefined(s(t.operand,r,yt)))},222:function(t,r,i,o,s,c){return i.factory.updatePostfixUnaryExpression(t,R.checkDefined(s(t.operand,r,yt)))},223:function(t,r,i,o,s,c){return i.factory.updateBinaryExpression(t,R.checkDefined(s(t.left,r,yt)),c?R.checkDefined(s(t.operatorToken,c,Bhe)):t.operatorToken,R.checkDefined(s(t.right,r,yt)))},224:function(t,r,i,o,s,c){return i.factory.updateConditionalExpression(t,R.checkDefined(s(t.condition,r,yt)),c?R.checkDefined(s(t.questionToken,c,$v)):t.questionToken,R.checkDefined(s(t.whenTrue,r,yt)),c?R.checkDefined(s(t.colonToken,c,$me)):t.colonToken,R.checkDefined(s(t.whenFalse,r,yt)))},225:function(t,r,i,o,s,c){return i.factory.updateTemplateExpression(t,R.checkDefined(s(t.head,r,BC)),o(t.templateSpans,r,u4))},226:function(t,r,i,o,s,c){return i.factory.updateYieldExpression(t,c?s(t.asteriskToken,c,m6):t.asteriskToken,s(t.expression,r,yt))},227:function(t,r,i,o,s,c){return i.factory.updateSpreadElement(t,R.checkDefined(s(t.expression,r,yt)))},228:function(t,r,i,o,s,c){return i.factory.updateClassExpression(t,o(t.modifiers,r,il),s(t.name,r,We),o(t.typeParameters,r,Ul),o(t.heritageClauses,r,Jd),o(t.members,r,qc))},230:function(t,r,i,o,s,c){return i.factory.updateExpressionWithTypeArguments(t,R.checkDefined(s(t.expression,r,yt)),o(t.typeArguments,r,Bi))},231:function(t,r,i,o,s,c){return i.factory.updateAsExpression(t,R.checkDefined(s(t.expression,r,yt)),R.checkDefined(s(t.type,r,Bi)))},235:function(t,r,i,o,s,c){return i.factory.updateSatisfiesExpression(t,R.checkDefined(s(t.expression,r,yt)),R.checkDefined(s(t.type,r,Bi)))},232:function(t,r,i,o,s,c){return xu(t)?i.factory.updateNonNullChain(t,R.checkDefined(s(t.expression,r,yt))):i.factory.updateNonNullExpression(t,R.checkDefined(s(t.expression,r,yt)))},233:function(t,r,i,o,s,c){return i.factory.updateMetaProperty(t,R.checkDefined(s(t.name,r,We)))},236:function(t,r,i,o,s,c){return i.factory.updateTemplateSpan(t,R.checkDefined(s(t.expression,r,yt)),R.checkDefined(s(t.literal,r,OM)))},238:function(t,r,i,o,s,c){return i.factory.updateBlock(t,o(t.statements,r,wa))},240:function(t,r,i,o,s,c){return i.factory.updateVariableStatement(t,o(t.modifiers,r,il),R.checkDefined(s(t.declarationList,r,Xu)))},241:function(t,r,i,o,s,c){return i.factory.updateExpressionStatement(t,R.checkDefined(s(t.expression,r,yt)))},242:function(t,r,i,o,s,c){return i.factory.updateIfStatement(t,R.checkDefined(s(t.expression,r,yt)),R.checkDefined(s(t.thenStatement,r,wa,i.factory.liftToBlock)),s(t.elseStatement,r,wa,i.factory.liftToBlock))},243:function(t,r,i,o,s,c){return i.factory.updateDoStatement(t,L_(t.statement,r,i,s),R.checkDefined(s(t.expression,r,yt)))},244:function(t,r,i,o,s,c){return i.factory.updateWhileStatement(t,R.checkDefined(s(t.expression,r,yt)),L_(t.statement,r,i,s))},245:function(t,r,i,o,s,c){return i.factory.updateForStatement(t,s(t.initializer,r,rm),s(t.condition,r,yt),s(t.incrementor,r,yt),L_(t.statement,r,i,s))},246:function(t,r,i,o,s,c){return i.factory.updateForInStatement(t,R.checkDefined(s(t.initializer,r,rm)),R.checkDefined(s(t.expression,r,yt)),L_(t.statement,r,i,s))},247:function(t,r,i,o,s,c){return i.factory.updateForOfStatement(t,c?s(t.awaitModifier,c,HK):t.awaitModifier,R.checkDefined(s(t.initializer,r,rm)),R.checkDefined(s(t.expression,r,yt)),L_(t.statement,r,i,s))},248:function(t,r,i,o,s,c){return i.factory.updateContinueStatement(t,s(t.label,r,We))},249:function(t,r,i,o,s,c){return i.factory.updateBreakStatement(t,s(t.label,r,We))},250:function(t,r,i,o,s,c){return i.factory.updateReturnStatement(t,s(t.expression,r,yt))},251:function(t,r,i,o,s,c){return i.factory.updateWithStatement(t,R.checkDefined(s(t.expression,r,yt)),R.checkDefined(s(t.statement,r,wa,i.factory.liftToBlock)))},252:function(t,r,i,o,s,c){return i.factory.updateSwitchStatement(t,R.checkDefined(s(t.expression,r,yt)),R.checkDefined(s(t.caseBlock,r,S6)))},253:function(t,r,i,o,s,c){return i.factory.updateLabeledStatement(t,R.checkDefined(s(t.label,r,We)),R.checkDefined(s(t.statement,r,wa,i.factory.liftToBlock)))},254:function(t,r,i,o,s,c){return i.factory.updateThrowStatement(t,R.checkDefined(s(t.expression,r,yt)))},255:function(t,r,i,o,s,c){return i.factory.updateTryStatement(t,R.checkDefined(s(t.tryBlock,r,fo)),s(t.catchClause,r,JC),s(t.finallyBlock,r,fo))},257:function(t,r,i,o,s,c){return i.factory.updateVariableDeclaration(t,R.checkDefined(s(t.name,r,Ch)),c?s(t.exclamationToken,c,h6):t.exclamationToken,s(t.type,r,Bi),s(t.initializer,r,yt))},258:function(t,r,i,o,s,c){return i.factory.updateVariableDeclarationList(t,o(t.declarations,r,$i))},259:function(t,r,i,o,s,c){return i.factory.updateFunctionDeclaration(t,o(t.modifiers,r,po),c?s(t.asteriskToken,c,m6):t.asteriskToken,s(t.name,r,We),o(t.typeParameters,r,Ul),Yl(t.parameters,r,i,o),s(t.type,r,Bi),Ff(t.body,r,i,s))},260:function(t,r,i,o,s,c){return i.factory.updateClassDeclaration(t,o(t.modifiers,r,il),s(t.name,r,We),o(t.typeParameters,r,Ul),o(t.heritageClauses,r,Jd),o(t.members,r,qc))},261:function(t,r,i,o,s,c){return i.factory.updateInterfaceDeclaration(t,o(t.modifiers,r,il),R.checkDefined(s(t.name,r,We)),o(t.typeParameters,r,Ul),o(t.heritageClauses,r,Jd),o(t.members,r,xT))},262:function(t,r,i,o,s,c){return i.factory.updateTypeAliasDeclaration(t,o(t.modifiers,r,il),R.checkDefined(s(t.name,r,We)),o(t.typeParameters,r,Ul),R.checkDefined(s(t.type,r,Bi)))},263:function(t,r,i,o,s,c){return i.factory.updateEnumDeclaration(t,o(t.modifiers,r,il),R.checkDefined(s(t.name,r,We)),o(t.members,r,nE))},264:function(t,r,i,o,s,c){return i.factory.updateModuleDeclaration(t,o(t.modifiers,r,il),R.checkDefined(s(t.name,r,Fhe)),s(t.body,r,Wfe))},265:function(t,r,i,o,s,c){return i.factory.updateModuleBlock(t,o(t.statements,r,wa))},266:function(t,r,i,o,s,c){return i.factory.updateCaseBlock(t,o(t.clauses,r,sq))},267:function(t,r,i,o,s,c){return i.factory.updateNamespaceExportDeclaration(t,R.checkDefined(s(t.name,r,We)))},268:function(t,r,i,o,s,c){return i.factory.updateImportEqualsDeclaration(t,o(t.modifiers,r,il),t.isTypeOnly,R.checkDefined(s(t.name,r,We)),R.checkDefined(s(t.moduleReference,r,qfe)))},269:function(t,r,i,o,s,c){return i.factory.updateImportDeclaration(t,o(t.modifiers,r,il),s(t.importClause,r,Qm),R.checkDefined(s(t.moduleSpecifier,r,yt)),s(t.assertClause,r,j5))},296:function(t,r,i,o,s,c){return i.factory.updateAssertClause(t,o(t.elements,r,fhe),t.multiLine)},297:function(t,r,i,o,s,c){return i.factory.updateAssertEntry(t,R.checkDefined(s(t.name,r,kfe)),R.checkDefined(s(t.value,r,yt)))},270:function(t,r,i,o,s,c){return i.factory.updateImportClause(t,t.isTypeOnly,s(t.name,r,We),s(t.namedBindings,r,iq))},271:function(t,r,i,o,s,c){return i.factory.updateNamespaceImport(t,R.checkDefined(s(t.name,r,We)))},277:function(t,r,i,o,s,c){return i.factory.updateNamespaceExport(t,R.checkDefined(s(t.name,r,We)))},272:function(t,r,i,o,s,c){return i.factory.updateNamedImports(t,o(t.elements,r,Nd))},273:function(t,r,i,o,s,c){return i.factory.updateImportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,We),R.checkDefined(s(t.name,r,We)))},274:function(t,r,i,o,s,c){return i.factory.updateExportAssignment(t,o(t.modifiers,r,il),R.checkDefined(s(t.expression,r,yt)))},275:function(t,r,i,o,s,c){return i.factory.updateExportDeclaration(t,o(t.modifiers,r,il),t.isTypeOnly,s(t.exportClause,r,qz),s(t.moduleSpecifier,r,yt),s(t.assertClause,r,j5))},276:function(t,r,i,o,s,c){return i.factory.updateNamedExports(t,o(t.elements,r,yd))},278:function(t,r,i,o,s,c){return i.factory.updateExportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,We),R.checkDefined(s(t.name,r,We)))},280:function(t,r,i,o,s,c){return i.factory.updateExternalModuleReference(t,R.checkDefined(s(t.expression,r,yt)))},281:function(t,r,i,o,s,c){return i.factory.updateJsxElement(t,R.checkDefined(s(t.openingElement,r,Gh)),o(t.children,r,jD),R.checkDefined(s(t.closingElement,r,lx)))},282:function(t,r,i,o,s,c){return i.factory.updateJsxSelfClosingElement(t,R.checkDefined(s(t.tagName,r,ok)),o(t.typeArguments,r,Bi),R.checkDefined(s(t.attributes,r,tE)))},283:function(t,r,i,o,s,c){return i.factory.updateJsxOpeningElement(t,R.checkDefined(s(t.tagName,r,ok)),o(t.typeArguments,r,Bi),R.checkDefined(s(t.attributes,r,tE)))},284:function(t,r,i,o,s,c){return i.factory.updateJsxClosingElement(t,R.checkDefined(s(t.tagName,r,ok)))},285:function(t,r,i,o,s,c){return i.factory.updateJsxFragment(t,R.checkDefined(s(t.openingFragment,r,ux)),o(t.children,r,jD),R.checkDefined(s(t.closingFragment,r,_he)))},288:function(t,r,i,o,s,c){return i.factory.updateJsxAttribute(t,R.checkDefined(s(t.name,r,We)),s(t.initializer,r,Jfe))},289:function(t,r,i,o,s,c){return i.factory.updateJsxAttributes(t,o(t.properties,r,GM))},290:function(t,r,i,o,s,c){return i.factory.updateJsxSpreadAttribute(t,R.checkDefined(s(t.expression,r,yt)))},291:function(t,r,i,o,s,c){return i.factory.updateJsxExpression(t,s(t.expression,r,yt))},292:function(t,r,i,o,s,c){return i.factory.updateCaseClause(t,R.checkDefined(s(t.expression,r,yt)),o(t.statements,r,wa))},293:function(t,r,i,o,s,c){return i.factory.updateDefaultClause(t,o(t.statements,r,wa))},294:function(t,r,i,o,s,c){return i.factory.updateHeritageClause(t,o(t.types,r,Py))},295:function(t,r,i,o,s,c){return i.factory.updateCatchClause(t,s(t.variableDeclaration,r,$i),R.checkDefined(s(t.block,r,fo)))},299:function(t,r,i,o,s,c){return i.factory.updatePropertyAssignment(t,R.checkDefined(s(t.name,r,bl)),R.checkDefined(s(t.initializer,r,yt)))},300:function(t,r,i,o,s,c){return i.factory.updateShorthandPropertyAssignment(t,R.checkDefined(s(t.name,r,We)),s(t.objectAssignmentInitializer,r,yt))},301:function(t,r,i,o,s,c){return i.factory.updateSpreadAssignment(t,R.checkDefined(s(t.expression,r,yt)))},302:function(t,r,i,o,s,c){return i.factory.updateEnumMember(t,R.checkDefined(s(t.name,r,bl)),s(t.initializer,r,yt))},308:function(t,r,i,o,s,c){return i.factory.updateSourceFile(t,W9(t.statements,r,i))},356:function(t,r,i,o,s,c){return i.factory.updatePartiallyEmittedExpression(t,R.checkDefined(s(t.expression,r,yt)))},357:function(t,r,i,o,s,c){return i.factory.updateCommaListExpression(t,o(t.elements,r,yt))}}}});function ove(e,t,r,i,o){var{enter:s,exit:c}=o.extendedDiagnostics?Q7("Source Map","beforeSourcemap","afterSourcemap"):Z7,_=[],d=[],v=new Map,g,T=[],C,L=[],I="",M=0,k=0,U=0,j=0,H=0,ee=0,X=!1,ne=0,P=0,ue=0,re=0,be=0,ae=0,z=!1,ce=!1,he=!1;return{getSources:()=>_,addSource:Ee,setSourceContent:Ae,addName:te,addMapping:Ue,appendSourceMap:Je,toJSON:Ge,toString:()=>JSON.stringify(Ge())};function Ee(Ct){s();const bt=TS(i,Ct,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let zt=v.get(bt);return zt===void 0&&(zt=d.length,d.push(bt),_.push(Ct),v.set(bt,zt)),c(),zt}function Ae(Ct,bt){if(s(),bt!==null){for(g||(g=[]);g.length<Ct;)g.push(null);g[Ct]=bt}c()}function te(Ct){s(),C||(C=new Map);let bt=C.get(Ct);return bt===void 0&&(bt=T.length,T.push(Ct),C.set(Ct,bt)),c(),bt}function Ze(Ct,bt){return!z||ne!==Ct||P!==bt}function je(Ct,bt,zt){return Ct!==void 0&&bt!==void 0&&zt!==void 0&&ue===Ct&&(re>bt||re===bt&&be>zt)}function Ue(Ct,bt,zt,nt,ot,sn){R.assert(Ct>=ne,"generatedLine cannot backtrack"),R.assert(bt>=0,"generatedCharacter cannot be negative"),R.assert(zt===void 0||zt>=0,"sourceIndex cannot be negative"),R.assert(nt===void 0||nt>=0,"sourceLine cannot be negative"),R.assert(ot===void 0||ot>=0,"sourceCharacter cannot be negative"),s(),(Ze(Ct,bt)||je(zt,nt,ot))&&($e(),ne=Ct,P=bt,ce=!1,he=!1,z=!0),zt!==void 0&&nt!==void 0&&ot!==void 0&&(ue=zt,re=nt,be=ot,ce=!0,sn!==void 0&&(ae=sn,he=!0)),c()}function Je(Ct,bt,zt,nt,ot,sn){R.assert(Ct>=ne,"generatedLine cannot backtrack"),R.assert(bt>=0,"generatedCharacter cannot be negative"),s();const pn=[];let gn;const jn=MY(zt.mappings);for(const Ln of jn){if(sn&&(Ln.generatedLine>sn.line||Ln.generatedLine===sn.line&&Ln.generatedCharacter>sn.character))break;if(ot&&(Ln.generatedLine<ot.line||ot.line===Ln.generatedLine&&Ln.generatedCharacter<ot.character))continue;let Zt,pr,Ii,ea;if(Ln.sourceIndex!==void 0){if(Zt=pn[Ln.sourceIndex],Zt===void 0){const Wt=zt.sources[Ln.sourceIndex],In=zt.sourceRoot?Fi(zt.sourceRoot,Wt):Wt,Bn=Fi(vi(nt),In);pn[Ln.sourceIndex]=Zt=Ee(Bn),zt.sourcesContent&&typeof zt.sourcesContent[Ln.sourceIndex]=="string"&&Ae(Zt,zt.sourcesContent[Ln.sourceIndex])}pr=Ln.sourceLine,Ii=Ln.sourceCharacter,zt.names&&Ln.nameIndex!==void 0&&(gn||(gn=[]),ea=gn[Ln.nameIndex],ea===void 0&&(gn[Ln.nameIndex]=ea=te(zt.names[Ln.nameIndex])))}const ta=Ln.generatedLine-(ot?ot.line:0),Or=ta+Ct,Lt=ot&&ot.line===Ln.generatedLine?Ln.generatedCharacter-ot.character:Ln.generatedCharacter,yn=ta===0?Lt+bt:Lt;Ue(Or,yn,Zt,pr,Ii,ea)}c()}function Fe(){return!X||M!==ne||k!==P||U!==ue||j!==re||H!==be||ee!==ae}function Be(Ct){L.push(Ct),L.length>=1024&&ze()}function $e(){if(!(!z||!Fe())){if(s(),M<ne){do Be(59),M++;while(M<ne);k=0}else R.assertEqual(M,ne,"generatedLine cannot backtrack"),X&&Be(44);lt(P-k),k=P,ce&&(lt(ue-U),U=ue,lt(re-j),j=re,lt(be-H),H=be,he&&(lt(ae-ee),ee=ae)),X=!0,c()}}function ze(){L.length>0&&(I+=String.fromCharCode.apply(void 0,L),L.length=0)}function Ge(){return $e(),ze(),{version:3,file:t,sourceRoot:r,sources:d,names:T,mappings:I,sourcesContent:g}}function lt(Ct){Ct<0?Ct=(-Ct<<1)+1:Ct=Ct<<1;do{let bt=Ct&31;Ct=Ct>>5,Ct>0&&(bt=bt|32),Be(q9e(bt))}while(Ct>0)}}function sve(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function lve(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=H9.exec(r);if(i)return iD(i[1]);if(!r.match(z9))break}}function H9e(e){return typeof e=="string"||e===null}function cve(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&ja(e.sources)&&Qn(e.sources,za)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||ja(e.sourcesContent)&&Qn(e.sourcesContent,H9e))&&(e.names===void 0||e.names===null||ja(e.names)&&Qn(e.names,za))}function OY(e){try{const t=JSON.parse(e);if(cve(t))return t}catch(t){}}function MY(e){let t=!1,r=0,i=0,o=0,s=0,c=0,_=0,d=0,v;return{get pos(){return r},get error(){return v},get state(){return g(!0,!0)},next(){for(;!t&&r<e.length;){const U=e.charCodeAt(r);if(U===59){i++,o=0,r++;continue}if(U===44){r++;continue}let j=!1,H=!1;if(o+=k(),I())return T();if(o<0)return L("Invalid generatedCharacter found");if(!M()){if(j=!0,s+=k(),I())return T();if(s<0)return L("Invalid sourceIndex found");if(M())return L("Unsupported Format: No entries after sourceIndex");if(c+=k(),I())return T();if(c<0)return L("Invalid sourceLine found");if(M())return L("Unsupported Format: No entries after sourceLine");if(_+=k(),I())return T();if(_<0)return L("Invalid sourceCharacter found");if(!M()){if(H=!0,d+=k(),I())return T();if(d<0)return L("Invalid nameIndex found");if(!M())return L("Unsupported Error Format: Entries after nameIndex")}}return{value:g(j,H),done:t}}return T()},[Symbol.iterator](){return this}};function g(U,j){return{generatedLine:i,generatedCharacter:o,sourceIndex:U?s:void 0,sourceLine:U?c:void 0,sourceCharacter:U?_:void 0,nameIndex:j?d:void 0}}function T(){return t=!0,{value:void 0,done:!0}}function C(U){v===void 0&&(v=U)}function L(U){return C(U),T()}function I(){return v!==void 0}function M(){return r===e.length||e.charCodeAt(r)===44||e.charCodeAt(r)===59}function k(){let U=!0,j=0,H=0;for(;U;r++){if(r>=e.length)return C("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const ee=J9e(e.charCodeAt(r));if(ee===-1)return C("Invalid character in VLQ"),-1;U=(ee&32)!==0,H=H|(ee&31)<<j,j+=5}return H&1?(H=H>>1,H=-H):H=H>>1,H}}function z9e(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 uve(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function q9e(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:R.fail(`${e}: not a base64 value`)}function J9e(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 dve(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function fve(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function K9e(e,t){return R.assert(e.sourceIndex===t.sourceIndex),qs(e.sourcePosition,t.sourcePosition)}function X9e(e,t){return qs(e.generatedPosition,t.generatedPosition)}function Y9e(e){return e.sourcePosition}function $9e(e){return e.generatedPosition}function _ve(e,t,r){const i=vi(r),o=t.sourceRoot?Ma(t.sourceRoot,i):i,s=Ma(t.file,i),c=e.getSourceFileLike(s),_=t.sources.map(j=>Ma(j,o)),d=new Map(_.map((j,H)=>[e.getCanonicalFileName(j),H]));let v,g,T;return{getSourcePosition:U,getGeneratedPosition:k};function C(j){const H=c!==void 0?xD(c,j.generatedLine,j.generatedCharacter,!0):-1;let ee,X;if(uve(j)){const ne=e.getSourceFileLike(_[j.sourceIndex]);ee=t.sources[j.sourceIndex],X=ne!==void 0?xD(ne,j.sourceLine,j.sourceCharacter,!0):-1}return{generatedPosition:H,source:ee,sourceIndex:j.sourceIndex,sourcePosition:X,nameIndex:j.nameIndex}}function L(){if(v===void 0){const j=MY(t.mappings),H=Oo(j,C);j.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${j.error}`),v=it):v=H}return v}function I(j){if(T===void 0){const H=[];for(const ee of L()){if(!dve(ee))continue;let X=H[ee.sourceIndex];X||(H[ee.sourceIndex]=X=[]),X.push(ee)}T=H.map(ee=>Yw(ee,K9e,fve))}return T[j]}function M(){if(g===void 0){const j=[];for(const H of L())j.push(H);g=Yw(j,X9e,fve)}return g}function k(j){const H=d.get(e.getCanonicalFileName(j.fileName));if(H===void 0)return j;const ee=I(H);if(!Dt(ee))return j;let X=fS(ee,j.pos,Y9e,qs);X<0&&(X=~X);const ne=ee[X];return ne===void 0||ne.sourceIndex!==H?j:{fileName:s,pos:ne.generatedPosition}}function U(j){const H=M();if(!Dt(H))return j;let ee=fS(H,j.pos,$9e,qs);ee<0&&(ee=~ee);const X=H[ee];return X===void 0||!dve(X)?j:{fileName:_[X.sourceIndex],pos:X.sourcePosition}}}var PY,H9,z9,q9,Q9e=b({"src/compiler/sourcemap.ts"(){"use strict";Oa(),kb(),PY=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,H9=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,z9=/^\s*(\/\/[@#] .*)?$/,q9={getSourcePosition:gl,getGeneratedPosition:gl}}});function Nl(e){return e=Cl(e),e?hs(e):0}function Z9e(e){return!e||!Fy(e)?!1:Dt(e.elements,pve)}function pve(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function rp(e,t){return r;function r(o){return o.kind===308?t(o):i(o)}function i(o){return e.factory.createBundle(Pt(o.sourceFiles,t),o.prepends)}}function mve(e){return!!_C(e)}function J9(e){if(_C(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!Fy(t))return!1;let r=0;for(const i of t.elements)pve(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&NS(e)}function FY(e){return!J9(e)&&(NS(e)||!!e.importClause&&Fy(e.importClause.namedBindings)&&Z9e(e.importClause.namedBindings))}function BY(e,t,r,i){const o=[],s=v_(),c=[],_=new Map;let d,v=!1,g,T=!1,C=!1,L=!1;for(const k of t.statements)switch(k.kind){case 269:o.push(k),!C&&J9(k)&&(C=!0),!L&&FY(k)&&(L=!0);break;case 268:k.moduleReference.kind===280&&o.push(k);break;case 275:if(k.moduleSpecifier)if(!k.exportClause)o.push(k),T=!0;else if(o.push(k),tp(k.exportClause))M(k);else{const U=k.exportClause.name;_.get(Pr(U))||(k4(c,Nl(k),U),_.set(Pr(U),!0),d=Pn(d,U)),C=!0}else M(k);break;case 274:k.isExportEquals&&!g&&(g=k);break;case 240:if(Qr(k,1))for(const U of k.declarationList.declarations)d=hve(U,_,d);break;case 259:if(Qr(k,1))if(Qr(k,1024))v||(k4(c,Nl(k),e.factory.getDeclarationName(k)),v=!0);else{const U=k.name;_.get(Pr(U))||(k4(c,Nl(k),U),_.set(Pr(U),!0),d=Pn(d,U))}break;case 260:if(Qr(k,1))if(Qr(k,1024))v||(k4(c,Nl(k),e.factory.getDeclarationName(k)),v=!0);else{const U=k.name;U&&!_.get(Pr(U))&&(k4(c,Nl(k),U),_.set(Pr(U),!0),d=Pn(d,U))}break}const I=hX(e.factory,e.getEmitHelperFactory(),t,i,T,C,L);return I&&o.unshift(I),{externalImports:o,exportSpecifiers:s,exportEquals:g,hasExportStarsToExportValues:T,exportedBindings:c,exportedNames:d,externalHelpersImportDeclaration:I};function M(k){for(const U of lo(k.exportClause,tp).elements)if(!_.get(Pr(U.name))){const j=U.propertyName||U.name;k.moduleSpecifier||s.add(Pr(j),U);const H=r.getReferencedImportDeclaration(j)||r.getReferencedValueDeclaration(j);H&&k4(c,Nl(H),U.name),_.set(Pr(U.name),!0),d=Pn(d,U.name)}}}function hve(e,t,r){if($a(e.name))for(const i of e.name.elements)Fc(i)||(r=hve(i,t,r));else if(!Ll(e.name)){const i=Pr(e.name);t.get(i)||(t.set(i,!0),r=Pn(r,e.name))}return r}function k4(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function sE(e){return As(e)||e.kind===8||Dd(e.kind)||We(e)}function pm(e){return!We(e)&&sE(e)}function _N(e){return e>=64&&e<=78}function w4(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}function GY(e){if(!du(e))return;const t=Hs(e.expression);return aC(t)?t:void 0}function K9(e,t){for(let r=t;r<e.length;r+=1){const i=e[r];if(GY(i))return r}return-1}function UY(e,t,r){return ur(e.members,i=>tFe(i,t,r))}function eFe(e){return nFe(e)||Rl(e)}function X9(e){return ur(e.members,eFe)}function tFe(e,t,r){return ro(e)&&(!!e.initializer||!t)&&Tc(e)===r}function nFe(e){return ro(e)&&Tc(e)}function pN(e){return e.kind===169&&e.initializer!==void 0}function gve(e){return!Xa(e)&&(YA(e)||df(e))&&Ri(e.name)}function VY(e){let t;if(e){const r=e.parameters,i=r.length>0&&qb(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let c=0;c<s;c++){const _=r[c+o];(t||i_(_))&&(t||(t=new Array(s)),t[c]=Fv(_))}}return t}function jY(e){const t=Fv(e),r=VY(Dh(e));if(!(!Dt(t)&&!Dt(r)))return{decorators:t,parameters:r}}function Y9(e,t,r){switch(e.kind){case 174:case 175:return r?rFe(e,t):yve(e);case 171:return yve(e);case 169:return iFe(e);default:return}}function rFe(e,t){if(!e.body)return;const{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}=UT(t.members,e),c=i_(r)?r:i&&i_(i)?i:void 0;if(!c||e!==c)return;const _=Fv(c),d=VY(s);if(!(!Dt(_)&&!Dt(d)))return{decorators:_,parameters:d,getDecorators:o&&Fv(o),setDecorators:s&&Fv(s)}}function yve(e){if(!e.body)return;const t=Fv(e),r=VY(e);if(!(!Dt(t)&&!Dt(r)))return{decorators:t,parameters:r}}function iFe(e){const t=Fv(e);if(Dt(t))return{decorators:t}}function vve(e,t){for(;e;){const r=t(e);if(r!==void 0)return r;e=e.previous}}function bve(e){return{data:e}}function WY(e,t){var r,i;return AS(t)?(r=e==null?void 0:e.generatedIdentifiers)==null?void 0:r.get(t9(t)):(i=e==null?void 0:e.identifiers)==null?void 0:i.get(t.escapedText)}function r2(e,t,r){var i,o;AS(t)?((i=e.generatedIdentifiers)!=null||(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(t9(t),r)):((o=e.identifiers)!=null||(e.identifiers=new Map),e.identifiers.set(t.escapedText,r))}function Eve(e,t){return vve(e,r=>WY(r.privateEnv,t))}var aFe=b({"src/compiler/transformers/utilities.ts"(){"use strict";Oa()}});function i2(e,t,r,i,o,s){let c=e,_;if(Ry(e))for(_=e.right;Spe(e.left)||AJ(e.left);)if(Ry(_))c=e=_,_=e.right;else return R.checkDefined(ct(_,t,yt));let d;const v={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:g,emitBindingOrAssignment:T,createArrayBindingOrAssignmentPattern:C=>_Fe(r.factory,C),createObjectBindingOrAssignmentPattern:C=>mFe(r.factory,C),createArrayBindingOrAssignmentElement:gFe,visitor:t};if(_&&(_=ct(_,t,yt),R.assert(_),We(_)&&HY(e,_.escapedText)||zY(e)?_=a2(v,_,!1,c):o?_=a2(v,_,!0,c):tl(e)&&(c=_)),lL(v,e,_,c,Ry(e)),_&&o){if(!Dt(d))return _;d.push(_)}return r.factory.inlineExpressions(d)||r.factory.createOmittedExpression();function g(C){d=Pn(d,C)}function T(C,L,I,M){R.assertNode(C,s?We:yt);const k=s?s(C,L,I):ht(r.factory.createAssignment(R.checkDefined(ct(C,t,yt)),L),I);k.original=M,g(k)}}function HY(e,t){const r=t0(e);return PD(r)?oFe(r,t):We(r)?r.escapedText===t:!1}function oFe(e,t){const r=ZC(e);for(const i of r)if(HY(i,t))return!0;return!1}function zY(e){const t=Z5(e);if(t&&Cs(t)&&!ST(t.expression))return!0;const r=t0(e);return!!r&&PD(r)&&sFe(r)}function sFe(e){return!!Ie(ZC(e),zY)}function lE(e,t,r,i,o,s=!1,c){let _;const d=[],v=[],g={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:T,emitBindingOrAssignment:C,createArrayBindingOrAssignmentPattern:L=>fFe(r.factory,L),createObjectBindingOrAssignmentPattern:L=>pFe(r.factory,L),createArrayBindingOrAssignmentElement:L=>hFe(r.factory,L),visitor:t};if($i(e)){let L=R6(e);L&&(We(L)&&HY(e,L.escapedText)||zY(e))&&(L=a2(g,R.checkDefined(ct(L,g.visitor,yt)),!1,L),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,L))}if(lL(g,e,o,e,c),_){const L=r.factory.createTempVariable(void 0);if(s){const I=r.factory.inlineExpressions(_);_=void 0,C(L,I,void 0,void 0)}else{r.hoistVariableDeclaration(L);const I=Ko(d);I.pendingExpressions=Pn(I.pendingExpressions,r.factory.createAssignment(L,I.value)),xi(I.pendingExpressions,_),I.value=L}}for(const{pendingExpressions:L,name:I,value:M,location:k,original:U}of d){const j=r.factory.createVariableDeclaration(I,void 0,void 0,L?r.factory.inlineExpressions(Pn(L,M)):M);j.original=U,ht(j,k),v.push(j)}return v;function T(L){_=Pn(_,L)}function C(L,I,M,k){R.assertNode(L,Ch),_&&(I=r.factory.inlineExpressions(Pn(_,I)),_=void 0),d.push({pendingExpressions:_,name:L,value:I,location:M,original:k})}}function lL(e,t,r,i,o){const s=t0(t);if(!o){const c=ct(R6(t),e.visitor,yt);c?r?(r=uFe(e,r,c,i),!pm(c)&&PD(s)&&(r=a2(e,r,!0,i))):r=c:r||(r=e.context.factory.createVoidZero())}eq(s)?lFe(e,t,s,r,i):tq(s)?cFe(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function lFe(e,t,r,i,o){const s=ZC(r),c=s.length;if(c!==1){const v=!MD(t)||c!==0;i=a2(e,i,v,o)}let _,d;for(let v=0;v<c;v++){const g=s[v];if(Q5(g)){if(v===c-1){_&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(_),i,o,r),_=void 0);const T=e.context.getEmitHelperFactory().createRestHelper(i,s,d,r);lL(e,g,T,g)}}else{const T=gX(g);if(e.level>=1&&!(g.transformFlags&98304)&&!(t0(g).transformFlags&98304)&&!Cs(T))_=Pn(_,ct(g,e.visitor,Ofe));else{_&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(_),i,o,r),_=void 0);const C=dFe(e,i,T);Cs(T)&&(d=Pn(d,C.argumentExpression)),lL(e,g,C,g)}}}_&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(_),i,o,r)}function cFe(e,t,r,i,o){const s=ZC(r),c=s.length;if(e.level<1&&e.downlevelIteration)i=a2(e,ht(e.context.getEmitHelperFactory().createReadHelper(i,c>0&&Q5(s[c-1])?void 0:c),o),!1,o);else if(c!==1&&(e.level<1||c===0)||Qn(s,Fc)){const v=!MD(t)||c!==0;i=a2(e,i,v,o)}let _,d;for(let v=0;v<c;v++){const g=s[v];if(e.level>=1)if(g.transformFlags&65536||e.hasTransformedPriorElement&&!Tve(g)){e.hasTransformedPriorElement=!0;const T=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(T),d=Pn(d,[T,g]),_=Pn(_,e.createArrayBindingOrAssignmentElement(T))}else _=Pn(_,g);else{if(Fc(g))continue;if(Q5(g)){if(v===c-1){const T=e.context.factory.createArraySliceCall(i,v);lL(e,g,T,g)}}else{const T=e.context.factory.createElementAccessExpression(i,v);lL(e,g,T,g)}}}if(_&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(_),i,o,r),d)for(const[v,g]of d)lL(e,g,v,g)}function Tve(e){const t=t0(e);if(!t||Fc(t))return!0;const r=Z5(e);if(r&&!J_(r))return!1;const i=R6(e);return i&&!pm(i)?!1:PD(t)?Qn(ZC(t),Tve):We(t)}function uFe(e,t,r,i){return t=a2(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function dFe(e,t,r){if(Cs(r)){const i=a2(e,R.checkDefined(ct(r.expression,e.visitor,yt)),!1,r);return e.context.factory.createElementAccessExpression(t,i)}else if(n_(r)){const i=O.cloneNode(r);return e.context.factory.createElementAccessExpression(t,i)}else{const i=e.context.factory.createIdentifier(Pr(r));return e.context.factory.createPropertyAccessExpression(t,i)}}function a2(e,t,r,i){if(We(t)&&r)return t;{const o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(ht(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function fFe(e,t){return R.assertEachNode(t,PM),e.createArrayBindingPattern(t)}function _Fe(e,t){return R.assertEachNode(t,BD),e.createArrayLiteralExpression(Pt(t,e.converters.convertToArrayAssignmentElement))}function pFe(e,t){return R.assertEachNode(t,ms),e.createObjectBindingPattern(t)}function mFe(e,t){return R.assertEachNode(t,FD),e.createObjectLiteralExpression(Pt(t,e.converters.convertToObjectAssignmentElement))}function hFe(e,t){return e.createBindingElement(void 0,void 0,t)}function gFe(e){return e}var qY,yFe=b({"src/compiler/transformers/destructuring.ts"(){"use strict";Oa(),qY=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(qY||{})}});function JY(e,t,r,i,o,s){const c=ct(t.tag,r,yt);R.assert(c);const _=[void 0],d=[],v=[],g=t.template;if(s===0&&!sJ(g))return Fn(t,r,e);if($S(g))d.push(KY(g)),v.push(XY(g,i));else{d.push(KY(g.head)),v.push(XY(g.head,i));for(const C of g.templateSpans)d.push(KY(C.literal)),v.push(XY(C.literal,i)),_.push(R.checkDefined(ct(C.expression,r,yt)))}const T=e.getEmitHelperFactory().createTemplateObjectHelper(O.createArrayLiteralExpression(d),O.createArrayLiteralExpression(v));if(tc(i)){const C=O.createUniqueName("templateObject");o(C),_[0]=O.createLogicalOr(C,O.createAssignment(C,T))}else _[0]=T;return O.createCallExpression(c,void 0,_)}function KY(e){return e.templateFlags?O.createVoidZero():O.createStringLiteral(e.text)}function XY(e,t){let r=e.rawText;if(r===void 0){R.assertIsDefined(t,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=Fb(t,e);const i=e.kind===14||e.kind===17;r=r.substring(1,r.length-(i?1:2))}return r=r.replace(/\r\n?/g,`
`),ht(O.createStringLiteral(r),e)}var YY,vFe=b({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";Oa(),YY=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(YY||{})}});function Sve(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:c}=e,_=e.getEmitResolver(),d=e.getCompilerOptions(),v=ns(d),g=uu(d),T=!!d.experimentalDecorators,C=d.emitDecoratorMetadata?Cve(e):void 0,L=e.onEmitNode,I=e.onSubstituteNode;e.onEmitNode=Zc,e.onSubstituteNode=Rs,e.enableSubstitution(208),e.enableSubstitution(209);let M,k,U,j,H,ee,X,ne;return P;function P(Z){return Z.kind===309?ue(Z):re(Z)}function ue(Z){return t.createBundle(Z.sourceFiles.map(re),ua(Z.prepends,st=>st.kind===311?CK(st,"js"):st))}function re(Z){if(Z.isDeclarationFile)return Z;M=Z;const st=be(Z,lt);return Oy(st,e.readEmitHelpers()),M=void 0,st}function be(Z,st){const At=j,fn=H,Dr=ee;ae(Z);const Mr=st(Z);return j!==At&&(H=fn),j=At,ee=Dr,Mr}function ae(Z){switch(Z.kind){case 308:case 266:case 265:case 238:j=Z,H=void 0;break;case 260:case 259:if(Qr(Z,2))break;Z.name?Ne(Z):R.assert(Z.kind===260||Qr(Z,1024));break}}function z(Z){return be(Z,ce)}function ce(Z){return Z.transformFlags&1?Ge(Z):Z}function he(Z){return be(Z,Ee)}function Ee(Z){switch(Z.kind){case 269:case 268:case 274:case 275:return Ae(Z);default:return ce(Z)}}function Ae(Z){if(Ea(Z)!==Z)return Z.transformFlags&1?Fn(Z,z,e):Z;switch(Z.kind){case 269:return ai(Z);case 268:return mi(Z);case 274:return go(Z);case 275:return xo(Z);default:R.fail("Unhandled ellided statement")}}function te(Z){return be(Z,Ze)}function Ze(Z){if(!(Z.kind===275||Z.kind===269||Z.kind===270||Z.kind===268&&Z.moduleReference.kind===280))return Z.transformFlags&1||Qr(Z,1)?Ge(Z):Z}function je(Z){return st=>be(st,At=>Ue(At,Z))}function Ue(Z,st){switch(Z.kind){case 173:return Oi(Z);case 169:return lr(Z,st);case 174:return Ir(Z,st);case 175:return Hr(Z,st);case 171:return an(Z,st);case 172:return Fn(Z,z,e);case 237:return Z;case 178:return;default:return R.failBadSyntaxKind(Z)}}function Je(Z){return st=>be(st,At=>Fe(At,Z))}function Fe(Z,st){switch(Z.kind){case 299:case 300:case 301:return z(Z);case 174:return Ir(Z,st);case 175:return Hr(Z,st);case 171:return an(Z,st);default:return R.failBadSyntaxKind(Z)}}function Be(Z){return qu(Z)?void 0:z(Z)}function $e(Z){return po(Z)?void 0:z(Z)}function ze(Z){if(!qu(Z)&&!(VS(Z.kind)&117086)&&!(k&&Z.kind===93))return Z}function Ge(Z){if(wa(Z)&&Qr(Z,2))return t.createNotEmittedStatement(Z);switch(Z.kind){case 93:case 88:return k?void 0:Z;case 123:case 121:case 122:case 126:case 161:case 85:case 136:case 146:case 101:case 145:case 185:case 186:case 187:case 188:case 184:case 179:case 165:case 131:case 157:case 134:case 152:case 148:case 144:case 114:case 153:case 182:case 181:case 183:case 180:case 189:case 190:case 191:case 193:case 194:case 195:case 196:case 197:case 198:case 178:return;case 262:return t.createNotEmittedStatement(Z);case 267:return;case 261:return t.createNotEmittedStatement(Z);case 260:return ot(Z);case 228:return pn(Z);case 294:return Wt(Z);case 230:return In(Z);case 207:return Ct(Z);case 173:case 169:case 171:case 174:case 175:case 172:return R.fail("Class and object literal elements must be visited with their respective visitors");case 259:return Oe(Z);case 215:return gt(Z);case 216:return Ot(Z);case 166:return Le(Z);case 214:return ye(Z);case 213:case 231:return W(Z);case 235:return et(Z);case 210:return Ye(Z);case 211:return jt(Z);case 212:return cn(Z);case 232:return He(Z);case 263:return mt(Z);case 240:return pt(Z);case 257:return ie(Z);case 264:return ut(Z);case 268:return mi(Z);case 282:return Sn(Z);case 283:return Er(Z);default:return Fn(Z,z,e)}}function lt(Z){const st=A_(d,"alwaysStrict")&&!(tc(Z)&&g>=5)&&!E_(Z);return t.updateSourceFile(Z,W9(Z.statements,he,e,0,st))}function Ct(Z){return t.updateObjectLiteralExpression(Z,Jn(Z.properties,Je(Z),Iy))}function bt(Z){let st=0;Dt(UY(Z,!0,!0))&&(st|=1);const At=am(Z);return At&&Cu(At.expression).kind!==104&&(st|=64),Vb(T,Z)&&(st|=2),mk(T,Z)&&(st|=4),fa(Z)?st|=8:nc(Z)?st|=32:pa(Z)&&(st|=16),st}function zt(Z){return!!(Z.transformFlags&8192)}function nt(Z){return i_(Z)||Dt(Z.typeParameters)||Dt(Z.heritageClauses,zt)||Dt(Z.members,zt)}function ot(Z){var st;const At=bt(Z),fn=v<=1&&!!(At&7);if(!nt(Z)&&!Vb(T,Z)&&!fa(Z))return t.updateClassDeclaration(Z,Jn(Z.modifiers,ze,po),Z.name,void 0,Jn(Z.heritageClauses,z,Jd),Jn(Z.members,je(Z),qc));fn&&e.startLexicalEnvironment();const Dr=fn||At&8||At&2&&T||At&1;let Mr=Dr?Jn(Z.modifiers,$e,il):Jn(Z.modifiers,z,il);At&2&&(Mr=jn(Mr,Z));const cs=Dr&&!Z.name||At&4||At&1?(st=Z.name)!=null?st:t.getGeneratedNameForNode(Z):Z.name,yo=t.updateClassDeclaration(Z,Mr,cs,void 0,Jn(Z.heritageClauses,z,Jd),gn(Z));let Ho=Eo(Z);At&1&&(Ho|=64),sr(yo,Ho);let Qa;if(fn){const _l=[yo],mc=LJ(Yo(M.text,Z.members.end),19),bd=t.getInternalName(Z),Ts=t.createPartiallyEmittedExpression(bd);kC(Ts,mc.end),sr(Ts,3072);const fs=t.createReturnStatement(Ts);zk(fs,mc.pos),sr(fs,3840),_l.push(fs),Wm(_l,e.endLexicalEnvironment());const pl=t.createImmediatelyInvokedArrowFunction(_l);s6(pl,1);const Qd=At&16?t.createModifiersFromModifierFlags(1):void 0,ql=t.createVariableStatement(Qd,t.createVariableDeclarationList([t.createVariableDeclaration(t.getLocalName(Z,!1,!1),void 0,void 0,pl)],1));zr(ql,Z),Xc(ql,Z),ps(ql,Kv(Z)),Yu(ql),Qa=ql}else Qa=yo;if(Dr){if(At&8)return sn(Qa,al(Z));if(At&32)return sn(Qa,t.createExportDefault(t.getLocalName(Z,!1,!0)));if(At&16&&!fn)return sn(Qa,t.createExternalModuleExport(t.getLocalName(Z,!1,!0)))}return Qa}function sn(Z,st){return cm(Z,8388608),[Z,st,t.createEndOfDeclarationMarker(Z)]}function pn(Z){let st=Jn(Z.modifiers,$e,il);return Vb(T,Z)&&(st=jn(st,Z)),t.updateClassExpression(Z,st,Z.name,void 0,Jn(Z.heritageClauses,z,Jd),gn(Z))}function gn(Z){const st=Jn(Z.members,je(Z),qc);let At;const fn=Dh(Z),Dr=fn&&ur(fn.parameters,Mr=>cf(Mr,fn));if(Dr)for(const Mr of Dr){const Sa=t.createPropertyDeclaration(void 0,Mr.name,void 0,void 0,void 0);zr(Sa,Mr),At=Pn(At,Sa)}return At?(At=xi(At,st),ht(t.createNodeArray(At),Z.members)):st}function jn(Z,st){const At=Zt(st,st);if(Dt(At)){const fn=[];xi(fn,J7(Z,bX)),xi(fn,ur(Z,qu)),xi(fn,At),xi(fn,ur(ide(Z,bX),po)),Z=ht(t.createNodeArray(fn),Z)}return Z}function Ln(Z,st,At){if(_i(At)&&Gq(T,st,At)){const fn=Zt(st,At);if(Dt(fn)){const Dr=[];xi(Dr,ur(Z,qu)),xi(Dr,fn),xi(Dr,ur(Z,po)),Z=ht(t.createNodeArray(Dr),Z)}}return Z}function Zt(Z,st){if(T)return xve?Ii(Z,st):pr(Z,st)}function pr(Z,st){if(C){let At;if(ea(Z)){const fn=r().createMetadataHelper("design:type",C.serializeTypeOfNode({currentLexicalScope:j,currentNameScope:st},Z));At=Pn(At,t.createDecorator(fn))}if(Or(Z)){const fn=r().createMetadataHelper("design:paramtypes",C.serializeParameterTypesOfNode({currentLexicalScope:j,currentNameScope:st},Z,st));At=Pn(At,t.createDecorator(fn))}if(ta(Z)){const fn=r().createMetadataHelper("design:returntype",C.serializeReturnTypeOfNode({currentLexicalScope:j,currentNameScope:st},Z));At=Pn(At,t.createDecorator(fn))}return At}}function Ii(Z,st){if(C){let At;if(ea(Z)){const fn=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),C.serializeTypeOfNode({currentLexicalScope:j,currentNameScope:st},Z)));At=Pn(At,fn)}if(Or(Z)){const fn=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),C.serializeParameterTypesOfNode({currentLexicalScope:j,currentNameScope:st},Z,st)));At=Pn(At,fn)}if(ta(Z)){const fn=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),C.serializeReturnTypeOfNode({currentLexicalScope:j,currentNameScope:st},Z)));At=Pn(At,fn)}if(At){const fn=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(At,!0));return[t.createDecorator(fn)]}}}function ea(Z){const st=Z.kind;return st===171||st===174||st===175||st===169}function ta(Z){return Z.kind===171}function Or(Z){switch(Z.kind){case 260:case 228:return Dh(Z)!==void 0;case 171:case 174:case 175:return!0}return!1}function Lt(Z,st){const At=Z.name;return Ri(At)?t.createIdentifier(""):Cs(At)?st&&!pm(At.expression)?t.getGeneratedNameForNode(At):At.expression:We(At)?t.createStringLiteral(Pr(At)):t.cloneNode(At)}function yn(Z){const st=Z.name;if(Cs(st)&&(!Tc(Z)&&ee||i_(Z)&&T)){const At=ct(st.expression,z,yt);R.assert(At);const fn=H_(At);if(!pm(fn)){const Dr=t.getGeneratedNameForNode(st);return c(Dr),t.updateComputedPropertyName(st,t.createAssignment(Dr,At))}}return R.checkDefined(ct(st,z,bl))}function Wt(Z){if(Z.token!==117)return Fn(Z,z,e)}function In(Z){return t.updateExpressionWithTypeArguments(Z,R.checkDefined(ct(Z.expression,z,Id)),void 0)}function Bn(Z){return!kl(Z.body)}function lr(Z,st){const At=Z.flags&16777216||Qr(Z,256);if(At&&!(T&&i_(Z)))return;let fn=_i(st)?At?Jn(Z.modifiers,$e,il):Jn(Z.modifiers,z,il):Jn(Z.modifiers,Be,il);return fn=Ln(fn,Z,st),At?t.updatePropertyDeclaration(Z,ba(fn,t.createModifiersFromModifierFlags(2)),R.checkDefined(ct(Z.name,z,bl)),void 0,void 0,void 0):t.updatePropertyDeclaration(Z,fn,yn(Z),void 0,void 0,ct(Z.initializer,z,yt))}function Oi(Z){if(Bn(Z))return t.updateConstructorDeclaration(Z,void 0,Yl(Z.parameters,z,e),bi(Z.body,Z))}function bi(Z,st){const At=st&&ur(st.parameters,Ho=>cf(Ho,st));if(!Dt(At))return Ff(Z,z,e);let fn=[];o();const Dr=t.copyPrologue(Z.statements,fn,!1,z),Mr=K9(Z.statements,Dr);Mr>=0&&xi(fn,Jn(Z.statements,z,wa,Dr,Mr+1-Dr));const Sa=ua(At,Rn);Mr>=0?xi(fn,Sa):fn=[...fn.slice(0,Dr),...Sa,...fn.slice(Dr)];const cs=Mr>=0?Mr+1:Dr;xi(fn,Jn(Z.statements,z,wa,cs)),fn=t.mergeLexicalEnvironment(fn,s());const yo=t.createBlock(ht(t.createNodeArray(fn),Z.statements),!0);return ht(yo,Z),zr(yo,Z),yo}function Rn(Z){const st=Z.name;if(!We(st))return;const At=jo(ht(t.cloneNode(st),st),st.parent);sr(At,3168);const fn=jo(ht(t.cloneNode(st),st),st.parent);return sr(fn,3072),Yu(o6(ht(zr(t.createExpressionStatement(t.createAssignment(ht(t.createPropertyAccessExpression(t.createThis(),At),Z.name),fn)),Z),h1(Z,-1))))}function an(Z,st){if(!(Z.transformFlags&1))return Z;if(!Bn(Z))return;let At=_i(st)?Jn(Z.modifiers,z,il):Jn(Z.modifiers,Be,il);return At=Ln(At,Z,st),t.updateMethodDeclaration(Z,At,Z.asteriskToken,yn(Z),void 0,void 0,Yl(Z.parameters,z,e),void 0,Ff(Z.body,z,e))}function On(Z){return!(kl(Z.body)&&Qr(Z,256))}function Ir(Z,st){if(!(Z.transformFlags&1))return Z;if(!On(Z))return;let At=_i(st)?Jn(Z.modifiers,z,il):Jn(Z.modifiers,Be,il);return At=Ln(At,Z,st),t.updateGetAccessorDeclaration(Z,At,yn(Z),Yl(Z.parameters,z,e),void 0,Ff(Z.body,z,e)||t.createBlock([]))}function Hr(Z,st){if(!(Z.transformFlags&1))return Z;if(!On(Z))return;let At=_i(st)?Jn(Z.modifiers,z,il):Jn(Z.modifiers,Be,il);return At=Ln(At,Z,st),t.updateSetAccessorDeclaration(Z,At,yn(Z),Yl(Z.parameters,z,e),Ff(Z.body,z,e)||t.createBlock([]))}function Oe(Z){if(!Bn(Z))return t.createNotEmittedStatement(Z);const st=t.updateFunctionDeclaration(Z,Jn(Z.modifiers,ze,po),Z.asteriskToken,Z.name,void 0,Yl(Z.parameters,z,e),void 0,Ff(Z.body,z,e)||t.createBlock([]));if(fa(Z)){const At=[st];return jl(At,Z),At}return st}function gt(Z){return Bn(Z)?t.updateFunctionExpression(Z,Jn(Z.modifiers,ze,po),Z.asteriskToken,Z.name,void 0,Yl(Z.parameters,z,e),void 0,Ff(Z.body,z,e)||t.createBlock([])):t.createOmittedExpression()}function Ot(Z){return t.updateArrowFunction(Z,Jn(Z.modifiers,ze,po),void 0,Yl(Z.parameters,z,e),void 0,Z.equalsGreaterThanToken,Ff(Z.body,z,e))}function Le(Z){if(qb(Z))return;const st=t.updateParameterDeclaration(Z,Jn(Z.modifiers,At=>qu(At)?z(At):void 0,il),Z.dotDotDotToken,R.checkDefined(ct(Z.name,z,Ch)),void 0,void 0,ct(Z.initializer,z,yt));return st!==Z&&(Xc(st,Z),ht(st,sm(Z)),ps(st,sm(Z)),sr(st.name,64)),st}function pt(Z){if(fa(Z)){const st=Ok(Z.declarationList);return st.length===0?void 0:ht(t.createExpressionStatement(t.inlineExpressions(Pt(st,me))),Z)}else return Fn(Z,z,e)}function me(Z){const st=Z.name;return $a(st)?i2(Z,z,e,0,!1,Wl):ht(t.createAssignment(Io(st),R.checkDefined(ct(Z.initializer,z,yt))),Z)}function ie(Z){const st=t.updateVariableDeclaration(Z,R.checkDefined(ct(Z.name,z,Ch)),void 0,void 0,ct(Z.initializer,z,yt));return Z.type&&jme(st.name,Z.type),st}function ye(Z){const st=Cu(Z.expression,-7);if(AT(st)){const At=ct(Z.expression,z,yt);return R.assert(At),t.createPartiallyEmittedExpression(At,Z)}return Fn(Z,z,e)}function W(Z){const st=ct(Z.expression,z,yt);return R.assert(st),t.createPartiallyEmittedExpression(st,Z)}function He(Z){const st=ct(Z.expression,z,Id);return R.assert(st),t.createPartiallyEmittedExpression(st,Z)}function et(Z){const st=ct(Z.expression,z,yt);return R.assert(st),t.createPartiallyEmittedExpression(st,Z)}function Ye(Z){return t.updateCallExpression(Z,R.checkDefined(ct(Z.expression,z,yt)),void 0,Jn(Z.arguments,z,yt))}function jt(Z){return t.updateNewExpression(Z,R.checkDefined(ct(Z.expression,z,yt)),void 0,Jn(Z.arguments,z,yt))}function cn(Z){return t.updateTaggedTemplateExpression(Z,R.checkDefined(ct(Z.tag,z,yt)),void 0,R.checkDefined(ct(Z.template,z,$A)))}function Sn(Z){return t.updateJsxSelfClosingElement(Z,R.checkDefined(ct(Z.tagName,z,ok)),void 0,R.checkDefined(ct(Z.attributes,z,tE)))}function Er(Z){return t.updateJsxOpeningElement(Z,R.checkDefined(ct(Z.tagName,z,ok)),void 0,R.checkDefined(ct(Z.attributes,z,tE)))}function de(Z){return!Ub(Z)||Kb(d)}function mt(Z){if(!de(Z))return t.createNotEmittedStatement(Z);const st=[];let At=4;const fn=Et(st,Z);fn&&(g!==4||j!==M)&&(At|=1024);const Dr=La(Z),Mr=Qo(Z),Sa=Qr(Z,1)?t.getExternalModuleOrNamespaceExportName(U,Z,!1,!0):t.getLocalName(Z,!1,!0);let cs=t.createLogicalOr(Sa,t.createAssignment(Sa,t.createObjectLiteralExpression()));if(Y(Z)){const Ho=t.getLocalName(Z,!1,!0);cs=t.createAssignment(Ho,cs)}const yo=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Dr)],void 0,Jt(Z,Mr)),void 0,[cs]));return zr(yo,Z),fn&&(Qb(yo,void 0),PC(yo,void 0)),ht(yo,Z),cm(yo,At),st.push(yo),st.push(t.createEndOfDeclarationMarker(Z)),st}function Jt(Z,st){const At=U;U=st;const fn=[];i();const Dr=Pt(Z.members,at);return Wm(fn,s()),xi(fn,Dr),U=At,t.createBlock(ht(t.createNodeArray(fn),Z.members),!0)}function at(Z){const st=Lt(Z,!1),At=fe(Z),fn=t.createAssignment(t.createElementAccessExpression(U,st),At),Dr=At.kind===10?fn:t.createAssignment(t.createElementAccessExpression(U,fn),st);return ht(t.createExpressionStatement(ht(Dr,Z)),Z)}function fe(Z){const st=_.getConstantValue(Z);return st!==void 0?typeof st=="string"?t.createStringLiteral(st):t.createNumericLiteral(st):(Hl(),Z.initializer?R.checkDefined(ct(Z.initializer,z,yt)):t.createVoidZero())}function Te(Z){const st=Ea(Z,Xl);return st?CY(st,Kb(d)):!0}function Y(Z){return fa(Z)||wn(Z)&&g!==5&&g!==6&&g!==7&&g!==99&&g!==4}function Ne(Z){H||(H=new Map);const st=wt(Z);H.has(st)||H.set(st,Z)}function J(Z){if(H){const st=wt(Z);return H.get(st)===Z}return!0}function wt(Z){return R.assertNode(Z.name,We),Z.name.escapedText}function Et(Z,st){const At=t.createVariableStatement(Jn(st.modifiers,ze,po),t.createVariableDeclarationList([t.createVariableDeclaration(t.getLocalName(st,!1,!0))],j.kind===308?0:1));if(zr(At,st),Ne(st),J(st))return st.kind===263?ps(At.declarationList,st):ps(At,st),Xc(At,st),cm(At,8390656),Z.push(At),!0;{const fn=t.createMergeDeclarationMarker(At);return sr(fn,8391680),Z.push(fn),!1}}function ut(Z){if(!Te(Z))return t.createNotEmittedStatement(Z);R.assertNode(Z.name,We,"A TypeScript namespace should have an Identifier name."),ou();const st=[];let At=4;const fn=Et(st,Z);fn&&(g!==4||j!==M)&&(At|=1024);const Dr=La(Z),Mr=Qo(Z),Sa=Qr(Z,1)?t.getExternalModuleOrNamespaceExportName(U,Z,!1,!0):t.getLocalName(Z,!1,!0);let cs=t.createLogicalOr(Sa,t.createAssignment(Sa,t.createObjectLiteralExpression()));if(Y(Z)){const Ho=t.getLocalName(Z,!1,!0);cs=t.createAssignment(Ho,cs)}const yo=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Dr)],void 0,nn(Z,Mr)),void 0,[cs]));return zr(yo,Z),fn&&(Qb(yo,void 0),PC(yo,void 0)),ht(yo,Z),cm(yo,At),st.push(yo),st.push(t.createEndOfDeclarationMarker(Z)),st}function nn(Z,st){const At=U,fn=k,Dr=H;U=st,k=Z,H=void 0;const Mr=[];i();let Sa,cs;if(Z.body)if(Z.body.kind===265)be(Z.body,Ho=>xi(Mr,Jn(Ho.statements,te,wa))),Sa=Z.body.statements,cs=Z.body;else{const Ho=ut(Z.body);Ho&&(ja(Ho)?xi(Mr,Ho):Mr.push(Ho));const Qa=ir(Z).body;Sa=h1(Qa.statements,-1)}Wm(Mr,s()),U=At,k=fn,H=Dr;const yo=t.createBlock(ht(t.createNodeArray(Mr),Sa),!0);return ht(yo,cs),(!Z.body||Z.body.kind!==265)&&sr(yo,Eo(yo)|3072),yo}function ir(Z){if(Z.body.kind===264)return ir(Z.body)||Z.body}function ai(Z){if(!Z.importClause)return Z;if(Z.importClause.isTypeOnly)return;const st=ct(Z.importClause,gi,Qm);return st||d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2?t.updateImportDeclaration(Z,void 0,st,Z.moduleSpecifier,Z.assertClause):void 0}function gi(Z){R.assert(!Z.isTypeOnly);const st=Ht(Z)?Z.name:void 0,At=ct(Z.namedBindings,ui,iq);return st||At?t.updateImportClause(Z,!1,st,At):void 0}function ui(Z){if(Z.kind===271)return Ht(Z)?Z:void 0;{const st=d.verbatimModuleSyntax||d.preserveValueImports&&(d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2),At=Jn(Z.elements,Wi,Nd);return st||Dt(At)?t.updateNamedImports(Z,At):void 0}}function Wi(Z){return!Z.isTypeOnly&&Ht(Z)?Z:void 0}function go(Z){return d.verbatimModuleSyntax||_.isValueAliasDeclaration(Z)?Fn(Z,z,e):void 0}function xo(Z){if(Z.isTypeOnly)return;if(!Z.exportClause||Bh(Z.exportClause))return Z;const st=d.verbatimModuleSyntax||!!Z.moduleSpecifier&&(d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2),At=ct(Z.exportClause,fn=>Hi(fn,st),qz);return At?t.updateExportDeclaration(Z,void 0,Z.isTypeOnly,At,Z.moduleSpecifier,Z.assertClause):void 0}function oo(Z,st){const At=Jn(Z.elements,$r,yd);return st||Dt(At)?t.updateNamedExports(Z,At):void 0}function da(Z){return t.updateNamespaceExport(Z,R.checkDefined(ct(Z.name,z,We)))}function Hi(Z,st){return Bh(Z)?da(Z):oo(Z,st)}function $r(Z){return!Z.isTypeOnly&&(d.verbatimModuleSyntax||_.isValueAliasDeclaration(Z))?Z:void 0}function ls(Z){return Ht(Z)||!tc(M)&&_.isTopLevelValueImportEqualsWithEntityName(Z)}function mi(Z){if(Z.isTypeOnly)return;if(c1(Z)){const At=Ht(Z);return!At&&d.importsNotUsedAsValues===1?zr(ht(t.createImportDeclaration(void 0,void 0,Z.moduleReference.expression,void 0),Z),Z):At?Fn(Z,z,e):void 0}if(!ls(Z))return;const st=I6(t,Z.moduleReference);return sr(st,7168),pa(Z)||!fa(Z)?zr(ht(t.createVariableStatement(Jn(Z.modifiers,ze,po),t.createVariableDeclarationList([zr(t.createVariableDeclaration(Z.name,void 0,void 0,st),Z)])),Z),Z):zr($l(Z.name,st,Z),Z)}function fa(Z){return k!==void 0&&Qr(Z,1)}function wn(Z){return k===void 0&&Qr(Z,1)}function pa(Z){return wn(Z)&&!Qr(Z,1024)}function nc(Z){return wn(Z)&&Qr(Z,1024)}function al(Z){const st=t.createAssignment(t.getExternalModuleOrNamespaceExportName(U,Z,!1,!0),t.getLocalName(Z));ps(st,S_(Z.name?Z.name.pos:Z.pos,Z.end));const At=t.createExpressionStatement(st);return ps(At,S_(-1,Z.end)),At}function jl(Z,st){Z.push(al(st))}function $l(Z,st,At){return ht(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(U,Z,!1,!0),st)),At)}function Wl(Z,st,At){return ht(t.createAssignment(Io(Z),st),At)}function Io(Z){return t.getNamespaceMemberName(U,Z,!1,!0)}function La(Z){const st=t.getGeneratedNameForNode(Z);return ps(st,Z.name),st}function Qo(Z){return t.getGeneratedNameForNode(Z)}function Hl(){X&8||(X|=8,e.enableSubstitution(79))}function ou(){X&2||(X|=2,e.enableSubstitution(79),e.enableSubstitution(300),e.enableEmitNotification(264))}function $d(Z){return Cl(Z).kind===264}function lc(Z){return Cl(Z).kind===263}function Zc(Z,st,At){const fn=ne,Dr=M;Ki(st)&&(M=st),X&2&&$d(st)&&(ne|=2),X&8&&lc(st)&&(ne|=8),L(Z,st,At),ne=fn,M=Dr}function Rs(Z,st){return st=I(Z,st),Z===1?nl(st):l_(st)?yl(st):st}function yl(Z){if(X&2){const st=Z.name,At=rn(st);if(At){if(Z.objectAssignmentInitializer){const fn=t.createAssignment(At,Z.objectAssignmentInitializer);return ht(t.createPropertyAssignment(st,fn),Z)}return ht(t.createPropertyAssignment(st,At),Z)}}return Z}function nl(Z){switch(Z.kind){case 79:return Ys(Z);case 208:return zl(Z);case 209:return wu(Z)}return Z}function Ys(Z){return rn(Z)||Z}function rn(Z){if(X&ne&&!Ll(Z)&&!e0(Z)){const st=_.getReferencedExportContainer(Z,!1);if(st&&st.kind!==308&&(ne&2&&st.kind===264||ne&8&&st.kind===263))return ht(t.createPropertyAccessExpression(t.getGeneratedNameForNode(st),Z),Z)}}function zl(Z){return _e(Z)}function wu(Z){return _e(Z)}function Zu(Z){return Z.replace(/\*\//g,"*_/")}function _e(Z){const st=kt(Z);if(st!==void 0){Ume(Z,st);const At=typeof st=="string"?t.createStringLiteral(st):t.createNumericLiteral(st);if(!d.removeComments){const fn=Cl(Z,ul);o5(At,3,` ${Zu(kc(fn))} `)}return At}return Z}function kt(Z){if(!Y_(d))return Br(Z)||dl(Z)?_.getConstantValue(Z):void 0}function Ht(Z){return d.verbatimModuleSyntax||_r(Z)||(d.preserveValueImports?_.isValueAliasDeclaration(Z):_.isReferencedAliasDeclaration(Z))}}var xve,bFe=b({"src/compiler/transformers/ts.ts"(){"use strict";Oa(),xve=!1}});function Ave(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:c,addBlockScopedVariable:_}=e,d=e.getEmitResolver(),v=e.getCompilerOptions(),g=ns(v),T=WR(v),C=!!v.experimentalDecorators,L=!T,I=T&&g<9,M=L||I,k=g<9,U=g<99?-1:T?0:3,j=g<9,H=j&&g>=2,ee=M||k||U===-1,X=e.onSubstituteNode;e.onSubstituteNode=Ys;const ne=e.onEmitNode;e.onEmitNode=nl;let P=!1,ue,re,be,ae,z;const ce=new Map;let he,Ee,Ae=!1,te=!1;return rp(e,Ze);function Ze(_e){if(_e.isDeclarationFile||(z=void 0,P=!!(z_(_e)&32),!ee&&!P))return _e;const kt=Fn(_e,Ue,e);return Oy(kt,e.readEmitHelpers()),kt}function je(_e){switch(_e.kind){case 127:return lr()?void 0:_e;default:return li(_e,po)}}function Ue(_e){if(!(_e.transformFlags&16777216)&&!(_e.transformFlags&134234112))return _e;switch(_e.kind){case 127:return R.fail("Use `modifierVisitor` instead.");case 260:return de(_e);case 228:return Jt(_e,void 0);case 172:case 169:return R.fail("Use `classElementVisitor` instead.");case 299:return nt(_e);case 240:return ot(_e);case 257:return pn(_e);case 166:return gn(_e);case 205:return jn(_e);case 274:return Ln(_e);case 80:return bt(_e);case 208:return an(_e);case 209:return On(_e);case 221:case 222:return Ir(_e,!1);case 223:return ie(_e,!1);case 214:return W(_e,!1,void 0);case 210:return Ot(_e);case 241:return Oe(_e);case 212:return Le(_e);case 245:return Hr(_e);case 259:case 215:case 173:case 171:case 174:case 175:return Or(void 0,Je,_e);default:return Je(_e)}}function Je(_e){return Fn(_e,Ue,e)}function Fe(_e,kt){switch(_e.kind){case 356:return He(_e,!1,kt);case 214:return W(_e,!1,kt);case 228:return Jt(_e,kt);default:return Ue(_e)}}function Be(_e){switch(_e.kind){case 221:case 222:return Ir(_e,!0);case 223:return ie(_e,!0);case 357:return ye(_e,!0);case 214:return W(_e,!0,void 0);default:return Ue(_e)}}function $e(_e){switch(_e.kind){case 294:return Fn(_e,$e,e);case 230:return Sn(_e);default:return Ue(_e)}}function ze(_e){switch(_e.kind){case 207:case 206:return yl(_e);default:return Ue(_e)}}function Ge(_e){switch(_e.kind){case 173:return Ii(_e);case 174:case 175:case 171:return Or(void 0,ta,_e);case 169:return Or(void 0,Oi,_e);case 172:return fe(_e);case 164:return pr(_e);case 237:return _e;default:return il(_e)?je(_e):Ue(_e)}}function lt(_e){switch(_e.kind){case 164:return pr(_e);default:return Ue(_e)}}function Ct(_e){switch(_e.kind){case 169:return Bn(_e);case 174:case 175:return Ge(_e);default:R.assertMissingNode(_e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function bt(_e){return!k||wa(_e.parent)?_e:zr(t.createIdentifier(""),_e)}function zt(_e){const kt=Wl(_e.left);if(kt){const Ht=ct(_e.right,Ue,yt);return zr(r().createClassPrivateFieldInHelper(kt.brandCheckIdentifier,Ht),_e)}return Fn(_e,Ue,e)}function nt(_e){if(r_(_e,me)){const{referencedName:kt,name:Ht}=et(_e.name),Z=ct(_e.initializer,st=>Fe(st,kt),yt);return t.updatePropertyAssignment(_e,Ht,Z)}return Fn(_e,Ue,e)}function ot(_e){const kt=ae;ae=[];const Ht=Fn(_e,Ue,e),Z=Dt(ae)?[Ht,...ae]:Ht;return ae=kt,Z}function sn(_e,kt){const Ht=Cl(kt,_i);return Ht&&!Ht.name&&Qr(Ht,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(_e)}function pn(_e){if(r_(_e,me)){const kt=sn(_e.name,_e.initializer),Ht=ct(_e.name,Ue,Ch),Z=ct(_e.initializer,st=>Fe(st,kt),yt);return t.updateVariableDeclaration(_e,Ht,void 0,void 0,Z)}return Fn(_e,Ue,e)}function gn(_e){if(r_(_e,me)){const kt=sn(_e.name,_e.initializer),Ht=ct(_e.name,Ue,Ch),Z=ct(_e.initializer,st=>Fe(st,kt),yt);return t.updateParameterDeclaration(_e,void 0,void 0,Ht,void 0,void 0,Z)}return Fn(_e,Ue,e)}function jn(_e){if(r_(_e,me)){const kt=sn(_e.name,_e.initializer),Ht=ct(_e.propertyName,Ue,bl),Z=ct(_e.name,Ue,Ch),st=ct(_e.initializer,At=>Fe(At,kt),yt);return t.updateBindingElement(_e,void 0,Ht,Z,st)}return Fn(_e,Ue,e)}function Ln(_e){if(r_(_e,me)){const kt=t.createStringLiteral(_e.isExportEquals?"":"default"),Ht=Jn(_e.modifiers,je,po),Z=ct(_e.expression,st=>Fe(st,kt),yt);return t.updateExportAssignment(_e,Ht,Z)}return Fn(_e,Ue,e)}function Zt(_e){return Dt(be)&&(qd(_e)?(be.push(_e.expression),_e=t.updateParenthesizedExpression(_e,t.inlineExpressions(be))):(be.push(_e),_e=t.inlineExpressions(be)),be=void 0),_e}function pr(_e){const kt=ct(_e.expression,Ue,yt);return t.updateComputedPropertyName(_e,Zt(kt))}function Ii(_e){return he?Ne(_e,he):Je(_e)}function ea(_e){return!!(k||Tc(_e)&&z_(_e)&32)}function ta(_e){if(R.assert(!i_(_e)),!od(_e)||!ea(_e))return Fn(_e,Ge,e);const kt=Wl(_e.name);if(R.assert(kt,"Undeclared private name for property declaration."),!kt.isValid)return _e;const Ht=Lt(_e);Ht&&$r().push(t.createAssignment(Ht,t.createFunctionExpression(ur(_e.modifiers,Z=>po(Z)&&!QS(Z)&&!ihe(Z)),_e.asteriskToken,Ht,void 0,Yl(_e.parameters,Ue,e),void 0,Ff(_e.body,Ue,e))))}function Or(_e,kt,Ht){const Z=Ee;Ee=_e;const st=kt(Ht);return Ee=Z,st}function Lt(_e){R.assert(Ri(_e.name));const kt=Wl(_e.name);if(R.assert(kt,"Undeclared private name for property declaration."),kt.kind==="m")return kt.methodName;if(kt.kind==="a"){if(jv(_e))return kt.getterName;if(ky(_e))return kt.setterName}}function yn(_e){const kt=Ym(_e),Ht=y1(_e),Z=_e.name;let st=Z,At=Z;if(Cs(Z)&&!pm(Z.expression)){const cs=n9(Z);if(cs)st=t.updateComputedPropertyName(Z,ct(Z.expression,Ue,yt)),At=t.updateComputedPropertyName(Z,cs.left);else{const yo=t.createTempVariable(i);ps(yo,Z.expression);const Ho=ct(Z.expression,Ue,yt),Qa=t.createAssignment(yo,Ho);ps(Qa,Z.expression),st=t.updateComputedPropertyName(Z,Qa),At=t.updateComputedPropertyName(Z,yo)}}const fn=Jn(_e.modifiers,je,po),Dr=EX(t,_e,fn,_e.initializer);zr(Dr,_e),sr(Dr,3072),ps(Dr,Ht);const Mr=Vhe(t,_e,fn,st);zr(Mr,_e),Xc(Mr,kt),ps(Mr,Ht);const Sa=jhe(t,_e,fn,At);return zr(Sa,_e),sr(Sa,3072),ps(Sa,Ht),NY([Dr,Mr,Sa],Ct,qc)}function Wt(_e){if(ea(_e)){const kt=Wl(_e.name);if(R.assert(kt,"Undeclared private name for property declaration."),!kt.isValid)return _e;if(kt.isStatic&&!k){const Ht=Et(_e,t.createThis());if(Ht)return t.createClassStaticBlockDeclaration(t.createBlock([Ht],!0))}return}if(L&&!Xa(_e)&&(z!=null&&z.data)&&z.data.facts&16)return t.updatePropertyDeclaration(_e,Jn(_e.modifiers,Ue,il),_e.name,void 0,void 0,void 0);if(r_(_e,me)){const{referencedName:kt,name:Ht}=et(_e.name);return t.updatePropertyDeclaration(_e,Jn(_e.modifiers,je,po),Ht,void 0,void 0,ct(_e.initializer,Z=>Fe(Z,kt),yt))}return t.updatePropertyDeclaration(_e,Jn(_e.modifiers,je,po),ct(_e.name,lt,bl),void 0,void 0,ct(_e.initializer,Ue,yt))}function In(_e){if(M&&!df(_e)){const kt=go(_e.name,!!_e.initializer||T,r_(_e,me));if(kt&&$r().push(...Whe(kt)),Xa(_e)&&!k){const Ht=Et(_e,t.createThis());if(Ht){const Z=t.createClassStaticBlockDeclaration(t.createBlock([Ht]));return zr(Z,_e),Xc(Z,_e),Xc(Ht,{pos:-1,end:-1}),Qb(Ht,void 0),PC(Ht,void 0),Z}}return}return t.updatePropertyDeclaration(_e,Jn(_e.modifiers,je,po),ct(_e.name,lt,bl),void 0,void 0,ct(_e.initializer,Ue,yt))}function Bn(_e){return R.assert(!i_(_e),"Decorators should already have been transformed and elided."),od(_e)?Wt(_e):In(_e)}function lr(){return U===-1||U===3&&!!(z!=null&&z.data)&&!!(z.data.facts&16)}function Oi(_e){return df(_e)&&(lr()||Tc(_e)&&z_(_e)&32)?yn(_e):Bn(_e)}function bi(_e,kt){return Rn(_e,ct(kt,Ue,yt))}function Rn(_e,kt){switch(Xc(kt,h1(kt,-1)),_e.kind){case"a":return r().createClassPrivateFieldGetHelper(kt,_e.brandCheckIdentifier,_e.kind,_e.getterName);case"m":return r().createClassPrivateFieldGetHelper(kt,_e.brandCheckIdentifier,_e.kind,_e.methodName);case"f":return r().createClassPrivateFieldGetHelper(kt,_e.brandCheckIdentifier,_e.kind,_e.isStatic?_e.variableName:void 0);case"untransformed":return R.fail("Access helpers should not be created for untransformed private elements");default:R.assertNever(_e,"Unknown private element type")}}function an(_e){if(Ri(_e.name)){const kt=Wl(_e.name);if(kt)return ht(zr(bi(kt,_e.expression),_e),_e)}if(H&&gd(_e)&&We(_e.name)&&Ee&&(z!=null&&z.data)){const{classConstructor:kt,superClassReference:Ht,facts:Z}=z.data;if(Z&1)return Wi(_e);if(kt&&Ht){const st=t.createReflectGetCall(Ht,t.createStringLiteralFromNode(_e.name),kt);return zr(st,_e.expression),ht(st,_e.expression),st}}return Fn(_e,Ue,e)}function On(_e){if(H&&gd(_e)&&Ee&&(z!=null&&z.data)){const{classConstructor:kt,superClassReference:Ht,facts:Z}=z.data;if(Z&1)return Wi(_e);if(kt&&Ht){const st=t.createReflectGetCall(Ht,ct(_e.argumentExpression,Ue,yt),kt);return zr(st,_e.expression),ht(st,_e.expression),st}}return Fn(_e,Ue,e)}function Ir(_e,kt){if(_e.operator===45||_e.operator===46){const Ht=Hs(_e.operand);if(KA(Ht)){let Z;if(Z=Wl(Ht.name)){const st=ct(Ht.expression,Ue,yt),{readExpression:At,initializeExpression:fn}=gt(st);let Dr=bi(Z,At);const Mr=Qv(_e)||kt?void 0:t.createTempVariable(i);return Dr=K5(t,_e,Dr,i,Mr),Dr=Ye(Z,fn||At,Dr,63),zr(Dr,_e),ht(Dr,_e),Mr&&(Dr=t.createComma(Dr,Mr),ht(Dr,_e)),Dr}}else if(H&&gd(Ht)&&Ee&&(z!=null&&z.data)){const{classConstructor:Z,superClassReference:st,facts:At}=z.data;if(At&1){const fn=Wi(Ht);return Qv(_e)?t.updatePrefixUnaryExpression(_e,fn):t.updatePostfixUnaryExpression(_e,fn)}if(Z&&st){let fn,Dr;if(Br(Ht)?We(Ht.name)&&(Dr=fn=t.createStringLiteralFromNode(Ht.name)):pm(Ht.argumentExpression)?Dr=fn=Ht.argumentExpression:(Dr=t.createTempVariable(i),fn=t.createAssignment(Dr,ct(Ht.argumentExpression,Ue,yt))),fn&&Dr){let Mr=t.createReflectGetCall(st,Dr,Z);ht(Mr,Ht);const Sa=kt?void 0:t.createTempVariable(i);return Mr=K5(t,_e,Mr,i,Sa),Mr=t.createReflectSetCall(st,fn,Mr,Z),zr(Mr,_e),ht(Mr,_e),Sa&&(Mr=t.createComma(Mr,Sa),ht(Mr,_e)),Mr}}}}return Fn(_e,Ue,e)}function Hr(_e){return t.updateForStatement(_e,ct(_e.initializer,Be,rm),ct(_e.condition,Ue,yt),ct(_e.incrementor,Be,yt),L_(_e.statement,Ue,e))}function Oe(_e){return t.updateExpressionStatement(_e,ct(_e.expression,Be,yt))}function gt(_e){const kt=tl(_e)?_e:t.cloneNode(_e);if(pm(_e))return{readExpression:kt,initializeExpression:void 0};const Ht=t.createTempVariable(i),Z=t.createAssignment(Ht,kt);return{readExpression:Ht,initializeExpression:Z}}function Ot(_e){var kt;if(KA(_e.expression)&&Wl(_e.expression.name)){const{thisArg:Ht,target:Z}=t.createCallBinding(_e.expression,i,g);return TT(_e)?t.updateCallChain(_e,t.createPropertyAccessChain(ct(Z,Ue,yt),_e.questionDotToken,"call"),void 0,void 0,[ct(Ht,Ue,yt),...Jn(_e.arguments,Ue,yt)]):t.updateCallExpression(_e,t.createPropertyAccessExpression(ct(Z,Ue,yt),"call"),void 0,[ct(Ht,Ue,yt),...Jn(_e.arguments,Ue,yt)])}if(H&&gd(_e.expression)&&Ee&&((kt=z==null?void 0:z.data)!=null&&kt.classConstructor)){const Ht=t.createFunctionCallCall(ct(_e.expression,Ue,yt),z.data.classConstructor,Jn(_e.arguments,Ue,yt));return zr(Ht,_e),ht(Ht,_e),Ht}return Fn(_e,Ue,e)}function Le(_e){var kt;if(KA(_e.tag)&&Wl(_e.tag.name)){const{thisArg:Ht,target:Z}=t.createCallBinding(_e.tag,i,g);return t.updateTaggedTemplateExpression(_e,t.createCallExpression(t.createPropertyAccessExpression(ct(Z,Ue,yt),"bind"),void 0,[ct(Ht,Ue,yt)]),void 0,ct(_e.template,Ue,$A))}if(H&&gd(_e.tag)&&Ee&&((kt=z==null?void 0:z.data)!=null&&kt.classConstructor)){const Ht=t.createFunctionBindCall(ct(_e.tag,Ue,yt),z.data.classConstructor,[]);return zr(Ht,_e),ht(Ht,_e),t.updateTaggedTemplateExpression(_e,Ht,void 0,ct(_e.template,Ue,$A))}return Fn(_e,Ue,e)}function pt(_e){if(z&&ce.set(Cl(_e),z),k){s();let kt=Or(_e,Z=>Jn(Z,Ue,wa),_e.body.statements);kt=t.mergeLexicalEnvironment(kt,o());const Ht=t.createImmediatelyInvokedArrowFunction(kt);return zr(Ht,_e),ht(Ht,_e),cm(Ht,4),Ht}}function me(_e){if(Ku(_e)&&!_e.name){const kt=X9(_e),Ht=$t(kt,Rl);if(Ht){for(const st of Ht.body.statements)if(du(st)&&e4(st.expression,"___setFunctionName"))return!1}return(k||!!z_(_e))&&Dt(kt,st=>Rl(st)||od(st)||M&&pN(st))}return!1}function ie(_e,kt){if(Ry(_e)){const Ht=be;be=void 0,_e=t.updateBinaryExpression(_e,ct(_e.left,ze,yt),_e.operatorToken,ct(_e.right,Ue,yt));const Z=Dt(be)?t.inlineExpressions($w([...be,_e])):_e;return be=Ht,Z}if(cd(_e)){if(r_(_e,me)){const Ht=sn(_e.left,_e.right),Z=ct(_e.left,Ue,yt),st=ct(_e.right,At=>Fe(At,Ht),yt);return t.updateBinaryExpression(_e,Z,_e.operatorToken,st)}if(KA(_e.left)){const Ht=Wl(_e.left.name);if(Ht)return ht(zr(Ye(Ht,_e.left.expression,_e.right,_e.operatorToken.kind),_e),_e)}else if(H&&gd(_e.left)&&Ee&&(z!=null&&z.data)){const{classConstructor:Ht,superClassReference:Z,facts:st}=z.data;if(st&1)return t.updateBinaryExpression(_e,Wi(_e.left),_e.operatorToken,ct(_e.right,Ue,yt));if(Ht&&Z){let At=dl(_e.left)?ct(_e.left.argumentExpression,Ue,yt):We(_e.left.name)?t.createStringLiteralFromNode(_e.left.name):void 0;if(At){let fn=ct(_e.right,Ue,yt);if(_N(_e.operatorToken.kind)){let Mr=At;pm(At)||(Mr=t.createTempVariable(i),At=t.createAssignment(Mr,At));const Sa=t.createReflectGetCall(Z,Mr,Ht);zr(Sa,_e.left),ht(Sa,_e.left),fn=t.createBinaryExpression(Sa,w4(_e.operatorToken.kind),fn),ht(fn,_e)}const Dr=kt?void 0:t.createTempVariable(i);return Dr&&(fn=t.createAssignment(Dr,fn),ht(Dr,_e)),fn=t.createReflectSetCall(Z,At,fn,Ht),zr(fn,_e),ht(fn,_e),Dr&&(fn=t.createComma(fn,Dr),ht(fn,_e)),fn}}}}return AFe(_e)?zt(_e):Fn(_e,Ue,e)}function ye(_e,kt){const Ht=kt?fN(_e.elements,Be):fN(_e.elements,Ue,Be);return t.updateCommaListExpression(_e,Ht)}function W(_e,kt,Ht){const Z=kt?Be:Ht?At=>Fe(At,Ht):Ue,st=ct(_e.expression,Z,yt);return t.updateParenthesizedExpression(_e,st)}function He(_e,kt,Ht){const Z=kt?Be:Ht?At=>Fe(At,Ht):Ue,st=ct(_e.expression,Z,yt);return t.updatePartiallyEmittedExpression(_e,st)}function et(_e){if(J_(_e)||Ri(_e)){const At=t.createStringLiteralFromNode(_e),fn=ct(_e,Ue,bl);return{referencedName:At,name:fn}}if(J_(_e.expression)&&!We(_e.expression)){const At=t.createStringLiteralFromNode(_e.expression),fn=ct(_e,Ue,bl);return{referencedName:At,name:fn}}const kt=t.createTempVariable(i),Ht=r().createPropKeyHelper(ct(_e.expression,Ue,yt)),Z=t.createAssignment(kt,Ht),st=t.updateComputedPropertyName(_e,Zt(Z));return{referencedName:kt,name:st}}function Ye(_e,kt,Ht,Z){if(kt=ct(kt,Ue,yt),Ht=ct(Ht,Ue,yt),_N(Z)){const{readExpression:st,initializeExpression:At}=gt(kt);kt=At||st,Ht=t.createBinaryExpression(Rn(_e,st),w4(Z),Ht)}switch(Xc(kt,h1(kt,-1)),_e.kind){case"a":return r().createClassPrivateFieldSetHelper(kt,_e.brandCheckIdentifier,Ht,_e.kind,_e.setterName);case"m":return r().createClassPrivateFieldSetHelper(kt,_e.brandCheckIdentifier,Ht,_e.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(kt,_e.brandCheckIdentifier,Ht,_e.kind,_e.isStatic?_e.variableName:void 0);case"untransformed":return R.fail("Access helpers should not be created for untransformed private elements");default:R.assertNever(_e,"Unknown private element type")}}function jt(_e){return ur(_e.members,gve)}function cn(_e){let kt=0;const Ht=Cl(_e);Bc(Ht)&&Vb(C,Ht)&&(kt|=1);let Z=!1,st=!1,At=!1,fn=!1;for(const Mr of _e.members)Xa(Mr)?(Mr.name&&(Ri(Mr.name)||df(Mr))&&k&&(kt|=2),(ro(Mr)||Rl(Mr))&&(j&&Mr.transformFlags&16384&&(kt|=8,kt&1||(kt|=2)),H&&Mr.transformFlags&134217728&&(kt&1||(kt|=6)))):Jb(Cl(Mr))||(df(Mr)?(fn=!0,At||(At=od(Mr))):od(Mr)?At=!0:ro(Mr)&&(Z=!0,st||(st=!!Mr.initializer)));return(I&&Z||L&&st||k&&At||k&&fn&&U===-1)&&(kt|=16),kt}function Sn(_e){var kt;if((((kt=z==null?void 0:z.data)==null?void 0:kt.facts)||0)&4){const Z=t.createTempVariable(i,!0);return da().superClassReference=Z,t.updateExpressionWithTypeArguments(_e,t.createAssignment(Z,ct(_e.expression,Ue,yt)),void 0)}return Fn(_e,Ue,e)}function Er(_e,kt,Ht){const Z=he,st=be,At=z;he=_e,be=void 0,xo();const fn=z_(_e)&32;if(k||fn){const Sa=ka(_e);Sa&&We(Sa)&&(Hi().data.className=Sa)}if(k){const Sa=jt(_e);Dt(Sa)&&(Hi().data.weakSetName=jl("instances",Sa[0].name))}const Dr=cn(_e);Dr&&(da().facts=Dr),Dr&8&&gi();const Mr=Ht(_e,Dr,kt);return oo(),R.assert(z===At),he=Z,be=st,Mr}function de(_e){return Er(_e,void 0,mt)}function mt(_e,kt){var Ht,Z;let st;if(kt&2){if(k&&((Ht=_e.emitNode)!=null&&Ht.classThis))da().classConstructor=_e.emitNode.classThis,st=t.createAssignment(_e.emitNode.classThis,t.getInternalName(_e));else{const yo=t.createTempVariable(i,!0);da().classConstructor=t.cloneNode(yo),st=t.createAssignment(yo,t.getInternalName(_e))}(Z=_e.emitNode)!=null&&Z.classThis&&(da().classThis=_e.emitNode.classThis)}const At=Jn(_e.modifiers,je,po),fn=Jn(_e.heritageClauses,$e,Jd),{members:Dr,prologue:Mr}=Te(_e),Sa=t.updateClassDeclaration(_e,At,_e.name,void 0,fn,Dr),cs=[];if(Mr&&cs.push(t.createExpressionStatement(Mr)),cs.push(Sa),st&&$r().unshift(st),Dt(be)&&cs.push(t.createExpressionStatement(t.inlineExpressions(be))),L||k||z_(_e)&32){const yo=X9(_e);Dt(yo)&&wt(cs,yo,t.getInternalName(_e))}return cs}function Jt(_e,kt){return Er(_e,kt,at)}function at(_e,kt,Ht){var Z,st,At,fn,Dr,Mr;const Sa=!!(kt&1),cs=X9(_e),yo=d.getNodeCheckFlags(_e)&1048576;let Ho;function Qa(){var ql;if(k&&((ql=_e.emitNode)!=null&&ql.classThis))return da().classConstructor=_e.emitNode.classThis;const Uf=d.getNodeCheckFlags(_e),Ce=Uf&1048576,Nt=Uf&32768,Nn=t.createTempVariable(Nt?_:i,!!Ce);return da().classConstructor=t.cloneNode(Nn),Nn}(Z=_e.emitNode)!=null&&Z.classThis&&(da().classThis=_e.emitNode.classThis),kt&2&&(Ho!=null||(Ho=Qa()));const _l=Jn(_e.modifiers,je,po),mc=Jn(_e.heritageClauses,$e,Jd),{members:bd,prologue:Ts}=Te(_e);let fs=t.updateClassExpression(_e,_l,_e.name,void 0,mc,bd);const pl=[];if(Ts&&pl.push(Ts),(k||z_(_e)&32)&&Dt(cs,ql=>Rl(ql)||od(ql)||M&&pN(ql))||Dt(be)||Ht)if(Sa){if(R.assertIsDefined(ae,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Dt(be)&&xi(ae,Pt(be,t.createExpressionStatement)),Ht)if(k){const ql=r().createSetFunctionNameHelper((At=Ho!=null?Ho:(st=_e.emitNode)==null?void 0:st.classThis)!=null?At:t.getInternalName(_e),Ht);ae.push(t.createExpressionStatement(ql))}else{const ql=r().createSetFunctionNameHelper(t.createThis(),Ht);fs=t.updateClassExpression(fs,fs.modifiers,fs.name,fs.typeParameters,fs.heritageClauses,[t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(ql)])),...fs.members])}Dt(cs)&&wt(ae,cs,(Dr=(fn=_e.emitNode)==null?void 0:fn.classThis)!=null?Dr:t.getInternalName(_e)),Ho?pl.push(t.createAssignment(Ho,fs)):k&&((Mr=_e.emitNode)!=null&&Mr.classThis)?pl.push(t.createAssignment(_e.emitNode.classThis,fs)):pl.push(fs)}else{if(Ho!=null||(Ho=Qa()),yo){ai();const ql=t.cloneNode(Ho);ql.emitNode.autoGenerate.flags&=-9,re[Nl(_e)]=ql}pl.push(t.createAssignment(Ho,fs)),xi(pl,be),Ht&&pl.push(r().createSetFunctionNameHelper(Ho,Ht)),xi(pl,ut(cs,Ho)),pl.push(t.cloneNode(Ho))}else pl.push(fs);return pl.length>1&&(cm(fs,131072),pl.forEach(Yu)),t.inlineExpressions(pl)}function fe(_e){if(!k)return Fn(_e,Ue,e)}function Te(_e){const kt=!!(z_(_e)&32);if(k||P){for(const fn of _e.members)if(od(fn))if(ea(fn))al(fn,fn.name,ls);else{const Dr=Hi();r2(Dr,fn.name,{kind:"untransformed"})}if(k&&Dt(jt(_e))&&Y(),lr()){for(const fn of _e.members)if(df(fn)){const Dr=t.getGeneratedPrivateNameForNode(fn.name,void 0,"_accessor_storage");if(k||kt&&Tc(fn))al(fn,Dr,mi);else{const Mr=Hi();r2(Mr,Dr,{kind:"untransformed"})}}}}let Ht=Jn(_e.members,Ge,qc),Z;Dt(Ht,Kl)||(Z=Ne(void 0,_e));let st,At;if(!k&&Dt(be)){let fn=t.createExpressionStatement(t.inlineExpressions(be));if(fn.transformFlags&134234112){const Mr=t.createTempVariable(i),Sa=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([fn]));st=t.createAssignment(Mr,Sa),fn=t.createExpressionStatement(t.createCallExpression(Mr,void 0,[]))}const Dr=t.createBlock([fn]);At=t.createClassStaticBlockDeclaration(Dr),be=void 0}if(Z||At){let fn;fn=Pn(fn,Z),fn=Pn(fn,At),fn=xi(fn,Ht),Ht=ht(t.createNodeArray(fn),_e.members)}return{members:Ht,prologue:st}}function Y(){const{weakSetName:_e}=Hi().data;R.assert(_e,"weakSetName should be set in private identifier environment"),$r().push(t.createAssignment(_e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function Ne(_e,kt){if(_e=ct(_e,Ue,Kl),!(z!=null&&z.data)||!(z.data.facts&16))return _e;const Ht=am(kt),Z=!!(Ht&&Cu(Ht.expression).kind!==104),st=Yl(_e?_e.parameters:void 0,Ue,e),At=J(kt,_e,Z);return At?_e?(R.assert(st),t.updateConstructorDeclaration(_e,void 0,st,At)):Yu(zr(ht(t.createConstructorDeclaration(void 0,st!=null?st:[],At),_e||kt),_e)):_e}function J(_e,kt,Ht){var Z,st;const At=UY(_e,!1,!1);let fn=At;T||(fn=ur(fn,Ts=>!!Ts.initializer||Ri(Ts.name)||qm(Ts)));const Dr=jt(_e),Mr=Dt(fn)||Dt(Dr);if(!kt&&!Mr)return Ff(void 0,Ue,e);c();const Sa=!kt&&Ht;let cs=0,yo=0,Ho=-1,Qa=[];(Z=kt==null?void 0:kt.body)!=null&&Z.statements&&(yo=t.copyPrologue(kt.body.statements,Qa,!1,Ue),Ho=K9(kt.body.statements,yo),Ho>=0?(cs=Ho+1,Qa=[...Qa.slice(0,yo),...Jn(kt.body.statements,Ue,wa,yo,cs-yo),...Qa.slice(yo)]):yo>=0&&(cs=yo)),Sa&&Qa.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))])));let _l=0;if(kt!=null&&kt.body){for(let Ts=cs;Ts<kt.body.statements.length;Ts++){const fs=kt.body.statements[Ts];if(cf(Cl(fs),kt))_l++;else break}_l>0&&(cs+=_l)}const mc=t.createThis();if(ui(Qa,Dr,mc),kt){const Ts=ur(At,pl=>cf(Cl(pl),kt)),fs=ur(fn,pl=>!cf(Cl(pl),kt));wt(Qa,Ts,mc),wt(Qa,fs,mc)}else wt(Qa,fn,mc);if(kt&&xi(Qa,Jn(kt.body.statements,Ue,wa,cs)),Qa=t.mergeLexicalEnvironment(Qa,o()),Qa.length===0&&!kt)return;const bd=kt!=null&&kt.body&&kt.body.statements.length>=Qa.length&&(st=kt.body.multiLine)!=null?st:Qa.length>0;return ht(t.createBlock(ht(t.createNodeArray(Qa),kt?kt.body.statements:_e.members),bd),kt?kt.body:void 0)}function wt(_e,kt,Ht){for(const Z of kt){if(Xa(Z)&&!k)continue;const st=Et(Z,Ht);st&&_e.push(st)}}function Et(_e,kt){const Ht=Rl(_e)?pt(_e):nn(_e,kt);if(!Ht)return;const Z=t.createExpressionStatement(Ht);zr(Z,_e),cm(Z,Eo(_e)&3072),Xc(Z,_e);const st=Cl(_e);return Ba(st)?(ps(Z,st),o6(Z)):ps(Z,sm(_e)),Qb(Ht,void 0),PC(Ht,void 0),qm(st)&&cm(Z,3072),Z}function ut(_e,kt){const Ht=[];for(const Z of _e){const st=Rl(Z)?pt(Z):nn(Z,kt);st&&(Yu(st),zr(st,Z),cm(st,Eo(Z)&3072),ps(st,sm(Z)),Xc(st,Z),Ht.push(st))}return Ht}function nn(_e,kt){var Ht;const Z=Ee,st=ir(_e,kt);return st&&Tc(_e)&&((Ht=z==null?void 0:z.data)!=null&&Ht.facts)&&(zr(st,_e),cm(st,4),ps(st,y1(_e.name)),ce.set(Cl(_e),z)),Ee=Z,st}function ir(_e,kt){const Ht=!T;let Z;r_(_e,me)&&(J_(_e.name)||Ri(_e.name)?Z=t.createStringLiteralFromNode(_e.name):J_(_e.name.expression)&&!We(_e.name.expression)?Z=t.createStringLiteralFromNode(_e.name.expression):Z=t.getGeneratedNameForNode(_e.name));const st=qm(_e)?t.getGeneratedPrivateNameForNode(_e.name):Cs(_e.name)&&!pm(_e.name.expression)?t.updateComputedPropertyName(_e.name,t.getGeneratedNameForNode(_e.name)):_e.name;Tc(_e)&&(Ee=_e);const At=Z?Mr=>Fe(Mr,Z):Ue;if(Ri(st)&&ea(_e)){const Mr=Wl(st);if(Mr)return Mr.kind==="f"?Mr.isStatic?EFe(Mr.variableName,ct(_e.initializer,At,yt)):TFe(kt,ct(_e.initializer,At,yt),Mr.brandCheckIdentifier):void 0;R.fail("Undeclared private name for property declaration.")}if((Ri(st)||Tc(_e))&&!_e.initializer)return;const fn=Cl(_e);if(Qr(fn,256))return;let Dr=ct(_e.initializer,At,yt);if(cf(fn,fn.parent)&&We(st)){const Mr=t.cloneNode(st);Dr?(qd(Dr)&&k6(Dr.expression)&&e4(Dr.expression.left,"___runInitializers")&&ix(Dr.expression.right)&&C_(Dr.expression.right.expression)&&(Dr=Dr.expression.left),Dr=t.inlineExpressions([Dr,Mr])):Dr=Mr,sr(st,3168),ps(Mr,fn.name),sr(Mr,3072)}else Dr!=null||(Dr=t.createVoidZero());if(Ht||Ri(st)){const Mr=QT(t,kt,st,st);return cm(Mr,1024),t.createAssignment(Mr,Dr)}else{const Mr=Cs(st)?st.expression:We(st)?t.createStringLiteral(ia(st.escapedText)):st,Sa=t.createPropertyDescriptor({value:Dr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(kt,Mr,Sa)}}function ai(){ue&1||(ue|=1,e.enableSubstitution(79),re=[])}function gi(){ue&2||(ue|=2,e.enableSubstitution(108),e.enableEmitNotification(259),e.enableEmitNotification(215),e.enableEmitNotification(173),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(171),e.enableEmitNotification(169),e.enableEmitNotification(164))}function ui(_e,kt,Ht){if(!k||!Dt(kt))return;const{weakSetName:Z}=Hi().data;R.assert(Z,"weakSetName should be set in private identifier environment"),_e.push(t.createExpressionStatement(SFe(Ht,Z)))}function Wi(_e){return Br(_e)?t.updatePropertyAccessExpression(_e,t.createVoidZero(),_e.name):t.updateElementAccessExpression(_e,t.createVoidZero(),ct(_e.argumentExpression,Ue,yt))}function go(_e,kt,Ht){if(Cs(_e)){const Z=n9(_e);let st=ct(_e.expression,Ue,yt);const At=H_(st),fn=pm(At);if(!(!!Z||cd(At)&&Ll(At.left))&&!fn&&kt){const Mr=t.getGeneratedNameForNode(_e);return d.getNodeCheckFlags(_e)&32768?_(Mr):i(Mr),Ht&&(st=r().createPropKeyHelper(st)),t.createAssignment(Mr,st)}return fn||We(At)?void 0:st}}function xo(){z={previous:z,data:void 0}}function oo(){z=z==null?void 0:z.previous}function da(){var _e;return R.assert(z),(_e=z.data)!=null?_e:z.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function Hi(){var _e;return R.assert(z),(_e=z.privateEnv)!=null?_e:z.privateEnv=bve({className:void 0,weakSetName:void 0})}function $r(){return be!=null?be:be=[]}function ls(_e,kt,Ht,Z,st,At,fn){df(_e)?nc(_e,kt,Ht,Z,st,At,fn):ro(_e)?mi(_e,kt,Ht,Z,st,At,fn):sc(_e)?fa(_e,kt,Ht,Z,st,At,fn):Z_(_e)?wn(_e,kt,Ht,Z,st,At,fn):s_(_e)&&pa(_e,kt,Ht,Z,st,At,fn)}function mi(_e,kt,Ht,Z,st,At,fn){var Dr;if(st){const Mr=R.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"),Sa=$l(kt);r2(Z,kt,{kind:"f",isStatic:!0,brandCheckIdentifier:Mr,variableName:Sa,isValid:At})}else{const Mr=$l(kt);r2(Z,kt,{kind:"f",isStatic:!1,brandCheckIdentifier:Mr,isValid:At}),$r().push(t.createAssignment(Mr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function fa(_e,kt,Ht,Z,st,At,fn){var Dr;const Mr=$l(kt),Sa=st?R.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(Z.data.weakSetName,"weakSetName should be set in private identifier environment");r2(Z,kt,{kind:"m",methodName:Mr,brandCheckIdentifier:Sa,isStatic:st,isValid:At})}function wn(_e,kt,Ht,Z,st,At,fn){var Dr;const Mr=$l(kt,"_get"),Sa=st?R.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(Z.data.weakSetName,"weakSetName should be set in private identifier environment");(fn==null?void 0:fn.kind)==="a"&&fn.isStatic===st&&!fn.getterName?fn.getterName=Mr:r2(Z,kt,{kind:"a",getterName:Mr,setterName:void 0,brandCheckIdentifier:Sa,isStatic:st,isValid:At})}function pa(_e,kt,Ht,Z,st,At,fn){var Dr;const Mr=$l(kt,"_set"),Sa=st?R.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(Z.data.weakSetName,"weakSetName should be set in private identifier environment");(fn==null?void 0:fn.kind)==="a"&&fn.isStatic===st&&!fn.setterName?fn.setterName=Mr:r2(Z,kt,{kind:"a",getterName:void 0,setterName:Mr,brandCheckIdentifier:Sa,isStatic:st,isValid:At})}function nc(_e,kt,Ht,Z,st,At,fn){var Dr;const Mr=$l(kt,"_get"),Sa=$l(kt,"_set"),cs=st?R.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(Z.data.weakSetName,"weakSetName should be set in private identifier environment");r2(Z,kt,{kind:"a",getterName:Mr,setterName:Sa,brandCheckIdentifier:cs,isStatic:st,isValid:At})}function al(_e,kt,Ht){const Z=da(),st=Hi(),At=WY(st,kt),fn=Tc(_e),Dr=!xFe(kt)&&At===void 0;Ht(_e,kt,Z,st,fn,Dr,At)}function jl(_e,kt,Ht){const{className:Z}=Hi().data,st=Z?{prefix:"_",node:Z,suffix:"_"}:"_",At=typeof _e=="object"?t.getGeneratedNameForNode(_e,24,st,Ht):typeof _e=="string"?t.createUniqueName(_e,16,st,Ht):t.createTempVariable(void 0,!0,st,Ht);return d.getNodeCheckFlags(kt)&32768?_(At):i(At),At}function $l(_e,kt){var Ht;const Z=YM(_e);return jl((Ht=Z==null?void 0:Z.substring(1))!=null?Ht:_e,_e,kt)}function Wl(_e){const kt=Eve(z,_e);return(kt==null?void 0:kt.kind)==="untransformed"?void 0:kt}function Io(_e){const kt=t.getGeneratedNameForNode(_e),Ht=Wl(_e.name);if(!Ht)return Fn(_e,Ue,e);let Z=_e.expression;return(QD(_e)||gd(_e)||!sE(_e.expression))&&(Z=t.createTempVariable(i,!0),$r().push(t.createBinaryExpression(Z,63,ct(_e.expression,Ue,yt)))),t.createAssignmentTargetWrapper(kt,Ye(Ht,Z,kt,63))}function La(_e){if(Is(_e)||Ju(_e))return yl(_e);if(KA(_e))return Io(_e);if(H&&gd(_e)&&Ee&&(z!=null&&z.data)){const{classConstructor:kt,superClassReference:Ht,facts:Z}=z.data;if(Z&1)return Wi(_e);if(kt&&Ht){const st=dl(_e)?ct(_e.argumentExpression,Ue,yt):We(_e.name)?t.createStringLiteralFromNode(_e.name):void 0;if(st){const At=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(At,t.createReflectSetCall(Ht,st,At,kt))}}}return Fn(_e,Ue,e)}function Qo(_e){if(r_(_e,me)){const kt=La(_e.left),Ht=sn(_e.left,_e.right),Z=ct(_e.right,st=>Fe(st,Ht),yt);return t.updateBinaryExpression(_e,kt,_e.operatorToken,Z)}if(cd(_e,!0)){const kt=La(_e.left),Ht=ct(_e.right,Ue,yt);return t.updateBinaryExpression(_e,kt,_e.operatorToken,Ht)}return La(_e)}function Hl(_e){if(Id(_e.expression)){const kt=La(_e.expression);return t.updateSpreadElement(_e,kt)}return Fn(_e,Ue,e)}function ou(_e){return R.assertNode(_e,BD),Fh(_e)?Hl(_e):Fc(_e)?Fn(_e,Ue,e):Qo(_e)}function $d(_e){const kt=ct(_e.name,Ue,bl);if(cd(_e.initializer,!0)){const Ht=Qo(_e.initializer);return t.updatePropertyAssignment(_e,kt,Ht)}if(Id(_e.initializer)){const Ht=La(_e.initializer);return t.updatePropertyAssignment(_e,kt,Ht)}return Fn(_e,Ue,e)}function lc(_e){if(r_(_e,me)){const kt=sn(_e.name,_e.objectAssignmentInitializer),Ht=ct(_e.objectAssignmentInitializer,Z=>Fe(Z,kt),yt);return t.updateShorthandPropertyAssignment(_e,_e.name,Ht)}return Fn(_e,Ue,e)}function Zc(_e){if(Id(_e.expression)){const kt=La(_e.expression);return t.updateSpreadAssignment(_e,kt)}return Fn(_e,Ue,e)}function Rs(_e){return R.assertNode(_e,FD),dx(_e)?Zc(_e):l_(_e)?lc(_e):$c(_e)?$d(_e):Fn(_e,Ue,e)}function yl(_e){return Ju(_e)?t.updateArrayLiteralExpression(_e,Jn(_e.elements,ou,yt)):t.updateObjectLiteralExpression(_e,Jn(_e.properties,Rs,Iy))}function nl(_e,kt,Ht){const Z=Cl(kt),st=ce.get(Z);if(st){const At=z,fn=te;z=st,te=Ae,Ae=!Rl(Z)||!(z_(Z)&32),ne(_e,kt,Ht),Ae=te,te=fn,z=At;return}switch(kt.kind){case 215:if(Xs(Z)||Eo(kt)&524288)break;case 259:case 173:case 174:case 175:case 171:case 169:{const At=z,fn=te;z=void 0,te=Ae,Ae=!1,ne(_e,kt,Ht),Ae=te,te=fn,z=At;return}case 164:{const At=z,fn=Ae;z=z==null?void 0:z.previous,Ae=te,ne(_e,kt,Ht),Ae=fn,z=At;return}}ne(_e,kt,Ht)}function Ys(_e,kt){return kt=X(_e,kt),_e===1?rn(kt):kt}function rn(_e){switch(_e.kind){case 79:return wu(_e);case 108:return zl(_e)}return _e}function zl(_e){if(ue&2&&(z!=null&&z.data)){const{facts:kt,classConstructor:Ht,classThis:Z}=z.data;if(kt&1&&C)return t.createParenthesizedExpression(t.createVoidZero());const st=Ae&&Z!=null?Z:Ht;if(st)return ht(zr(t.cloneNode(st),_e),_e)}return _e}function wu(_e){return Zu(_e)||_e}function Zu(_e){if(ue&1&&d.getNodeCheckFlags(_e)&2097152){const kt=d.getReferencedValueDeclaration(_e);if(kt){const Ht=re[kt.id];if(Ht){const Z=t.cloneNode(Ht);return ps(Z,_e),Xc(Z,_e),Z}}}}}function EFe(e,t){return O.createAssignment(e,O.createObjectLiteralExpression([O.createPropertyAssignment("value",t||O.createVoidZero())]))}function TFe(e,t,r){return O.createCallExpression(O.createPropertyAccessExpression(r,"set"),void 0,[e,t||O.createVoidZero()])}function SFe(e,t){return O.createCallExpression(O.createPropertyAccessExpression(t,"add"),void 0,[e])}function xFe(e){return!AS(e)&&e.escapedText==="#constructor"}function AFe(e){return Ri(e.left)&&e.operatorToken.kind===101}var CFe=b({"src/compiler/transformers/classFields.ts"(){"use strict";Oa()}});function Cve(e){const{hoistVariableDeclaration:t}=e,r=e.getEmitResolver(),i=e.getCompilerOptions(),o=ns(i),s=A_(i,"strictNullChecks");let c,_;return{serializeTypeNode:(re,be)=>d(re,I,be),serializeTypeOfNode:(re,be)=>d(re,g,be),serializeParameterTypesOfNode:(re,be,ae)=>d(re,T,be,ae),serializeReturnTypeOfNode:(re,be)=>d(re,L,be)};function d(re,be,ae,z){const ce=c,he=_;c=re.currentLexicalScope,_=re.currentNameScope;const Ee=z===void 0?be(ae):be(ae,z);return c=ce,_=he,Ee}function v(re){const be=r.getAllAccessorDeclarations(re);return be.setAccessor&&ape(be.setAccessor)||be.getAccessor&&Lp(be.getAccessor)}function g(re){switch(re.kind){case 169:case 166:return I(re.type);case 175:case 174:return I(v(re));case 260:case 228:case 171:return O.createIdentifier("Function");default:return O.createVoidZero()}}function T(re,be){const ae=_i(re)?Dh(re):Ya(re)&&b_(re.body)?re:void 0,z=[];if(ae){const ce=C(ae,be),he=ce.length;for(let Ee=0;Ee<he;Ee++){const Ae=ce[Ee];Ee===0&&We(Ae.name)&&Ae.name.escapedText==="this"||(Ae.dotDotDotToken?z.push(I(Fq(Ae.type))):z.push(g(Ae)))}}return O.createArrayLiteralExpression(z)}function C(re,be){if(be&&re.kind===174){const{setAccessor:ae}=UT(be.members,re);if(ae)return ae.parameters}return re.parameters}function L(re){return Ya(re)&&re.type?I(re.type):bC(re)?O.createIdentifier("Promise"):O.createVoidZero()}function I(re){if(re===void 0)return O.createIdentifier("Object");switch(re=$q(re),re.kind){case 114:case 155:case 144:return O.createVoidZero();case 181:case 182:return O.createIdentifier("Function");case 185:case 186:return O.createIdentifier("Array");case 179:return re.assertsModifier?O.createVoidZero():O.createIdentifier("Boolean");case 134:return O.createIdentifier("Boolean");case 200:case 152:return O.createIdentifier("String");case 149:return O.createIdentifier("Object");case 198:return M(re.literal);case 148:return O.createIdentifier("Number");case 160:return ue("BigInt",7);case 153:return ue("Symbol",2);case 180:return j(re);case 190:return k(re.types,!0);case 189:return k(re.types,!1);case 191:return k([re.trueType,re.falseType],!1);case 195:if(re.operator===146)return I(re.type);break;case 183:case 196:case 197:case 184:case 131:case 157:case 194:case 202:break;case 315:case 316:case 320:case 321:case 322:break;case 317:case 318:case 319:return I(re.type);default:return R.failBadSyntaxKind(re)}return O.createIdentifier("Object")}function M(re){switch(re.kind){case 10:case 14:return O.createIdentifier("String");case 221:{const be=re.operand;switch(be.kind){case 8:case 9:return M(be);default:return R.failBadSyntaxKind(be)}}case 8:return O.createIdentifier("Number");case 9:return ue("BigInt",7);case 110:case 95:return O.createIdentifier("Boolean");case 104:return O.createVoidZero();default:return R.failBadSyntaxKind(re)}}function k(re,be){let ae;for(let z of re){if(z=$q(z),z.kind===144){if(be)return O.createVoidZero();continue}if(z.kind===157){if(!be)return O.createIdentifier("Object");continue}if(z.kind===131)return O.createIdentifier("Object");if(!s&&(v1(z)&&z.literal.kind===104||z.kind===155))continue;const ce=I(z);if(We(ce)&&ce.escapedText==="Object")return ce;if(ae){if(!U(ae,ce))return O.createIdentifier("Object")}else ae=ce}return ae!=null?ae:O.createVoidZero()}function U(re,be){return Ll(re)?Ll(be):We(re)?We(be)&&re.escapedText===be.escapedText:Br(re)?Br(be)&&U(re.expression,be.expression)&&U(re.name,be.name):ix(re)?ix(be)&&C_(re.expression)&&re.expression.text==="0"&&C_(be.expression)&&be.expression.text==="0":Wo(re)?Wo(be)&&re.text===be.text:HC(re)?HC(be)&&U(re.expression,be.expression):qd(re)?qd(be)&&U(re.expression,be.expression):qC(re)?qC(be)&&U(re.condition,be.condition)&&U(re.whenTrue,be.whenTrue)&&U(re.whenFalse,be.whenFalse):Tr(re)?Tr(be)&&re.operatorToken.kind===be.operatorToken.kind&&U(re.left,be.left)&&U(re.right,be.right):!1}function j(re){const be=r.getTypeReferenceSerializationKind(re.typeName,_!=null?_:c);switch(be){case 0:if(rr(re,ce=>ce.parent&&VC(ce.parent)&&(ce.parent.trueType===ce||ce.parent.falseType===ce)))return O.createIdentifier("Object");const ae=ee(re.typeName),z=O.createTempVariable(t);return O.createConditionalExpression(O.createTypeCheck(O.createAssignment(z,ae),"function"),void 0,z,void 0,O.createIdentifier("Object"));case 1:return X(re.typeName);case 2:return O.createVoidZero();case 4:return ue("BigInt",7);case 6:return O.createIdentifier("Boolean");case 3:return O.createIdentifier("Number");case 5:return O.createIdentifier("String");case 7:return O.createIdentifier("Array");case 8:return ue("Symbol",2);case 10:return O.createIdentifier("Function");case 9:return O.createIdentifier("Promise");case 11:return O.createIdentifier("Object");default:return R.assertNever(be)}}function H(re,be){return O.createLogicalAnd(O.createStrictInequality(O.createTypeOfExpression(re),O.createStringLiteral("undefined")),be)}function ee(re){if(re.kind===79){const z=X(re);return H(z,z)}if(re.left.kind===79)return H(X(re.left),X(re));const be=ee(re.left),ae=O.createTempVariable(t);return O.createLogicalAnd(O.createLogicalAnd(be.left,O.createStrictInequality(O.createAssignment(ae,be.right),O.createVoidZero())),O.createPropertyAccessExpression(ae,re.right))}function X(re){switch(re.kind){case 79:const be=jo(ht(th.cloneNode(re),re),re.parent);return be.original=void 0,jo(be,Ea(c)),be;case 163:return ne(re)}}function ne(re){return O.createPropertyAccessExpression(X(re.left),re.right)}function P(re){return O.createConditionalExpression(O.createTypeCheck(O.createIdentifier(re),"function"),void 0,O.createIdentifier(re),void 0,O.createIdentifier("Object"))}function ue(re,be){return o<be?P(re):O.createIdentifier(re)}}var LFe=b({"src/compiler/transformers/typeSerializer.ts"(){"use strict";Oa()}});function Lve(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),c=ns(s),_=e.onSubstituteNode;e.onSubstituteNode=lt;let d;return rp(e,v);function v(nt){const ot=Fn(nt,T,e);return Oy(ot,e.readEmitHelpers()),ot}function g(nt){return qu(nt)?void 0:nt}function T(nt){if(!(nt.transformFlags&33554432))return nt;switch(nt.kind){case 167:return;case 260:return C(nt);case 228:return H(nt);case 173:return ee(nt);case 171:return ne(nt);case 175:return ue(nt);case 174:return P(nt);case 169:return re(nt);case 166:return be(nt);default:return Fn(nt,T,e)}}function C(nt){if(!(Vb(!0,nt)||mk(!0,nt)))return Fn(nt,T,e);const ot=Vb(!0,nt)?j(nt,nt.name):U(nt,nt.name);return ot.length>1&&(ot.push(t.createEndOfDeclarationMarker(nt)),sr(ot[0],Eo(ot[0])|8388608)),Om(ot)}function L(nt){return!!(nt.transformFlags&536870912)}function I(nt){return Dt(nt,L)}function M(nt){for(const ot of nt.members){if(!_x(ot))continue;const sn=Y9(ot,nt,!0);if(Dt(sn==null?void 0:sn.decorators,L)||Dt(sn==null?void 0:sn.parameters,I))return!0}return!1}function k(nt,ot){let sn=[];return ce(sn,nt,!1),ce(sn,nt,!0),M(nt)&&(ot=ht(t.createNodeArray([...ot,t.createClassStaticBlockDeclaration(t.createBlock(sn,!0))]),ot),sn=void 0),{decorationStatements:sn,members:ot}}function U(nt,ot){const sn=Jn(nt.modifiers,g,po),pn=Jn(nt.heritageClauses,T,Jd);let gn=Jn(nt.members,T,qc),jn=[];({members:gn,decorationStatements:jn}=k(nt,gn));const Ln=t.updateClassDeclaration(nt,sn,ot,void 0,pn,gn);return xi([Ln],jn)}function j(nt,ot){const sn=sm(nt),pn=$e(nt),gn=c<=2?t.getInternalName(nt,!1,!0):t.getLocalName(nt,!1,!0),jn=Jn(nt.heritageClauses,T,Jd);let Ln=Jn(nt.members,T,qc),Zt=[];({members:Ln,decorationStatements:Zt}=k(nt,Ln));const pr=t.createClassExpression(void 0,ot&&Ll(ot)?void 0:ot,void 0,jn,Ln);zr(pr,nt),ht(pr,sn);const Ii=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(gn,void 0,void 0,pn?t.createAssignment(pn,pr):pr)],1));zr(Ii,nt),ht(Ii,sn),Xc(Ii,nt);const ea=[Ii];return xi(ea,Zt),Ze(ea,nt),ea}function H(nt){return t.updateClassExpression(nt,Jn(nt.modifiers,g,po),nt.name,void 0,Jn(nt.heritageClauses,T,Jd),Jn(nt.members,T,qc))}function ee(nt){return t.updateConstructorDeclaration(nt,Jn(nt.modifiers,g,po),Jn(nt.parameters,T,Ba),ct(nt.body,T,fo))}function X(nt,ot){return nt!==ot&&(Xc(nt,ot),ps(nt,sm(ot))),nt}function ne(nt){return X(t.updateMethodDeclaration(nt,Jn(nt.modifiers,g,po),nt.asteriskToken,R.checkDefined(ct(nt.name,T,bl)),void 0,void 0,Jn(nt.parameters,T,Ba),void 0,ct(nt.body,T,fo)),nt)}function P(nt){return X(t.updateGetAccessorDeclaration(nt,Jn(nt.modifiers,g,po),R.checkDefined(ct(nt.name,T,bl)),Jn(nt.parameters,T,Ba),void 0,ct(nt.body,T,fo)),nt)}function ue(nt){return X(t.updateSetAccessorDeclaration(nt,Jn(nt.modifiers,g,po),R.checkDefined(ct(nt.name,T,bl)),Jn(nt.parameters,T,Ba),ct(nt.body,T,fo)),nt)}function re(nt){if(!(nt.flags&16777216||Qr(nt,2)))return X(t.updatePropertyDeclaration(nt,Jn(nt.modifiers,g,po),R.checkDefined(ct(nt.name,T,bl)),void 0,void 0,ct(nt.initializer,T,yt)),nt)}function be(nt){const ot=t.updateParameterDeclaration(nt,Uhe(t,nt.modifiers),nt.dotDotDotToken,R.checkDefined(ct(nt.name,T,Ch)),void 0,void 0,ct(nt.initializer,T,yt));return ot!==nt&&(Xc(ot,nt),ht(ot,sm(nt)),ps(ot,sm(nt)),sr(ot.name,64)),ot}function ae(nt){return e4(nt.expression,"___metadata")}function z(nt){if(!nt)return;const{false:ot,true:sn}=jue(nt.decorators,ae),pn=[];return xi(pn,Pt(ot,Ue)),xi(pn,ji(nt.parameters,Je)),xi(pn,Pt(sn,Ue)),pn}function ce(nt,ot,sn){xi(nt,Pt(Ae(ot,sn),pn=>t.createExpressionStatement(pn)))}function he(nt,ot,sn){return eR(!0,nt,sn)&&ot===Xa(nt)}function Ee(nt,ot){return ur(nt.members,sn=>he(sn,ot,nt))}function Ae(nt,ot){const sn=Ee(nt,ot);let pn;for(const gn of sn)pn=Pn(pn,te(nt,gn));return pn}function te(nt,ot){const sn=Y9(ot,nt,!0),pn=z(sn);if(!pn)return;const gn=Ge(nt,ot),jn=Fe(ot,!Qr(ot,2)),Ln=c>0?ro(ot)&&!qm(ot)?t.createVoidZero():t.createNull():void 0,Zt=r().createDecorateHelper(pn,gn,jn,Ln);return sr(Zt,3072),ps(Zt,sm(ot)),Zt}function Ze(nt,ot){const sn=je(ot);sn&&nt.push(zr(t.createExpressionStatement(sn),ot))}function je(nt){const ot=jY(nt),sn=z(ot);if(!sn)return;const pn=d&&d[Nl(nt)],gn=c<=2?t.getInternalName(nt,!1,!0):t.getLocalName(nt,!1,!0),jn=r().createDecorateHelper(sn,gn),Ln=t.createAssignment(gn,pn?t.createAssignment(pn,jn):jn);return sr(Ln,3072),ps(Ln,sm(nt)),Ln}function Ue(nt){return R.checkDefined(ct(nt.expression,T,yt))}function Je(nt,ot){let sn;if(nt){sn=[];for(const pn of nt){const gn=r().createParamHelper(Ue(pn),ot);ht(gn,pn.expression),sr(gn,3072),sn.push(gn)}}return sn}function Fe(nt,ot){const sn=nt.name;return Ri(sn)?t.createIdentifier(""):Cs(sn)?ot&&!pm(sn.expression)?t.getGeneratedNameForNode(sn):sn.expression:We(sn)?t.createStringLiteral(Pr(sn)):t.cloneNode(sn)}function Be(){d||(e.enableSubstitution(79),d=[])}function $e(nt){if(o.getNodeCheckFlags(nt)&1048576){Be();const ot=t.createUniqueName(nt.name&&!Ll(nt.name)?Pr(nt.name):"default");return d[Nl(nt)]=ot,i(ot),ot}}function ze(nt){return t.createPropertyAccessExpression(t.getDeclarationName(nt),"prototype")}function Ge(nt,ot){return Xa(ot)?t.getDeclarationName(nt):ze(nt)}function lt(nt,ot){return ot=_(nt,ot),nt===1?Ct(ot):ot}function Ct(nt){switch(nt.kind){case 79:return bt(nt)}return nt}function bt(nt){var ot;return(ot=zt(nt))!=null?ot:nt}function zt(nt){if(d&&o.getNodeCheckFlags(nt)&2097152){const ot=o.getReferencedValueDeclaration(nt);if(ot){const sn=d[ot.id];if(sn){const pn=t.cloneNode(sn);return ps(pn,nt),Xc(pn,nt),pn}}}}}var IFe=b({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";Oa()}});function Ive(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e;let c,_,d,v,g,T;return rp(e,C);function C(de){c=void 0,T=!1;const mt=Fn(de,P,e);return Oy(mt,e.readEmitHelpers()),T&&(JS(mt,32),T=!1),mt}function L(){switch(_=void 0,d=void 0,v=void 0,c==null?void 0:c.kind){case"class":_=c.classInfo;break;case"class-element":_=c.next.classInfo,d=c.classThis,v=c.classSuper;break;case"name":const de=c.next.next.next;(de==null?void 0:de.kind)==="class-element"&&(_=de.next.classInfo,d=de.classThis,v=de.classSuper);break}}function I(de){c={kind:"class",next:c,classInfo:de,savedPendingExpressions:g},g=void 0,L()}function M(){R.assert((c==null?void 0:c.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${c==null?void 0:c.kind}' instead.`),g=c.savedPendingExpressions,c=c.next,L()}function k(de){var mt,Jt;R.assert((c==null?void 0:c.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${c==null?void 0:c.kind}' instead.`),c={kind:"class-element",next:c},(Rl(de)||ro(de)&&Tc(de))&&(c.classThis=(mt=c.next.classInfo)==null?void 0:mt.classThis,c.classSuper=(Jt=c.next.classInfo)==null?void 0:Jt.classSuper),L()}function U(){var de;R.assert((c==null?void 0:c.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${c==null?void 0:c.kind}' instead.`),R.assert(((de=c.next)==null?void 0:de.kind)==="class","Incorrect value for top.next.kind.",()=>{var mt;return`Expected top.next.kind to be 'class' but got '${(mt=c.next)==null?void 0:mt.kind}' instead.`}),c=c.next,L()}function j(){R.assert((c==null?void 0:c.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${c==null?void 0:c.kind}' instead.`),c={kind:"name",next:c},L()}function H(){R.assert((c==null?void 0:c.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${c==null?void 0:c.kind}' instead.`),c=c.next,L()}function ee(){(c==null?void 0:c.kind)==="other"?(R.assert(!g),c.depth++):(c={kind:"other",next:c,depth:0,savedPendingExpressions:g},g=void 0,L())}function X(){R.assert((c==null?void 0:c.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${c==null?void 0:c.kind}' instead.`),c.depth>0?(R.assert(!g),c.depth--):(g=c.savedPendingExpressions,c=c.next,L())}function ne(de){return!!(de.transformFlags&33554432)||!!d&&!!(de.transformFlags&16384)||!!d&&!!v&&!!(de.transformFlags&134217728)}function P(de){if(!ne(de))return de;switch(de.kind){case 167:return R.fail("Use `modifierVisitor` instead.");case 260:return Ue(de);case 228:return Je(de,void 0);case 173:case 169:case 172:return R.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 166:return jn(de);case 223:return Ii(de,!1);case 299:return Wt(de);case 257:return In(de);case 205:return Bn(de);case 274:return gt(de);case 108:return nt(de);case 245:return Zt(de);case 241:return pr(de);case 357:return ta(de,!1);case 214:return Ot(de,!1,void 0);case 356:return Le(de,!1,void 0);case 210:return ot(de);case 212:return sn(de);case 221:case 222:return ea(de,!1);case 208:return pn(de);case 209:return gn(de);case 164:return yn(de);case 171:case 175:case 174:case 215:case 259:{ee();const mt=Fn(de,ue,e);return X(),mt}default:return Fn(de,ue,e)}}function ue(de){switch(de.kind){case 167:return;default:return P(de)}}function re(de){switch(de.kind){case 167:return;default:return de}}function be(de){switch(de.kind){case 173:return Be(de);case 171:return Ge(de);case 174:return lt(de);case 175:return Ct(de);case 169:return zt(de);case 172:return bt(de);default:return P(de)}}function ae(de,mt){switch(de.kind){case 356:return Le(de,!1,mt);case 214:return Ot(de,!1,mt);case 228:return Je(de,mt);default:return P(de)}}function z(de){switch(de.kind){case 221:case 222:return ea(de,!0);case 223:return Ii(de,!0);case 357:return ta(de,!0);case 214:return Ot(de,!0,void 0);default:return P(de)}}function ce(de){let mt=de.name&&We(de.name)&&!Ll(de.name)?Pr(de.name):de.name&&Ri(de.name)&&!Ll(de.name)?Pr(de.name).slice(1):de.name&&Wo(de.name)&&W_(de.name.text,99)?de.name.text:_i(de)?"class":"member";return jv(de)&&(mt=`get_${mt}`),ky(de)&&(mt=`set_${mt}`),de.name&&Ri(de.name)&&(mt=`private_${mt}`),Xa(de)&&(mt=`static_${mt}`),"_"+mt}function he(de,mt){return t.createUniqueName(`${ce(de)}_${mt}`,24)}function Ee(de,mt){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(de,void 0,void 0,mt)],1))}function Ae(de){let mt,Jt,at=!1,fe=!1,Te=!1;for(const Y of de.members)if(Rfe(Y)&&eR(!1,Y,de)&&(Tc(Y)?Jt!=null||(Jt=t.createUniqueName("_staticExtraInitializers",16)):mt!=null||(mt=t.createUniqueName("_instanceExtraInitializers",16))),Rl(Y)?at=!0:ro(Y)&&(Tc(Y)?at||(at=!!Y.initializer||i_(Y)):fe||(fe=!Lq(Y))),(od(Y)||df(Y))&&Tc(Y)&&(Te=!0),Jt&&mt&&at&&fe&&Te)break;return{class:de,instanceExtraInitializersName:mt,staticExtraInitializersName:Jt,hasStaticInitializers:at,hasNonAmbientInstanceFields:fe,hasStaticPrivateClassElements:Te}}function te(de){for(const mt of de.members)if((Rl(mt)||ro(mt)&&Tc(mt))&&mt.transformFlags&134217728)return!0;return!1}function Ze(de,mt){var Jt,at,fe,Te,Y;i();const Ne=(Jt=de.name)!=null?Jt:t.getGeneratedNameForNode(de),J=Ae(de),wt=[];let Et,ut,nn,ir,ai=!1;const gi=me(jY(de));if(gi&&(J.classDecoratorsName=t.createUniqueName("_classDecorators",16),J.classDescriptorName=t.createUniqueName("_classDescriptor",16),J.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",16),J.classThis=t.createUniqueName("_classThis",16),wt.push(Ee(J.classDecoratorsName,t.createArrayLiteralExpression(gi)),Ee(J.classDescriptorName),Ee(J.classExtraInitializersName,t.createArrayLiteralExpression()),Ee(J.classThis)),J.hasStaticPrivateClassElements&&(ai=!0,T=!0)),gi&&te(de)){const Hi=TR(de.heritageClauses,94),$r=Hi&&tu(Hi.types),ls=$r&&ct($r.expression,P,yt);if(ls){J.classSuper=t.createUniqueName("_classSuper",16);const mi=Cu(ls),fa=Ku(mi)&&!mi.name||Us(mi)&&!mi.name||Xs(mi)?t.createComma(t.createNumericLiteral(0),ls):ls;wt.push(Ee(J.classSuper,fa));const wn=t.updateExpressionWithTypeArguments($r,J.classSuper,void 0),pa=t.updateHeritageClause(Hi,[wn]);ir=t.createNodeArray([pa])}}else ir=Jn(de.heritageClauses,P,Jd);const ui=(at=J.classThis)!=null?at:t.createThis();if(!((fe=Cl(de,_i))!=null&&fe.name)&&(gi||!Wo(mt)||!Uq(mt))){const Hi=r().createSetFunctionNameHelper(t.createThis(),mt);Et=Pn(Et,t.createExpressionStatement(Hi))}I(J);let go=Jn(de.members,be,qc);if(g){let Hi;for(let $r of g){$r=ct($r,function mi(fa){if(!(fa.transformFlags&16384))return fa;switch(fa.kind){case 108:return Hi||(Hi=t.createUniqueName("_outerThis",16),wt.unshift(Ee(Hi,t.createThis()))),Hi;default:return Fn(fa,mi,e)}},yt);const ls=t.createExpressionStatement($r);Et=Pn(Et,ls)}g=void 0}if(M(),J.instanceExtraInitializersName&&!Dh(de)){const Hi=Fe(de,J);if(Hi){const $r=am(de),ls=!!($r&&Cu($r.expression).kind!==104),mi=[];if(ls){const wn=t.createSpreadElement(t.createIdentifier("arguments")),pa=t.createCallExpression(t.createSuper(),void 0,[wn]);mi.push(t.createExpressionStatement(pa))}xi(mi,Hi);const fa=t.createBlock(mi,!0);nn=t.createConstructorDeclaration(void 0,[],fa)}}if(J.staticExtraInitializersName&&wt.push(Ee(J.staticExtraInitializersName,t.createArrayLiteralExpression())),J.instanceExtraInitializersName&&wt.push(Ee(J.instanceExtraInitializersName,t.createArrayLiteralExpression())),J.memberInfos&&ff(J.memberInfos,(Hi,$r)=>{Xa($r)&&(wt.push(Ee(Hi.memberDecoratorsName)),Hi.memberInitializersName&&wt.push(Ee(Hi.memberInitializersName,t.createArrayLiteralExpression())),Hi.memberDescriptorName&&wt.push(Ee(Hi.memberDescriptorName)))}),J.memberInfos&&ff(J.memberInfos,(Hi,$r)=>{Xa($r)||(wt.push(Ee(Hi.memberDecoratorsName)),Hi.memberInitializersName&&wt.push(Ee(Hi.memberInitializersName,t.createArrayLiteralExpression())),Hi.memberDescriptorName&&wt.push(Ee(Hi.memberDescriptorName)))}),Et=xi(Et,J.staticNonFieldDecorationStatements),Et=xi(Et,J.nonStaticNonFieldDecorationStatements),Et=xi(Et,J.staticFieldDecorationStatements),Et=xi(Et,J.nonStaticFieldDecorationStatements),J.classDescriptorName&&J.classDecoratorsName&&J.classExtraInitializersName&&J.classThis){Et!=null||(Et=[]);const Hi=t.createPropertyAssignment("value",t.createThis()),$r=t.createObjectLiteralExpression([Hi]),ls=t.createAssignment(J.classDescriptorName,$r),mi=t.createPropertyAccessExpression(t.createThis(),"name"),fa=r().createESDecorateHelper(t.createNull(),ls,J.classDecoratorsName,{kind:"class",name:mi},t.createNull(),J.classExtraInitializersName),wn=t.createExpressionStatement(fa);ps(wn,Kv(de)),Et.push(wn);const pa=t.createPropertyAccessExpression(J.classDescriptorName,"value"),nc=t.createAssignment(J.classThis,pa),al=t.createAssignment(Ne,nc);Et.push(t.createExpressionStatement(al))}if(J.staticExtraInitializersName){const Hi=r().createRunInitializersHelper(ui,J.staticExtraInitializersName),$r=t.createExpressionStatement(Hi);ps($r,(Te=de.name)!=null?Te:Kv(de)),Et=Pn(Et,$r)}if(J.classExtraInitializersName){const Hi=r().createRunInitializersHelper(ui,J.classExtraInitializersName),$r=t.createExpressionStatement(Hi);ps($r,(Y=de.name)!=null?Y:Kv(de)),ut=Pn(ut,$r)}Et&&ut&&!J.hasStaticInitializers&&(xi(Et,ut),ut=void 0);let xo=go;if(Et){const Hi=t.createBlock(Et,!0),$r=t.createClassStaticBlockDeclaration(Hi);ai&&s6($r,32),xo=[$r,...xo]}if(nn&&(xo=[...xo,nn]),ut){const Hi=t.createBlock(ut,!0),$r=t.createClassStaticBlockDeclaration(Hi);xo=[...xo,$r]}xo!==go&&(go=ht(t.createNodeArray(xo),go));const oo=o();let da;if(gi){da=t.createClassExpression(void 0,void 0,void 0,ir,go);const Hi=t.createVariableDeclaration(Ne,void 0,void 0,da),$r=t.createVariableDeclarationList([Hi]),ls=J.classThis?t.createAssignment(Ne,J.classThis):Ne;wt.push(t.createVariableStatement(void 0,$r),t.createReturnStatement(ls))}else da=t.createClassExpression(void 0,de.name,void 0,ir,go),wt.push(t.createReturnStatement(da));if(ai){JS(da,32);for(const Hi of da.members)(od(Hi)||df(Hi))&&Tc(Hi)&&JS(Hi,32)}return zr(da,de),ud(da).classThis=J.classThis,t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(wt,oo))}function je(de){return Vb(!1,de)||mk(!1,de)}function Ue(de){var mt;if(je(de))if(Qr(de,1)&&Qr(de,1024)){const Jt=(mt=Cl(de,_i))!=null?mt:de,at=Jt.name?t.createStringLiteralFromNode(Jt.name):t.createStringLiteral("default"),fe=Ze(de,at),Te=t.createExportDefault(fe);return zr(Te,de),Xc(Te,Ym(de)),ps(Te,Kv(de)),Te}else{R.assertIsDefined(de.name,"A class declaration that is not a default export must have a name.");const Jt=Ze(de,t.createStringLiteralFromNode(de.name)),at=Jn(de.modifiers,re,po),fe=t.createVariableDeclaration(de.name,void 0,void 0,Jt),Te=t.createVariableDeclarationList([fe],1),Y=t.createVariableStatement(at,Te);return zr(Y,de),Xc(Y,Ym(de)),Y}else{const Jt=Jn(de.modifiers,re,po),at=Jn(de.heritageClauses,P,Jd);I(void 0);const fe=Jn(de.members,be,qc);return M(),t.updateClassDeclaration(de,Jt,de.name,void 0,at,fe)}}function Je(de,mt){if(je(de)){const Jt=de.name?t.createStringLiteralFromNode(de.name):mt!=null?mt:t.createStringLiteral(""),at=Ze(de,Jt);return zr(at,de),at}else{const Jt=Jn(de.modifiers,re,po),at=Jn(de.heritageClauses,P,Jd);I(void 0);const fe=Jn(de.members,be,qc);return M(),t.updateClassExpression(de,Jt,de.name,void 0,at,fe)}}function Fe(de,mt){if(mt.instanceExtraInitializersName&&!mt.hasNonAmbientInstanceFields){const Jt=[];return Jt.push(t.createExpressionStatement(r().createRunInitializersHelper(t.createThis(),mt.instanceExtraInitializersName))),Jt}}function Be(de){k(de);const mt=Jn(de.modifiers,re,po),Jt=Jn(de.parameters,P,Ba);let at;if(de.body&&_){const fe=Fe(_.class,_);if(fe){const Te=[],Y=t.copyPrologue(de.body.statements,Te,!1,P),Ne=K9(de.body.statements,Y),J=Ne>=0?Ne+1:void 0;xi(Te,Jn(de.body.statements,P,wa,Y,J?J-Y:void 0)),xi(Te,fe),xi(Te,Jn(de.body.statements,P,wa,J)),at=t.createBlock(Te,!0),zr(at,de.body),ht(at,de.body)}}return at!=null||(at=ct(de.body,P,fo)),U(),t.updateConstructorDeclaration(de,mt,Jt,at)}function $e(de,mt){return de!==mt&&(Xc(de,mt),ps(de,Kv(mt))),de}function ze(de,mt,Jt,at){var fe,Te,Y,Ne,J,wt,Et,ut;let nn,ir,ai,gi,ui;if(!Jt){const xo=Jn(de.modifiers,re,po);return j(),mt?{referencedName:nn,name:ir}=Or(de.name):ir=Lt(de.name),H(),{modifiers:xo,referencedName:nn,name:ir,initializersName:ai,descriptorName:ui,thisArg:gi}}const Wi=me(Y9(de,Jt.class,!1)),go=Jn(de.modifiers,re,po);if(Wi){const xo=he(de,"decorators"),oo=t.createArrayLiteralExpression(Wi),da=t.createAssignment(xo,oo),Hi={memberDecoratorsName:xo};(fe=Jt.memberInfos)!=null||(Jt.memberInfos=new Map),Jt.memberInfos.set(de,Hi),g!=null||(g=[]),g.push(da);const $r=YA(de)||df(de)?Xa(de)?(Te=Jt.staticNonFieldDecorationStatements)!=null?Te:Jt.staticNonFieldDecorationStatements=[]:(Y=Jt.nonStaticNonFieldDecorationStatements)!=null?Y:Jt.nonStaticNonFieldDecorationStatements=[]:ro(de)&&!df(de)?Xa(de)?(Ne=Jt.staticFieldDecorationStatements)!=null?Ne:Jt.staticFieldDecorationStatements=[]:(J=Jt.nonStaticFieldDecorationStatements)!=null?J:Jt.nonStaticFieldDecorationStatements=[]:R.fail(),ls=Z_(de)?"getter":s_(de)?"setter":sc(de)?"method":df(de)?"accessor":ro(de)?"field":R.fail();let mi;if(We(de.name)||Ri(de.name))mi={computed:!1,name:de.name};else if(J_(de.name))mi={computed:!0,name:t.createStringLiteralFromNode(de.name)};else{const pa=de.name.expression;J_(pa)&&!We(pa)?mi={computed:!0,name:t.createStringLiteralFromNode(pa)}:(j(),{referencedName:nn,name:ir}=Or(de.name),mi={computed:!0,name:nn},H())}const fa={kind:ls,name:mi,static:Xa(de),private:Ri(de.name),access:{get:ro(de)||Z_(de)||sc(de),set:ro(de)||s_(de)}},wn=Xa(de)?(wt=Jt.staticExtraInitializersName)!=null?wt:Jt.staticExtraInitializersName=t.createUniqueName("_staticExtraInitializers",16):(Et=Jt.instanceExtraInitializersName)!=null?Et:Jt.instanceExtraInitializersName=t.createUniqueName("_instanceExtraInitializers",16);if(YA(de)){let pa;od(de)&&at&&(pa=at(de,Jn(go,jl=>li(jl,t4),po)),Hi.memberDescriptorName=ui=he(de,"descriptor"),pa=t.createAssignment(ui,pa));const nc=r().createESDecorateHelper(t.createThis(),pa!=null?pa:t.createNull(),xo,fa,t.createNull(),wn),al=t.createExpressionStatement(nc);ps(al,Kv(de)),$r.push(al)}else if(ro(de)){ai=(ut=Hi.memberInitializersName)!=null?ut:Hi.memberInitializersName=he(de,"initializers"),Xa(de)&&(gi=Jt.classThis);let pa;od(de)&&qm(de)&&at&&(pa=at(de,void 0),Hi.memberDescriptorName=ui=he(de,"descriptor"),pa=t.createAssignment(ui,pa));const nc=r().createESDecorateHelper(df(de)?t.createThis():t.createNull(),pa!=null?pa:t.createNull(),xo,fa,ai,wn),al=t.createExpressionStatement(nc);ps(al,Kv(de)),$r.push(al)}}return ir===void 0&&(j(),mt?{referencedName:nn,name:ir}=Or(de.name):ir=Lt(de.name),H()),!Dt(go)&&(sc(de)||ro(de))&&sr(ir,1024),{modifiers:go,referencedName:nn,name:ir,initializersName:ai,descriptorName:ui,thisArg:gi}}function Ge(de){k(de);const{modifiers:mt,name:Jt,descriptorName:at}=ze(de,!1,_,W);if(at)return U(),$e(jt(mt,Jt,at),de);{const fe=Jn(de.parameters,P,Ba),Te=ct(de.body,P,fo);return U(),$e(t.updateMethodDeclaration(de,mt,de.asteriskToken,Jt,void 0,void 0,fe,void 0,Te),de)}}function lt(de){k(de);const{modifiers:mt,name:Jt,descriptorName:at}=ze(de,!1,_,He);if(at)return U(),$e(cn(mt,Jt,at),de);{const fe=Jn(de.parameters,P,Ba),Te=ct(de.body,P,fo);return U(),$e(t.updateGetAccessorDeclaration(de,mt,Jt,fe,void 0,Te),de)}}function Ct(de){k(de);const{modifiers:mt,name:Jt,descriptorName:at}=ze(de,!1,_,et);if(at)return U(),$e(Sn(mt,Jt,at),de);{const fe=Jn(de.parameters,P,Ba),Te=ct(de.body,P,fo);return U(),$e(t.updateSetAccessorDeclaration(de,mt,Jt,fe,Te),de)}}function bt(de){k(de),_&&(_.hasStaticInitializers=!0);const mt=Fn(de,P,e);return U(),mt}function zt(de){k(de),R.assert(!Lq(de),"Not yet implemented.");const mt=r_(de,Ln),{modifiers:Jt,name:at,referencedName:fe,initializersName:Te,descriptorName:Y,thisArg:Ne}=ze(de,mt,_,qm(de)?Ye:void 0);i();let J=fe?ct(de.initializer,Et=>ae(Et,fe),yt):ct(de.initializer,P,yt);Te&&(J=r().createRunInitializersHelper(Ne!=null?Ne:t.createThis(),Te,J!=null?J:t.createVoidZero())),!Xa(de)&&(_!=null&&_.instanceExtraInitializersName)&&!(_!=null&&_.hasInjectedInstanceInitializers)&&(_.hasInjectedInstanceInitializers=!0,J!=null||(J=t.createVoidZero()),J=t.createParenthesizedExpression(t.createComma(r().createRunInitializersHelper(t.createThis(),_.instanceExtraInitializersName),J))),Xa(de)&&_&&J&&(_.hasStaticInitializers=!0);const wt=o();if(Dt(wt)&&(J=t.createImmediatelyInvokedArrowFunction([...wt,t.createReturnStatement(J)])),U(),qm(de)&&Y){const Et=Ym(de),ut=y1(de),nn=de.name;let ir=nn,ai=nn;if(Cs(nn)&&!pm(nn.expression)){const xo=n9(nn);if(xo)ir=t.updateComputedPropertyName(nn,ct(nn.expression,P,yt)),ai=t.updateComputedPropertyName(nn,xo.left);else{const oo=t.createTempVariable(s);ps(oo,nn.expression);const da=ct(nn.expression,P,yt),Hi=t.createAssignment(oo,da);ps(Hi,nn.expression),ir=t.updateComputedPropertyName(nn,Hi),ai=t.updateComputedPropertyName(nn,oo)}}const gi=Jn(Jt,xo=>xo.kind!==127?xo:void 0,po),ui=EX(t,de,gi,J);zr(ui,de),sr(ui,3072),ps(ui,ut),ps(ui.name,de.name);const Wi=cn(gi,ir,Y);zr(Wi,de),Xc(Wi,Et),ps(Wi,ut);const go=Sn(gi,ai,Y);return zr(go,de),sr(go,3072),ps(go,ut),[ui,Wi,go]}return $e(t.updatePropertyDeclaration(de,Jt,at,void 0,void 0,J),de)}function nt(de){return d!=null?d:de}function ot(de){if(gd(de.expression)&&d){const mt=ct(de.expression,P,yt),Jt=Jn(de.arguments,P,yt),at=t.createFunctionCallCall(mt,d,Jt);return zr(at,de),ht(at,de),at}return Fn(de,P,e)}function sn(de){if(gd(de.tag)&&d){const mt=ct(de.tag,P,yt),Jt=t.createFunctionBindCall(mt,d,[]);zr(Jt,de),ht(Jt,de);const at=ct(de.template,P,$A);return t.updateTaggedTemplateExpression(de,Jt,void 0,at)}return Fn(de,P,e)}function pn(de){if(gd(de)&&We(de.name)&&d&&v){const mt=t.createStringLiteralFromNode(de.name),Jt=t.createReflectGetCall(v,mt,d);return zr(Jt,de.expression),ht(Jt,de.expression),Jt}return Fn(de,P,e)}function gn(de){if(gd(de)&&d&&v){const mt=ct(de.argumentExpression,P,yt),Jt=t.createReflectGetCall(v,mt,d);return zr(Jt,de.expression),ht(Jt,de.expression),Jt}return Fn(de,P,e)}function jn(de){let mt;if(r_(de,Ln)){const Jt=Er(de.name,de.initializer),at=ct(de.name,P,Ch),fe=ct(de.initializer,Te=>ae(Te,Jt),yt);mt=t.updateParameterDeclaration(de,void 0,void 0,at,void 0,void 0,fe)}else mt=t.updateParameterDeclaration(de,void 0,de.dotDotDotToken,ct(de.name,P,Ch),void 0,void 0,ct(de.initializer,P,yt));return mt!==de&&(Xc(mt,de),ht(mt,sm(de)),ps(mt,sm(de)),sr(mt.name,64)),mt}function Ln(de){return Ku(de)&&!de.name&&je(de)}function Zt(de){return t.updateForStatement(de,ct(de.initializer,z,rm),ct(de.condition,P,yt),ct(de.incrementor,z,yt),L_(de.statement,P,e))}function pr(de){return Fn(de,z,e)}function Ii(de,mt){if(Ry(de)){const Jt=Oe(de.left),at=ct(de.right,P,yt);return t.updateBinaryExpression(de,Jt,de.operatorToken,at)}if(cd(de)){if(r_(de,Ln)){const Jt=Er(de.left,de.right),at=ct(de.left,P,yt),fe=ct(de.right,Te=>ae(Te,Jt),yt);return t.updateBinaryExpression(de,at,de.operatorToken,fe)}if(gd(de.left)&&d&&v){let Jt=dl(de.left)?ct(de.left.argumentExpression,P,yt):We(de.left.name)?t.createStringLiteralFromNode(de.left.name):void 0;if(Jt){let at=ct(de.right,P,yt);if(_N(de.operatorToken.kind)){let Te=Jt;pm(Jt)||(Te=t.createTempVariable(s),Jt=t.createAssignment(Te,Jt));const Y=t.createReflectGetCall(v,Te,d);zr(Y,de.left),ht(Y,de.left),at=t.createBinaryExpression(Y,w4(de.operatorToken.kind),at),ht(at,de)}const fe=mt?void 0:t.createTempVariable(s);return fe&&(at=t.createAssignment(fe,at),ht(fe,de)),at=t.createReflectSetCall(v,Jt,at,d),zr(at,de),ht(at,de),fe&&(at=t.createComma(at,fe),ht(at,de)),at}}}if(de.operatorToken.kind===27){const Jt=ct(de.left,z,yt),at=ct(de.right,mt?z:P,yt);return t.updateBinaryExpression(de,Jt,de.operatorToken,at)}return Fn(de,P,e)}function ea(de,mt){if(de.operator===45||de.operator===46){const Jt=Hs(de.operand);if(gd(Jt)&&d&&v){let at=dl(Jt)?ct(Jt.argumentExpression,P,yt):We(Jt.name)?t.createStringLiteralFromNode(Jt.name):void 0;if(at){let fe=at;pm(at)||(fe=t.createTempVariable(s),at=t.createAssignment(fe,at));let Te=t.createReflectGetCall(v,fe,d);zr(Te,de),ht(Te,de);const Y=mt?void 0:t.createTempVariable(s);return Te=K5(t,de,Te,s,Y),Te=t.createReflectSetCall(v,at,Te,d),zr(Te,de),ht(Te,de),Y&&(Te=t.createComma(Te,Y),ht(Te,de)),Te}}}return Fn(de,P,e)}function ta(de,mt){const Jt=mt?fN(de.elements,z):fN(de.elements,P,z);return t.updateCommaListExpression(de,Jt)}function Or(de){if(J_(de)||Ri(de)){const Te=t.createStringLiteralFromNode(de),Y=ct(de,P,bl);return{referencedName:Te,name:Y}}if(J_(de.expression)&&!We(de.expression)){const Te=t.createStringLiteralFromNode(de.expression),Y=ct(de,P,bl);return{referencedName:Te,name:Y}}const mt=t.getGeneratedNameForNode(de);s(mt);const Jt=r().createPropKeyHelper(ct(de.expression,P,yt)),at=t.createAssignment(mt,Jt),fe=t.updateComputedPropertyName(de,pt(at));return{referencedName:mt,name:fe}}function Lt(de){return Cs(de)?yn(de):ct(de,P,bl)}function yn(de){let mt=ct(de.expression,P,yt);return pm(mt)||(mt=pt(mt)),t.updateComputedPropertyName(de,mt)}function Wt(de){if(r_(de,Ln)){const{referencedName:mt,name:Jt}=Or(de.name),at=ct(de.initializer,fe=>ae(fe,mt),yt);return t.updatePropertyAssignment(de,Jt,at)}return Fn(de,P,e)}function In(de){if(r_(de,Ln)){const mt=Er(de.name,de.initializer),Jt=ct(de.name,P,Ch),at=ct(de.initializer,fe=>ae(fe,mt),yt);return t.updateVariableDeclaration(de,Jt,void 0,void 0,at)}return Fn(de,P,e)}function Bn(de){if(r_(de,Ln)){const mt=Er(de.name,de.initializer),Jt=ct(de.propertyName,P,bl),at=ct(de.name,P,Ch),fe=ct(de.initializer,Te=>ae(Te,mt),yt);return t.updateBindingElement(de,void 0,Jt,at,fe)}return Fn(de,P,e)}function lr(de){if(Is(de)||Ju(de))return Oe(de);if(gd(de)&&d&&v){const mt=dl(de)?ct(de.argumentExpression,P,yt):We(de.name)?t.createStringLiteralFromNode(de.name):void 0;if(mt){const Jt=t.createTempVariable(void 0),at=t.createAssignmentTargetWrapper(Jt,t.createReflectSetCall(v,mt,Jt,d));return zr(at,de),ht(at,de),at}}return Fn(de,P,e)}function Oi(de){if(cd(de,!0)){const mt=lr(de.left);let Jt;if(r_(de,Ln)){const at=Er(de.left,de.right);Jt=ct(de.right,fe=>ae(fe,at),yt)}else Jt=ct(de.right,P,yt);return t.updateBinaryExpression(de,mt,de.operatorToken,Jt)}else return lr(de)}function bi(de){if(Id(de.expression)){const mt=lr(de.expression);return t.updateSpreadElement(de,mt)}return Fn(de,P,e)}function Rn(de){return R.assertNode(de,BD),Fh(de)?bi(de):Fc(de)?Fn(de,P,e):Oi(de)}function an(de){const mt=ct(de.name,P,bl);if(cd(de.initializer,!0)){const Jt=Oi(de.initializer);return t.updatePropertyAssignment(de,mt,Jt)}if(Id(de.initializer)){const Jt=lr(de.initializer);return t.updatePropertyAssignment(de,mt,Jt)}return Fn(de,P,e)}function On(de){if(r_(de,Ln)){const mt=Er(de.name,de.objectAssignmentInitializer),Jt=ct(de.name,P,We),at=ct(de.objectAssignmentInitializer,fe=>ae(fe,mt),yt);return t.updateShorthandPropertyAssignment(de,Jt,at)}return Fn(de,P,e)}function Ir(de){if(Id(de.expression)){const mt=lr(de.expression);return t.updateSpreadAssignment(de,mt)}return Fn(de,P,e)}function Hr(de){return R.assertNode(de,FD),dx(de)?Ir(de):l_(de)?On(de):$c(de)?an(de):Fn(de,P,e)}function Oe(de){if(Ju(de)){const mt=Jn(de.elements,Rn,yt);return t.updateArrayLiteralExpression(de,mt)}else{const mt=Jn(de.properties,Hr,Iy);return t.updateObjectLiteralExpression(de,mt)}}function gt(de){if(r_(de,Ln)){const mt=t.createStringLiteral(de.isExportEquals?"":"default"),Jt=Jn(de.modifiers,re,po),at=ct(de.expression,fe=>ae(fe,mt),yt);return t.updateExportAssignment(de,Jt,at)}return Fn(de,P,e)}function Ot(de,mt,Jt){const at=mt?z:Jt?Te=>ae(Te,Jt):P,fe=ct(de.expression,at,yt);return t.updateParenthesizedExpression(de,fe)}function Le(de,mt,Jt){const at=mt?z:Jt?Te=>ae(Te,Jt):P,fe=ct(de.expression,at,yt);return t.updatePartiallyEmittedExpression(de,fe)}function pt(de){return Dt(g)&&(qd(de)?(g.push(de.expression),de=t.updateParenthesizedExpression(de,t.inlineExpressions(g))):(g.push(de),de=t.inlineExpressions(g)),g=void 0),de}function me(de){if(!de)return;const mt=[];return xi(mt,Pt(de.decorators,ie)),mt}function ie(de){const mt=ct(de.expression,P,yt);return sr(mt,3072),mt}function ye(de,mt,Jt,at,fe,Te,Y){const Ne=t.createFunctionExpression(Jt,at,void 0,void 0,Te,void 0,Y!=null?Y:t.createBlock([]));zr(Ne,de),ps(Ne,Kv(de)),sr(Ne,3072);const J=fe==="get"||fe==="set"?fe:void 0,wt=t.createStringLiteralFromNode(mt,void 0),Et=r().createSetFunctionNameHelper(Ne,wt,J),ut=t.createPropertyAssignment(t.createIdentifier(fe),Et);return zr(ut,de),ps(ut,Kv(de)),sr(ut,3072),ut}function W(de,mt){return t.createObjectLiteralExpression([ye(de,de.name,mt,de.asteriskToken,"value",Jn(de.parameters,P,Ba),ct(de.body,P,fo))])}function He(de,mt){return t.createObjectLiteralExpression([ye(de,de.name,mt,void 0,"get",[],ct(de.body,P,fo))])}function et(de,mt){return t.createObjectLiteralExpression([ye(de,de.name,mt,void 0,"set",Jn(de.parameters,P,Ba),ct(de.body,P,fo))])}function Ye(de,mt){return t.createObjectLiteralExpression([ye(de,de.name,mt,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(de.name)))])),ye(de,de.name,mt,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(de.name)),t.createIdentifier("value")))]))])}function jt(de,mt,Jt){return de=Jn(de,at=>QS(at)?at:void 0,po),t.createGetAccessorDeclaration(de,mt,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(Jt,t.createIdentifier("value")))]))}function cn(de,mt,Jt){return de=Jn(de,at=>QS(at)?at:void 0,po),t.createGetAccessorDeclaration(de,mt,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(Jt,t.createIdentifier("get")),t.createThis(),[]))]))}function Sn(de,mt,Jt){return de=Jn(de,at=>QS(at)?at:void 0,po),t.createSetAccessorDeclaration(de,mt,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(Jt,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function Er(de,mt){const Jt=Cl(mt,_i);return Jt&&!Jt.name&&Qr(Jt,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(de)}}var kFe=b({"src/compiler/transformers/esDecorators.ts"(){"use strict";Oa()}});function kve(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,c=e.getEmitResolver(),_=e.getCompilerOptions(),d=ns(_);let v,g=0,T,C,L;const I=[];let M=0;const k=e.onEmitNode,U=e.onSubstituteNode;return e.onEmitNode=jn,e.onSubstituteNode=Ln,rp(e,j);function j(Lt){if(Lt.isDeclarationFile)return Lt;H(1,!1),H(2,!Cq(Lt,_));const yn=Fn(Lt,re,e);return Oy(yn,e.readEmitHelpers()),yn}function H(Lt,yn){M=yn?M|Lt:M&~Lt}function ee(Lt){return(M&Lt)!==0}function X(){return!ee(1)}function ne(){return ee(2)}function P(Lt,yn,Wt){const In=Lt&~M;if(In){H(In,!0);const Bn=yn(Wt);return H(In,!1),Bn}return yn(Wt)}function ue(Lt){return Fn(Lt,re,e)}function re(Lt){if(!(Lt.transformFlags&256))return Lt;switch(Lt.kind){case 132:return;case 220:return Ae(Lt);case 171:return P(3,Ze,Lt);case 259:return P(3,Je,Lt);case 215:return P(3,Fe,Lt);case 216:return P(1,Be,Lt);case 208:return C&&Br(Lt)&&Lt.expression.kind===106&&C.add(Lt.name.escapedText),Fn(Lt,re,e);case 209:return C&&Lt.expression.kind===106&&(L=!0),Fn(Lt,re,e);case 174:return P(3,je,Lt);case 175:return P(3,Ue,Lt);case 173:return P(3,te,Lt);case 260:case 228:return P(3,ue,Lt);default:return Fn(Lt,re,e)}}function be(Lt){if(W_e(Lt))switch(Lt.kind){case 240:return z(Lt);case 245:return Ee(Lt);case 246:return ce(Lt);case 247:return he(Lt);case 295:return ae(Lt);case 238:case 252:case 266:case 292:case 293:case 255:case 243:case 244:case 242:case 251:case 253:return Fn(Lt,be,e);default:return R.assertNever(Lt,"Unhandled node.")}return re(Lt)}function ae(Lt){const yn=new Set;$e(Lt.variableDeclaration,yn);let Wt;if(yn.forEach((In,Bn)=>{T.has(Bn)&&(Wt||(Wt=new Set(T)),Wt.delete(Bn))}),Wt){const In=T;T=Wt;const Bn=Fn(Lt,be,e);return T=In,Bn}else return Fn(Lt,be,e)}function z(Lt){if(ze(Lt.declarationList)){const yn=Ge(Lt.declarationList,!1);return yn?t.createExpressionStatement(yn):void 0}return Fn(Lt,re,e)}function ce(Lt){return t.updateForInStatement(Lt,ze(Lt.initializer)?Ge(Lt.initializer,!0):R.checkDefined(ct(Lt.initializer,re,rm)),R.checkDefined(ct(Lt.expression,re,yt)),L_(Lt.statement,be,e))}function he(Lt){return t.updateForOfStatement(Lt,ct(Lt.awaitModifier,re,HK),ze(Lt.initializer)?Ge(Lt.initializer,!0):R.checkDefined(ct(Lt.initializer,re,rm)),R.checkDefined(ct(Lt.expression,re,yt)),L_(Lt.statement,be,e))}function Ee(Lt){const yn=Lt.initializer;return t.updateForStatement(Lt,ze(yn)?Ge(yn,!1):ct(Lt.initializer,re,rm),ct(Lt.condition,re,yt),ct(Lt.incrementor,re,yt),L_(Lt.statement,be,e))}function Ae(Lt){return X()?Fn(Lt,re,e):zr(ht(t.createYieldExpression(void 0,ct(Lt.expression,re,yt)),Lt),Lt)}function te(Lt){return t.updateConstructorDeclaration(Lt,Jn(Lt.modifiers,re,po),Yl(Lt.parameters,re,e),nt(Lt))}function Ze(Lt){return t.updateMethodDeclaration(Lt,Jn(Lt.modifiers,re,il),Lt.asteriskToken,Lt.name,void 0,void 0,Yl(Lt.parameters,re,e),void 0,Jc(Lt)&2?ot(Lt):nt(Lt))}function je(Lt){return t.updateGetAccessorDeclaration(Lt,Jn(Lt.modifiers,re,il),Lt.name,Yl(Lt.parameters,re,e),void 0,nt(Lt))}function Ue(Lt){return t.updateSetAccessorDeclaration(Lt,Jn(Lt.modifiers,re,il),Lt.name,Yl(Lt.parameters,re,e),nt(Lt))}function Je(Lt){return t.updateFunctionDeclaration(Lt,Jn(Lt.modifiers,re,il),Lt.asteriskToken,Lt.name,void 0,Yl(Lt.parameters,re,e),void 0,Jc(Lt)&2?ot(Lt):Ff(Lt.body,re,e))}function Fe(Lt){return t.updateFunctionExpression(Lt,Jn(Lt.modifiers,re,po),Lt.asteriskToken,Lt.name,void 0,Yl(Lt.parameters,re,e),void 0,Jc(Lt)&2?ot(Lt):Ff(Lt.body,re,e))}function Be(Lt){return t.updateArrowFunction(Lt,Jn(Lt.modifiers,re,po),void 0,Yl(Lt.parameters,re,e),void 0,Lt.equalsGreaterThanToken,Jc(Lt)&2?ot(Lt):Ff(Lt.body,re,e))}function $e({name:Lt},yn){if(We(Lt))yn.add(Lt.escapedText);else for(const Wt of Lt.elements)Fc(Wt)||$e(Wt,yn)}function ze(Lt){return!!Lt&&Xu(Lt)&&!(Lt.flags&3)&&Lt.declarations.some(zt)}function Ge(Lt,yn){lt(Lt);const Wt=Ok(Lt);return Wt.length===0?yn?ct(t.converters.convertToAssignmentElementTarget(Lt.declarations[0].name),re,yt):void 0:t.inlineExpressions(Pt(Wt,bt))}function lt(Lt){Ie(Lt.declarations,Ct)}function Ct({name:Lt}){if(We(Lt))s(Lt);else for(const yn of Lt.elements)Fc(yn)||Ct(yn)}function bt(Lt){const yn=ps(t.createAssignment(t.converters.convertToAssignmentElementTarget(Lt.name),Lt.initializer),Lt);return R.checkDefined(ct(yn,re,yt))}function zt({name:Lt}){if(We(Lt))return T.has(Lt.escapedText);for(const yn of Lt.elements)if(!Fc(yn)&&zt(yn))return!0;return!1}function nt(Lt){R.assertIsDefined(Lt.body);const yn=C,Wt=L;C=new Set,L=!1;let In=Ff(Lt.body,re,e);const Bn=Cl(Lt,el);if(d>=2&&c.getNodeCheckFlags(Lt)&384&&(Jc(Bn)&3)!==3){if(gn(),C.size){const Oi=$9(t,c,Lt,C);I[hs(Oi)]=!0;const bi=In.statements.slice();Wm(bi,[Oi]),In=t.updateBlock(In,bi)}L&&(c.getNodeCheckFlags(Lt)&256?KS(In,p6):c.getNodeCheckFlags(Lt)&128&&KS(In,_6))}return C=yn,L=Wt,In}function ot(Lt){i();const Wt=Cl(Lt,Ya).type,In=d<2?pn(Wt):void 0,Bn=Lt.kind===216,lr=(c.getNodeCheckFlags(Lt)&512)!==0,Oi=T;T=new Set;for(const On of Lt.parameters)$e(On,T);const bi=C,Rn=L;Bn||(C=new Set,L=!1);let an;if(Bn){const On=r().createAwaiterHelper(ne(),lr,In,sn(Lt.body)),Ir=o();if(Dt(Ir)){const Hr=t.converters.convertToFunctionBlock(On);an=t.updateBlock(Hr,ht(t.createNodeArray(ba(Ir,Hr.statements)),Hr.statements))}else an=On}else{const On=[],Ir=t.copyPrologue(Lt.body.statements,On,!1,re);On.push(t.createReturnStatement(r().createAwaiterHelper(ne(),lr,In,sn(Lt.body,Ir)))),Wm(On,o());const Hr=d>=2&&c.getNodeCheckFlags(Lt)&384;if(Hr&&(gn(),C.size)){const gt=$9(t,c,Lt,C);I[hs(gt)]=!0,Wm(On,[gt])}const Oe=t.createBlock(On,!0);ht(Oe,Lt.body),Hr&&L&&(c.getNodeCheckFlags(Lt)&256?KS(Oe,p6):c.getNodeCheckFlags(Lt)&128&&KS(Oe,_6)),an=Oe}return T=Oi,Bn||(C=bi,L=Rn),an}function sn(Lt,yn){return fo(Lt)?t.updateBlock(Lt,Jn(Lt.statements,be,wa,yn)):t.converters.convertToFunctionBlock(R.checkDefined(ct(Lt,be,BM)))}function pn(Lt){const yn=Lt&&ZD(Lt);if(yn&&uf(yn)){const Wt=c.getTypeReferenceSerializationKind(yn);if(Wt===1||Wt===0)return yn}}function gn(){v&1||(v|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240))}function jn(Lt,yn,Wt){if(v&1&&ta(yn)){const In=c.getNodeCheckFlags(yn)&384;if(In!==g){const Bn=g;g=In,k(Lt,yn,Wt),g=Bn;return}}else if(v&&I[hs(yn)]){const In=g;g=0,k(Lt,yn,Wt),g=In;return}k(Lt,yn,Wt)}function Ln(Lt,yn){return yn=U(Lt,yn),Lt===1&&g?Zt(yn):yn}function Zt(Lt){switch(Lt.kind){case 208:return pr(Lt);case 209:return Ii(Lt);case 210:return ea(Lt)}return Lt}function pr(Lt){return Lt.expression.kind===106?ht(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Lt.name),Lt):Lt}function Ii(Lt){return Lt.expression.kind===106?Or(Lt.argumentExpression,Lt):Lt}function ea(Lt){const yn=Lt.expression;if(gd(yn)){const Wt=Br(yn)?pr(yn):Ii(yn);return t.createCallExpression(t.createPropertyAccessExpression(Wt,"call"),void 0,[t.createThis(),...Lt.arguments])}return Lt}function ta(Lt){const yn=Lt.kind;return yn===260||yn===173||yn===171||yn===174||yn===175}function Or(Lt,yn){return g&256?ht(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Lt]),"value"),yn):ht(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Lt]),yn)}}function $9(e,t,r,i){const o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((c,_)=>{const d=ia(_),v=[];v.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,sr(e.createPropertyAccessExpression(sr(e.createSuper(),8),d),8)))),o&&v.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(sr(e.createPropertyAccessExpression(sr(e.createSuper(),8),d),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(d,e.createObjectLiteralExpression(v)))}),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 wFe=b({"src/compiler/transformers/es2017.ts"(){"use strict";Oa()}});function wve(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,c=e.getEmitResolver(),_=e.getCompilerOptions(),d=ns(_),v=e.onEmitNode;e.onEmitNode=On;const g=e.onSubstituteNode;e.onSubstituteNode=Ir;let T=!1,C,L,I,M=0,k=0,U,j,H,ee;const X=[];return rp(e,be);function ne(me,ie){return k!==(k&~me|ie)}function P(me,ie){const ye=k;return k=(k&~me|ie)&3,ye}function ue(me){k=me}function re(me){j=Pn(j,t.createVariableDeclaration(me))}function be(me){if(me.isDeclarationFile)return me;U=me;const ie=ze(me);return Oy(ie,e.readEmitHelpers()),U=void 0,j=void 0,ie}function ae(me){return Ae(me,!1)}function z(me){return Ae(me,!0)}function ce(me){if(me.kind!==132)return me}function he(me,ie,ye,W){if(ne(ye,W)){const He=P(ye,W),et=me(ie);return ue(He),et}return me(ie)}function Ee(me){return Fn(me,ae,e)}function Ae(me,ie){if(!(me.transformFlags&128))return me;switch(me.kind){case 220:return te(me);case 226:return Ze(me);case 250:return je(me);case 253:return Ue(me);case 207:return Fe(me);case 223:return lt(me,ie);case 357:return Ct(me,ie);case 295:return bt(me);case 240:return zt(me);case 257:return nt(me);case 243:case 244:case 246:return he(Ee,me,0,2);case 247:return gn(me,void 0);case 245:return he(sn,me,0,2);case 219:return pn(me);case 173:return he(Or,me,2,1);case 171:return he(Wt,me,2,1);case 174:return he(Lt,me,2,1);case 175:return he(yn,me,2,1);case 259:return he(In,me,2,1);case 215:return he(lr,me,2,1);case 216:return he(Bn,me,2,0);case 166:return ea(me);case 241:return Be(me);case 214:return $e(me,ie);case 212:return Ge(me);case 208:return H&&Br(me)&&me.expression.kind===106&&H.add(me.name.escapedText),Fn(me,ae,e);case 209:return H&&me.expression.kind===106&&(ee=!0),Fn(me,ae,e);case 260:case 228:return he(Ee,me,2,1);default:return Fn(me,ae,e)}}function te(me){return L&2&&L&1?zr(ht(t.createYieldExpression(void 0,r().createAwaitHelper(ct(me.expression,ae,yt))),me),me):Fn(me,ae,e)}function Ze(me){if(L&2&&L&1){if(me.asteriskToken){const ie=ct(R.checkDefined(me.expression),ae,yt);return zr(ht(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(me,me.asteriskToken,ht(r().createAsyncDelegatorHelper(ht(r().createAsyncValuesHelper(ie),ie)),ie)))),me),me)}return zr(ht(t.createYieldExpression(void 0,Zt(me.expression?ct(me.expression,ae,yt):t.createVoidZero())),me),me)}return Fn(me,ae,e)}function je(me){return L&2&&L&1?t.updateReturnStatement(me,Zt(me.expression?ct(me.expression,ae,yt):t.createVoidZero())):Fn(me,ae,e)}function Ue(me){if(L&2){const ie=Bq(me);return ie.kind===247&&ie.awaitModifier?gn(ie,me):t.restoreEnclosingLabel(ct(ie,ae,wa,t.liftToBlock),me)}return Fn(me,ae,e)}function Je(me){let ie;const ye=[];for(const W of me)if(W.kind===301){ie&&(ye.push(t.createObjectLiteralExpression(ie)),ie=void 0);const He=W.expression;ye.push(ct(He,ae,yt))}else ie=Pn(ie,W.kind===299?t.createPropertyAssignment(W.name,ct(W.initializer,ae,yt)):ct(W,ae,Iy));return ie&&ye.push(t.createObjectLiteralExpression(ie)),ye}function Fe(me){if(me.transformFlags&65536){const ie=Je(me.properties);ie.length&&ie[0].kind!==207&&ie.unshift(t.createObjectLiteralExpression());let ye=ie[0];if(ie.length>1){for(let W=1;W<ie.length;W++)ye=r().createAssignHelper([ye,ie[W]]);return ye}else return r().createAssignHelper(ie)}return Fn(me,ae,e)}function Be(me){return Fn(me,z,e)}function $e(me,ie){return Fn(me,ie?z:ae,e)}function ze(me){const ie=P(2,Cq(me,_)?0:1);T=!1;const ye=Fn(me,ae,e),W=ba(ye.statements,j&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(j))]),He=t.updateSourceFile(ye,ht(t.createNodeArray(W),me.statements));return ue(ie),He}function Ge(me){return JY(e,me,ae,U,re,0)}function lt(me,ie){return Ry(me)&&O6(me.left)?i2(me,ae,e,1,!ie):me.operatorToken.kind===27?t.updateBinaryExpression(me,ct(me.left,z,yt),me.operatorToken,ct(me.right,ie?z:ae,yt)):Fn(me,ae,e)}function Ct(me,ie){if(ie)return Fn(me,z,e);let ye;for(let He=0;He<me.elements.length;He++){const et=me.elements[He],Ye=ct(et,He<me.elements.length-1?z:ae,yt);(ye||Ye!==et)&&(ye||(ye=me.elements.slice(0,He)),ye.push(Ye))}const W=ye?ht(t.createNodeArray(ye),me.elements):me.elements;return t.updateCommaListExpression(me,W)}function bt(me){if(me.variableDeclaration&&$a(me.variableDeclaration.name)&&me.variableDeclaration.name.transformFlags&65536){const ie=t.getGeneratedNameForNode(me.variableDeclaration.name),ye=t.updateVariableDeclaration(me.variableDeclaration,me.variableDeclaration.name,void 0,void 0,ie),W=lE(ye,ae,e,1);let He=ct(me.block,ae,fo);return Dt(W)&&(He=t.updateBlock(He,[t.createVariableStatement(void 0,W),...He.statements])),t.updateCatchClause(me,t.updateVariableDeclaration(me.variableDeclaration,ie,void 0,void 0,void 0),He)}return Fn(me,ae,e)}function zt(me){if(Qr(me,1)){const ie=T;T=!0;const ye=Fn(me,ae,e);return T=ie,ye}return Fn(me,ae,e)}function nt(me){if(T){const ie=T;T=!1;const ye=ot(me,!0);return T=ie,ye}return ot(me,!1)}function ot(me,ie){return $a(me.name)&&me.name.transformFlags&65536?lE(me,ae,e,1,void 0,ie):Fn(me,ae,e)}function sn(me){return t.updateForStatement(me,ct(me.initializer,z,rm),ct(me.condition,ae,yt),ct(me.incrementor,z,yt),L_(me.statement,ae,e))}function pn(me){return Fn(me,z,e)}function gn(me,ie){const ye=P(0,2);(me.initializer.transformFlags&65536||ak(me.initializer)&&O6(me.initializer))&&(me=jn(me));const W=me.awaitModifier?pr(me,ie,ye):t.restoreEnclosingLabel(Fn(me,ae,e),ie);return ue(ye),W}function jn(me){const ie=Hs(me.initializer);if(Xu(ie)||ak(ie)){let ye,W;const He=t.createTempVariable(void 0),et=[fX(t,ie,He)];return fo(me.statement)?(xi(et,me.statement.statements),ye=me.statement,W=me.statement.statements):me.statement&&(Pn(et,me.statement),ye=me.statement,W=me.statement),t.updateForOfStatement(me,me.awaitModifier,ht(t.createVariableDeclarationList([ht(t.createVariableDeclaration(He),me.initializer)],1),me.initializer),me.expression,ht(t.createBlock(ht(t.createNodeArray(et),W),!0),ye))}return me}function Ln(me,ie,ye){const W=t.createTempVariable(s),He=t.createAssignment(W,ie),et=t.createExpressionStatement(He);ps(et,me.expression);const Ye=t.createAssignment(ye,t.createFalse()),jt=t.createExpressionStatement(Ye);ps(jt,me.expression);const cn=t.createAssignment(ye,t.createTrue()),Sn=t.createExpressionStatement(cn);ps(jt,me.expression);const Er=[],de=fX(t,me.initializer,W);Er.push(ct(de,ae,wa));let mt,Jt;const at=L_(me.statement,ae,e);fo(at)?(xi(Er,at.statements),mt=at,Jt=at.statements):Er.push(at);const fe=sr(ht(t.createBlock(ht(t.createNodeArray(Er),Jt),!0),mt),864);return t.createBlock([et,jt,t.createTryStatement(fe,void 0,t.createBlock([Sn]))])}function Zt(me){return L&1?t.createYieldExpression(void 0,r().createAwaitHelper(me)):t.createAwaitExpression(me)}function pr(me,ie,ye){const W=ct(me.expression,ae,yt),He=We(W)?t.getGeneratedNameForNode(W):t.createTempVariable(void 0),et=We(W)?t.getGeneratedNameForNode(He):t.createTempVariable(void 0),Ye=t.createTempVariable(void 0),jt=t.createTempVariable(s),cn=t.createUniqueName("e"),Sn=t.getGeneratedNameForNode(cn),Er=t.createTempVariable(void 0),de=ht(r().createAsyncValuesHelper(W),me.expression),mt=t.createCallExpression(t.createPropertyAccessExpression(He,"next"),void 0,[]),Jt=t.createPropertyAccessExpression(et,"done"),at=t.createPropertyAccessExpression(et,"value"),fe=t.createFunctionCallCall(Er,He,[]);s(cn),s(Er);const Te=ye&2?t.inlineExpressions([t.createAssignment(cn,t.createVoidZero()),de]):de,Y=sr(ht(t.createForStatement(sr(ht(t.createVariableDeclarationList([t.createVariableDeclaration(Ye,void 0,void 0,t.createTrue()),ht(t.createVariableDeclaration(He,void 0,void 0,Te),me.expression),t.createVariableDeclaration(et)]),me.expression),4194304),t.inlineExpressions([t.createAssignment(et,Zt(mt)),t.createAssignment(jt,Jt),t.createLogicalNot(jt)]),void 0,Ln(me,at,Ye)),me),512);return zr(Y,me),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(Y,ie)]),t.createCatchClause(t.createVariableDeclaration(Sn),sr(t.createBlock([t.createExpressionStatement(t.createAssignment(cn,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Sn)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([sr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(Ye),t.createLogicalNot(jt)),t.createAssignment(Er,t.createPropertyAccessExpression(He,"return"))),t.createExpressionStatement(Zt(fe))),1)]),void 0,sr(t.createBlock([sr(t.createIfStatement(cn,t.createThrowStatement(t.createPropertyAccessExpression(cn,"error"))),1)]),1))]))}function Ii(me){return R.assertNode(me,Ba),ea(me)}function ea(me){return I!=null&&I.has(me)?t.updateParameterDeclaration(me,void 0,me.dotDotDotToken,$a(me.name)?t.getGeneratedNameForNode(me):me.name,void 0,void 0,void 0):me.transformFlags&65536?t.updateParameterDeclaration(me,void 0,me.dotDotDotToken,t.getGeneratedNameForNode(me),void 0,void 0,ct(me.initializer,ae,yt)):Fn(me,ae,e)}function ta(me){let ie;for(const ye of me.parameters)ie?ie.add(ye):ye.transformFlags&65536&&(ie=new Set);return ie}function Or(me){const ie=L,ye=I;L=Jc(me),I=ta(me);const W=t.updateConstructorDeclaration(me,me.modifiers,Yl(me.parameters,Ii,e),bi(me));return L=ie,I=ye,W}function Lt(me){const ie=L,ye=I;L=Jc(me),I=ta(me);const W=t.updateGetAccessorDeclaration(me,me.modifiers,ct(me.name,ae,bl),Yl(me.parameters,Ii,e),void 0,bi(me));return L=ie,I=ye,W}function yn(me){const ie=L,ye=I;L=Jc(me),I=ta(me);const W=t.updateSetAccessorDeclaration(me,me.modifiers,ct(me.name,ae,bl),Yl(me.parameters,Ii,e),bi(me));return L=ie,I=ye,W}function Wt(me){const ie=L,ye=I;L=Jc(me),I=ta(me);const W=t.updateMethodDeclaration(me,L&1?Jn(me.modifiers,ce,il):me.modifiers,L&2?void 0:me.asteriskToken,ct(me.name,ae,bl),ct(void 0,ae,$v),void 0,Yl(me.parameters,Ii,e),void 0,L&2&&L&1?Oi(me):bi(me));return L=ie,I=ye,W}function In(me){const ie=L,ye=I;L=Jc(me),I=ta(me);const W=t.updateFunctionDeclaration(me,L&1?Jn(me.modifiers,ce,po):me.modifiers,L&2?void 0:me.asteriskToken,me.name,void 0,Yl(me.parameters,Ii,e),void 0,L&2&&L&1?Oi(me):bi(me));return L=ie,I=ye,W}function Bn(me){const ie=L,ye=I;L=Jc(me),I=ta(me);const W=t.updateArrowFunction(me,me.modifiers,void 0,Yl(me.parameters,Ii,e),void 0,me.equalsGreaterThanToken,bi(me));return L=ie,I=ye,W}function lr(me){const ie=L,ye=I;L=Jc(me),I=ta(me);const W=t.updateFunctionExpression(me,L&1?Jn(me.modifiers,ce,po):me.modifiers,L&2?void 0:me.asteriskToken,me.name,void 0,Yl(me.parameters,Ii,e),void 0,L&2&&L&1?Oi(me):bi(me));return L=ie,I=ye,W}function Oi(me){i();const ie=[],ye=t.copyPrologue(me.body.statements,ie,!1,ae);Rn(ie,me);const W=H,He=ee;H=new Set,ee=!1;const et=t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(41),me.name&&t.getGeneratedNameForNode(me.name),void 0,[],void 0,t.updateBlock(me.body,W9(me.body.statements,ae,e,ye))),!!(k&1))),Ye=d>=2&&c.getNodeCheckFlags(me)&384;if(Ye){an();const cn=$9(t,c,me,H);X[hs(cn)]=!0,Wm(ie,[cn])}ie.push(et),Wm(ie,o());const jt=t.updateBlock(me.body,ie);return Ye&&ee&&(c.getNodeCheckFlags(me)&256?KS(jt,p6):c.getNodeCheckFlags(me)&128&&KS(jt,_6)),H=W,ee=He,jt}function bi(me){var ie;i();let ye=0;const W=[],He=(ie=ct(me.body,ae,BM))!=null?ie:t.createBlock([]);fo(He)&&(ye=t.copyPrologue(He.statements,W,!1,ae)),xi(W,Rn(void 0,me));const et=o();if(ye>0||Dt(W)||Dt(et)){const Ye=t.converters.convertToFunctionBlock(He,!0);return Wm(W,et),xi(W,Ye.statements.slice(ye)),t.updateBlock(Ye,ht(t.createNodeArray(W),Ye.statements))}return He}function Rn(me,ie){let ye=!1;for(const W of ie.parameters)if(ye){if($a(W.name)){if(W.name.elements.length>0){const He=lE(W,ae,e,0,t.getGeneratedNameForNode(W));if(Dt(He)){const et=t.createVariableDeclarationList(He),Ye=t.createVariableStatement(void 0,et);sr(Ye,2097152),me=Pn(me,Ye)}}else if(W.initializer){const He=t.getGeneratedNameForNode(W),et=ct(W.initializer,ae,yt),Ye=t.createAssignment(He,et),jt=t.createExpressionStatement(Ye);sr(jt,2097152),me=Pn(me,jt)}}else if(W.initializer){const He=t.cloneNode(W.name);ht(He,W.name),sr(He,96);const et=ct(W.initializer,ae,yt);cm(et,3168);const Ye=t.createAssignment(He,et);ht(Ye,W),sr(Ye,3072);const jt=t.createBlock([t.createExpressionStatement(Ye)]);ht(jt,W),sr(jt,3905);const cn=t.createTypeCheck(t.cloneNode(W.name),"undefined"),Sn=t.createIfStatement(cn,jt);Yu(Sn),ht(Sn,W),sr(Sn,2101056),me=Pn(me,Sn)}}else if(W.transformFlags&65536){ye=!0;const He=lE(W,ae,e,1,t.getGeneratedNameForNode(W),!1,!0);if(Dt(He)){const et=t.createVariableDeclarationList(He),Ye=t.createVariableStatement(void 0,et);sr(Ye,2097152),me=Pn(me,Ye)}}return me}function an(){C&1||(C|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240))}function On(me,ie,ye){if(C&1&&Le(ie)){const W=c.getNodeCheckFlags(ie)&384;if(W!==M){const He=M;M=W,v(me,ie,ye),M=He;return}}else if(C&&X[hs(ie)]){const W=M;M=0,v(me,ie,ye),M=W;return}v(me,ie,ye)}function Ir(me,ie){return ie=g(me,ie),me===1&&M?Hr(ie):ie}function Hr(me){switch(me.kind){case 208:return Oe(me);case 209:return gt(me);case 210:return Ot(me)}return me}function Oe(me){return me.expression.kind===106?ht(t.createPropertyAccessExpression(t.createUniqueName("_super",48),me.name),me):me}function gt(me){return me.expression.kind===106?pt(me.argumentExpression,me):me}function Ot(me){const ie=me.expression;if(gd(ie)){const ye=Br(ie)?Oe(ie):gt(ie);return t.createCallExpression(t.createPropertyAccessExpression(ye,"call"),void 0,[t.createThis(),...me.arguments])}return me}function Le(me){const ie=me.kind;return ie===260||ie===173||ie===171||ie===174||ie===175}function pt(me,ie){return M&256?ht(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[me]),"value"),ie):ht(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[me]),ie)}}var DFe=b({"src/compiler/transformers/es2018.ts"(){"use strict";Oa()}});function Dve(e){const t=e.factory;return rp(e,r);function r(s){return s.isDeclarationFile?s:Fn(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 295:return o(s);default:return Fn(s,i,e)}}function o(s){return s.variableDeclaration?Fn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),ct(s.block,i,fo))}}var RFe=b({"src/compiler/transformers/es2019.ts"(){"use strict";Oa()}});function Rve(e){const{factory:t,hoistVariableDeclaration:r}=e;return rp(e,i);function i(I){return I.isDeclarationFile?I:Fn(I,o,e)}function o(I){if(!(I.transformFlags&32))return I;switch(I.kind){case 210:{const M=d(I,!1);return R.assertNotNode(M,ox),M}case 208:case 209:if(xu(I)){const M=g(I,!1,!1);return R.assertNotNode(M,ox),M}return Fn(I,o,e);case 223:return I.operatorToken.kind===60?C(I):Fn(I,o,e);case 217:return L(I);default:return Fn(I,o,e)}}function s(I){R.assertNotNode(I,RM);const M=[I];for(;!I.questionDotToken&&!qT(I);)I=lo(H_(I.expression),xu),R.assertNotNode(I,RM),M.unshift(I);return{expression:I.expression,chain:M}}function c(I,M,k){const U=v(I.expression,M,k);return ox(U)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(I,U.expression),U.thisArg):t.updateParenthesizedExpression(I,U)}function _(I,M,k){if(xu(I))return g(I,M,k);let U=ct(I.expression,o,yt);R.assertNotNode(U,ox);let j;return M&&(sE(U)?j=U:(j=t.createTempVariable(r),U=t.createAssignment(j,U))),U=I.kind===208?t.updatePropertyAccessExpression(I,U,ct(I.name,o,We)):t.updateElementAccessExpression(I,U,ct(I.argumentExpression,o,yt)),j?t.createSyntheticReferenceExpression(U,j):U}function d(I,M){if(xu(I))return g(I,M,!1);if(qd(I.expression)&&xu(Hs(I.expression))){const k=c(I.expression,!0,!1),U=Jn(I.arguments,o,yt);return ox(k)?ht(t.createFunctionCallCall(k.expression,k.thisArg,U),I):t.updateCallExpression(I,k,void 0,U)}return Fn(I,o,e)}function v(I,M,k){switch(I.kind){case 214:return c(I,M,k);case 208:case 209:return _(I,M,k);case 210:return d(I,M);default:return ct(I,o,yt)}}function g(I,M,k){const{expression:U,chain:j}=s(I),H=v(H_(U),TT(j[0]),!1);let ee=ox(H)?H.thisArg:void 0,X=ox(H)?H.expression:H,ne=t.restoreOuterExpressions(U,X,8);sE(X)||(X=t.createTempVariable(r),ne=t.createAssignment(X,ne));let P=X,ue;for(let be=0;be<j.length;be++){const ae=j[be];switch(ae.kind){case 208:case 209:be===j.length-1&&M&&(sE(P)?ue=P:(ue=t.createTempVariable(r),P=t.createAssignment(ue,P))),P=ae.kind===208?t.createPropertyAccessExpression(P,ct(ae.name,o,We)):t.createElementAccessExpression(P,ct(ae.argumentExpression,o,yt));break;case 210:be===0&&ee?(Ll(ee)||(ee=t.cloneNode(ee),cm(ee,3072)),P=t.createFunctionCallCall(P,ee.kind===106?t.createThis():ee,Jn(ae.arguments,o,yt))):P=t.createCallExpression(P,void 0,Jn(ae.arguments,o,yt));break}zr(P,ae)}const re=k?t.createConditionalExpression(T(ne,X,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(P)):t.createConditionalExpression(T(ne,X,!0),void 0,t.createVoidZero(),void 0,P);return ht(re,I),ue?t.createSyntheticReferenceExpression(re,ue):re}function T(I,M,k){return t.createBinaryExpression(t.createBinaryExpression(I,t.createToken(k?36:37),t.createNull()),t.createToken(k?56:55),t.createBinaryExpression(M,t.createToken(k?36:37),t.createVoidZero()))}function C(I){let M=ct(I.left,o,yt),k=M;return sE(M)||(k=t.createTempVariable(r),M=t.createAssignment(k,M)),ht(t.createConditionalExpression(T(M,k),void 0,k,void 0,ct(I.right,o,yt)),I)}function L(I){return xu(Hs(I.expression))?zr(v(I.expression,!1,!0),I):t.updateDeleteExpression(I,ct(I.expression,o,yt))}}var NFe=b({"src/compiler/transformers/es2020.ts"(){"use strict";Oa()}});function Nve(e){const{hoistVariableDeclaration:t,factory:r}=e;return rp(e,i);function i(c){return c.isDeclarationFile?c:Fn(c,o,e)}function o(c){return c.transformFlags&16?TJ(c)?s(c):Fn(c,o,e):c}function s(c){const _=c.operatorToken,d=w4(_.kind);let v=Hs(ct(c.left,o,Id)),g=v;const T=Hs(ct(c.right,o,yt));if(ul(v)){const C=sE(v.expression),L=C?v.expression:r.createTempVariable(t),I=C?v.expression:r.createAssignment(L,v.expression);if(Br(v))g=r.createPropertyAccessExpression(L,v.name),v=r.createPropertyAccessExpression(I,v.name);else{const M=sE(v.argumentExpression),k=M?v.argumentExpression:r.createTempVariable(t);g=r.createElementAccessExpression(L,k),v=r.createElementAccessExpression(I,M?v.argumentExpression:r.createAssignment(k,v.argumentExpression))}}return r.createBinaryExpression(v,d,r.createParenthesizedExpression(r.createAssignment(g,T)))}}var OFe=b({"src/compiler/transformers/es2021.ts"(){"use strict";Oa()}});function Ove(e){return rp(e,t);function t(i){return i.isDeclarationFile?i:Fn(i,r,e)}function r(i){if(!(i.transformFlags&4))return i;switch(i.kind){default:return Fn(i,r,e)}}}var MFe=b({"src/compiler/transformers/esnext.ts"(){"use strict";Oa()}});function Mve(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let o,s;return rp(e,T);function c(){if(s.filenameDeclaration)return s.filenameDeclaration.name;const Ge=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=Ge,s.filenameDeclaration.name}function _(Ge){return i.jsx===5?"jsxDEV":Ge?"jsxs":"jsx"}function d(Ge){const lt=_(Ge);return g(lt)}function v(){return g("Fragment")}function g(Ge){var lt,Ct;const bt=Ge==="createElement"?s.importSpecifier:jP(s.importSpecifier,i),zt=(Ct=(lt=s.utilizedImplicitRuntimeImports)==null?void 0:lt.get(bt))==null?void 0:Ct.get(Ge);if(zt)return zt.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let nt=s.utilizedImplicitRuntimeImports.get(bt);nt||(nt=new Map,s.utilizedImplicitRuntimeImports.set(bt,nt));const ot=t.createUniqueName(`_${Ge}`,112),sn=t.createImportSpecifier(!1,t.createIdentifier(Ge),ot);return Hme(ot,sn),nt.set(Ge,sn),ot}function T(Ge){if(Ge.isDeclarationFile)return Ge;o=Ge,s={},s.importSpecifier=VP(i,Ge);let lt=Fn(Ge,C,e);Oy(lt,e.readEmitHelpers());let Ct=lt.statements;if(s.filenameDeclaration&&(Ct=Pb(Ct.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(const[bt,zt]of Oo(s.utilizedImplicitRuntimeImports.entries()))if(tc(Ge)){const nt=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Oo(zt.values()))),t.createStringLiteral(bt),void 0);Yv(nt,!1),Ct=Pb(Ct.slice(),nt)}else if(_f(Ge)){const nt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Oo(zt.values(),ot=>t.createBindingElement(void 0,ot.propertyName,ot.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(bt)]))],2));Yv(nt,!1),Ct=Pb(Ct.slice(),nt)}}return Ct!==lt.statements&&(lt=t.updateSourceFile(lt,Ct)),s=void 0,lt}function C(Ge){return Ge.transformFlags&2?L(Ge):Ge}function L(Ge){switch(Ge.kind){case 281:return U(Ge,!1);case 282:return j(Ge,!1);case 285:return H(Ge,!1);case 291:return ze(Ge);default:return Fn(Ge,C,e)}}function I(Ge){switch(Ge.kind){case 11:return Ze(Ge);case 291:return ze(Ge);case 281:return U(Ge,!0);case 282:return j(Ge,!0);case 285:return H(Ge,!0);default:return R.failBadSyntaxKind(Ge)}}function M(Ge){let lt=!1;for(const Ct of Ge.attributes.properties)if(XT(Ct))lt=!0;else if(lt&&fm(Ct)&&Ct.name.escapedText==="key")return!0;return!1}function k(Ge){return s.importSpecifier===void 0||M(Ge)}function U(Ge,lt){return(k(Ge.openingElement)?ue:ne)(Ge.openingElement,Ge.children,lt,Ge)}function j(Ge,lt){return(k(Ge)?ue:ne)(Ge,void 0,lt,Ge)}function H(Ge,lt){return(s.importSpecifier===void 0?be:re)(Ge.openingFragment,Ge.children,lt,Ge)}function ee(Ge){const lt=X(Ge);return lt&&t.createObjectLiteralExpression([lt])}function X(Ge){const lt=LR(Ge);if(ge(lt)===1&&!lt[0].dotDotDotToken){const bt=I(lt[0]);return bt&&t.createPropertyAssignment("children",bt)}const Ct=ua(Ge,I);return ge(Ct)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(Ct)):void 0}function ne(Ge,lt,Ct,bt){const zt=Be(Ge),nt=lt&&lt.length?X(lt):void 0,ot=$t(Ge.attributes.properties,gn=>!!gn.name&&We(gn.name)&&gn.name.escapedText==="key"),sn=ot?ur(Ge.attributes.properties,gn=>gn!==ot):Ge.attributes.properties,pn=ge(sn)?z(sn,nt):t.createObjectLiteralExpression(nt?[nt]:it);return P(zt,pn,ot,lt||it,Ct,bt)}function P(Ge,lt,Ct,bt,zt,nt){var ot;const sn=LR(bt),pn=ge(sn)>1||!!((ot=sn[0])!=null&&ot.dotDotDotToken),gn=[Ge,lt];if(Ct&&gn.push(te(Ct.initializer)),i.jsx===5){const Ln=Cl(o);if(Ln&&Ki(Ln)){Ct===void 0&&gn.push(t.createVoidZero()),gn.push(pn?t.createTrue():t.createFalse());const Zt=ll(Ln,nt.pos);gn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",c()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Zt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Zt.character+1))])),gn.push(t.createThis())}}const jn=ht(t.createCallExpression(d(pn),void 0,gn),nt);return zt&&Yu(jn),jn}function ue(Ge,lt,Ct,bt){const zt=Be(Ge),nt=Ge.attributes.properties,ot=ge(nt)?z(nt):t.createNull(),sn=s.importSpecifier===void 0?dX(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,Ge):g("createElement"),pn=The(t,sn,zt,ot,ua(lt,I),bt);return Ct&&Yu(pn),pn}function re(Ge,lt,Ct,bt){let zt;if(lt&&lt.length){const nt=ee(lt);nt&&(zt=nt)}return P(v(),zt||t.createObjectLiteralExpression([]),void 0,lt,Ct,bt)}function be(Ge,lt,Ct,bt){const zt=She(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,ua(lt,I),Ge,bt);return Ct&&Yu(zt),zt}function ae(Ge){return t.createSpreadAssignment(R.checkDefined(ct(Ge.expression,C,yt)))}function z(Ge,lt){const Ct=ns(i);return Ct&&Ct>=5?t.createObjectLiteralExpression(ce(Ge,lt)):he(Ge,lt)}function ce(Ge,lt){const Ct=Ha(P7(Ge,XT,(bt,zt)=>Pt(bt,nt=>zt?ae(nt):Ae(nt))));return lt&&Ct.push(lt),Ct}function he(Ge,lt){const Ct=Ha(P7(Ge,XT,(bt,zt)=>zt?Pt(bt,Ee):t.createObjectLiteralExpression(Pt(bt,Ae))));return XT(Ge[0])&&Ct.unshift(t.createObjectLiteralExpression()),lt&&Ct.push(t.createObjectLiteralExpression([lt])),Nm(Ct)||r().createAssignHelper(Ct)}function Ee(Ge){return R.checkDefined(ct(Ge.expression,C,yt))}function Ae(Ge){const lt=$e(Ge),Ct=te(Ge.initializer);return t.createPropertyAssignment(lt,Ct)}function te(Ge){if(Ge===void 0)return t.createTrue();if(Ge.kind===10){const lt=Ge.singleQuote!==void 0?Ge.singleQuote:!mP(Ge,o),Ct=t.createStringLiteral(Fe(Ge.text)||Ge.text,lt);return ht(Ct,Ge)}return Ge.kind===291?Ge.expression===void 0?t.createTrue():R.checkDefined(ct(Ge.expression,C,yt)):By(Ge)?U(Ge,!1):sx(Ge)?j(Ge,!1):cx(Ge)?H(Ge,!1):R.failBadSyntaxKind(Ge)}function Ze(Ge){const lt=je(Ge.text);return lt===void 0?void 0:t.createStringLiteral(lt)}function je(Ge){let lt,Ct=0,bt=-1;for(let zt=0;zt<Ge.length;zt++){const nt=Ge.charCodeAt(zt);Tu(nt)?(Ct!==-1&&bt!==-1&&(lt=Ue(lt,Ge.substr(Ct,bt-Ct+1))),Ct=-1):Gm(nt)||(bt=zt,Ct===-1&&(Ct=zt))}return Ct!==-1?Ue(lt,Ge.substr(Ct)):lt}function Ue(Ge,lt){const Ct=Je(lt);return Ge===void 0?Ct:Ge+" "+Ct}function Je(Ge){return Ge.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(lt,Ct,bt,zt,nt,ot,sn)=>{if(nt)return XI(parseInt(nt,10));if(ot)return XI(parseInt(ot,16));{const pn=Pve.get(sn);return pn?XI(pn):lt}})}function Fe(Ge){const lt=Je(Ge);return lt===Ge?void 0:lt}function Be(Ge){if(Ge.kind===281)return Be(Ge.openingElement);{const lt=Ge.tagName;return We(lt)&&xk(lt.escapedText)?t.createStringLiteral(Pr(lt)):I6(t,lt)}}function $e(Ge){const lt=Ge.name,Ct=Pr(lt);return/^[A-Za-z_]\w*$/.test(Ct)?lt:t.createStringLiteral(Ct)}function ze(Ge){const lt=ct(Ge.expression,C,yt);return Ge.dotDotDotToken?t.createSpreadElement(lt):lt}}var Pve,PFe=b({"src/compiler/transformers/jsx.ts"(){"use strict";Oa(),Pve=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 Fve(e){const{factory:t,hoistVariableDeclaration:r}=e;return rp(e,i);function i(d){return d.isDeclarationFile?d:Fn(d,o,e)}function o(d){if(!(d.transformFlags&512))return d;switch(d.kind){case 223:return s(d);default:return Fn(d,o,e)}}function s(d){switch(d.operatorToken.kind){case 67:return c(d);case 42:return _(d);default:return Fn(d,o,e)}}function c(d){let v,g;const T=ct(d.left,o,yt),C=ct(d.right,o,yt);if(dl(T)){const L=t.createTempVariable(r),I=t.createTempVariable(r);v=ht(t.createElementAccessExpression(ht(t.createAssignment(L,T.expression),T.expression),ht(t.createAssignment(I,T.argumentExpression),T.argumentExpression)),T),g=ht(t.createElementAccessExpression(L,I),T)}else if(Br(T)){const L=t.createTempVariable(r);v=ht(t.createPropertyAccessExpression(ht(t.createAssignment(L,T.expression),T.expression),T.name),T),g=ht(t.createPropertyAccessExpression(L,T.name),T)}else v=T,g=T;return ht(t.createAssignment(v,ht(t.createGlobalMethodCall("Math","pow",[g,C]),d)),d)}function _(d){const v=ct(d.left,o,yt),g=ct(d.right,o,yt);return ht(t.createGlobalMethodCall("Math","pow",[v,g]),d)}}var FFe=b({"src/compiler/transformers/es2016.ts"(){"use strict";Oa()}});function Bve(e,t){return{kind:e,expression:t}}function Gve(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:c}=e,_=e.getCompilerOptions(),d=e.getEmitResolver(),v=e.onSubstituteNode,g=e.onEmitNode;e.onEmitNode=bd,e.onSubstituteNode=pl;let T,C,L,I;function M(oe){I=Pn(I,t.createVariableDeclaration(oe))}let k,U;return rp(e,j);function j(oe){if(oe.isDeclarationFile)return oe;T=oe,C=oe.text;const dt=ce(oe);return Oy(dt,e.readEmitHelpers()),T=void 0,C=void 0,I=void 0,L=0,dt}function H(oe,dt){const Bt=L;return L=(L&~oe|dt)&32767,Bt}function ee(oe,dt,Bt){L=(L&~dt|Bt)&-32768|oe}function X(oe){return(L&8192)!==0&&oe.kind===250&&!oe.expression}function ne(oe){return oe.transformFlags&4194304&&(kp(oe)||JT(oe)||uhe(oe)||E6(oe)||S6(oe)||f4(oe)||A6(oe)||T6(oe)||JC(oe)||eE(oe)||Vv(oe,!1)||fo(oe))}function P(oe){return(oe.transformFlags&1024)!==0||k!==void 0||L&8192&&ne(oe)||Vv(oe,!1)&&ai(oe)||(z_(oe)&1)!==0}function ue(oe){return P(oe)?z(oe,!1):oe}function re(oe){return P(oe)?z(oe,!0):oe}function be(oe){if(P(oe)){const dt=Cl(oe);if(ro(dt)&&Tc(dt)){const Bt=H(32670,16449),Ft=z(oe,!1);return ee(Bt,98304,0),Ft}return z(oe,!1)}return oe}function ae(oe){return oe.kind===106?_l(!0):ue(oe)}function z(oe,dt){switch(oe.kind){case 124:return;case 260:return Fe(oe);case 228:return Be(oe);case 166:return gn(oe);case 259:return an(oe);case 216:return bi(oe);case 215:return Rn(oe);case 257:return et(oe);case 79:return Ue(oe);case 258:return ie(oe);case 252:return he(oe);case 266:return Ee(oe);case 238:return Hr(oe,!1);case 249:case 248:return Je(oe);case 253:return cn(oe);case 243:case 244:return de(oe,void 0);case 245:return mt(oe,void 0);case 246:return at(oe,void 0);case 247:return fe(oe,void 0);case 241:return Oe(oe);case 207:return wt(oe);case 295:return lc(oe);case 300:return nl(oe);case 164:return Ys(oe);case 206:return zl(oe);case 210:return wu(oe);case 211:return Ht(oe);case 214:return gt(oe,dt);case 223:return Ot(oe,dt);case 357:return Le(oe,dt);case 14:case 15:case 16:case 17:return Sa(oe);case 10:return cs(oe);case 8:return yo(oe);case 212:return Ho(oe);case 225:return Qa(oe);case 226:return rn(oe);case 227:return Mr(oe);case 106:return _l(!1);case 108:return Ze(oe);case 233:return mc(oe);case 171:return Rs(oe);case 174:case 175:return yl(oe);case 240:return me(oe);case 250:return te(oe);case 219:return je(oe);default:return Fn(oe,ue,e)}}function ce(oe){const dt=H(8064,64),Bt=[],Ft=[];i();const un=t.copyPrologue(oe.statements,Bt,!1,ue);return xi(Ft,Jn(oe.statements,ue,wa,un)),I&&Ft.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(I))),t.mergeLexicalEnvironment(Bt,s()),ta(Bt,oe),ee(dt,0,0),t.updateSourceFile(oe,ht(t.createNodeArray(ba(Bt,Ft)),oe.statements))}function he(oe){if(k!==void 0){const dt=k.allowedNonLabeledJumps;k.allowedNonLabeledJumps|=2;const Bt=Fn(oe,ue,e);return k.allowedNonLabeledJumps=dt,Bt}return Fn(oe,ue,e)}function Ee(oe){const dt=H(7104,0),Bt=Fn(oe,ue,e);return ee(dt,0,0),Bt}function Ae(oe){return zr(t.createReturnStatement(t.createUniqueName("_this",48)),oe)}function te(oe){return k?(k.nonLocalJumps|=8,X(oe)&&(oe=Ae(oe)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),oe.expression?R.checkDefined(ct(oe.expression,ue,yt)):t.createVoidZero())]))):X(oe)?Ae(oe):Fn(oe,ue,e)}function Ze(oe){return L&2&&!(L&16384)&&(L|=65536),k?L&2?(k.containsLexicalThis=!0,oe):k.thisName||(k.thisName=t.createUniqueName("this")):oe}function je(oe){return Fn(oe,re,e)}function Ue(oe){return k&&d.isArgumentsLocalBinding(oe)?k.argumentsName||(k.argumentsName=t.createUniqueName("arguments")):oe.flags&128?zr(ht(t.createIdentifier(ia(oe.escapedText)),oe),oe):oe}function Je(oe){if(k){const dt=oe.kind===249?2:4;if(!(oe.label&&k.labels&&k.labels.get(Pr(oe.label))||!oe.label&&k.allowedNonLabeledJumps&dt)){let Ft;const un=oe.label;un?oe.kind===249?(Ft=`break-${un.escapedText}`,Wl(k,!0,Pr(un),Ft)):(Ft=`continue-${un.escapedText}`,Wl(k,!1,Pr(un),Ft)):oe.kind===249?(k.nonLocalJumps|=2,Ft="break"):(k.nonLocalJumps|=4,Ft="continue");let Vn=t.createStringLiteral(Ft);if(k.loopOutParameters.length){const Rr=k.loopOutParameters;let ri;for(let Mi=0;Mi<Rr.length;Mi++){const Wa=nc(Rr[Mi],1);Mi===0?ri=Wa:ri=t.createBinaryExpression(ri,27,Wa)}Vn=t.createBinaryExpression(ri,27,Vn)}return t.createReturnStatement(Vn)}}return Fn(oe,ue,e)}function Fe(oe){const dt=t.createVariableDeclaration(t.getLocalName(oe,!0),void 0,void 0,$e(oe));zr(dt,oe);const Bt=[],Ft=t.createVariableStatement(void 0,t.createVariableDeclarationList([dt]));if(zr(Ft,oe),ht(Ft,oe),Yu(Ft),Bt.push(Ft),Qr(oe,1)){const Vn=Qr(oe,1024)?t.createExportDefault(t.getLocalName(oe)):t.createExternalModuleExport(t.getLocalName(oe));zr(Vn,Ft),Bt.push(Vn)}const un=Eo(oe);return un&8388608||(Bt.push(t.createEndOfDeclarationMarker(oe)),sr(Ft,un|8388608)),Om(Bt)}function Be(oe){return $e(oe)}function $e(oe){oe.name&&Ts();const dt=Wb(oe),Bt=t.createFunctionExpression(void 0,void 0,void 0,void 0,dt?[t.createParameterDeclaration(void 0,void 0,t.createUniqueName("_super",48))]:[],void 0,ze(oe,dt));sr(Bt,Eo(oe)&131072|1048576);const Ft=t.createPartiallyEmittedExpression(Bt);kC(Ft,oe.end),sr(Ft,3072);const un=t.createPartiallyEmittedExpression(Ft);kC(un,Yo(C,oe.pos)),sr(un,3072);const Vn=t.createParenthesizedExpression(t.createCallExpression(un,void 0,dt?[R.checkDefined(ct(dt.expression,ue,yt))]:[]));return c6(Vn,3,"* @class "),Vn}function ze(oe,dt){const Bt=[],Ft=t.getInternalName(oe),un=TP(Ft)?t.getGeneratedNameForNode(Ft):Ft;i(),Ge(Bt,oe,dt),lt(Bt,oe,un,dt),Wt(Bt,oe);const Vn=LJ(Yo(C,oe.members.end),19),Rr=t.createPartiallyEmittedExpression(un);kC(Rr,Vn.end),sr(Rr,3072);const ri=t.createReturnStatement(Rr);zk(ri,Vn.pos),sr(ri,3840),Bt.push(ri),Wm(Bt,s());const Mi=t.createBlock(ht(t.createNodeArray(Bt),oe.members),!0);return sr(Mi,3072),Mi}function Ge(oe,dt,Bt){Bt&&oe.push(ht(t.createExpressionStatement(r().createExtendsHelper(t.getInternalName(dt))),Bt))}function lt(oe,dt,Bt,Ft){const un=k;k=void 0;const Vn=H(32662,73),Rr=Dh(dt),ri=ko(Rr,Ft!==void 0),Mi=t.createFunctionDeclaration(void 0,void 0,Bt,void 0,Ct(Rr,ri),void 0,zt(Rr,dt,Ft,ri));ht(Mi,Rr||dt),Ft&&sr(Mi,16),oe.push(Mi),ee(Vn,98304,0),k=un}function Ct(oe,dt){return Yl(oe&&!dt?oe.parameters:void 0,ue,e)||[]}function bt(oe,dt){const Bt=[];o(),t.mergeLexicalEnvironment(Bt,s()),dt&&Bt.push(t.createReturnStatement(pn()));const Ft=t.createNodeArray(Bt);ht(Ft,oe.members);const un=t.createBlock(Ft,!0);return ht(un,oe),sr(un,3072),un}function zt(oe,dt,Bt,Ft){const un=!!Bt&&Cu(Bt.expression).kind!==104;if(!oe)return bt(dt,un);const Vn=[],Rr=[];o();const ri=J7(oe.body.statements,Cp),{superCall:Mi,superStatementIndex:Wa}=nt(oe.body.statements,ri),zo=Wa===-1?ri.length:Wa+1;let Ss=zo;Ft||(Ss=t.copyStandardPrologue(oe.body.statements,Vn,Ss,!1)),Ft||(Ss=t.copyCustomPrologue(oe.body.statements,Rr,Ss,ue,void 0));let $s;if(Ft?$s=pn():Mi&&($s=_e(Mi)),$s&&(L|=8192),Ln(Vn,oe),ea(Vn,oe,Ft),xi(Rr,Jn(oe.body.statements,ue,wa,Ss)),t.mergeLexicalEnvironment(Vn,s()),yn(Vn,oe,!1),un||$s)if($s&&zo===oe.body.statements.length&&!(oe.body.transformFlags&16384)){const vf=lo(lo($s,Tr).left,io),rc=t.createReturnStatement($s);Xc(rc,Ym(vf)),sr(vf,3072),Rr.push(rc)}else Wa<=ri.length?Lt(Rr,oe,$s||sn()):(Lt(Vn,oe,sn()),$s&&Or(Rr,$s)),ot(oe.body)||Rr.push(t.createReturnStatement(t.createUniqueName("_this",48)));else ta(Vn,oe);const Ed=t.createBlock(ht(t.createNodeArray([...ri,...Vn,...Wa<=ri.length?it:Jn(oe.body.statements,ue,wa,ri.length,Wa-ri.length),...Rr]),oe.body.statements),!0);return ht(Ed,oe.body),Ed}function nt(oe,dt){for(let Bt=dt.length;Bt<oe.length;Bt+=1){const Ft=GY(oe[Bt]);if(Ft)return{superCall:Ft,superStatementIndex:Bt}}return{superStatementIndex:-1}}function ot(oe){if(oe.kind===250)return!0;if(oe.kind===242){const dt=oe;if(dt.elseStatement)return ot(dt.thenStatement)&&ot(dt.elseStatement)}else if(oe.kind===238){const dt=rl(oe.statements);if(dt&&ot(dt))return!0}return!1}function sn(){return sr(t.createThis(),8)}function pn(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(t.createUniqueName("_super",48),t.createNull()),t.createFunctionApplyCall(t.createUniqueName("_super",48),sn(),t.createIdentifier("arguments"))),sn())}function gn(oe){if(!oe.dotDotDotToken)return $a(oe.name)?zr(ht(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(oe),void 0,void 0,void 0),oe),oe):oe.initializer?zr(ht(t.createParameterDeclaration(void 0,void 0,oe.name,void 0,void 0,void 0),oe),oe):oe}function jn(oe){return oe.initializer!==void 0||$a(oe.name)}function Ln(oe,dt){if(!Dt(dt.parameters,jn))return!1;let Bt=!1;for(const Ft of dt.parameters){const{name:un,initializer:Vn,dotDotDotToken:Rr}=Ft;Rr||($a(un)?Bt=Zt(oe,Ft,un,Vn)||Bt:Vn&&(pr(oe,Ft,un,Vn),Bt=!0))}return Bt}function Zt(oe,dt,Bt,Ft){return Bt.elements.length>0?(Pb(oe,sr(t.createVariableStatement(void 0,t.createVariableDeclarationList(lE(dt,ue,e,0,t.getGeneratedNameForNode(dt)))),2097152)),!0):Ft?(Pb(oe,sr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(dt),R.checkDefined(ct(Ft,ue,yt)))),2097152)),!0):!1}function pr(oe,dt,Bt,Ft){Ft=R.checkDefined(ct(Ft,ue,yt));const un=t.createIfStatement(t.createTypeCheck(t.cloneNode(Bt),"undefined"),sr(ht(t.createBlock([t.createExpressionStatement(sr(ht(t.createAssignment(sr(jo(ht(t.cloneNode(Bt),Bt),Bt.parent),96),sr(Ft,96|Eo(Ft)|3072)),dt),3072))]),dt),3905));Yu(un),ht(un,dt),sr(un,2101056),Pb(oe,un)}function Ii(oe,dt){return!!(oe&&oe.dotDotDotToken&&!dt)}function ea(oe,dt,Bt){const Ft=[],un=rl(dt.parameters);if(!Ii(un,Bt))return!1;const Vn=un.name.kind===79?jo(ht(t.cloneNode(un.name),un.name),un.name.parent):t.createTempVariable(void 0);sr(Vn,96);const Rr=un.name.kind===79?t.cloneNode(un.name):Vn,ri=dt.parameters.length-1,Mi=t.createLoopVariable();Ft.push(sr(ht(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Vn,void 0,void 0,t.createArrayLiteralExpression([]))])),un),2097152));const Wa=t.createForStatement(ht(t.createVariableDeclarationList([t.createVariableDeclaration(Mi,void 0,void 0,t.createNumericLiteral(ri))]),un),ht(t.createLessThan(Mi,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),un),ht(t.createPostfixIncrement(Mi),un),t.createBlock([Yu(ht(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Rr,ri===0?Mi:t.createSubtract(Mi,t.createNumericLiteral(ri))),t.createElementAccessExpression(t.createIdentifier("arguments"),Mi))),un))]));return sr(Wa,2097152),Yu(Wa),Ft.push(Wa),un.name.kind!==79&&Ft.push(sr(ht(t.createVariableStatement(void 0,t.createVariableDeclarationList(lE(un,ue,e,0,Rr))),un),2097152)),gq(oe,Ft),!0}function ta(oe,dt){return L&65536&&dt.kind!==216?(Lt(oe,dt,t.createThis()),!0):!1}function Or(oe,dt){fs();const Bt=t.createExpressionStatement(t.createBinaryExpression(t.createThis(),63,dt));Pb(oe,Bt),Xc(Bt,Cl(dt).parent)}function Lt(oe,dt,Bt){fs();const Ft=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_this",48),void 0,void 0,Bt)]));sr(Ft,2100224),ps(Ft,dt),Pb(oe,Ft)}function yn(oe,dt,Bt){if(L&32768){let Ft;switch(dt.kind){case 216:return oe;case 171:case 174:case 175:Ft=t.createVoidZero();break;case 173:Ft=t.createPropertyAccessExpression(sr(t.createThis(),8),"constructor");break;case 259:case 215:Ft=t.createConditionalExpression(t.createLogicalAnd(sr(t.createThis(),8),t.createBinaryExpression(sr(t.createThis(),8),102,t.getLocalName(dt))),void 0,t.createPropertyAccessExpression(sr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return R.failBadSyntaxKind(dt)}const un=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Ft)]));sr(un,2100224),Bt&&(oe=oe.slice()),Pb(oe,un)}return oe}function Wt(oe,dt){for(const Bt of dt.members)switch(Bt.kind){case 237:oe.push(In(Bt));break;case 171:oe.push(Bn(Qi(dt,Bt),Bt,dt));break;case 174:case 175:const Ft=UT(dt.members,Bt);Bt===Ft.firstAccessor&&oe.push(lr(Qi(dt,Bt),Ft,dt));break;case 173:case 172:break;default:R.failBadSyntaxKind(Bt,T&&T.fileName);break}}function In(oe){return ht(t.createEmptyStatement(),oe)}function Bn(oe,dt,Bt){const Ft=Ym(dt),un=y1(dt),Vn=On(dt,dt,void 0,Bt),Rr=ct(dt.name,ue,bl);R.assert(Rr);let ri;if(!Ri(Rr)&&WR(e.getCompilerOptions())){const Wa=Cs(Rr)?Rr.expression:We(Rr)?t.createStringLiteral(ia(Rr.escapedText)):Rr;ri=t.createObjectDefinePropertyCall(oe,Wa,t.createPropertyDescriptor({value:Vn,enumerable:!1,writable:!0,configurable:!0}))}else{const Wa=QT(t,oe,Rr,dt.name);ri=t.createAssignment(Wa,Vn)}sr(Vn,3072),ps(Vn,un);const Mi=ht(t.createExpressionStatement(ri),dt);return zr(Mi,dt),Xc(Mi,Ft),sr(Mi,96),Mi}function lr(oe,dt,Bt){const Ft=t.createExpressionStatement(Oi(oe,dt,Bt,!1));return sr(Ft,3072),ps(Ft,y1(dt.firstAccessor)),Ft}function Oi(oe,{firstAccessor:dt,getAccessor:Bt,setAccessor:Ft},un,Vn){const Rr=jo(ht(t.cloneNode(oe),oe),oe.parent);sr(Rr,3136),ps(Rr,dt.name);const ri=ct(dt.name,ue,bl);if(R.assert(ri),Ri(ri))return R.failBadSyntaxKind(ri,"Encountered unhandled private identifier while transforming ES2015.");const Mi=_X(t,ri);sr(Mi,3104),ps(Mi,dt.name);const Wa=[];if(Bt){const Ss=On(Bt,void 0,void 0,un);ps(Ss,y1(Bt)),sr(Ss,1024);const $s=t.createPropertyAssignment("get",Ss);Xc($s,Ym(Bt)),Wa.push($s)}if(Ft){const Ss=On(Ft,void 0,void 0,un);ps(Ss,y1(Ft)),sr(Ss,1024);const $s=t.createPropertyAssignment("set",Ss);Xc($s,Ym(Ft)),Wa.push($s)}Wa.push(t.createPropertyAssignment("enumerable",Bt||Ft?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const zo=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[Rr,Mi,t.createObjectLiteralExpression(Wa,!0)]);return Vn&&Yu(zo),zo}function bi(oe){oe.transformFlags&16384&&!(L&16384)&&(L|=65536);const dt=k;k=void 0;const Bt=H(15232,66),Ft=t.createFunctionExpression(void 0,void 0,void 0,void 0,Yl(oe.parameters,ue,e),void 0,Ir(oe));return ht(Ft,oe),zr(Ft,oe),sr(Ft,16),ee(Bt,0,0),k=dt,Ft}function Rn(oe){const dt=Eo(oe)&524288?H(32662,69):H(32670,65),Bt=k;k=void 0;const Ft=Yl(oe.parameters,ue,e),un=Ir(oe),Vn=L&32768?t.getLocalName(oe):oe.name;return ee(dt,98304,0),k=Bt,t.updateFunctionExpression(oe,void 0,oe.asteriskToken,Vn,void 0,Ft,void 0,un)}function an(oe){const dt=k;k=void 0;const Bt=H(32670,65),Ft=Yl(oe.parameters,ue,e),un=Ir(oe),Vn=L&32768?t.getLocalName(oe):oe.name;return ee(Bt,98304,0),k=dt,t.updateFunctionDeclaration(oe,Jn(oe.modifiers,ue,po),oe.asteriskToken,Vn,void 0,Ft,void 0,un)}function On(oe,dt,Bt,Ft){const un=k;k=void 0;const Vn=Ft&&_i(Ft)&&!Xa(oe)?H(32670,73):H(32670,65),Rr=Yl(oe.parameters,ue,e),ri=Ir(oe);return L&32768&&!Bt&&(oe.kind===259||oe.kind===215)&&(Bt=t.getGeneratedNameForNode(oe)),ee(Vn,98304,0),k=un,zr(ht(t.createFunctionExpression(void 0,oe.asteriskToken,Bt,void 0,Rr,void 0,ri),dt),oe)}function Ir(oe){let dt=!1,Bt=!1,Ft,un;const Vn=[],Rr=[],ri=oe.body;let Mi;if(o(),fo(ri)&&(Mi=t.copyStandardPrologue(ri.statements,Vn,0,!1),Mi=t.copyCustomPrologue(ri.statements,Rr,Mi,ue,eP),Mi=t.copyCustomPrologue(ri.statements,Rr,Mi,ue,tP)),dt=Ln(Rr,oe)||dt,dt=ea(Rr,oe,!1)||dt,fo(ri))Mi=t.copyCustomPrologue(ri.statements,Rr,Mi,ue),Ft=ri.statements,xi(Rr,Jn(ri.statements,ue,wa,Mi)),!dt&&ri.multiLine&&(dt=!0);else{R.assert(oe.kind===216),Ft=RP(ri,-1);const zo=oe.equalsGreaterThanToken;!tl(zo)&&!tl(ri)&&(FR(zo,ri,T)?Bt=!0:dt=!0);const Ss=ct(ri,ue,yt),$s=t.createReturnStatement(Ss);ht($s,ri),Bme($s,ri),sr($s,2880),Rr.push($s),un=ri}if(t.mergeLexicalEnvironment(Vn,s()),yn(Vn,oe,!1),ta(Vn,oe),Dt(Vn)&&(dt=!0),Rr.unshift(...Vn),fo(ri)&&Zp(Rr,ri.statements))return ri;const Wa=t.createBlock(ht(t.createNodeArray(Rr),Ft),dt);return ht(Wa,oe.body),!dt&&Bt&&sr(Wa,1),un&&Fme(Wa,19,un),zr(Wa,oe.body),Wa}function Hr(oe,dt){if(dt)return Fn(oe,ue,e);const Bt=L&256?H(7104,512):H(6976,128),Ft=Fn(oe,ue,e);return ee(Bt,0,0),Ft}function Oe(oe){return Fn(oe,re,e)}function gt(oe,dt){return Fn(oe,dt?re:ue,e)}function Ot(oe,dt){return Ry(oe)?i2(oe,ue,e,0,!dt):oe.operatorToken.kind===27?t.updateBinaryExpression(oe,R.checkDefined(ct(oe.left,re,yt)),oe.operatorToken,R.checkDefined(ct(oe.right,dt?re:ue,yt))):Fn(oe,ue,e)}function Le(oe,dt){if(dt)return Fn(oe,re,e);let Bt;for(let un=0;un<oe.elements.length;un++){const Vn=oe.elements[un],Rr=ct(Vn,un<oe.elements.length-1?re:ue,yt);(Bt||Rr!==Vn)&&(Bt||(Bt=oe.elements.slice(0,un)),R.assert(Rr),Bt.push(Rr))}const Ft=Bt?ht(t.createNodeArray(Bt),oe.elements):oe.elements;return t.updateCommaListExpression(oe,Ft)}function pt(oe){return oe.declarationList.declarations.length===1&&!!oe.declarationList.declarations[0].initializer&&!!(z_(oe.declarationList.declarations[0].initializer)&1)}function me(oe){const dt=H(0,Qr(oe,1)?32:0);let Bt;if(k&&!(oe.declarationList.flags&3)&&!pt(oe)){let Ft;for(const un of oe.declarationList.declarations)if(ui(k,un),un.initializer){let Vn;$a(un.name)?Vn=i2(un,ue,e,0):(Vn=t.createBinaryExpression(un.name,63,R.checkDefined(ct(un.initializer,ue,yt))),ht(Vn,un)),Ft=Pn(Ft,Vn)}Ft?Bt=ht(t.createExpressionStatement(t.inlineExpressions(Ft)),oe):Bt=void 0}else Bt=Fn(oe,ue,e);return ee(dt,0,0),Bt}function ie(oe){if(oe.flags&3||oe.transformFlags&524288){oe.flags&3&&Ts();const dt=Jn(oe.declarations,oe.flags&1?He:et,$i),Bt=t.createVariableDeclarationList(dt);return zr(Bt,oe),ht(Bt,oe),Xc(Bt,oe),oe.transformFlags&524288&&($a(oe.declarations[0].name)||$a(Ko(oe.declarations).name))&&ps(Bt,ye(dt)),Bt}return Fn(oe,ue,e)}function ye(oe){let dt=-1,Bt=-1;for(const Ft of oe)dt=dt===-1?Ft.pos:Ft.pos===-1?dt:Math.min(dt,Ft.pos),Bt=Math.max(Bt,Ft.end);return S_(dt,Bt)}function W(oe){const dt=d.getNodeCheckFlags(oe),Bt=dt&16384,Ft=dt&32768;return!((L&64)!==0||Bt&&Ft&&(L&512)!==0)&&(L&4096)===0&&(!d.isDeclarationWithCollidingName(oe)||Ft&&!Bt&&(L&6144)===0)}function He(oe){const dt=oe.name;return $a(dt)?et(oe):!oe.initializer&&W(oe)?t.updateVariableDeclaration(oe,oe.name,void 0,void 0,t.createVoidZero()):Fn(oe,ue,e)}function et(oe){const dt=H(32,0);let Bt;return $a(oe.name)?Bt=lE(oe,ue,e,0,void 0,(dt&32)!==0):Bt=Fn(oe,ue,e),ee(dt,0,0),Bt}function Ye(oe){k.labels.set(Pr(oe.label),!0)}function jt(oe){k.labels.set(Pr(oe.label),!1)}function cn(oe){k&&!k.labels&&(k.labels=new Map);const dt=Bq(oe,k&&Ye);return Vv(dt,!1)?Sn(dt,oe):t.restoreEnclosingLabel(R.checkDefined(ct(dt,ue,wa,t.liftToBlock)),oe,k&&jt)}function Sn(oe,dt){switch(oe.kind){case 243:case 244:return de(oe,dt);case 245:return mt(oe,dt);case 246:return at(oe,dt);case 247:return fe(oe,dt)}}function Er(oe,dt,Bt,Ft,un){const Vn=H(oe,dt),Rr=Wi(Bt,Ft,Vn,un);return ee(Vn,0,0),Rr}function de(oe,dt){return Er(0,1280,oe,dt)}function mt(oe,dt){return Er(5056,3328,oe,dt)}function Jt(oe){return t.updateForStatement(oe,ct(oe.initializer,re,rm),ct(oe.condition,ue,yt),ct(oe.incrementor,re,yt),R.checkDefined(ct(oe.statement,ue,wa,t.liftToBlock)))}function at(oe,dt){return Er(3008,5376,oe,dt)}function fe(oe,dt){return Er(3008,5376,oe,dt,_.downlevelIteration?J:Ne)}function Te(oe,dt,Bt){const Ft=[],un=oe.initializer;if(Xu(un)){oe.initializer.flags&3&&Ts();const Vn=tu(un.declarations);if(Vn&&$a(Vn.name)){const Rr=lE(Vn,ue,e,0,dt),ri=ht(t.createVariableDeclarationList(Rr),oe.initializer);zr(ri,oe.initializer),ps(ri,S_(Rr[0].pos,Ko(Rr).end)),Ft.push(t.createVariableStatement(void 0,ri))}else Ft.push(ht(t.createVariableStatement(void 0,zr(ht(t.createVariableDeclarationList([t.createVariableDeclaration(Vn?Vn.name:t.createTempVariable(void 0),void 0,void 0,dt)]),h1(un,-1)),un)),RP(un,-1)))}else{const Vn=t.createAssignment(un,dt);Ry(Vn)?Ft.push(t.createExpressionStatement(Ot(Vn,!0))):(kC(Vn,un.end),Ft.push(ht(t.createExpressionStatement(R.checkDefined(ct(Vn,ue,yt))),RP(un,-1))))}if(Bt)return Y(xi(Ft,Bt));{const Vn=ct(oe.statement,ue,wa,t.liftToBlock);return R.assert(Vn),fo(Vn)?t.updateBlock(Vn,ht(t.createNodeArray(ba(Ft,Vn.statements)),Vn.statements)):(Ft.push(Vn),Y(Ft))}}function Y(oe){return sr(t.createBlock(t.createNodeArray(oe),!0),864)}function Ne(oe,dt,Bt){const Ft=ct(oe.expression,ue,yt);R.assert(Ft);const un=t.createLoopVariable(),Vn=We(Ft)?t.getGeneratedNameForNode(Ft):t.createTempVariable(void 0);sr(Ft,96|Eo(Ft));const Rr=ht(t.createForStatement(sr(ht(t.createVariableDeclarationList([ht(t.createVariableDeclaration(un,void 0,void 0,t.createNumericLiteral(0)),h1(oe.expression,-1)),ht(t.createVariableDeclaration(Vn,void 0,void 0,Ft),oe.expression)]),oe.expression),4194304),ht(t.createLessThan(un,t.createPropertyAccessExpression(Vn,"length")),oe.expression),ht(t.createPostfixIncrement(un),oe.expression),Te(oe,t.createElementAccessExpression(Vn,un),Bt)),oe);return sr(Rr,512),ht(Rr,oe),t.restoreEnclosingLabel(Rr,dt,k&&jt)}function J(oe,dt,Bt,Ft){const un=ct(oe.expression,ue,yt);R.assert(un);const Vn=We(un)?t.getGeneratedNameForNode(un):t.createTempVariable(void 0),Rr=We(un)?t.getGeneratedNameForNode(Vn):t.createTempVariable(void 0),ri=t.createUniqueName("e"),Mi=t.getGeneratedNameForNode(ri),Wa=t.createTempVariable(void 0),zo=ht(r().createValuesHelper(un),oe.expression),Ss=t.createCallExpression(t.createPropertyAccessExpression(Vn,"next"),void 0,[]);c(ri),c(Wa);const $s=Ft&1024?t.inlineExpressions([t.createAssignment(ri,t.createVoidZero()),zo]):zo,Ed=sr(ht(t.createForStatement(sr(ht(t.createVariableDeclarationList([ht(t.createVariableDeclaration(Vn,void 0,void 0,$s),oe.expression),t.createVariableDeclaration(Rr,void 0,void 0,Ss)]),oe.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(Rr,"done")),t.createAssignment(Rr,Ss),Te(oe,t.createPropertyAccessExpression(Rr,"value"),Bt)),oe),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(Ed,dt,k&&jt)]),t.createCatchClause(t.createVariableDeclaration(Mi),sr(t.createBlock([t.createExpressionStatement(t.createAssignment(ri,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Mi)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([sr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(Rr,t.createLogicalNot(t.createPropertyAccessExpression(Rr,"done"))),t.createAssignment(Wa,t.createPropertyAccessExpression(Vn,"return"))),t.createExpressionStatement(t.createFunctionCallCall(Wa,Vn,[]))),1)]),void 0,sr(t.createBlock([sr(t.createIfStatement(ri,t.createThrowStatement(t.createPropertyAccessExpression(ri,"error"))),1)]),1))]))}function wt(oe){const dt=oe.properties;let Bt=-1,Ft=!1;for(let ri=0;ri<dt.length;ri++){const Mi=dt[ri];if(Mi.transformFlags&1048576&&L&4||(Ft=R.checkDefined(Mi.name).kind===164)){Bt=ri;break}}if(Bt<0)return Fn(oe,ue,e);const un=t.createTempVariable(c),Vn=[],Rr=t.createAssignment(un,sr(t.createObjectLiteralExpression(Jn(dt,ue,Iy,0,Bt),oe.multiLine),Ft?131072:0));return oe.multiLine&&Yu(Rr),Vn.push(Rr),Qo(Vn,oe,un,Bt),Vn.push(oe.multiLine?Yu(jo(ht(t.cloneNode(un),un),un.parent)):un),t.inlineExpressions(Vn)}function Et(oe){return(d.getNodeCheckFlags(oe)&8192)!==0}function ut(oe){return KT(oe)&&!!oe.initializer&&Et(oe.initializer)}function nn(oe){return KT(oe)&&!!oe.condition&&Et(oe.condition)}function ir(oe){return KT(oe)&&!!oe.incrementor&&Et(oe.incrementor)}function ai(oe){return gi(oe)||ut(oe)}function gi(oe){return(d.getNodeCheckFlags(oe)&4096)!==0}function ui(oe,dt){oe.hoistedLocalVariables||(oe.hoistedLocalVariables=[]),Bt(dt.name);function Bt(Ft){if(Ft.kind===79)oe.hoistedLocalVariables.push(Ft);else for(const un of Ft.elements)Fc(un)||Bt(un.name)}}function Wi(oe,dt,Bt,Ft){if(!ai(oe)){let zo;k&&(zo=k.allowedNonLabeledJumps,k.allowedNonLabeledJumps=6);const Ss=Ft?Ft(oe,dt,void 0,Bt):t.restoreEnclosingLabel(KT(oe)?Jt(oe):Fn(oe,ue,e),dt,k&&jt);return k&&(k.allowedNonLabeledJumps=zo),Ss}const un=ls(oe),Vn=[],Rr=k;k=un;const ri=ut(oe)?wn(oe,un):void 0,Mi=gi(oe)?pa(oe,un,Rr):void 0;k=Rr,ri&&Vn.push(ri.functionDeclaration),Mi&&Vn.push(Mi.functionDeclaration),mi(Vn,un,Rr),ri&&Vn.push(jl(ri.functionName,ri.containsYield));let Wa;if(Mi)if(Ft)Wa=Ft(oe,dt,Mi.part,Bt);else{const zo=go(oe,ri,t.createBlock(Mi.part,!0));Wa=t.restoreEnclosingLabel(zo,dt,k&&jt)}else{const zo=go(oe,ri,R.checkDefined(ct(oe.statement,ue,wa,t.liftToBlock)));Wa=t.restoreEnclosingLabel(zo,dt,k&&jt)}return Vn.push(Wa),Vn}function go(oe,dt,Bt){switch(oe.kind){case 245:return xo(oe,dt,Bt);case 246:return da(oe,Bt);case 247:return oo(oe,Bt);case 243:return Hi(oe,Bt);case 244:return $r(oe,Bt);default:return R.failBadSyntaxKind(oe,"IterationStatement expected")}}function xo(oe,dt,Bt){const Ft=oe.condition&&Et(oe.condition),un=Ft||oe.incrementor&&Et(oe.incrementor);return t.updateForStatement(oe,ct(dt?dt.part:oe.initializer,re,rm),ct(Ft?void 0:oe.condition,ue,yt),ct(un?void 0:oe.incrementor,re,yt),Bt)}function oo(oe,dt){return t.updateForOfStatement(oe,void 0,R.checkDefined(ct(oe.initializer,ue,rm)),R.checkDefined(ct(oe.expression,ue,yt)),dt)}function da(oe,dt){return t.updateForInStatement(oe,R.checkDefined(ct(oe.initializer,ue,rm)),R.checkDefined(ct(oe.expression,ue,yt)),dt)}function Hi(oe,dt){return t.updateDoStatement(oe,dt,R.checkDefined(ct(oe.expression,ue,yt)))}function $r(oe,dt){return t.updateWhileStatement(oe,R.checkDefined(ct(oe.expression,ue,yt)),dt)}function ls(oe){let dt;switch(oe.kind){case 245:case 246:case 247:const Vn=oe.initializer;Vn&&Vn.kind===258&&(dt=Vn);break}const Bt=[],Ft=[];if(dt&&Ap(dt)&3){const Vn=ut(oe)||nn(oe)||ir(oe);for(const Rr of dt.declarations)La(oe,Rr,Bt,Ft,Vn)}const un={loopParameters:Bt,loopOutParameters:Ft};return k&&(k.argumentsName&&(un.argumentsName=k.argumentsName),k.thisName&&(un.thisName=k.thisName),k.hoistedLocalVariables&&(un.hoistedLocalVariables=k.hoistedLocalVariables)),un}function mi(oe,dt,Bt){let Ft;if(dt.argumentsName&&(Bt?Bt.argumentsName=dt.argumentsName:(Ft||(Ft=[])).push(t.createVariableDeclaration(dt.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),dt.thisName&&(Bt?Bt.thisName=dt.thisName:(Ft||(Ft=[])).push(t.createVariableDeclaration(dt.thisName,void 0,void 0,t.createIdentifier("this")))),dt.hoistedLocalVariables)if(Bt)Bt.hoistedLocalVariables=dt.hoistedLocalVariables;else{Ft||(Ft=[]);for(const un of dt.hoistedLocalVariables)Ft.push(t.createVariableDeclaration(un))}if(dt.loopOutParameters.length){Ft||(Ft=[]);for(const un of dt.loopOutParameters)Ft.push(t.createVariableDeclaration(un.outParamName))}dt.conditionVariable&&(Ft||(Ft=[]),Ft.push(t.createVariableDeclaration(dt.conditionVariable,void 0,void 0,t.createFalse()))),Ft&&oe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(Ft)))}function fa(oe){return t.createVariableDeclaration(oe.originalName,void 0,void 0,oe.outParamName)}function wn(oe,dt){const Bt=t.createUniqueName("_loop_init"),Ft=(oe.initializer.transformFlags&1048576)!==0;let un=0;dt.containsLexicalThis&&(un|=16),Ft&&L&4&&(un|=524288);const Vn=[];Vn.push(t.createVariableStatement(void 0,oe.initializer)),al(dt.loopOutParameters,2,1,Vn);const Rr=t.createVariableStatement(void 0,sr(t.createVariableDeclarationList([t.createVariableDeclaration(Bt,void 0,void 0,sr(t.createFunctionExpression(void 0,Ft?t.createToken(41):void 0,void 0,void 0,void 0,void 0,R.checkDefined(ct(t.createBlock(Vn,!0),ue,fo))),un))]),4194304)),ri=t.createVariableDeclarationList(Pt(dt.loopOutParameters,fa));return{functionName:Bt,containsYield:Ft,functionDeclaration:Rr,part:ri}}function pa(oe,dt,Bt){const Ft=t.createUniqueName("_loop");i();const un=ct(oe.statement,ue,wa,t.liftToBlock),Vn=s(),Rr=[];(nn(oe)||ir(oe))&&(dt.conditionVariable=t.createUniqueName("inc"),oe.incrementor?Rr.push(t.createIfStatement(dt.conditionVariable,t.createExpressionStatement(R.checkDefined(ct(oe.incrementor,ue,yt))),t.createExpressionStatement(t.createAssignment(dt.conditionVariable,t.createTrue())))):Rr.push(t.createIfStatement(t.createLogicalNot(dt.conditionVariable),t.createExpressionStatement(t.createAssignment(dt.conditionVariable,t.createTrue())))),nn(oe)&&Rr.push(t.createIfStatement(t.createPrefixUnaryExpression(53,R.checkDefined(ct(oe.condition,ue,yt))),R.checkDefined(ct(t.createBreakStatement(),ue,wa))))),R.assert(un),fo(un)?xi(Rr,un.statements):Rr.push(un),al(dt.loopOutParameters,1,1,Rr),Wm(Rr,Vn);const ri=t.createBlock(Rr,!0);fo(un)&&zr(ri,un);const Mi=(oe.statement.transformFlags&1048576)!==0;let Wa=1048576;dt.containsLexicalThis&&(Wa|=16),Mi&&L&4&&(Wa|=524288);const zo=t.createVariableStatement(void 0,sr(t.createVariableDeclarationList([t.createVariableDeclaration(Ft,void 0,void 0,sr(t.createFunctionExpression(void 0,Mi?t.createToken(41):void 0,void 0,void 0,dt.loopParameters,void 0,ri),Wa))]),4194304)),Ss=$l(Ft,dt,Bt,Mi);return{functionName:Ft,containsYield:Mi,functionDeclaration:zo,part:Ss}}function nc(oe,dt){const Bt=dt===0?oe.outParamName:oe.originalName,Ft=dt===0?oe.originalName:oe.outParamName;return t.createBinaryExpression(Ft,63,Bt)}function al(oe,dt,Bt,Ft){for(const un of oe)un.flags&dt&&Ft.push(t.createExpressionStatement(nc(un,Bt)))}function jl(oe,dt){const Bt=t.createCallExpression(oe,void 0,[]),Ft=dt?t.createYieldExpression(t.createToken(41),sr(Bt,16777216)):Bt;return t.createExpressionStatement(Ft)}function $l(oe,dt,Bt,Ft){const un=[],Vn=!(dt.nonLocalJumps&-5)&&!dt.labeledNonLocalBreaks&&!dt.labeledNonLocalContinues,Rr=t.createCallExpression(oe,void 0,Pt(dt.loopParameters,Mi=>Mi.name)),ri=Ft?t.createYieldExpression(t.createToken(41),sr(Rr,16777216)):Rr;if(Vn)un.push(t.createExpressionStatement(ri)),al(dt.loopOutParameters,1,0,un);else{const Mi=t.createUniqueName("state"),Wa=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Mi,void 0,void 0,ri)]));if(un.push(Wa),al(dt.loopOutParameters,1,0,un),dt.nonLocalJumps&8){let zo;Bt?(Bt.nonLocalJumps|=8,zo=t.createReturnStatement(Mi)):zo=t.createReturnStatement(t.createPropertyAccessExpression(Mi,"value")),un.push(t.createIfStatement(t.createTypeCheck(Mi,"object"),zo))}if(dt.nonLocalJumps&2&&un.push(t.createIfStatement(t.createStrictEquality(Mi,t.createStringLiteral("break")),t.createBreakStatement())),dt.labeledNonLocalBreaks||dt.labeledNonLocalContinues){const zo=[];Io(dt.labeledNonLocalBreaks,!0,Mi,Bt,zo),Io(dt.labeledNonLocalContinues,!1,Mi,Bt,zo),un.push(t.createSwitchStatement(Mi,t.createCaseBlock(zo)))}}return un}function Wl(oe,dt,Bt,Ft){dt?(oe.labeledNonLocalBreaks||(oe.labeledNonLocalBreaks=new Map),oe.labeledNonLocalBreaks.set(Bt,Ft)):(oe.labeledNonLocalContinues||(oe.labeledNonLocalContinues=new Map),oe.labeledNonLocalContinues.set(Bt,Ft))}function Io(oe,dt,Bt,Ft,un){oe&&oe.forEach((Vn,Rr)=>{const ri=[];if(!Ft||Ft.labels&&Ft.labels.get(Rr)){const Mi=t.createIdentifier(Rr);ri.push(dt?t.createBreakStatement(Mi):t.createContinueStatement(Mi))}else Wl(Ft,dt,Rr,Vn),ri.push(t.createReturnStatement(Bt));un.push(t.createCaseClause(t.createStringLiteral(Vn),ri))})}function La(oe,dt,Bt,Ft,un){const Vn=dt.name;if($a(Vn))for(const Rr of Vn.elements)Fc(Rr)||La(oe,Rr,Bt,Ft,un);else{Bt.push(t.createParameterDeclaration(void 0,void 0,Vn));const Rr=d.getNodeCheckFlags(dt);if(Rr&262144||un){const ri=t.createUniqueName("out_"+Pr(Vn));let Mi=0;Rr&262144&&(Mi|=1),KT(oe)&&(oe.initializer&&d.isBindingCapturedByNode(oe.initializer,dt)&&(Mi|=2),(oe.condition&&d.isBindingCapturedByNode(oe.condition,dt)||oe.incrementor&&d.isBindingCapturedByNode(oe.incrementor,dt))&&(Mi|=1)),Ft.push({flags:Mi,originalName:Vn,outParamName:ri})}}}function Qo(oe,dt,Bt,Ft){const un=dt.properties,Vn=un.length;for(let Rr=Ft;Rr<Vn;Rr++){const ri=un[Rr];switch(ri.kind){case 174:case 175:const Mi=UT(dt.properties,ri);ri===Mi.firstAccessor&&oe.push(Oi(Bt,Mi,dt,!!dt.multiLine));break;case 171:oe.push($d(ri,Bt,dt,dt.multiLine));break;case 299:oe.push(Hl(ri,Bt,dt.multiLine));break;case 300:oe.push(ou(ri,Bt,dt.multiLine));break;default:R.failBadSyntaxKind(dt);break}}}function Hl(oe,dt,Bt){const Ft=t.createAssignment(QT(t,dt,R.checkDefined(ct(oe.name,ue,bl))),R.checkDefined(ct(oe.initializer,ue,yt)));return ht(Ft,oe),Bt&&Yu(Ft),Ft}function ou(oe,dt,Bt){const Ft=t.createAssignment(QT(t,dt,R.checkDefined(ct(oe.name,ue,bl))),t.cloneNode(oe.name));return ht(Ft,oe),Bt&&Yu(Ft),Ft}function $d(oe,dt,Bt,Ft){const un=t.createAssignment(QT(t,dt,R.checkDefined(ct(oe.name,ue,bl))),On(oe,oe,void 0,Bt));return ht(un,oe),Ft&&Yu(un),un}function lc(oe){const dt=H(7104,0);let Bt;if(R.assert(!!oe.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),$a(oe.variableDeclaration.name)){const Ft=t.createTempVariable(void 0),un=t.createVariableDeclaration(Ft);ht(un,oe.variableDeclaration);const Vn=lE(oe.variableDeclaration,ue,e,0,Ft),Rr=t.createVariableDeclarationList(Vn);ht(Rr,oe.variableDeclaration);const ri=t.createVariableStatement(void 0,Rr);Bt=t.updateCatchClause(oe,un,Zc(oe.block,ri))}else Bt=Fn(oe,ue,e);return ee(dt,0,0),Bt}function Zc(oe,dt){const Bt=Jn(oe.statements,ue,wa);return t.updateBlock(oe,[dt,...Bt])}function Rs(oe){R.assert(!Cs(oe.name));const dt=On(oe,h1(oe,-1),void 0,void 0);return sr(dt,1024|Eo(dt)),ht(t.createPropertyAssignment(oe.name,dt),oe)}function yl(oe){R.assert(!Cs(oe.name));const dt=k;k=void 0;const Bt=H(32670,65);let Ft;const un=Yl(oe.parameters,ue,e),Vn=Ir(oe);return oe.kind===174?Ft=t.updateGetAccessorDeclaration(oe,oe.modifiers,oe.name,un,oe.type,Vn):Ft=t.updateSetAccessorDeclaration(oe,oe.modifiers,oe.name,un,Vn),ee(Bt,98304,0),k=dt,Ft}function nl(oe){return ht(t.createPropertyAssignment(oe.name,Ue(t.cloneNode(oe.name))),oe)}function Ys(oe){return Fn(oe,ue,e)}function rn(oe){return Fn(oe,ue,e)}function zl(oe){return Dt(oe.elements,Fh)?Z(oe.elements,!1,!!oe.multiLine,!!oe.elements.hasTrailingComma):Fn(oe,ue,e)}function wu(oe){if(z_(oe)&1)return Zu(oe);const dt=Cu(oe.expression);return dt.kind===106||gd(dt)||Dt(oe.arguments,Fh)?kt(oe,!0):t.updateCallExpression(oe,R.checkDefined(ct(oe.expression,ae,yt)),void 0,Jn(oe.arguments,ue,yt))}function Zu(oe){const dt=lo(lo(Cu(oe.expression),Xs).body,fo),Bt=bf=>pc(bf)&&!!ds(bf.declarationList.declarations).initializer,Ft=k;k=void 0;const un=Jn(dt.statements,be,wa);k=Ft;const Vn=ur(un,Bt),Rr=ur(un,bf=>!Bt(bf)),Mi=lo(ds(Vn),pc).declarationList.declarations[0],Wa=Cu(Mi.initializer);let zo=li(Wa,cd);!zo&&Tr(Wa)&&Wa.operatorToken.kind===27&&(zo=li(Wa.left,cd));const Ss=lo(zo?Cu(zo.right):Wa,io),$s=lo(Cu(Ss.expression),Us),Ed=$s.body.statements;let vf=0,rc=-1;const Zd=[];if(zo){const bf=li(Ed[vf],du);bf&&(Zd.push(bf),vf++),Zd.push(Ed[vf]),vf++,Zd.push(t.createExpressionStatement(t.createAssignment(zo.left,lo(Mi.name,We))))}for(;!kp(Ty(Ed,rc));)rc--;xi(Zd,Ed,vf,rc),rc<-1&&xi(Zd,Ed,rc+1);const Du=li(Ty(Ed,rc),kp);for(const bf of Rr)kp(bf)&&(Du!=null&&Du.expression)&&!We(Du.expression)?Zd.push(Du):Zd.push(bf);return xi(Zd,Vn,1),t.restoreOuterExpressions(oe.expression,t.restoreOuterExpressions(Mi.initializer,t.restoreOuterExpressions(zo&&zo.right,t.updateCallExpression(Ss,t.restoreOuterExpressions(Ss.expression,t.updateFunctionExpression($s,void 0,void 0,void 0,void 0,$s.parameters,void 0,t.updateBlock($s.body,Zd))),void 0,Ss.arguments))))}function _e(oe){return kt(oe,!1)}function kt(oe,dt){if(oe.transformFlags&32768||oe.expression.kind===106||gd(Cu(oe.expression))){const{target:Bt,thisArg:Ft}=t.createCallBinding(oe.expression,c);oe.expression.kind===106&&sr(Ft,8);let un;if(oe.transformFlags&32768?un=t.createFunctionApplyCall(R.checkDefined(ct(Bt,ae,yt)),oe.expression.kind===106?Ft:R.checkDefined(ct(Ft,ue,yt)),Z(oe.arguments,!0,!1,!1)):un=ht(t.createFunctionCallCall(R.checkDefined(ct(Bt,ae,yt)),oe.expression.kind===106?Ft:R.checkDefined(ct(Ft,ue,yt)),Jn(oe.arguments,ue,yt)),oe),oe.expression.kind===106){const Vn=t.createLogicalOr(un,sn());un=dt?t.createAssignment(t.createUniqueName("_this",48),Vn):Vn}return zr(un,oe)}return Fn(oe,ue,e)}function Ht(oe){if(Dt(oe.arguments,Fh)){const{target:dt,thisArg:Bt}=t.createCallBinding(t.createPropertyAccessExpression(oe.expression,"bind"),c);return t.createNewExpression(t.createFunctionApplyCall(R.checkDefined(ct(dt,ue,yt)),Bt,Z(t.createNodeArray([t.createVoidZero(),...oe.arguments]),!0,!1,!1)),void 0,[])}return Fn(oe,ue,e)}function Z(oe,dt,Bt,Ft){const un=oe.length,Vn=Ha(P7(oe,st,(Wa,zo,Ss,$s)=>zo(Wa,Bt,Ft&&$s===un)));if(Vn.length===1){const Wa=Vn[0];if(dt&&!_.downlevelIteration||eK(Wa.expression)||e4(Wa.expression,"___spreadArray"))return Wa.expression}const Rr=r(),ri=Vn[0].kind!==0;let Mi=ri?t.createArrayLiteralExpression():Vn[0].expression;for(let Wa=ri?0:1;Wa<Vn.length;Wa++){const zo=Vn[Wa];Mi=Rr.createSpreadArrayHelper(Mi,zo.expression,zo.kind===1&&!dt)}return Mi}function st(oe){return Fh(oe)?At:Dr}function At(oe){return Pt(oe,fn)}function fn(oe){R.assertNode(oe,Fh);let dt=ct(oe.expression,ue,yt);R.assert(dt);const Bt=e4(dt,"___read");let Ft=Bt||eK(dt)?2:1;return _.downlevelIteration&&Ft===1&&!Ju(dt)&&!Bt&&(dt=r().createReadHelper(dt,void 0),Ft=2),Bve(Ft,dt)}function Dr(oe,dt,Bt){const Ft=t.createArrayLiteralExpression(Jn(t.createNodeArray(oe,Bt),ue,yt),dt);return Bve(0,Ft)}function Mr(oe){return ct(oe.expression,ue,yt)}function Sa(oe){return ht(t.createStringLiteral(oe.text),oe)}function cs(oe){return oe.hasExtendedUnicodeEscape?ht(t.createStringLiteral(oe.text),oe):oe}function yo(oe){return oe.numericLiteralFlags&384?ht(t.createNumericLiteral(oe.text),oe):oe}function Ho(oe){return JY(e,oe,ue,T,M,1)}function Qa(oe){let dt=t.createStringLiteral(oe.head.text);for(const Bt of oe.templateSpans){const Ft=[R.checkDefined(ct(Bt.expression,ue,yt))];Bt.literal.text.length>0&&Ft.push(t.createStringLiteral(Bt.literal.text)),dt=t.createCallExpression(t.createPropertyAccessExpression(dt,"concat"),void 0,Ft)}return ht(dt,oe)}function _l(oe){return L&8&&!oe?t.createPropertyAccessExpression(t.createUniqueName("_super",48),"prototype"):t.createUniqueName("_super",48)}function mc(oe){return oe.keywordToken===103&&oe.name.escapedText==="target"?(L|=32768,t.createUniqueName("_newTarget",48)):oe}function bd(oe,dt,Bt){if(U&1&&Ya(dt)){const Ft=H(32670,Eo(dt)&16?81:65);g(oe,dt,Bt),ee(Ft,0,0);return}g(oe,dt,Bt)}function Ts(){U&2||(U|=2,e.enableSubstitution(79))}function fs(){U&1||(U|=1,e.enableSubstitution(108),e.enableEmitNotification(173),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(216),e.enableEmitNotification(215),e.enableEmitNotification(259))}function pl(oe,dt){return dt=v(oe,dt),oe===1?Uf(dt):We(dt)?Qd(dt):dt}function Qd(oe){if(U&2&&!pX(oe)){const dt=Ea(oe,We);if(dt&&ql(dt))return ht(t.getGeneratedNameForNode(dt),oe)}return oe}function ql(oe){switch(oe.parent.kind){case 205:case 260:case 263:case 257:return oe.parent.name===oe&&d.isDeclarationWithCollidingName(oe.parent)}return!1}function Uf(oe){switch(oe.kind){case 79:return Ce(oe);case 108:return Nn(oe)}return oe}function Ce(oe){if(U&2&&!pX(oe)){const dt=d.getReferencedDeclarationWithCollidingName(oe);if(dt&&!(_i(dt)&&Nt(dt,oe)))return ht(t.getGeneratedNameForNode(ka(dt)),oe)}return oe}function Nt(oe,dt){let Bt=Ea(dt);if(!Bt||Bt===oe||Bt.end<=oe.pos||Bt.pos>=oe.end)return!1;const Ft=Hm(oe);for(;Bt;){if(Bt===Ft||Bt===oe)return!1;if(qc(Bt)&&Bt.parent===oe)return!0;Bt=Bt.parent}return!1}function Nn(oe){return U&1&&L&16?ht(t.createUniqueName("_this",48),oe):oe}function Qi(oe,dt){return Xa(dt)?t.getInternalName(oe):t.createPropertyAccessExpression(t.getInternalName(oe),"prototype")}function ko(oe,dt){if(!oe||!dt||Dt(oe.parameters))return!1;const Bt=tu(oe.body.statements);if(!Bt||!tl(Bt)||Bt.kind!==241)return!1;const Ft=Bt.expression;if(!tl(Ft)||Ft.kind!==210)return!1;const un=Ft.expression;if(!tl(un)||un.kind!==106)return!1;const Vn=Nm(Ft.arguments);if(!Vn||!tl(Vn)||Vn.kind!==227)return!1;const Rr=Vn.expression;return We(Rr)&&Rr.escapedText==="arguments"}}var BFe=b({"src/compiler/transformers/es2015.ts"(){"use strict";Oa()}});function Uve(e){const{factory:t}=e,r=e.getCompilerOptions();let i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=_,e.enableEmitNotification(283),e.enableEmitNotification(284),e.enableEmitNotification(282),o=[]);const s=e.onSubstituteNode;return e.onSubstituteNode=d,e.enableSubstitution(208),e.enableSubstitution(299),rp(e,c);function c(C){return C}function _(C,L,I){switch(L.kind){case 283:case 284:case 282:const M=L.tagName;o[Nl(M)]=!0;break}i(C,L,I)}function d(C,L){return L.id&&o&&o[L.id]?s(C,L):(L=s(C,L),Br(L)?v(L):$c(L)?g(L):L)}function v(C){if(Ri(C.name))return C;const L=T(C.name);return L?ht(t.createElementAccessExpression(C.expression,L),C):C}function g(C){const L=We(C.name)&&T(C.name);return L?t.updatePropertyAssignment(C,L,C.initializer):C}function T(C){const L=o1(C);if(L!==void 0&&L>=81&&L<=116)return ht(t.createStringLiteralFromNode(C),C)}}var GFe=b({"src/compiler/transformers/es5.ts"(){"use strict";Oa()}});function UFe(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 Vve(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:c}=e,_=e.getCompilerOptions(),d=ns(_),v=e.getEmitResolver(),g=e.onSubstituteNode;e.onSubstituteNode=fe;let T,C,L,I,M,k,U,j,H,ee,X=1,ne,P,ue,re,be=0,ae=0,z,ce,he,Ee,Ae,te,Ze,je;return rp(e,Ue);function Ue(Ce){if(Ce.isDeclarationFile||!(Ce.transformFlags&2048))return Ce;const Nt=Fn(Ce,Je,e);return Oy(Nt,e.readEmitHelpers()),Nt}function Je(Ce){const Nt=Ce.transformFlags;return I?Fe(Ce):L?Be(Ce):el(Ce)&&Ce.asteriskToken?ze(Ce):Nt&2048?Fn(Ce,Je,e):Ce}function Fe(Ce){switch(Ce.kind){case 243:return Ir(Ce);case 244:return Oe(Ce);case 252:return cn(Ce);case 253:return Er(Ce);default:return Be(Ce)}}function Be(Ce){switch(Ce.kind){case 259:return Ge(Ce);case 215:return lt(Ce);case 174:case 175:return Ct(Ce);case 240:return zt(Ce);case 245:return Ot(Ce);case 246:return pt(Ce);case 249:return W(Ce);case 248:return ie(Ce);case 250:return et(Ce);default:return Ce.transformFlags&1048576?$e(Ce):Ce.transformFlags&4196352?Fn(Ce,Je,e):Ce}}function $e(Ce){switch(Ce.kind){case 223:return nt(Ce);case 357:return gn(Ce);case 224:return Ln(Ce);case 226:return Zt(Ce);case 206:return pr(Ce);case 207:return ea(Ce);case 209:return ta(Ce);case 210:return Or(Ce);case 211:return Lt(Ce);default:return Fn(Ce,Je,e)}}function ze(Ce){switch(Ce.kind){case 259:return Ge(Ce);case 215:return lt(Ce);default:return R.failBadSyntaxKind(Ce)}}function Ge(Ce){if(Ce.asteriskToken)Ce=zr(ht(t.createFunctionDeclaration(Ce.modifiers,void 0,Ce.name,void 0,Yl(Ce.parameters,Je,e),void 0,bt(Ce.body)),Ce),Ce);else{const Nt=L,Nn=I;L=!1,I=!1,Ce=Fn(Ce,Je,e),L=Nt,I=Nn}if(L){s(Ce);return}else return Ce}function lt(Ce){if(Ce.asteriskToken)Ce=zr(ht(t.createFunctionExpression(void 0,void 0,Ce.name,void 0,Yl(Ce.parameters,Je,e),void 0,bt(Ce.body)),Ce),Ce);else{const Nt=L,Nn=I;L=!1,I=!1,Ce=Fn(Ce,Je,e),L=Nt,I=Nn}return Ce}function Ct(Ce){const Nt=L,Nn=I;return L=!1,I=!1,Ce=Fn(Ce,Je,e),L=Nt,I=Nn,Ce}function bt(Ce){const Nt=[],Nn=L,Qi=I,ko=M,oe=k,dt=U,Bt=j,Ft=H,un=ee,Vn=X,Rr=ne,ri=P,Mi=ue,Wa=re;L=!0,I=!1,M=void 0,k=void 0,U=void 0,j=void 0,H=void 0,ee=void 0,X=1,ne=void 0,P=void 0,ue=void 0,re=t.createTempVariable(void 0),i();const zo=t.copyPrologue(Ce.statements,Nt,!1,Je);yn(Ce.statements,zo);const Ss=Z();return Wm(Nt,o()),Nt.push(t.createReturnStatement(Ss)),L=Nn,I=Qi,M=ko,k=oe,U=dt,j=Bt,H=Ft,ee=un,X=Vn,ne=Rr,P=ri,ue=Mi,re=Wa,ht(t.createBlock(Nt,Ce.multiLine),Ce)}function zt(Ce){if(Ce.transformFlags&1048576){bi(Ce.declarationList);return}else{if(Eo(Ce)&2097152)return Ce;for(const Nn of Ce.declarationList.declarations)c(Nn.name);const Nt=Ok(Ce.declarationList);return Nt.length===0?void 0:ps(t.createExpressionStatement(t.inlineExpressions(Pt(Nt,Rn))),Ce)}}function nt(Ce){const Nt=iJ(Ce);switch(Nt){case 0:return sn(Ce);case 1:return ot(Ce);default:return R.assertNever(Nt)}}function ot(Ce){const{left:Nt,right:Nn}=Ce;if(Jt(Nn)){let Qi;switch(Nt.kind){case 208:Qi=t.updatePropertyAccessExpression(Nt,Ne(R.checkDefined(ct(Nt.expression,Je,Id))),Nt.name);break;case 209:Qi=t.updateElementAccessExpression(Nt,Ne(R.checkDefined(ct(Nt.expression,Je,Id))),Ne(R.checkDefined(ct(Nt.argumentExpression,Je,yt))));break;default:Qi=R.checkDefined(ct(Nt,Je,yt));break}const ko=Ce.operatorToken.kind;return _N(ko)?ht(t.createAssignment(Qi,ht(t.createBinaryExpression(Ne(Qi),w4(ko),R.checkDefined(ct(Nn,Je,yt))),Ce)),Ce):t.updateBinaryExpression(Ce,Qi,Ce.operatorToken,R.checkDefined(ct(Nn,Je,yt)))}return Fn(Ce,Je,e)}function sn(Ce){return Jt(Ce.right)?bpe(Ce.operatorToken.kind)?jn(Ce):Ce.operatorToken.kind===27?pn(Ce):t.updateBinaryExpression(Ce,Ne(R.checkDefined(ct(Ce.left,Je,yt))),Ce.operatorToken,R.checkDefined(ct(Ce.right,Je,yt))):Fn(Ce,Je,e)}function pn(Ce){let Nt=[];return Nn(Ce.left),Nn(Ce.right),t.inlineExpressions(Nt);function Nn(Qi){Tr(Qi)&&Qi.operatorToken.kind===27?(Nn(Qi.left),Nn(Qi.right)):(Jt(Qi)&&Nt.length>0&&(Ht(1,[t.createExpressionStatement(t.inlineExpressions(Nt))]),Nt=[]),Nt.push(R.checkDefined(ct(Qi,Je,yt))))}}function gn(Ce){let Nt=[];for(const Nn of Ce.elements)Tr(Nn)&&Nn.operatorToken.kind===27?Nt.push(pn(Nn)):(Jt(Nn)&&Nt.length>0&&(Ht(1,[t.createExpressionStatement(t.inlineExpressions(Nt))]),Nt=[]),Nt.push(R.checkDefined(ct(Nn,Je,yt))));return t.inlineExpressions(Nt)}function jn(Ce){const Nt=wt(),Nn=J();return yl(Nn,R.checkDefined(ct(Ce.left,Je,yt)),Ce.left),Ce.operatorToken.kind===55?rn(Nt,Nn,Ce.left):Ys(Nt,Nn,Ce.left),yl(Nn,R.checkDefined(ct(Ce.right,Je,yt)),Ce.right),Et(Nt),Nn}function Ln(Ce){if(Jt(Ce.whenTrue)||Jt(Ce.whenFalse)){const Nt=wt(),Nn=wt(),Qi=J();return rn(Nt,R.checkDefined(ct(Ce.condition,Je,yt)),Ce.condition),yl(Qi,R.checkDefined(ct(Ce.whenTrue,Je,yt)),Ce.whenTrue),nl(Nn),Et(Nt),yl(Qi,R.checkDefined(ct(Ce.whenFalse,Je,yt)),Ce.whenFalse),Et(Nn),Qi}return Fn(Ce,Je,e)}function Zt(Ce){const Nt=wt(),Nn=ct(Ce.expression,Je,yt);if(Ce.asteriskToken){const Qi=Eo(Ce.expression)&16777216?Nn:ht(r().createValuesHelper(Nn),Ce);zl(Qi,Ce)}else wu(Nn,Ce);return Et(Nt),lc(Ce)}function pr(Ce){return Ii(Ce.elements,void 0,void 0,Ce.multiLine)}function Ii(Ce,Nt,Nn,Qi){const ko=at(Ce);let oe;if(ko>0){oe=J();const Ft=Jn(Ce,Je,yt,0,ko);yl(oe,t.createArrayLiteralExpression(Nt?[Nt,...Ft]:Ft)),Nt=void 0}const dt=Vu(Ce,Bt,[],ko);return oe?t.createArrayConcatCall(oe,[t.createArrayLiteralExpression(dt,Qi)]):ht(t.createArrayLiteralExpression(Nt?[Nt,...dt]:dt,Qi),Nn);function Bt(Ft,un){if(Jt(un)&&Ft.length>0){const Vn=oe!==void 0;oe||(oe=J()),yl(oe,Vn?t.createArrayConcatCall(oe,[t.createArrayLiteralExpression(Ft,Qi)]):t.createArrayLiteralExpression(Nt?[Nt,...Ft]:Ft,Qi)),Nt=void 0,Ft=[]}return Ft.push(R.checkDefined(ct(un,Je,yt))),Ft}}function ea(Ce){const Nt=Ce.properties,Nn=Ce.multiLine,Qi=at(Nt),ko=J();yl(ko,t.createObjectLiteralExpression(Jn(Nt,Je,Iy,0,Qi),Nn));const oe=Vu(Nt,dt,[],Qi);return oe.push(Nn?Yu(jo(ht(t.cloneNode(ko),ko),ko.parent)):ko),t.inlineExpressions(oe);function dt(Bt,Ft){Jt(Ft)&&Bt.length>0&&(Rs(t.createExpressionStatement(t.inlineExpressions(Bt))),Bt=[]);const un=xhe(t,Ce,Ft,ko),Vn=ct(un,Je,yt);return Vn&&(Nn&&Yu(Vn),Bt.push(Vn)),Bt}}function ta(Ce){return Jt(Ce.argumentExpression)?t.updateElementAccessExpression(Ce,Ne(R.checkDefined(ct(Ce.expression,Je,Id))),R.checkDefined(ct(Ce.argumentExpression,Je,yt))):Fn(Ce,Je,e)}function Or(Ce){if(!pf(Ce)&&Ie(Ce.arguments,Jt)){const{target:Nt,thisArg:Nn}=t.createCallBinding(Ce.expression,c,d,!0);return zr(ht(t.createFunctionApplyCall(Ne(R.checkDefined(ct(Nt,Je,Id))),Nn,Ii(Ce.arguments)),Ce),Ce)}return Fn(Ce,Je,e)}function Lt(Ce){if(Ie(Ce.arguments,Jt)){const{target:Nt,thisArg:Nn}=t.createCallBinding(t.createPropertyAccessExpression(Ce.expression,"bind"),c);return zr(ht(t.createNewExpression(t.createFunctionApplyCall(Ne(R.checkDefined(ct(Nt,Je,yt))),Nn,Ii(Ce.arguments,t.createVoidZero())),void 0,[]),Ce),Ce)}return Fn(Ce,Je,e)}function yn(Ce,Nt=0){const Nn=Ce.length;for(let Qi=Nt;Qi<Nn;Qi++)In(Ce[Qi])}function Wt(Ce){fo(Ce)?yn(Ce.statements):In(Ce)}function In(Ce){const Nt=I;I||(I=Jt(Ce)),Bn(Ce),I=Nt}function Bn(Ce){switch(Ce.kind){case 238:return lr(Ce);case 241:return Oi(Ce);case 242:return an(Ce);case 243:return On(Ce);case 244:return Hr(Ce);case 245:return gt(Ce);case 246:return Le(Ce);case 248:return me(Ce);case 249:return ye(Ce);case 250:return He(Ce);case 251:return Ye(Ce);case 252:return jt(Ce);case 253:return Sn(Ce);case 254:return de(Ce);case 255:return mt(Ce);default:return Rs(ct(Ce,Je,wa))}}function lr(Ce){Jt(Ce)?yn(Ce.statements):Rs(ct(Ce,Je,wa))}function Oi(Ce){Rs(ct(Ce,Je,wa))}function bi(Ce){for(const oe of Ce.declarations){const dt=t.cloneNode(oe.name);Xc(dt,oe.name),c(dt)}const Nt=Ok(Ce),Nn=Nt.length;let Qi=0,ko=[];for(;Qi<Nn;){for(let oe=Qi;oe<Nn;oe++){const dt=Nt[oe];if(Jt(dt.initializer)&&ko.length>0)break;ko.push(Rn(dt))}ko.length&&(Rs(t.createExpressionStatement(t.inlineExpressions(ko))),Qi+=ko.length,ko=[])}}function Rn(Ce){return ps(t.createAssignment(ps(t.cloneNode(Ce.name),Ce.name),R.checkDefined(ct(Ce.initializer,Je,yt))),Ce)}function an(Ce){if(Jt(Ce))if(Jt(Ce.thenStatement)||Jt(Ce.elseStatement)){const Nt=wt(),Nn=Ce.elseStatement?wt():void 0;rn(Ce.elseStatement?Nn:Nt,R.checkDefined(ct(Ce.expression,Je,yt)),Ce.expression),Wt(Ce.thenStatement),Ce.elseStatement&&(nl(Nt),Et(Nn),Wt(Ce.elseStatement)),Et(Nt)}else Rs(ct(Ce,Je,wa));else Rs(ct(Ce,Je,wa))}function On(Ce){if(Jt(Ce)){const Nt=wt(),Nn=wt();Hi(Nt),Et(Nn),Wt(Ce.statement),Et(Nt),Ys(Nn,R.checkDefined(ct(Ce.expression,Je,yt))),$r()}else Rs(ct(Ce,Je,wa))}function Ir(Ce){return I?(da(),Ce=Fn(Ce,Je,e),$r(),Ce):Fn(Ce,Je,e)}function Hr(Ce){if(Jt(Ce)){const Nt=wt(),Nn=Hi(Nt);Et(Nt),rn(Nn,R.checkDefined(ct(Ce.expression,Je,yt))),Wt(Ce.statement),nl(Nt),$r()}else Rs(ct(Ce,Je,wa))}function Oe(Ce){return I?(da(),Ce=Fn(Ce,Je,e),$r(),Ce):Fn(Ce,Je,e)}function gt(Ce){if(Jt(Ce)){const Nt=wt(),Nn=wt(),Qi=Hi(Nn);if(Ce.initializer){const ko=Ce.initializer;Xu(ko)?bi(ko):Rs(ht(t.createExpressionStatement(R.checkDefined(ct(ko,Je,yt))),ko))}Et(Nt),Ce.condition&&rn(Qi,R.checkDefined(ct(Ce.condition,Je,yt))),Wt(Ce.statement),Et(Nn),Ce.incrementor&&Rs(ht(t.createExpressionStatement(R.checkDefined(ct(Ce.incrementor,Je,yt))),Ce.incrementor)),nl(Nt),$r()}else Rs(ct(Ce,Je,wa))}function Ot(Ce){I&&da();const Nt=Ce.initializer;if(Nt&&Xu(Nt)){for(const Qi of Nt.declarations)c(Qi.name);const Nn=Ok(Nt);Ce=t.updateForStatement(Ce,Nn.length>0?t.inlineExpressions(Pt(Nn,Rn)):void 0,ct(Ce.condition,Je,yt),ct(Ce.incrementor,Je,yt),L_(Ce.statement,Je,e))}else Ce=Fn(Ce,Je,e);return I&&$r(),Ce}function Le(Ce){if(Jt(Ce)){const Nt=J(),Nn=J(),Qi=J(),ko=t.createLoopVariable(),oe=Ce.initializer;c(ko),yl(Nt,R.checkDefined(ct(Ce.expression,Je,yt))),yl(Nn,t.createArrayLiteralExpression()),Rs(t.createForInStatement(Qi,Nt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Nn,"push"),void 0,[Qi])))),yl(ko,t.createNumericLiteral(0));const dt=wt(),Bt=wt(),Ft=Hi(Bt);Et(dt),rn(Ft,t.createLessThan(ko,t.createPropertyAccessExpression(Nn,"length"))),yl(Qi,t.createElementAccessExpression(Nn,ko)),rn(Bt,t.createBinaryExpression(Qi,101,Nt));let un;if(Xu(oe)){for(const Vn of oe.declarations)c(Vn.name);un=t.cloneNode(oe.declarations[0].name)}else un=R.checkDefined(ct(oe,Je,yt)),R.assert(Id(un));yl(un,Qi),Wt(Ce.statement),Et(Bt),Rs(t.createExpressionStatement(t.createPostfixIncrement(ko))),nl(dt),$r()}else Rs(ct(Ce,Je,wa))}function pt(Ce){I&&da();const Nt=Ce.initializer;if(Xu(Nt)){for(const Nn of Nt.declarations)c(Nn.name);Ce=t.updateForInStatement(Ce,Nt.declarations[0].name,R.checkDefined(ct(Ce.expression,Je,yt)),R.checkDefined(ct(Ce.statement,Je,wa,t.liftToBlock)))}else Ce=Fn(Ce,Je,e);return I&&$r(),Ce}function me(Ce){const Nt=La(Ce.label?Pr(Ce.label):void 0);Nt>0?nl(Nt,Ce):Rs(Ce)}function ie(Ce){if(I){const Nt=La(Ce.label&&Pr(Ce.label));if(Nt>0)return ou(Nt,Ce)}return Fn(Ce,Je,e)}function ye(Ce){const Nt=Io(Ce.label?Pr(Ce.label):void 0);Nt>0?nl(Nt,Ce):Rs(Ce)}function W(Ce){if(I){const Nt=Io(Ce.label&&Pr(Ce.label));if(Nt>0)return ou(Nt,Ce)}return Fn(Ce,Je,e)}function He(Ce){Zu(ct(Ce.expression,Je,yt),Ce)}function et(Ce){return $d(ct(Ce.expression,Je,yt),Ce)}function Ye(Ce){Jt(Ce)?(gi(Ne(R.checkDefined(ct(Ce.expression,Je,yt)))),Wt(Ce.statement),ui()):Rs(ct(Ce,Je,wa))}function jt(Ce){if(Jt(Ce.caseBlock)){const Nt=Ce.caseBlock,Nn=Nt.clauses.length,Qi=mi(),ko=Ne(R.checkDefined(ct(Ce.expression,Je,yt))),oe=[];let dt=-1;for(let un=0;un<Nn;un++){const Vn=Nt.clauses[un];oe.push(wt()),Vn.kind===293&&dt===-1&&(dt=un)}let Bt=0,Ft=[];for(;Bt<Nn;){let un=0;for(let Vn=Bt;Vn<Nn;Vn++){const Rr=Nt.clauses[Vn];if(Rr.kind===292){if(Jt(Rr.expression)&&Ft.length>0)break;Ft.push(t.createCaseClause(R.checkDefined(ct(Rr.expression,Je,yt)),[ou(oe[Vn],Rr.expression)]))}else un++}Ft.length&&(Rs(t.createSwitchStatement(ko,t.createCaseBlock(Ft))),Bt+=Ft.length,Ft=[]),un>0&&(Bt+=un,un=0)}dt>=0?nl(oe[dt]):nl(Qi);for(let un=0;un<Nn;un++)Et(oe[un]),yn(Nt.clauses[un].statements);fa()}else Rs(ct(Ce,Je,wa))}function cn(Ce){return I&&ls(),Ce=Fn(Ce,Je,e),I&&fa(),Ce}function Sn(Ce){Jt(Ce)?(pa(Pr(Ce.label)),Wt(Ce.statement),nc()):Rs(ct(Ce,Je,wa))}function Er(Ce){return I&&wn(Pr(Ce.label)),Ce=Fn(Ce,Je,e),I&&nc(),Ce}function de(Ce){var Nt;_e(R.checkDefined(ct((Nt=Ce.expression)!=null?Nt:t.createVoidZero(),Je,yt)),Ce)}function mt(Ce){Jt(Ce)?(Wi(),Wt(Ce.tryBlock),Ce.catchClause&&(go(Ce.catchClause.variableDeclaration),Wt(Ce.catchClause.block)),Ce.finallyBlock&&(xo(),Wt(Ce.finallyBlock)),oo()):Rs(Fn(Ce,Je,e))}function Jt(Ce){return!!Ce&&(Ce.transformFlags&1048576)!==0}function at(Ce){const Nt=Ce.length;for(let Nn=0;Nn<Nt;Nn++)if(Jt(Ce[Nn]))return Nn;return-1}function fe(Ce,Nt){return Nt=g(Ce,Nt),Ce===1?Te(Nt):Nt}function Te(Ce){return We(Ce)?Y(Ce):Ce}function Y(Ce){if(!Ll(Ce)&&T&&T.has(Pr(Ce))){const Nt=Cl(Ce);if(We(Nt)&&Nt.parent){const Nn=v.getReferencedValueDeclaration(Nt);if(Nn){const Qi=C[Nl(Nn)];if(Qi){const ko=jo(ht(t.cloneNode(Qi),Qi),Qi.parent);return ps(ko,Ce),Xc(ko,Ce),ko}}}}return Ce}function Ne(Ce){if(Ll(Ce)||Eo(Ce)&8192)return Ce;const Nt=t.createTempVariable(c);return yl(Nt,Ce,Ce),Nt}function J(Ce){const Nt=Ce?t.createUniqueName(Ce):t.createTempVariable(void 0);return c(Nt),Nt}function wt(){H||(H=[]);const Ce=X;return X++,H[Ce]=-1,Ce}function Et(Ce){R.assert(H!==void 0,"No labels were defined."),H[Ce]=ne?ne.length:0}function ut(Ce){M||(M=[],U=[],k=[],j=[]);const Nt=U.length;return U[Nt]=0,k[Nt]=ne?ne.length:0,M[Nt]=Ce,j.push(Ce),Nt}function nn(){const Ce=ir();if(Ce===void 0)return R.fail("beginBlock was never called.");const Nt=U.length;return U[Nt]=1,k[Nt]=ne?ne.length:0,M[Nt]=Ce,j.pop(),Ce}function ir(){return rl(j)}function ai(){const Ce=ir();return Ce&&Ce.kind}function gi(Ce){const Nt=wt(),Nn=wt();Et(Nt),ut({kind:1,expression:Ce,startLabel:Nt,endLabel:Nn})}function ui(){R.assert(ai()===1);const Ce=nn();Et(Ce.endLabel)}function Wi(){const Ce=wt(),Nt=wt();return Et(Ce),ut({kind:0,state:0,startLabel:Ce,endLabel:Nt}),Zc(),Nt}function go(Ce){R.assert(ai()===0);let Nt;if(Ll(Ce.name))Nt=Ce.name,c(Ce.name);else{const oe=Pr(Ce.name);Nt=J(oe),T||(T=new Map,C=[],e.enableSubstitution(79)),T.set(oe,!0),C[Nl(Ce)]=Nt}const Nn=ir();R.assert(Nn.state<1);const Qi=Nn.endLabel;nl(Qi);const ko=wt();Et(ko),Nn.state=1,Nn.catchVariable=Nt,Nn.catchLabel=ko,yl(Nt,t.createCallExpression(t.createPropertyAccessExpression(re,"sent"),void 0,[])),Zc()}function xo(){R.assert(ai()===0);const Ce=ir();R.assert(Ce.state<2);const Nt=Ce.endLabel;nl(Nt);const Nn=wt();Et(Nn),Ce.state=2,Ce.finallyLabel=Nn}function oo(){R.assert(ai()===0);const Ce=nn();Ce.state<2?nl(Ce.endLabel):kt(),Et(Ce.endLabel),Zc(),Ce.state=3}function da(){ut({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function Hi(Ce){const Nt=wt();return ut({kind:3,isScript:!1,breakLabel:Nt,continueLabel:Ce}),Nt}function $r(){R.assert(ai()===3);const Ce=nn(),Nt=Ce.breakLabel;Ce.isScript||Et(Nt)}function ls(){ut({kind:2,isScript:!0,breakLabel:-1})}function mi(){const Ce=wt();return ut({kind:2,isScript:!1,breakLabel:Ce}),Ce}function fa(){R.assert(ai()===2);const Ce=nn(),Nt=Ce.breakLabel;Ce.isScript||Et(Nt)}function wn(Ce){ut({kind:4,isScript:!0,labelText:Ce,breakLabel:-1})}function pa(Ce){const Nt=wt();ut({kind:4,isScript:!1,labelText:Ce,breakLabel:Nt})}function nc(){R.assert(ai()===4);const Ce=nn();Ce.isScript||Et(Ce.breakLabel)}function al(Ce){return Ce.kind===2||Ce.kind===3}function jl(Ce){return Ce.kind===4}function $l(Ce){return Ce.kind===3}function Wl(Ce,Nt){for(let Nn=Nt;Nn>=0;Nn--){const Qi=j[Nn];if(jl(Qi)){if(Qi.labelText===Ce)return!0}else break}return!1}function Io(Ce){if(j)if(Ce)for(let Nt=j.length-1;Nt>=0;Nt--){const Nn=j[Nt];if(jl(Nn)&&Nn.labelText===Ce)return Nn.breakLabel;if(al(Nn)&&Wl(Ce,Nt-1))return Nn.breakLabel}else for(let Nt=j.length-1;Nt>=0;Nt--){const Nn=j[Nt];if(al(Nn))return Nn.breakLabel}return 0}function La(Ce){if(j)if(Ce)for(let Nt=j.length-1;Nt>=0;Nt--){const Nn=j[Nt];if($l(Nn)&&Wl(Ce,Nt-1))return Nn.continueLabel}else for(let Nt=j.length-1;Nt>=0;Nt--){const Nn=j[Nt];if($l(Nn))return Nn.continueLabel}return 0}function Qo(Ce){if(Ce!==void 0&&Ce>0){ee===void 0&&(ee=[]);const Nt=t.createNumericLiteral(-1);return ee[Ce]===void 0?ee[Ce]=[Nt]:ee[Ce].push(Nt),Nt}return t.createOmittedExpression()}function Hl(Ce){const Nt=t.createNumericLiteral(Ce);return o5(Nt,3,UFe(Ce)),Nt}function ou(Ce,Nt){return R.assertLessThan(0,Ce,"Invalid label"),ht(t.createReturnStatement(t.createArrayLiteralExpression([Hl(3),Qo(Ce)])),Nt)}function $d(Ce,Nt){return ht(t.createReturnStatement(t.createArrayLiteralExpression(Ce?[Hl(2),Ce]:[Hl(2)])),Nt)}function lc(Ce){return ht(t.createCallExpression(t.createPropertyAccessExpression(re,"sent"),void 0,[]),Ce)}function Zc(){Ht(0)}function Rs(Ce){Ce?Ht(1,[Ce]):Zc()}function yl(Ce,Nt,Nn){Ht(2,[Ce,Nt],Nn)}function nl(Ce,Nt){Ht(3,[Ce],Nt)}function Ys(Ce,Nt,Nn){Ht(4,[Ce,Nt],Nn)}function rn(Ce,Nt,Nn){Ht(5,[Ce,Nt],Nn)}function zl(Ce,Nt){Ht(7,[Ce],Nt)}function wu(Ce,Nt){Ht(6,[Ce],Nt)}function Zu(Ce,Nt){Ht(8,[Ce],Nt)}function _e(Ce,Nt){Ht(9,[Ce],Nt)}function kt(){Ht(10)}function Ht(Ce,Nt,Nn){ne===void 0&&(ne=[],P=[],ue=[]),H===void 0&&Et(wt());const Qi=ne.length;ne[Qi]=Ce,P[Qi]=Nt,ue[Qi]=Nn}function Z(){be=0,ae=0,z=void 0,ce=!1,he=!1,Ee=void 0,Ae=void 0,te=void 0,Ze=void 0,je=void 0;const Ce=st();return r().createGeneratorHelper(sr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,re)],void 0,t.createBlock(Ce,Ce.length>0)),1048576))}function st(){if(ne){for(let Ce=0;Ce<ne.length;Ce++)Ho(Ce);fn(ne.length)}else fn(0);if(Ee){const Ce=t.createPropertyAccessExpression(re,"label"),Nt=t.createSwitchStatement(Ce,t.createCaseBlock(Ee));return[Yu(Nt)]}return Ae||[]}function At(){Ae&&(Mr(!ce),ce=!1,he=!1,ae++)}function fn(Ce){Dr(Ce)&&(Sa(Ce),je=void 0,bd(void 0,void 0)),Ae&&Ee&&Mr(!1),cs()}function Dr(Ce){if(!he)return!0;if(!H||!ee)return!1;for(let Nt=0;Nt<H.length;Nt++)if(H[Nt]===Ce&&ee[Nt])return!0;return!1}function Mr(Ce){if(Ee||(Ee=[]),Ae){if(je)for(let Nt=je.length-1;Nt>=0;Nt--){const Nn=je[Nt];Ae=[t.createWithStatement(Nn.expression,t.createBlock(Ae))]}if(Ze){const{startLabel:Nt,catchLabel:Nn,finallyLabel:Qi,endLabel:ko}=Ze;Ae.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(re,"trys"),"push"),void 0,[t.createArrayLiteralExpression([Qo(Nt),Qo(Nn),Qo(Qi),Qo(ko)])]))),Ze=void 0}Ce&&Ae.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(re,"label"),t.createNumericLiteral(ae+1))))}Ee.push(t.createCaseClause(t.createNumericLiteral(ae),Ae||[])),Ae=void 0}function Sa(Ce){if(H)for(let Nt=0;Nt<H.length;Nt++)H[Nt]===Ce&&(At(),z===void 0&&(z=[]),z[ae]===void 0?z[ae]=[Nt]:z[ae].push(Nt))}function cs(){if(ee!==void 0&&z!==void 0)for(let Ce=0;Ce<z.length;Ce++){const Nt=z[Ce];if(Nt!==void 0)for(const Nn of Nt){const Qi=ee[Nn];if(Qi!==void 0)for(const ko of Qi)ko.text=String(Ce)}}}function yo(Ce){if(M)for(;be<U.length&&k[be]<=Ce;be++){const Nt=M[be],Nn=U[be];switch(Nt.kind){case 0:Nn===0?(te||(te=[]),Ae||(Ae=[]),te.push(Ze),Ze=Nt):Nn===1&&(Ze=te.pop());break;case 1:Nn===0?(je||(je=[]),je.push(Nt)):Nn===1&&je.pop();break}}}function Ho(Ce){if(Sa(Ce),yo(Ce),ce)return;ce=!1,he=!1;const Nt=ne[Ce];if(Nt===0)return;if(Nt===10)return Uf();const Nn=P[Ce];if(Nt===1)return Qa(Nn[0]);const Qi=ue[Ce];switch(Nt){case 2:return _l(Nn[0],Nn[1],Qi);case 3:return Ts(Nn[0],Qi);case 4:return fs(Nn[0],Nn[1],Qi);case 5:return pl(Nn[0],Nn[1],Qi);case 6:return Qd(Nn[0],Qi);case 7:return ql(Nn[0],Qi);case 8:return bd(Nn[0],Qi);case 9:return mc(Nn[0],Qi)}}function Qa(Ce){Ce&&(Ae?Ae.push(Ce):Ae=[Ce])}function _l(Ce,Nt,Nn){Qa(ht(t.createExpressionStatement(t.createAssignment(Ce,Nt)),Nn))}function mc(Ce,Nt){ce=!0,he=!0,Qa(ht(t.createThrowStatement(Ce),Nt))}function bd(Ce,Nt){ce=!0,he=!0,Qa(sr(ht(t.createReturnStatement(t.createArrayLiteralExpression(Ce?[Hl(2),Ce]:[Hl(2)])),Nt),768))}function Ts(Ce,Nt){ce=!0,Qa(sr(ht(t.createReturnStatement(t.createArrayLiteralExpression([Hl(3),Qo(Ce)])),Nt),768))}function fs(Ce,Nt,Nn){Qa(sr(t.createIfStatement(Nt,sr(ht(t.createReturnStatement(t.createArrayLiteralExpression([Hl(3),Qo(Ce)])),Nn),768)),1))}function pl(Ce,Nt,Nn){Qa(sr(t.createIfStatement(t.createLogicalNot(Nt),sr(ht(t.createReturnStatement(t.createArrayLiteralExpression([Hl(3),Qo(Ce)])),Nn),768)),1))}function Qd(Ce,Nt){ce=!0,Qa(sr(ht(t.createReturnStatement(t.createArrayLiteralExpression(Ce?[Hl(4),Ce]:[Hl(4)])),Nt),768))}function ql(Ce,Nt){ce=!0,Qa(sr(ht(t.createReturnStatement(t.createArrayLiteralExpression([Hl(5),Ce])),Nt),768))}function Uf(){ce=!0,Qa(t.createReturnStatement(t.createArrayLiteralExpression([Hl(7)])))}}var VFe=b({"src/compiler/transformers/generators.ts"(){"use strict";Oa()}});function $Y(e){function t(ie){switch(ie){case 2:return P;case 3:return ue;default:return ne}}const{factory:r,getEmitHelperFactory:i,startLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:c}=e,_=e.getCompilerOptions(),d=e.getEmitResolver(),v=e.getEmitHost(),g=ns(_),T=uu(_),C=e.onSubstituteNode,L=e.onEmitNode;e.onSubstituteNode=Ir,e.onEmitNode=On,e.enableSubstitution(210),e.enableSubstitution(212),e.enableSubstitution(79),e.enableSubstitution(223),e.enableSubstitution(300),e.enableEmitNotification(308);const I=[],M=[];let k,U;const j=[];let H;return rp(e,ee);function ee(ie){if(ie.isDeclarationFile||!(kS(ie,_)||ie.transformFlags&8388608||E_(ie)&&FP(_)&&Ks(_)))return ie;k=ie,U=BY(e,ie,d,_),I[Nl(ie)]=U;const W=t(T)(ie);return k=void 0,U=void 0,H=!1,W}function X(){return!!(!U.exportEquals&&tc(k))}function ne(ie){o();const ye=[],W=A_(_,"alwaysStrict")||!_.noImplicitUseStrict&&tc(k),He=r.copyPrologue(ie.statements,ye,W&&!E_(ie),ce);if(X()&&Pn(ye,Oi()),ge(U.exportedNames))for(let jt=0;jt<U.exportedNames.length;jt+=50)Pn(ye,r.createExpressionStatement(Vu(U.exportedNames.slice(jt,jt+50),(cn,Sn)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Pr(Sn))),cn),r.createVoidZero())));Pn(ye,ct(U.externalHelpersImportDeclaration,ce,wa)),xi(ye,Jn(ie.statements,ce,wa,He)),z(ye,!1),Wm(ye,s());const et=r.updateSourceFile(ie,ht(r.createNodeArray(ye),ie.statements));return Oy(et,e.readEmitHelpers()),et}function P(ie){const ye=r.createIdentifier("define"),W=D6(r,ie,v,_),He=E_(ie)&&ie,{aliasedModuleNames:et,unaliasedModuleNames:Ye,importAliasNames:jt}=re(ie,!0),cn=r.updateSourceFile(ie,ht(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(ye,void 0,[...W?[W]:[],r.createArrayLiteralExpression(He?it:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...et,...Ye]),He?He.statements.length?He.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"),...jt],void 0,ae(ie))]))]),ie.statements));return Oy(cn,e.readEmitHelpers()),cn}function ue(ie){const{aliasedModuleNames:ye,unaliasedModuleNames:W,importAliasNames:He}=re(ie,!1),et=D6(r,ie,v,_),Ye=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,ht(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")]))]),sr(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,[...et?[et]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...ye,...W]),r.createIdentifier("factory")]))])))],!0),void 0)),jt=r.updateSourceFile(ie,ht(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Ye,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"),...He],void 0,ae(ie))]))]),ie.statements));return Oy(jt,e.readEmitHelpers()),jt}function re(ie,ye){const W=[],He=[],et=[];for(const Ye of ie.amdDependencies)Ye.name?(W.push(r.createStringLiteral(Ye.path)),et.push(r.createParameterDeclaration(void 0,void 0,Ye.name))):He.push(r.createStringLiteral(Ye.path));for(const Ye of U.externalImports){const jt=fx(r,Ye,k,v,d,_),cn=QC(r,Ye,k);jt&&(ye&&cn?(sr(cn,8),W.push(jt),et.push(r.createParameterDeclaration(void 0,void 0,cn))):He.push(jt))}return{aliasedModuleNames:W,unaliasedModuleNames:He,importAliasNames:et}}function be(ie){if(fu(ie)||au(ie)||!fx(r,ie,k,v,d,_))return;const ye=QC(r,ie,k),W=bt(ie,ye);if(W!==ye)return r.createExpressionStatement(r.createAssignment(ye,W))}function ae(ie){o();const ye=[],W=r.copyPrologue(ie.statements,ye,!_.noImplicitUseStrict,ce);X()&&Pn(ye,Oi()),ge(U.exportedNames)&&Pn(ye,r.createExpressionStatement(Vu(U.exportedNames,(et,Ye)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Pr(Ye))),et),r.createVoidZero()))),Pn(ye,ct(U.externalHelpersImportDeclaration,ce,wa)),T===2&&xi(ye,ua(U.externalImports,be)),xi(ye,Jn(ie.statements,ce,wa,W)),z(ye,!0),Wm(ye,s());const He=r.createBlock(ye,!0);return H&&KS(He,jve),He}function z(ie,ye){if(U.exportEquals){const W=ct(U.exportEquals.expression,Ee,yt);if(W)if(ye){const He=r.createReturnStatement(W);ht(He,U.exportEquals),sr(He,3840),ie.push(He)}else{const He=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),W));ht(He,U.exportEquals),sr(He,3072),ie.push(He)}}}function ce(ie){switch(ie.kind){case 269:return zt(ie);case 268:return ot(ie);case 275:return sn(ie);case 274:return pn(ie);case 240:return Ln(ie);case 259:return gn(ie);case 260:return jn(ie);case 358:return Ii(ie);case 359:return ta(ie);default:return Ee(ie)}}function he(ie,ye){if(!(ie.transformFlags&276828160))return ie;switch(ie.kind){case 245:return je(ie);case 241:return Ue(ie);case 214:return Je(ie,ye);case 356:return Fe(ie,ye);case 210:if(pf(ie)&&k.impliedNodeFormat===void 0)return $e(ie);break;case 223:if(Ry(ie))return Ze(ie,ye);break;case 221:case 222:return Be(ie,ye)}return Fn(ie,Ee,e)}function Ee(ie){return he(ie,!1)}function Ae(ie){return he(ie,!0)}function te(ie){if(Is(ie))for(const ye of ie.properties)switch(ye.kind){case 299:if(te(ye.initializer))return!0;break;case 300:if(te(ye.name))return!0;break;case 301:if(te(ye.expression))return!0;break;case 171:case 174:case 175:return!1;default:R.assertNever(ye,"Unhandled object member kind")}else if(Ju(ie)){for(const ye of ie.elements)if(Fh(ye)){if(te(ye.expression))return!0}else if(te(ye))return!0}else if(We(ie))return ge(me(ie))>(X5(ie)?1:0);return!1}function Ze(ie,ye){return te(ie.left)?i2(ie,Ee,e,0,!ye,Zt):Fn(ie,Ee,e)}function je(ie){return r.updateForStatement(ie,ct(ie.initializer,Ae,rm),ct(ie.condition,Ee,yt),ct(ie.incrementor,Ae,yt),L_(ie.statement,Ee,e))}function Ue(ie){return r.updateExpressionStatement(ie,ct(ie.expression,Ae,yt))}function Je(ie,ye){return r.updateParenthesizedExpression(ie,ct(ie.expression,ye?Ae:Ee,yt))}function Fe(ie,ye){return r.updatePartiallyEmittedExpression(ie,ct(ie.expression,ye?Ae:Ee,yt))}function Be(ie,ye){if((ie.operator===45||ie.operator===46)&&We(ie.operand)&&!Ll(ie.operand)&&!e0(ie.operand)&&!BR(ie.operand)){const W=me(ie.operand);if(W){let He,et=ct(ie.operand,Ee,yt);Qv(ie)?et=r.updatePrefixUnaryExpression(ie,et):(et=r.updatePostfixUnaryExpression(ie,et),ye||(He=r.createTempVariable(c),et=r.createAssignment(He,et),ht(et,ie)),et=r.createComma(et,r.cloneNode(ie.operand)),ht(et,ie));for(const Ye of W)j[hs(et)]=!0,et=Rn(Ye,et),ht(et,ie);return He&&(j[hs(et)]=!0,et=r.createComma(et,He),ht(et,ie)),et}}return Fn(ie,Ee,e)}function $e(ie){if(T===0&&g>=7)return Fn(ie,Ee,e);const ye=fx(r,ie,k,v,d,_),W=ct(tu(ie.arguments),Ee,yt),He=ye&&(!W||!Wo(W)||W.text!==ye.text)?ye:W,et=!!(ie.transformFlags&16384);switch(_.module){case 2:return Ge(He,et);case 3:return ze(He!=null?He:r.createVoidZero(),et);case 1:default:return lt(He)}}function ze(ie,ye){if(H=!0,sE(ie)){const W=Ll(ie)?ie:Wo(ie)?r.createStringLiteralFromNode(ie):sr(ht(r.cloneNode(ie),ie),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,lt(ie),void 0,Ge(W,ye))}else{const W=r.createTempVariable(c);return r.createComma(r.createAssignment(W,ie),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,lt(W,!0),void 0,Ge(W,ye)))}}function Ge(ie,ye){const W=r.createUniqueName("resolve"),He=r.createUniqueName("reject"),et=[r.createParameterDeclaration(void 0,void 0,W),r.createParameterDeclaration(void 0,void 0,He)],Ye=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([ie||r.createOmittedExpression()]),W,He]))]);let jt;g>=2?jt=r.createArrowFunction(void 0,void 0,et,void 0,void 0,Ye):(jt=r.createFunctionExpression(void 0,void 0,void 0,void 0,et,void 0,Ye),ye&&sr(jt,16));const cn=r.createNewExpression(r.createIdentifier("Promise"),void 0,[jt]);return $_(_)?r.createCallExpression(r.createPropertyAccessExpression(cn,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):cn}function lt(ie,ye){const W=ie&&!pm(ie)&&!ye,He=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,W?g>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(ie,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[ie])]:[]);let et=r.createCallExpression(r.createIdentifier("require"),void 0,W?[r.createIdentifier("s")]:ie?[ie]:[]);$_(_)&&(et=i().createImportStarHelper(et));const Ye=W?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let jt;return g>=2?jt=r.createArrowFunction(void 0,void 0,Ye,void 0,void 0,et):jt=r.createFunctionExpression(void 0,void 0,void 0,void 0,Ye,void 0,r.createBlock([r.createReturnStatement(et)])),r.createCallExpression(r.createPropertyAccessExpression(He,"then"),void 0,[jt])}function Ct(ie,ye){return!$_(_)||z_(ie)&2?ye:mve(ie)?i().createImportStarHelper(ye):ye}function bt(ie,ye){return!$_(_)||z_(ie)&2?ye:J9(ie)?i().createImportStarHelper(ye):FY(ie)?i().createImportDefaultHelper(ye):ye}function zt(ie){let ye;const W=_C(ie);if(T!==2)if(ie.importClause){const He=[];W&&!NS(ie)?He.push(r.createVariableDeclaration(r.cloneNode(W.name),void 0,void 0,bt(ie,nt(ie)))):(He.push(r.createVariableDeclaration(r.getGeneratedNameForNode(ie),void 0,void 0,bt(ie,nt(ie)))),W&&NS(ie)&&He.push(r.createVariableDeclaration(r.cloneNode(W.name),void 0,void 0,r.getGeneratedNameForNode(ie)))),ye=Pn(ye,zr(ht(r.createVariableStatement(void 0,r.createVariableDeclarationList(He,g>=2?2:0)),ie),ie))}else return zr(ht(r.createExpressionStatement(nt(ie)),ie),ie);else W&&NS(ie)&&(ye=Pn(ye,r.createVariableStatement(void 0,r.createVariableDeclarationList([zr(ht(r.createVariableDeclaration(r.cloneNode(W.name),void 0,void 0,r.getGeneratedNameForNode(ie)),ie),ie)],g>=2?2:0))));if(ea(ie)){const He=Nl(ie);M[He]=Or(M[He],ie)}else ye=Or(ye,ie);return Om(ye)}function nt(ie){const ye=fx(r,ie,k,v,d,_),W=[];return ye&&W.push(ye),r.createCallExpression(r.createIdentifier("require"),void 0,W)}function ot(ie){R.assert(c1(ie),"import= for internal module references should be handled in an earlier transformer.");let ye;if(T!==2?Qr(ie,1)?ye=Pn(ye,zr(ht(r.createExpressionStatement(Rn(ie.name,nt(ie))),ie),ie)):ye=Pn(ye,zr(ht(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(ie.name),void 0,void 0,nt(ie))],g>=2?2:0)),ie),ie)):Qr(ie,1)&&(ye=Pn(ye,zr(ht(r.createExpressionStatement(Rn(r.getExportName(ie),r.getLocalName(ie))),ie),ie))),ea(ie)){const W=Nl(ie);M[W]=Lt(M[W],ie)}else ye=Lt(ye,ie);return Om(ye)}function sn(ie){if(!ie.moduleSpecifier)return;const ye=r.getGeneratedNameForNode(ie);if(ie.exportClause&&tp(ie.exportClause)){const W=[];T!==2&&W.push(zr(ht(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(ye,void 0,void 0,nt(ie))])),ie),ie));for(const He of ie.exportClause.elements)if(g===0)W.push(zr(ht(r.createExpressionStatement(i().createCreateBindingHelper(ye,r.createStringLiteralFromNode(He.propertyName||He.name),He.propertyName?r.createStringLiteralFromNode(He.name):void 0)),He),He));else{const et=!!$_(_)&&!(z_(ie)&2)&&Pr(He.propertyName||He.name)==="default",Ye=r.createPropertyAccessExpression(et?i().createImportDefaultHelper(ye):ye,He.propertyName||He.name);W.push(zr(ht(r.createExpressionStatement(Rn(r.getExportName(He),Ye,void 0,!0)),He),He))}return Om(W)}else if(ie.exportClause){const W=[];return W.push(zr(ht(r.createExpressionStatement(Rn(r.cloneNode(ie.exportClause.name),Ct(ie,T!==2?nt(ie):JM(ie)?ye:r.createIdentifier(Pr(ie.exportClause.name))))),ie),ie)),Om(W)}else return zr(ht(r.createExpressionStatement(i().createExportStarHelper(T!==2?nt(ie):ye)),ie),ie)}function pn(ie){if(ie.isExportEquals)return;let ye;const W=ie.original;if(W&&ea(W)){const He=Nl(ie);M[He]=lr(M[He],r.createIdentifier("default"),ct(ie.expression,Ee,yt),ie,!0)}else ye=lr(ye,r.createIdentifier("default"),ct(ie.expression,Ee,yt),ie,!0);return Om(ye)}function gn(ie){let ye;if(Qr(ie,1)?ye=Pn(ye,zr(ht(r.createFunctionDeclaration(Jn(ie.modifiers,an,po),ie.asteriskToken,r.getDeclarationName(ie,!0,!0),void 0,Jn(ie.parameters,Ee,Ba),void 0,Fn(ie.body,Ee,e)),ie),ie)):ye=Pn(ye,Fn(ie,Ee,e)),ea(ie)){const W=Nl(ie);M[W]=In(M[W],ie)}else ye=In(ye,ie);return Om(ye)}function jn(ie){let ye;if(Qr(ie,1)?ye=Pn(ye,zr(ht(r.createClassDeclaration(Jn(ie.modifiers,an,il),r.getDeclarationName(ie,!0,!0),void 0,Jn(ie.heritageClauses,Ee,Jd),Jn(ie.members,Ee,qc)),ie),ie)):ye=Pn(ye,Fn(ie,Ee,e)),ea(ie)){const W=Nl(ie);M[W]=In(M[W],ie)}else ye=In(ye,ie);return Om(ye)}function Ln(ie){let ye,W,He;if(Qr(ie,1)){let et,Ye=!1;for(const jt of ie.declarationList.declarations)if(We(jt.name)&&e0(jt.name))if(et||(et=Jn(ie.modifiers,an,po)),jt.initializer){const cn=r.updateVariableDeclaration(jt,jt.name,void 0,void 0,Rn(jt.name,ct(jt.initializer,Ee,yt)));W=Pn(W,cn)}else W=Pn(W,jt);else if(jt.initializer)if(!$a(jt.name)&&(Xs(jt.initializer)||Us(jt.initializer)||Ku(jt.initializer))){const cn=r.createAssignment(ht(r.createPropertyAccessExpression(r.createIdentifier("exports"),jt.name),jt.name),r.createIdentifier(K_(jt.name))),Sn=r.createVariableDeclaration(jt.name,jt.exclamationToken,jt.type,ct(jt.initializer,Ee,yt));W=Pn(W,Sn),He=Pn(He,cn),Ye=!0}else He=Pn(He,pr(jt));if(W&&(ye=Pn(ye,r.updateVariableStatement(ie,et,r.updateVariableDeclarationList(ie.declarationList,W)))),He){const jt=zr(ht(r.createExpressionStatement(r.inlineExpressions(He)),ie),ie);Ye&&o6(jt),ye=Pn(ye,jt)}}else ye=Pn(ye,Fn(ie,Ee,e));if(ea(ie)){const et=Nl(ie);M[et]=yn(M[et],ie)}else ye=yn(ye,ie);return Om(ye)}function Zt(ie,ye,W){const He=me(ie);if(He){let et=X5(ie)?ye:r.createAssignment(ie,ye);for(const Ye of He)sr(et,8),et=Rn(Ye,et,W);return et}return r.createAssignment(ie,ye)}function pr(ie){return $a(ie.name)?i2(ct(ie,Ee,kJ),Ee,e,0,!1,Zt):r.createAssignment(ht(r.createPropertyAccessExpression(r.createIdentifier("exports"),ie.name),ie.name),ie.initializer?ct(ie.initializer,Ee,yt):r.createVoidZero())}function Ii(ie){if(ea(ie)&&ie.original.kind===240){const ye=Nl(ie);M[ye]=yn(M[ye],ie.original)}return ie}function ea(ie){return(Eo(ie)&8388608)!==0}function ta(ie){const ye=Nl(ie),W=M[ye];return W?(delete M[ye],Pn(W,ie)):ie}function Or(ie,ye){if(U.exportEquals)return ie;const W=ye.importClause;if(!W)return ie;W.name&&(ie=Bn(ie,W));const He=W.namedBindings;if(He)switch(He.kind){case 271:ie=Bn(ie,He);break;case 272:for(const et of He.elements)ie=Bn(ie,et,!0);break}return ie}function Lt(ie,ye){return U.exportEquals?ie:Bn(ie,ye)}function yn(ie,ye){if(U.exportEquals)return ie;for(const W of ye.declarationList.declarations)ie=Wt(ie,W);return ie}function Wt(ie,ye){if(U.exportEquals)return ie;if($a(ye.name))for(const W of ye.name.elements)Fc(W)||(ie=Wt(ie,W));else Ll(ye.name)||(ie=Bn(ie,ye));return ie}function In(ie,ye){if(U.exportEquals)return ie;if(Qr(ye,1)){const W=Qr(ye,1024)?r.createIdentifier("default"):r.getDeclarationName(ye);ie=lr(ie,W,r.getLocalName(ye),ye)}return ye.name&&(ie=Bn(ie,ye)),ie}function Bn(ie,ye,W){const He=r.getDeclarationName(ye),et=U.exportSpecifiers.get(Pr(He));if(et)for(const Ye of et)ie=lr(ie,Ye.name,He,Ye.name,void 0,W);return ie}function lr(ie,ye,W,He,et,Ye){return ie=Pn(ie,bi(ye,W,He,et,Ye)),ie}function Oi(){let ie;return g===0?ie=r.createExpressionStatement(Rn(r.createIdentifier("__esModule"),r.createTrue())):ie=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())])])),sr(ie,2097152),ie}function bi(ie,ye,W,He,et){const Ye=ht(r.createExpressionStatement(Rn(ie,ye,void 0,et)),W);return Yu(Ye),He||sr(Ye,3072),Ye}function Rn(ie,ye,W,He){return ht(He&&g!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(ie),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(ye)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(ie)),ye),W)}function an(ie){switch(ie.kind){case 93:case 88:return}return ie}function On(ie,ye,W){ye.kind===308?(k=ye,U=I[Nl(k)],L(ie,ye,W),k=void 0,U=void 0):L(ie,ye,W)}function Ir(ie,ye){return ye=C(ie,ye),ye.id&&j[ye.id]?ye:ie===1?Oe(ye):l_(ye)?Hr(ye):ye}function Hr(ie){const ye=ie.name,W=Le(ye);if(W!==ye){if(ie.objectAssignmentInitializer){const He=r.createAssignment(W,ie.objectAssignmentInitializer);return ht(r.createPropertyAssignment(ye,He),ie)}return ht(r.createPropertyAssignment(ye,W),ie)}return ie}function Oe(ie){switch(ie.kind){case 79:return Le(ie);case 210:return gt(ie);case 212:return Ot(ie);case 223:return pt(ie)}return ie}function gt(ie){if(We(ie.expression)){const ye=Le(ie.expression);if(j[hs(ye)]=!0,!We(ye)&&!(Eo(ie.expression)&8192))return JS(r.updateCallExpression(ie,ye,void 0,ie.arguments),16)}return ie}function Ot(ie){if(We(ie.tag)){const ye=Le(ie.tag);if(j[hs(ye)]=!0,!We(ye)&&!(Eo(ie.tag)&8192))return JS(r.updateTaggedTemplateExpression(ie,ye,void 0,ie.template),16)}return ie}function Le(ie){var ye,W;if(Eo(ie)&8192){const He=w6(k);return He?r.createPropertyAccessExpression(He,ie):ie}else if(!(Ll(ie)&&!(ie.emitNode.autoGenerate.flags&64))&&!e0(ie)){const He=d.getReferencedExportContainer(ie,X5(ie));if(He&&He.kind===308)return ht(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(ie)),ie);const et=d.getReferencedImportDeclaration(ie);if(et){if(Qm(et))return ht(r.createPropertyAccessExpression(r.getGeneratedNameForNode(et.parent),r.createIdentifier("default")),ie);if(Nd(et)){const Ye=et.propertyName||et.name;return ht(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((W=(ye=et.parent)==null?void 0:ye.parent)==null?void 0:W.parent)||et),r.cloneNode(Ye)),ie)}}}return ie}function pt(ie){if(Dy(ie.operatorToken.kind)&&We(ie.left)&&!Ll(ie.left)&&!e0(ie.left)&&!BR(ie.left)){const ye=me(ie.left);if(ye){let W=ie;for(const He of ye)j[hs(W)]=!0,W=Rn(He,W,ie);return W}}return ie}function me(ie){if(!Ll(ie)){const ye=d.getReferencedImportDeclaration(ie)||d.getReferencedValueDeclaration(ie);if(ye)return U&&U.exportedBindings[Nl(ye)]}}}var jve,jFe=b({"src/compiler/transformers/module/module.ts"(){"use strict";Oa(),jve={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Wve(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),_=e.getEmitHost(),d=e.onSubstituteNode,v=e.onEmitNode;e.onSubstituteNode=et,e.onEmitNode=He,e.enableSubstitution(79),e.enableSubstitution(300),e.enableSubstitution(223),e.enableSubstitution(233),e.enableEmitNotification(308);const g=[],T=[],C=[],L=[],I=[];let M,k,U,j,H,ee,X;return rp(e,ne);function ne(fe){if(fe.isDeclarationFile||!(kS(fe,s)||fe.transformFlags&8388608))return fe;const Te=Nl(fe);M=fe,ee=fe,k=g[Te]=BY(e,fe,c,s),U=t.createUniqueName("exports"),C[Te]=U,j=I[Te]=t.createUniqueName("context");const Y=P(k.externalImports),Ne=ue(fe,Y),J=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,U),t.createParameterDeclaration(void 0,void 0,j)],void 0,Ne),wt=D6(t,fe,_,s),Et=t.createArrayLiteralExpression(Pt(Y,nn=>nn.name)),ut=sr(t.updateSourceFile(fe,ht(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,wt?[wt,Et,J]:[Et,J]))]),fe.statements)),2048);return Ks(s)||Vme(ut,Ne,nn=>!nn.scoped),X&&(L[Te]=X,X=void 0),M=void 0,k=void 0,U=void 0,j=void 0,H=void 0,ee=void 0,ut}function P(fe){const Te=new Map,Y=[];for(const Ne of fe){const J=fx(t,Ne,M,_,c,s);if(J){const wt=J.text,Et=Te.get(wt);Et!==void 0?Y[Et].externalImports.push(Ne):(Te.set(wt,Y.length),Y.push({name:J,externalImports:[Ne]}))}}return Y}function ue(fe,Te){const Y=[];r();const Ne=A_(s,"alwaysStrict")||!s.noImplicitUseStrict&&tc(M),J=t.copyPrologue(fe.statements,Y,Ne,z);Y.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(j,t.createPropertyAccessExpression(j,"id")))]))),ct(k.externalHelpersImportDeclaration,z,wa);const wt=Jn(fe.statements,z,wa,J);xi(Y,H),Wm(Y,i());const Et=re(Y),ut=fe.transformFlags&2097152?t.createModifiersFromModifierFlags(512):void 0,nn=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ae(Et,Te)),t.createPropertyAssignment("execute",t.createFunctionExpression(ut,void 0,void 0,void 0,[],void 0,t.createBlock(wt,!0)))],!0);return Y.push(t.createReturnStatement(nn)),t.createBlock(Y,!0)}function re(fe){if(!k.hasExportStarsToExportValues)return;if(!k.exportedNames&&k.exportSpecifiers.size===0){let J=!1;for(const wt of k.externalImports)if(wt.kind===275&&wt.exportClause){J=!0;break}if(!J){const wt=be(void 0);return fe.push(wt),wt.name}}const Te=[];if(k.exportedNames)for(const J of k.exportedNames)J.escapedText!=="default"&&Te.push(t.createPropertyAssignment(t.createStringLiteralFromNode(J),t.createTrue()));const Y=t.createUniqueName("exportedNames");fe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Y,void 0,void 0,t.createObjectLiteralExpression(Te,!0))])));const Ne=be(Y);return fe.push(Ne),Ne.name}function be(fe){const Te=t.createUniqueName("exportStar"),Y=t.createIdentifier("m"),Ne=t.createIdentifier("n"),J=t.createIdentifier("exports");let wt=t.createStrictInequality(Ne,t.createStringLiteral("default"));return fe&&(wt=t.createLogicalAnd(wt,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(fe,"hasOwnProperty"),void 0,[Ne])))),t.createFunctionDeclaration(void 0,void 0,Te,void 0,[t.createParameterDeclaration(void 0,void 0,Y)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(J,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(Ne)]),Y,t.createBlock([sr(t.createIfStatement(wt,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(J,Ne),t.createElementAccessExpression(Y,Ne)))),1)])),t.createExpressionStatement(t.createCallExpression(U,void 0,[J]))],!0))}function ae(fe,Te){const Y=[];for(const Ne of Te){const J=Ie(Ne.externalImports,ut=>QC(t,ut,M)),wt=J?t.getGeneratedNameForNode(J):t.createUniqueName(""),Et=[];for(const ut of Ne.externalImports){const nn=QC(t,ut,M);switch(ut.kind){case 269:if(!ut.importClause)break;case 268:R.assert(nn!==void 0),Et.push(t.createExpressionStatement(t.createAssignment(nn,wt))),Qr(ut,1)&&Et.push(t.createExpressionStatement(t.createCallExpression(U,void 0,[t.createStringLiteral(Pr(nn)),wt])));break;case 275:if(R.assert(nn!==void 0),ut.exportClause)if(tp(ut.exportClause)){const ir=[];for(const ai of ut.exportClause.elements)ir.push(t.createPropertyAssignment(t.createStringLiteral(Pr(ai.name)),t.createElementAccessExpression(wt,t.createStringLiteral(Pr(ai.propertyName||ai.name)))));Et.push(t.createExpressionStatement(t.createCallExpression(U,void 0,[t.createObjectLiteralExpression(ir,!0)])))}else Et.push(t.createExpressionStatement(t.createCallExpression(U,void 0,[t.createStringLiteral(Pr(ut.exportClause.name)),wt])));else Et.push(t.createExpressionStatement(t.createCallExpression(fe,void 0,[wt])));break}}Y.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,wt)],void 0,t.createBlock(Et,!0)))}return t.createArrayLiteralExpression(Y,!0)}function z(fe){switch(fe.kind){case 269:return ce(fe);case 268:return Ee(fe);case 275:return he(fe);case 274:return Ae(fe);default:return Zt(fe)}}function ce(fe){let Te;if(fe.importClause&&o(QC(t,fe,M)),lt(fe)){const Y=Nl(fe);T[Y]=bt(T[Y],fe)}else Te=bt(Te,fe);return Om(Te)}function he(fe){R.assertIsDefined(fe)}function Ee(fe){R.assert(c1(fe),"import= for internal module references should be handled in an earlier transformer.");let Te;if(o(QC(t,fe,M)),lt(fe)){const Y=Nl(fe);T[Y]=zt(T[Y],fe)}else Te=zt(Te,fe);return Om(Te)}function Ae(fe){if(fe.isExportEquals)return;const Te=ct(fe.expression,Hr,yt),Y=fe.original;if(Y&&lt(Y)){const Ne=Nl(fe);T[Ne]=gn(T[Ne],t.createIdentifier("default"),Te,!0)}else return jn(t.createIdentifier("default"),Te,!0)}function te(fe){if(Qr(fe,1)?H=Pn(H,t.updateFunctionDeclaration(fe,Jn(fe.modifiers,W,il),fe.asteriskToken,t.getDeclarationName(fe,!0,!0),void 0,Jn(fe.parameters,Hr,Ba),void 0,ct(fe.body,Hr,fo))):H=Pn(H,Fn(fe,Hr,e)),lt(fe)){const Te=Nl(fe);T[Te]=sn(T[Te],fe)}else H=sn(H,fe)}function Ze(fe){let Te;const Y=t.getLocalName(fe);if(o(Y),Te=Pn(Te,ht(t.createExpressionStatement(t.createAssignment(Y,ht(t.createClassExpression(Jn(fe.modifiers,W,il),fe.name,void 0,Jn(fe.heritageClauses,Hr,Jd),Jn(fe.members,Hr,qc)),fe))),fe)),lt(fe)){const Ne=Nl(fe);T[Ne]=sn(T[Ne],fe)}else Te=sn(Te,fe);return Om(Te)}function je(fe){if(!Je(fe.declarationList))return ct(fe,Hr,wa);let Te;const Y=Qr(fe,1),Ne=lt(fe);for(const wt of fe.declarationList.declarations)wt.initializer?Te=Pn(Te,Fe(wt,Y&&!Ne)):Ue(wt);let J;if(Te&&(J=Pn(J,ht(t.createExpressionStatement(t.inlineExpressions(Te)),fe))),Ne){const wt=Nl(fe);T[wt]=nt(T[wt],fe,Y)}else J=nt(J,fe,!1);return Om(J)}function Ue(fe){if($a(fe.name))for(const Te of fe.name.elements)Fc(Te)||Ue(Te);else o(t.cloneNode(fe.name))}function Je(fe){return(Eo(fe)&4194304)===0&&(ee.kind===308||(Cl(fe).flags&3)===0)}function Fe(fe,Te){const Y=Te?Be:$e;return $a(fe.name)?i2(fe,Hr,e,0,!1,Y):fe.initializer?Y(fe.name,ct(fe.initializer,Hr,yt)):fe.name}function Be(fe,Te,Y){return ze(fe,Te,Y,!0)}function $e(fe,Te,Y){return ze(fe,Te,Y,!1)}function ze(fe,Te,Y,Ne){return o(t.cloneNode(fe)),Ne?Ln(fe,Jt(ht(t.createAssignment(fe,Te),Y))):Jt(ht(t.createAssignment(fe,Te),Y))}function Ge(fe){if(lt(fe)&&fe.original.kind===240){const Te=Nl(fe),Y=Qr(fe.original,1);T[Te]=nt(T[Te],fe.original,Y)}return fe}function lt(fe){return(Eo(fe)&8388608)!==0}function Ct(fe){const Te=Nl(fe),Y=T[Te];if(Y)return delete T[Te],Pn(Y,fe);{const Ne=Cl(fe);if(UD(Ne))return Pn(pn(Y,Ne),fe)}return fe}function bt(fe,Te){if(k.exportEquals)return fe;const Y=Te.importClause;if(!Y)return fe;Y.name&&(fe=pn(fe,Y));const Ne=Y.namedBindings;if(Ne)switch(Ne.kind){case 271:fe=pn(fe,Ne);break;case 272:for(const J of Ne.elements)fe=pn(fe,J);break}return fe}function zt(fe,Te){return k.exportEquals?fe:pn(fe,Te)}function nt(fe,Te,Y){if(k.exportEquals)return fe;for(const Ne of Te.declarationList.declarations)(Ne.initializer||Y)&&(fe=ot(fe,Ne,Y));return fe}function ot(fe,Te,Y){if(k.exportEquals)return fe;if($a(Te.name))for(const Ne of Te.name.elements)Fc(Ne)||(fe=ot(fe,Ne,Y));else if(!Ll(Te.name)){let Ne;Y&&(fe=gn(fe,Te.name,t.getLocalName(Te)),Ne=Pr(Te.name)),fe=pn(fe,Te,Ne)}return fe}function sn(fe,Te){if(k.exportEquals)return fe;let Y;if(Qr(Te,1)){const Ne=Qr(Te,1024)?t.createStringLiteral("default"):Te.name;fe=gn(fe,Ne,t.getLocalName(Te)),Y=K_(Ne)}return Te.name&&(fe=pn(fe,Te,Y)),fe}function pn(fe,Te,Y){if(k.exportEquals)return fe;const Ne=t.getDeclarationName(Te),J=k.exportSpecifiers.get(Pr(Ne));if(J)for(const wt of J)wt.name.escapedText!==Y&&(fe=gn(fe,wt.name,Ne));return fe}function gn(fe,Te,Y,Ne){return fe=Pn(fe,jn(Te,Y,Ne)),fe}function jn(fe,Te,Y){const Ne=t.createExpressionStatement(Ln(fe,Te));return Yu(Ne),Y||sr(Ne,3072),Ne}function Ln(fe,Te){const Y=We(fe)?t.createStringLiteralFromNode(fe):fe;return sr(Te,Eo(Te)|3072),Xc(t.createCallExpression(U,void 0,[Y,Te]),Te)}function Zt(fe){switch(fe.kind){case 240:return je(fe);case 259:return te(fe);case 260:return Ze(fe);case 245:return pr(fe,!0);case 246:return Ii(fe);case 247:return ea(fe);case 243:return Lt(fe);case 244:return yn(fe);case 253:return Wt(fe);case 251:return In(fe);case 252:return Bn(fe);case 266:return lr(fe);case 292:return Oi(fe);case 293:return bi(fe);case 255:return Rn(fe);case 295:return an(fe);case 238:return On(fe);case 358:return Ge(fe);case 359:return Ct(fe);default:return Hr(fe)}}function pr(fe,Te){const Y=ee;return ee=fe,fe=t.updateForStatement(fe,ct(fe.initializer,Te?Or:Oe,rm),ct(fe.condition,Hr,yt),ct(fe.incrementor,Oe,yt),L_(fe.statement,Te?Zt:Hr,e)),ee=Y,fe}function Ii(fe){const Te=ee;return ee=fe,fe=t.updateForInStatement(fe,Or(fe.initializer),ct(fe.expression,Hr,yt),L_(fe.statement,Zt,e)),ee=Te,fe}function ea(fe){const Te=ee;return ee=fe,fe=t.updateForOfStatement(fe,fe.awaitModifier,Or(fe.initializer),ct(fe.expression,Hr,yt),L_(fe.statement,Zt,e)),ee=Te,fe}function ta(fe){return Xu(fe)&&Je(fe)}function Or(fe){if(ta(fe)){let Te;for(const Y of fe.declarations)Te=Pn(Te,Fe(Y,!1)),Y.initializer||Ue(Y);return Te?t.inlineExpressions(Te):t.createOmittedExpression()}else return ct(fe,Oe,rm)}function Lt(fe){return t.updateDoStatement(fe,L_(fe.statement,Zt,e),ct(fe.expression,Hr,yt))}function yn(fe){return t.updateWhileStatement(fe,ct(fe.expression,Hr,yt),L_(fe.statement,Zt,e))}function Wt(fe){return t.updateLabeledStatement(fe,fe.label,R.checkDefined(ct(fe.statement,Zt,wa,t.liftToBlock)))}function In(fe){return t.updateWithStatement(fe,ct(fe.expression,Hr,yt),R.checkDefined(ct(fe.statement,Zt,wa,t.liftToBlock)))}function Bn(fe){return t.updateSwitchStatement(fe,ct(fe.expression,Hr,yt),R.checkDefined(ct(fe.caseBlock,Zt,S6)))}function lr(fe){const Te=ee;return ee=fe,fe=t.updateCaseBlock(fe,Jn(fe.clauses,Zt,sq)),ee=Te,fe}function Oi(fe){return t.updateCaseClause(fe,ct(fe.expression,Hr,yt),Jn(fe.statements,Zt,wa))}function bi(fe){return Fn(fe,Zt,e)}function Rn(fe){return Fn(fe,Zt,e)}function an(fe){const Te=ee;return ee=fe,fe=t.updateCatchClause(fe,fe.variableDeclaration,R.checkDefined(ct(fe.block,Zt,fo))),ee=Te,fe}function On(fe){const Te=ee;return ee=fe,fe=Fn(fe,Zt,e),ee=Te,fe}function Ir(fe,Te){if(!(fe.transformFlags&276828160))return fe;switch(fe.kind){case 245:return pr(fe,!1);case 241:return gt(fe);case 214:return Ot(fe,Te);case 356:return Le(fe,Te);case 223:if(Ry(fe))return me(fe,Te);break;case 210:if(pf(fe))return pt(fe);break;case 221:case 222:return ye(fe,Te)}return Fn(fe,Hr,e)}function Hr(fe){return Ir(fe,!1)}function Oe(fe){return Ir(fe,!0)}function gt(fe){return t.updateExpressionStatement(fe,ct(fe.expression,Oe,yt))}function Ot(fe,Te){return t.updateParenthesizedExpression(fe,ct(fe.expression,Te?Oe:Hr,yt))}function Le(fe,Te){return t.updatePartiallyEmittedExpression(fe,ct(fe.expression,Te?Oe:Hr,yt))}function pt(fe){const Te=fx(t,fe,M,_,c,s),Y=ct(tu(fe.arguments),Hr,yt),Ne=Te&&(!Y||!Wo(Y)||Y.text!==Te.text)?Te:Y;return t.createCallExpression(t.createPropertyAccessExpression(j,t.createIdentifier("import")),void 0,Ne?[Ne]:[])}function me(fe,Te){return ie(fe.left)?i2(fe,Hr,e,0,!Te):Fn(fe,Hr,e)}function ie(fe){if(cd(fe,!0))return ie(fe.left);if(Fh(fe))return ie(fe.expression);if(Is(fe))return Dt(fe.properties,ie);if(Ju(fe))return Dt(fe.elements,ie);if(l_(fe))return ie(fe.name);if($c(fe))return ie(fe.initializer);if(We(fe)){const Te=c.getReferencedExportContainer(fe);return Te!==void 0&&Te.kind===308}else return!1}function ye(fe,Te){if((fe.operator===45||fe.operator===46)&&We(fe.operand)&&!Ll(fe.operand)&&!e0(fe.operand)&&!BR(fe.operand)){const Y=mt(fe.operand);if(Y){let Ne,J=ct(fe.operand,Hr,yt);Qv(fe)?J=t.updatePrefixUnaryExpression(fe,J):(J=t.updatePostfixUnaryExpression(fe,J),Te||(Ne=t.createTempVariable(o),J=t.createAssignment(Ne,J),ht(J,fe)),J=t.createComma(J,t.cloneNode(fe.operand)),ht(J,fe));for(const wt of Y)J=Ln(wt,Jt(J));return Ne&&(J=t.createComma(J,Ne),ht(J,fe)),J}}return Fn(fe,Hr,e)}function W(fe){switch(fe.kind){case 93:case 88:return}return fe}function He(fe,Te,Y){if(Te.kind===308){const Ne=Nl(Te);M=Te,k=g[Ne],U=C[Ne],X=L[Ne],j=I[Ne],X&&delete L[Ne],v(fe,Te,Y),M=void 0,k=void 0,U=void 0,j=void 0,X=void 0}else v(fe,Te,Y)}function et(fe,Te){return Te=d(fe,Te),at(Te)?Te:fe===1?cn(Te):fe===4?Ye(Te):Te}function Ye(fe){switch(fe.kind){case 300:return jt(fe)}return fe}function jt(fe){var Te,Y;const Ne=fe.name;if(!Ll(Ne)&&!e0(Ne)){const J=c.getReferencedImportDeclaration(Ne);if(J){if(Qm(J))return ht(t.createPropertyAssignment(t.cloneNode(Ne),t.createPropertyAccessExpression(t.getGeneratedNameForNode(J.parent),t.createIdentifier("default"))),fe);if(Nd(J))return ht(t.createPropertyAssignment(t.cloneNode(Ne),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Y=(Te=J.parent)==null?void 0:Te.parent)==null?void 0:Y.parent)||J),t.cloneNode(J.propertyName||J.name))),fe)}}return fe}function cn(fe){switch(fe.kind){case 79:return Sn(fe);case 223:return Er(fe);case 233:return de(fe)}return fe}function Sn(fe){var Te,Y;if(Eo(fe)&8192){const Ne=w6(M);return Ne?t.createPropertyAccessExpression(Ne,fe):fe}if(!Ll(fe)&&!e0(fe)){const Ne=c.getReferencedImportDeclaration(fe);if(Ne){if(Qm(Ne))return ht(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Ne.parent),t.createIdentifier("default")),fe);if(Nd(Ne))return ht(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Y=(Te=Ne.parent)==null?void 0:Te.parent)==null?void 0:Y.parent)||Ne),t.cloneNode(Ne.propertyName||Ne.name)),fe)}}return fe}function Er(fe){if(Dy(fe.operatorToken.kind)&&We(fe.left)&&!Ll(fe.left)&&!e0(fe.left)&&!BR(fe.left)){const Te=mt(fe.left);if(Te){let Y=fe;for(const Ne of Te)Y=Ln(Ne,Jt(Y));return Y}}return fe}function de(fe){return oC(fe)?t.createPropertyAccessExpression(j,t.createIdentifier("meta")):fe}function mt(fe){let Te;if(!Ll(fe)){const Y=c.getReferencedImportDeclaration(fe)||c.getReferencedValueDeclaration(fe);if(Y){const Ne=c.getReferencedExportContainer(fe,!1);Ne&&Ne.kind===308&&(Te=Pn(Te,t.getDeclarationName(Y))),Te=xi(Te,k&&k.exportedBindings[Nl(Y)])}}return Te}function Jt(fe){return X===void 0&&(X=[]),X[hs(fe)]=!0,fe}function at(fe){return X&&fe.id&&X[fe.id]}}var WFe=b({"src/compiler/transformers/module/system.ts"(){"use strict";Oa()}});function QY(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),c=ns(s),_=e.onEmitNode,d=e.onSubstituteNode;e.onEmitNode=ee,e.onSubstituteNode=X,e.enableEmitNotification(308),e.enableSubstitution(79);let v,g,T;return rp(e,C);function C(P){if(P.isDeclarationFile)return P;if(tc(P)||Y_(s)){g=P,T=void 0;let ue=L(P);return g=void 0,T&&(ue=t.updateSourceFile(ue,ht(t.createNodeArray(gq(ue.statements.slice(),T)),ue.statements))),!tc(P)||Dt(ue.statements,GD)?ue:t.updateSourceFile(ue,ht(t.createNodeArray([...ue.statements,L6(t)]),ue.statements))}return P}function L(P){const ue=hX(t,r(),P,s);if(ue){const re=[],be=t.copyPrologue(P.statements,re);return Pn(re,ue),xi(re,Jn(P.statements,I,wa,be)),t.updateSourceFile(P,ht(t.createNodeArray(re),P.statements))}else return Fn(P,I,e)}function I(P){switch(P.kind){case 268:return uu(s)>=100?k(P):void 0;case 274:return j(P);case 275:return H(P)}return P}function M(P){const ue=fx(t,P,R.checkDefined(g),i,o,s),re=[];if(ue&&re.push(ue),!T){const ae=t.createUniqueName("_createRequire",48),z=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),ae)])),t.createStringLiteral("module")),ce=t.createUniqueName("__require",48),he=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ce,void 0,void 0,t.createCallExpression(t.cloneNode(ae),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(100,t.createIdentifier("meta")),t.createIdentifier("url"))]))],c>=2?2:0));T=[z,he]}const be=T[1].declarationList.declarations[0].name;return R.assertNode(be,We),t.createCallExpression(t.cloneNode(be),void 0,re)}function k(P){R.assert(c1(P),"import= for internal module references should be handled in an earlier transformer.");let ue;return ue=Pn(ue,zr(ht(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(P.name),void 0,void 0,M(P))],c>=2?2:0)),P),P)),ue=U(ue,P),Om(ue)}function U(P,ue){return Qr(ue,1)&&(P=Pn(P,t.createExportDeclaration(void 0,ue.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Pr(ue.name))])))),P}function j(P){return P.isExportEquals?void 0:P}function H(P){if(s.module!==void 0&&s.module>5||!P.exportClause||!Bh(P.exportClause)||!P.moduleSpecifier)return P;const ue=P.exportClause.name,re=t.getGeneratedNameForNode(ue),be=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(re)),P.moduleSpecifier,P.assertClause);zr(be,P.exportClause);const ae=JM(P)?t.createExportDefault(re):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,re,ue)]));return zr(ae,P),[be,ae]}function ee(P,ue,re){Ki(ue)?((tc(ue)||Y_(s))&&s.importHelpers&&(v=new Map),_(P,ue,re),v=void 0):_(P,ue,re)}function X(P,ue){return ue=d(P,ue),v&&We(ue)&&Eo(ue)&8192?ne(ue):ue}function ne(P){const ue=Pr(P);let re=v.get(ue);return re||v.set(ue,re=t.createUniqueName(ue,48)),re}}var HFe=b({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";Oa()}});function Hve(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=QY(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const c=$Y(e),_=e.onSubstituteNode,d=e.onEmitNode;e.onSubstituteNode=g,e.onEmitNode=T,e.enableSubstitution(308),e.enableEmitNotification(308);let v;return I;function g(k,U){return Ki(U)?(v=U,t(k,U)):v?v.impliedNodeFormat===99?o(k,U):_(k,U):t(k,U)}function T(k,U,j){return Ki(U)&&(v=U),v?v.impliedNodeFormat===99?s(k,U,j):d(k,U,j):r(k,U,j)}function C(k){return k.impliedNodeFormat===99?i:c}function L(k){if(k.isDeclarationFile)return k;v=k;const U=C(k)(k);return v=void 0,R.assert(Ki(U)),U}function I(k){return k.kind===308?L(k):M(k)}function M(k){return e.factory.createBundle(Pt(k.sourceFiles,L),k.prepends)}}var zFe=b({"src/compiler/transformers/module/node.ts"(){"use strict";Oa()}});function Q9(e){return $i(e)||ro(e)||Mf(e)||ms(e)||ky(e)||jv(e)||g6(e)||GC(e)||sc(e)||Mh(e)||Sc(e)||Ba(e)||Ul(e)||Py(e)||fu(e)||um(e)||Kl(e)||ZS(e)||Br(e)||T_(e)}function zve(e){if(ky(e)||jv(e))return t;return Mh(e)||sc(e)?i:Uy(e);function t(s){const c=r(s);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function r(s){return Xa(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===260?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 c=o(s);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function o(s){return Xa(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===260?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 Uy(e){if($i(e)||ro(e)||Mf(e)||Br(e)||ms(e)||Kl(e))return r;return ky(e)||jv(e)?i:g6(e)||GC(e)||sc(e)||Mh(e)||Sc(e)||ZS(e)?o:Ba(e)?cf(e,e.parent)&&Qr(e.parent,8)?r:s:Ul(e)?_:Py(e)?d:fu(e)?v:um(e)||T_(e)?g:R.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${R.formatSyntaxKind(e.kind)}`);function t(T){if(e.kind===257||e.kind===205)return T.errorModuleName?T.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===169||e.kind===208||e.kind===168||e.kind===166&&Qr(e.parent,8))return Xa(e)?T.errorModuleName?T.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===260||e.kind===166?T.errorModuleName?T.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:T.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(T){const C=t(T);return C!==void 0?{diagnosticMessage:C,errorNode:e,typeName:e.name}:void 0}function i(T){let C;return e.kind===175?Xa(e)?C=T.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:C=T.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:Xa(e)?C=T.errorModuleName?T.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:C=T.errorModuleName?T.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:C,errorNode:e.name,typeName:e.name}}function o(T){let C;switch(e.kind){case 177:C=T.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 176:C=T.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 178:C=T.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 171:case 170:Xa(e)?C=T.errorModuleName?T.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===260?C=T.errorModuleName?T.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:C=T.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 259:C=T.errorModuleName?T.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 R.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:C,errorNode:e.name||e}}function s(T){const C=c(T);return C!==void 0?{diagnosticMessage:C,errorNode:e,typeName:e.name}:void 0}function c(T){switch(e.parent.kind){case 173:return T.errorModuleName?T.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 177:case 182:return T.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 176:return T.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 178:return T.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 171:case 170:return Xa(e.parent)?T.errorModuleName?T.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===260?T.errorModuleName?T.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:T.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 259:case 181:return T.errorModuleName?T.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 175:case 174:return T.errorModuleName?T.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 R.fail(`Unknown parent for parameter: ${R.formatSyntaxKind(e.parent.kind)}`)}}function _(){let T;switch(e.parent.kind){case 260:T=m.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 261:T=m.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 197:T=m.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 182:case 177:T=m.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 176:T=m.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 171:case 170:Xa(e.parent)?T=m.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===260?T=m.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T=m.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 181:case 259:T=m.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 192:T=m.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 262:T=m.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return R.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:T,errorNode:e,typeName:e.name}}function d(){let T;return Bc(e.parent.parent)?T=Jd(e.parent)&&e.parent.token===117?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:T=m.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:T,errorNode:e,typeName:ka(e.parent.parent)}}function v(){return{diagnosticMessage:m.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function g(T){return{diagnosticMessage:T.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:T_(e)?R.checkDefined(e.typeExpression):e.type,typeName:T_(e)?ka(e):e.name}}}var qFe=b({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";Oa()}});function qve(e,t,r){const i=e.getCompilerOptions();return hN(t,e,O,i,r?[r]:ur(e.getSourceFiles(),jq),[e$],!1).diagnostics}function Jve(e,t){const r=t.text.substring(e.pos,e.end);return bu(r,"@internal")}function ZY(e,t){const r=Ea(e);if(r&&r.kind===166){const o=r.parent.parameters.indexOf(r),s=o>0?r.parent.parameters[o-1]:void 0,c=t.text,_=s?ba(i1(c,Yo(c,s.end+1,!1,!0)),xh(c,e.pos)):i1(c,Yo(c,e.pos,!1,!0));return _&&_.length&&Jve(Ko(_),t)}const i=r&&Oq(r,t);return!!Ie(i,o=>Jve(o,t))}function e$(e){const t=()=>R.fail("Diagnostic emitted without context");let r=t,i=!0,o=!1,s=!1,c=!1,_=!1,d,v,g,T,C,L;const{factory:I}=e,M=e.getEmitHost(),k={trackSymbol:Ee,reportInaccessibleThisError:Ue,reportInaccessibleUniqueSymbolError:Ze,reportCyclicStructureError:je,reportPrivateInBaseOfClassExpression:Ae,reportLikelyUnsafeImportRequiredError:Je,reportTruncationError:Fe,moduleResolverHost:M,trackReferencedAmbientModule:z,trackExternalModuleSymbolOfImportTypeNode:he,reportNonlocalAugmentation:Be,reportNonSerializableProperty:$e,reportImportTypeNodeResolutionModeOverride:ze};let U,j,H,ee,X,ne;const P=e.getEmitResolver(),ue=e.getCompilerOptions(),{noResolve:re,stripInternal:be}=ue;return lt;function ae(W){if(W){v=v||new Set;for(const He of W)v.add(He)}}function z(W,He){const et=P.getTypeReferenceDirectivesForSymbol(He,67108863);if(ge(et))return ae(et);const Ye=Zn(W);ee.set(Nl(Ye),Ye)}function ce(W){if(W.accessibility===0){if(W&&W.aliasesToMakeVisible)if(!g)g=W.aliasesToMakeVisible;else for(const He of W.aliasesToMakeVisible)y_(g,He)}else{const He=r(W);if(He)return He.typeName?e.addDiagnostic(Nr(W.errorNode||He.errorNode,He.diagnosticMessage,kc(He.typeName),W.errorSymbolName,W.errorModuleName)):e.addDiagnostic(Nr(W.errorNode||He.errorNode,He.diagnosticMessage,W.errorSymbolName,W.errorModuleName)),!0}return!1}function he(W){o||(L||(L=[])).push(W)}function Ee(W,He,et){if(W.flags&262144)return!1;const Ye=ce(P.isSymbolAccessible(W,He,et,!0));return ae(P.getTypeReferenceDirectivesForSymbol(W,et)),Ye}function Ae(W){(U||j)&&e.addDiagnostic(Nr(U||j,m.Property_0_of_exported_class_expression_may_not_be_private_or_protected,W))}function te(){return U?Ds(U):j&&ka(j)?Ds(ka(j)):j&&Vl(j)?j.isExportEquals?"export=":"default":"(Missing)"}function Ze(){(U||j)&&e.addDiagnostic(Nr(U||j,m.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,te(),"unique symbol"))}function je(){(U||j)&&e.addDiagnostic(Nr(U||j,m.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,te()))}function Ue(){(U||j)&&e.addDiagnostic(Nr(U||j,m.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,te(),"this"))}function Je(W){(U||j)&&e.addDiagnostic(Nr(U||j,m.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,te(),W))}function Fe(){(U||j)&&e.addDiagnostic(Nr(U||j,m.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Be(W,He,et){var Ye;const jt=(Ye=He.declarations)==null?void 0:Ye.find(Sn=>Zn(Sn)===W),cn=ur(et.declarations,Sn=>Zn(Sn)!==W);if(jt&&cn)for(const Sn of cn)e.addDiagnostic($o(Nr(Sn,m.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Nr(jt,m.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function $e(W){(U||j)&&e.addDiagnostic(Nr(U||j,m.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,W))}function ze(){!kR()&&(U||j)&&e.addDiagnostic(Nr(U||j,m.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}function Ge(W,He){const et=r;r=jt=>jt.errorNode&&Q9(jt.errorNode)?Uy(jt.errorNode)(jt):{diagnosticMessage:jt.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:jt.errorNode||W};const Ye=P.getDeclarationStatementsForSourceFile(W,cE,k,He);return r=et,Ye}function lt(W){if(W.kind===308&&W.isDeclarationFile)return W;if(W.kind===309){o=!0,ee=new Map,X=new Map;let Jt=!1;const at=I.createBundle(Pt(W.sourceFiles,Y=>{if(Y.isDeclarationFile)return;if(Jt=Jt||Y.hasNoDefaultLib,H=Y,d=Y,g=void 0,C=!1,T=new Map,r=t,c=!1,_=!1,Ct(Y,ee),bt(Y,X),_f(Y)||E_(Y)){s=!1,i=!1;const J=ld(Y)?I.createNodeArray(Ge(Y,!0)):Jn(Y.statements,bi,wa);return I.updateSourceFile(Y,[I.createModuleDeclaration([I.createModifier(136)],I.createStringLiteral(LP(e.getEmitHost(),Y)),I.createModuleBlock(ht(I.createNodeArray(Bn(J)),Y.statements)))],!0,[],[],!1,[])}i=!0;const Ne=ld(Y)?I.createNodeArray(Ge(Y)):Jn(Y.statements,bi,wa);return I.updateSourceFile(Y,Bn(Ne),!0,[],[],!1,[])}),ua(W.prepends,Y=>{if(Y.kind===311){const Ne=CK(Y,"dts",be);return Jt=Jt||!!Ne.hasNoDefaultLib,Ct(Ne,ee),ae(Pt(Ne.typeReferenceDirectives,J=>[J.fileName,J.resolutionMode])),bt(Ne,X),Ne}return Y}));at.syntheticFileReferences=[],at.syntheticTypeReferences=Er(),at.syntheticLibReferences=Sn(),at.hasNoDefaultLib=Jt;const fe=vi(ru(N4(W,M,!0).declarationFilePath)),Te=mt(at.syntheticFileReferences,fe);return ee.forEach(Te),at}i=!0,c=!1,_=!1,d=W,H=W,r=t,o=!1,s=!1,C=!1,g=void 0,T=new Map,v=void 0,ee=Ct(H,new Map),X=bt(H,new Map);const He=[],et=vi(ru(N4(W,M,!0).declarationFilePath)),Ye=mt(He,et);let jt;if(ld(H))jt=I.createNodeArray(Ge(W)),ee.forEach(Ye),ne=ur(jt,kT);else{const Jt=Jn(W.statements,bi,wa);jt=ht(I.createNodeArray(Bn(Jt)),W.statements),ee.forEach(Ye),ne=ur(jt,kT),tc(W)&&(!s||c&&!_)&&(jt=ht(I.createNodeArray([...jt,L6(I)]),jt))}const cn=I.updateSourceFile(W,jt,!0,He,Er(),W.hasNoDefaultLib,Sn());return cn.exportedModulesFromDeclarationEmit=L,cn;function Sn(){return Oo(X.keys(),Jt=>({fileName:Jt,pos:-1,end:-1}))}function Er(){return v?ua(Oo(v.keys()),de):[]}function de([Jt,at]){if(ne){for(const fe of ne)if(fu(fe)&&Zm(fe.moduleReference)){const Te=fe.moduleReference.expression;if(As(Te)&&Te.text===Jt)return}else if(Yc(fe)&&Wo(fe.moduleSpecifier)&&fe.moduleSpecifier.text===Jt)return}return Li({fileName:Jt,pos:-1,end:-1},at?{resolutionMode:at}:void 0)}function mt(Jt,at){return fe=>{let Te;if(fe.isDeclarationFile)Te=fe.fileName;else{if(o&&Fr(W.sourceFiles,fe))return;const Y=N4(fe,M,!0);Te=Y.declarationFilePath||Y.jsFilePath||fe.fileName}if(Te){const Y=M9(ue,H,Js(at,M.getCurrentDirectory(),M.getCanonicalFileName),Js(Te,M.getCurrentDirectory(),M.getCanonicalFileName),M);if(!wf(Y)){ae([[Y,void 0]]);return}let Ne=TS(at,Te,M.getCurrentDirectory(),M.getCanonicalFileName,!1);if(xa(Ne,"./")&&WA(Ne)&&(Ne=Ne.substring(2)),xa(Ne,"node_modules/")||hx(Ne))return;Jt.push({pos:-1,end:-1,fileName:Ne})}}}}function Ct(W,He){return re||!YT(W)&&ld(W)||Ie(W.referencedFiles,et=>{const Ye=M.getSourceFileFromReference(W,et);Ye&&He.set(Nl(Ye),Ye)}),He}function bt(W,He){return Ie(W.libReferenceDirectives,et=>{M.getLibFileFromReference(et)&&He.set(V_(et.fileName),!0)}),He}function zt(W){if(W.kind===79)return W;return W.kind===204?I.updateArrayBindingPattern(W,Jn(W.elements,He,PM)):I.updateObjectBindingPattern(W,Jn(W.elements,He,ms));function He(et){return et.kind===229?et:et.propertyName&&We(et.propertyName)&&We(et.name)&&!et.symbol.isReferenced&&!TP(et.propertyName)?I.updateBindingElement(et,et.dotDotDotToken,void 0,et.propertyName,ot(et)?et.initializer:void 0):I.updateBindingElement(et,et.dotDotDotToken,et.propertyName,zt(et.name),ot(et)?et.initializer:void 0)}}function nt(W,He,et){let Ye;C||(Ye=r,r=Uy(W));const jt=I.updateParameterDeclaration(W,KFe(W,He),W.dotDotDotToken,zt(W.name),P.isOptionalParameter(W)?W.questionToken||I.createToken(57):void 0,pn(W,et||W.type,!0),sn(W));return C||(r=Ye),jt}function ot(W){return XFe(W)&&P.isLiteralConstDeclaration(Ea(W))}function sn(W){if(ot(W))return P.createLiteralConstValue(Ea(W),k)}function pn(W,He,et){if(!et&&Hd(W,8)||ot(W))return;const Ye=W.kind===166&&(P.isRequiredInitializedParameter(W)||P.isOptionalUninitializedParameterProperty(W));if(He&&!Ye)return ct(He,lr,Bi);if(!Ea(W))return He?ct(He,lr,Bi):I.createKeywordTypeNode(131);if(W.kind===175)return I.createKeywordTypeNode(131);U=W.name;let jt;if(C||(jt=r,r=Uy(W)),W.kind===257||W.kind===205)return cn(P.createTypeOfDeclaration(W,d,cE,k));if(W.kind===166||W.kind===169||W.kind===168)return Mf(W)||!W.initializer?cn(P.createTypeOfDeclaration(W,d,cE,k,Ye)):cn(P.createTypeOfDeclaration(W,d,cE,k,Ye)||P.createTypeOfExpression(W.initializer,d,cE,k));return cn(P.createReturnTypeOfSignatureDeclaration(W,d,cE,k));function cn(Sn){return U=void 0,C||(r=jt),Sn||I.createKeywordTypeNode(131)}}function gn(W){switch(W=Ea(W),W.kind){case 259:case 264:case 261:case 260:case 262:case 263:return!P.isDeclarationVisible(W);case 257:return!Ln(W);case 268:case 269:case 275:case 274:return!1;case 172:return!0}return!1}function jn(W){var He;if(W.body)return!0;const et=(He=W.symbol.declarations)==null?void 0:He.filter(Ye=>Sc(Ye)&&!Ye.body);return!et||et.indexOf(W)===et.length-1}function Ln(W){return Fc(W)?!1:$a(W.name)?Dt(W.name.elements,Ln):P.isDeclarationVisible(W)}function Zt(W,He,et){if(Hd(W,8))return I.createNodeArray();const Ye=Pt(He,jt=>nt(jt,et));return Ye?I.createNodeArray(Ye,He.hasTrailingComma):I.createNodeArray()}function pr(W,He){let et;if(!He){const Ye=zb(W);Ye&&(et=[nt(Ye)])}if(s_(W)){let Ye;if(!He){const jt=Lk(W);if(jt){const cn=ie(W,P.getAllAccessorDeclarations(W));Ye=nt(jt,void 0,cn)}}Ye||(Ye=I.createParameterDeclaration(void 0,void 0,"value")),et=Pn(et,Ye)}return I.createNodeArray(et||it)}function Ii(W,He){return Hd(W,8)?void 0:Jn(He,lr,Ul)}function ea(W){return Ki(W)||um(W)||Xl(W)||Bc(W)||dd(W)||Ya(W)||ZS(W)||s4(W)}function ta(W,He){const et=P.isEntityNameVisible(W,He);ce(et),ae(P.getTypeReferenceDirectivesForEntityName(W))}function Or(W,He){return Df(W)&&Df(He)&&(W.jsDoc=He.jsDoc),Xc(W,Ym(He))}function Lt(W,He){if(He){if(s=s||W.kind!==264&&W.kind!==202,As(He))if(o){const et=epe(e.getEmitHost(),P,W);if(et)return I.createStringLiteral(et)}else{const et=P.getSymbolOfExternalModuleSpecifier(He);et&&(L||(L=[])).push(et)}return He}}function yn(W){if(P.isDeclarationVisible(W))if(W.moduleReference.kind===280){const He=gk(W);return I.updateImportEqualsDeclaration(W,W.modifiers,W.isTypeOnly,W.name,I.updateExternalModuleReference(W.moduleReference,Lt(W,He)))}else{const He=r;return r=Uy(W),ta(W.moduleReference,d),r=He,W}}function Wt(W){if(!W.importClause)return I.updateImportDeclaration(W,W.modifiers,W.importClause,Lt(W,W.moduleSpecifier),In(W.assertClause));const He=W.importClause&&W.importClause.name&&P.isDeclarationVisible(W.importClause)?W.importClause.name:void 0;if(!W.importClause.namedBindings)return He&&I.updateImportDeclaration(W,W.modifiers,I.updateImportClause(W.importClause,W.importClause.isTypeOnly,He,void 0),Lt(W,W.moduleSpecifier),In(W.assertClause));if(W.importClause.namedBindings.kind===271){const Ye=P.isDeclarationVisible(W.importClause.namedBindings)?W.importClause.namedBindings:void 0;return He||Ye?I.updateImportDeclaration(W,W.modifiers,I.updateImportClause(W.importClause,W.importClause.isTypeOnly,He,Ye),Lt(W,W.moduleSpecifier),In(W.assertClause)):void 0}const et=ua(W.importClause.namedBindings.elements,Ye=>P.isDeclarationVisible(Ye)?Ye:void 0);if(et&&et.length||He)return I.updateImportDeclaration(W,W.modifiers,I.updateImportClause(W.importClause,W.importClause.isTypeOnly,He,et&&et.length?I.updateNamedImports(W.importClause.namedBindings,et):void 0),Lt(W,W.moduleSpecifier),In(W.assertClause));if(P.isImportRequiredByAugmentation(W))return I.updateImportDeclaration(W,W.modifiers,void 0,Lt(W,W.moduleSpecifier),In(W.assertClause))}function In(W){if(yx(W)!==void 0)return kR()||e.addDiagnostic(Nr(W,m.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),W}function Bn(W){for(;ge(g);){const et=g.shift();if(!XM(et))return R.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${R.formatSyntaxKind(et.kind)}`);const Ye=i;i=et.parent&&Ki(et.parent)&&!(tc(et.parent)&&o);const jt=an(et);i=Ye,T.set(Nl(et),jt)}return Jn(W,He,wa);function He(et){if(XM(et)){const Ye=Nl(et);if(T.has(Ye)){const jt=T.get(Ye);return T.delete(Ye),jt&&((ja(jt)?Dt(jt,FM):FM(jt))&&(c=!0),Ki(et.parent)&&(ja(jt)?Dt(jt,GD):GD(jt))&&(s=!0)),jt}}return et}}function lr(W){if(gt(W)||Au(W)&&(gn(W)||qv(W)&&!P.isLateBound(Ea(W)))||Ya(W)&&P.isImplementationOfOverload(W)||che(W))return;let He;ea(W)&&(He=d,d=W);const et=r,Ye=Q9(W),jt=C;let cn=(W.kind===184||W.kind===197)&&W.parent.kind!==262;if((sc(W)||Mh(W))&&Hd(W,8))return W.symbol&&W.symbol.declarations&&W.symbol.declarations[0]!==W?void 0:Sn(I.createPropertyDeclaration(pt(W),W.name,void 0,void 0,void 0));if(Ye&&!C&&(r=Uy(W)),a4(W)&&ta(W.exprName,d),cn&&(C=!0),$Fe(W))switch(W.kind){case 230:{(uf(W.expression)||Jl(W.expression))&&ta(W.expression,d);const Er=Fn(W,lr,e);return Sn(I.updateExpressionWithTypeArguments(Er,Er.expression,Er.typeArguments))}case 180:{ta(W.typeName,d);const Er=Fn(W,lr,e);return Sn(I.updateTypeReferenceNode(Er,Er.typeName,Er.typeArguments))}case 177:return Sn(I.updateConstructSignature(W,Ii(W,W.typeParameters),Zt(W,W.parameters),pn(W,W.type)));case 173:{const Er=I.createConstructorDeclaration(pt(W),Zt(W,W.parameters,0),void 0);return Sn(Er)}case 171:{if(Ri(W.name))return Sn(void 0);const Er=I.createMethodDeclaration(pt(W),void 0,W.name,W.questionToken,Ii(W,W.typeParameters),Zt(W,W.parameters),pn(W,W.type),void 0);return Sn(Er)}case 174:{if(Ri(W.name))return Sn(void 0);const Er=ie(W,P.getAllAccessorDeclarations(W));return Sn(I.updateGetAccessorDeclaration(W,pt(W),W.name,pr(W,Hd(W,8)),pn(W,Er),void 0))}case 175:return Ri(W.name)?Sn(void 0):Sn(I.updateSetAccessorDeclaration(W,pt(W),W.name,pr(W,Hd(W,8)),void 0));case 169:return Ri(W.name)?Sn(void 0):Sn(I.updatePropertyDeclaration(W,pt(W),W.name,W.questionToken,pn(W,W.type),sn(W)));case 168:return Ri(W.name)?Sn(void 0):Sn(I.updatePropertySignature(W,pt(W),W.name,W.questionToken,pn(W,W.type)));case 170:return Ri(W.name)?Sn(void 0):Sn(I.updateMethodSignature(W,pt(W),W.name,W.questionToken,Ii(W,W.typeParameters),Zt(W,W.parameters),pn(W,W.type)));case 176:return Sn(I.updateCallSignature(W,Ii(W,W.typeParameters),Zt(W,W.parameters),pn(W,W.type)));case 178:return Sn(I.updateIndexSignature(W,pt(W),Zt(W,W.parameters),ct(W.type,lr,Bi)||I.createKeywordTypeNode(131)));case 257:return $a(W.name)?Ir(W.name):(cn=!0,C=!0,Sn(I.updateVariableDeclaration(W,W.name,void 0,pn(W,W.type),sn(W))));case 165:return Oi(W)&&(W.default||W.constraint)?Sn(I.updateTypeParameterDeclaration(W,W.modifiers,W.name,void 0,void 0)):Sn(Fn(W,lr,e));case 191:{const Er=ct(W.checkType,lr,Bi),de=ct(W.extendsType,lr,Bi),mt=d;d=W.trueType;const Jt=ct(W.trueType,lr,Bi);d=mt;const at=ct(W.falseType,lr,Bi);return R.assert(Er),R.assert(de),R.assert(Jt),R.assert(at),Sn(I.updateConditionalTypeNode(W,Er,de,Jt,at))}case 181:return Sn(I.updateFunctionTypeNode(W,Jn(W.typeParameters,lr,Ul),Zt(W,W.parameters),R.checkDefined(ct(W.type,lr,Bi))));case 182:return Sn(I.updateConstructorTypeNode(W,pt(W),Jn(W.typeParameters,lr,Ul),Zt(W,W.parameters),R.checkDefined(ct(W.type,lr,Bi))));case 202:return l1(W)?Sn(I.updateImportTypeNode(W,I.updateLiteralTypeNode(W.argument,Lt(W,W.argument.literal)),W.assertions,W.qualifier,Jn(W.typeArguments,lr,Bi),W.isTypeOf)):Sn(W);default:R.assertNever(W,`Attempted to process unhandled node kind: ${R.formatSyntaxKind(W.kind)}`)}return UC(W)&&ll(H,W.pos).line===ll(H,W.end).line&&sr(W,1),Sn(Fn(W,lr,e));function Sn(Er){return Er&&Ye&&qv(W)&&Oe(W),ea(W)&&(d=He),Ye&&!C&&(r=et),cn&&(C=jt),Er===W?Er:Er&&zr(Or(Er,W),W)}}function Oi(W){return W.parent.kind===171&&Hd(W.parent,8)}function bi(W){if(!YFe(W)||gt(W))return;switch(W.kind){case 275:return Ki(W.parent)&&(s=!0),_=!0,I.updateExportDeclaration(W,W.modifiers,W.isTypeOnly,W.exportClause,Lt(W,W.moduleSpecifier),yx(W.assertClause)?W.assertClause:void 0);case 274:{if(Ki(W.parent)&&(s=!0),_=!0,W.expression.kind===79)return W;{const et=I.createUniqueName("_default",16);r=()=>({diagnosticMessage:m.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:W}),j=W;const Ye=I.createVariableDeclaration(et,void 0,P.createTypeOfExpression(W.expression,W,cE,k),void 0);j=void 0;const jt=I.createVariableStatement(i?[I.createModifier(136)]:[],I.createVariableDeclarationList([Ye],2));return Or(jt,W),o6(W),[jt,I.updateExportAssignment(W,W.modifiers,et)]}}}const He=an(W);return T.set(Nl(W),He),W}function Rn(W){if(fu(W)||Hd(W,1024)||!np(W))return W;const He=I.createModifiersFromModifierFlags(zu(W)&258046);return I.updateModifiers(W,He)}function an(W){if(g)for(;W7(g,W););if(gt(W))return;switch(W.kind){case 268:return yn(W);case 269:return Wt(W)}if(Au(W)&&gn(W)||Ya(W)&&P.isImplementationOfOverload(W))return;let He;ea(W)&&(He=d,d=W);const et=Q9(W),Ye=r;et&&(r=Uy(W));const jt=i;switch(W.kind){case 262:{i=!1;const Sn=cn(I.updateTypeAliasDeclaration(W,pt(W),W.name,Jn(W.typeParameters,lr,Ul),R.checkDefined(ct(W.type,lr,Bi))));return i=jt,Sn}case 261:return cn(I.updateInterfaceDeclaration(W,pt(W),W.name,Ii(W,W.typeParameters),ye(W.heritageClauses),Jn(W.members,lr,xT)));case 259:{const Sn=cn(I.updateFunctionDeclaration(W,pt(W),void 0,W.name,Ii(W,W.typeParameters),Zt(W,W.parameters),pn(W,W.type),void 0));if(Sn&&P.isExpandoFunctionDeclaration(W)&&jn(W)){const Er=P.getPropertiesOfContainerFunction(W),de=th.createModuleDeclaration(void 0,Sn.name||I.createIdentifier("_default"),I.createModuleBlock([]),16);jo(de,d),de.locals=uo(Er),de.symbol=Er[0].parent;const mt=[];let Jt=ua(Er,J=>{if(!J.valueDeclaration||!Br(J.valueDeclaration))return;r=Uy(J.valueDeclaration);const wt=P.createTypeOfDeclaration(J.valueDeclaration,de,cE,k);r=Ye;const Et=ia(J.escapedName),ut=PS(Et),nn=ut?I.getGeneratedNameForNode(J.valueDeclaration):I.createIdentifier(Et);ut&&mt.push([nn,Et]);const ir=I.createVariableDeclaration(nn,void 0,wt,void 0);return I.createVariableStatement(ut?void 0:[I.createToken(93)],I.createVariableDeclarationList([ir]))});mt.length?Jt.push(I.createExportDeclaration(void 0,!1,I.createNamedExports(Pt(mt,([J,wt])=>I.createExportSpecifier(!1,J,wt))))):Jt=ua(Jt,J=>I.updateModifiers(J,0));const at=I.createModuleDeclaration(pt(W),W.name,I.createModuleBlock(Jt),16);if(!Hd(Sn,1024))return[Sn,at];const fe=I.createModifiersFromModifierFlags(zu(Sn)&-1026|2),Te=I.updateFunctionDeclaration(Sn,fe,void 0,Sn.name,Sn.typeParameters,Sn.parameters,Sn.type,void 0),Y=I.updateModuleDeclaration(at,fe,at.name,at.body),Ne=I.createExportAssignment(void 0,!1,at.name);return Ki(W.parent)&&(s=!0),_=!0,[Te,Y,Ne]}else return Sn}case 264:{i=!1;const Sn=W.body;if(Sn&&Sn.kind===265){const Er=c,de=_;_=!1,c=!1;const mt=Jn(Sn.statements,bi,wa);let Jt=Bn(mt);W.flags&16777216&&(c=!1),!im(W)&&!Le(Jt)&&!_&&(c?Jt=I.createNodeArray([...Jt,L6(I)]):Jt=Jn(Jt,Rn,wa));const at=I.updateModuleBlock(Sn,Jt);i=jt,c=Er,_=de;const fe=pt(W);return cn(I.updateModuleDeclaration(W,fe,Bb(W)?Lt(W,W.name):W.name,at))}else{i=jt;const Er=pt(W);i=!1,ct(Sn,bi);const de=Nl(Sn),mt=T.get(de);return T.delete(de),cn(I.updateModuleDeclaration(W,Er,W.name,mt))}}case 260:{U=W.name,j=W;const Sn=I.createNodeArray(pt(W)),Er=Ii(W,W.typeParameters),de=Dh(W);let mt;if(de){const Ne=r;mt=$w(ji(de.parameters,J=>{if(!Qr(J,16476)||gt(J))return;if(r=Uy(J),J.name.kind===79)return Or(I.createPropertyDeclaration(pt(J),J.name,J.questionToken,pn(J,J.type),sn(J)),J);return wt(J.name);function wt(Et){let ut;for(const nn of Et.elements)Fc(nn)||($a(nn.name)&&(ut=ba(ut,wt(nn.name))),ut=ut||[],ut.push(I.createPropertyDeclaration(pt(J),nn.name,void 0,pn(nn,void 0),void 0)));return ut}})),r=Ne}const at=Dt(W.members,Ne=>!!Ne.name&&Ri(Ne.name))?[I.createPropertyDeclaration(void 0,I.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,fe=ba(ba(at,mt),Jn(W.members,lr,qc)),Te=I.createNodeArray(fe),Y=am(W);if(Y&&!Jl(Y.expression)&&Y.expression.kind!==104){const Ne=W.name?ia(W.name.escapedText):"default",J=I.createUniqueName(`${Ne}_base`,16);r=()=>({diagnosticMessage:m.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Y,typeName:W.name});const wt=I.createVariableDeclaration(J,void 0,P.createTypeOfExpression(Y.expression,W,cE,k),void 0),Et=I.createVariableStatement(i?[I.createModifier(136)]:[],I.createVariableDeclarationList([wt],2)),ut=I.createNodeArray(Pt(W.heritageClauses,nn=>{if(nn.token===94){const ir=r;r=Uy(nn.types[0]);const ai=I.updateHeritageClause(nn,Pt(nn.types,gi=>I.updateExpressionWithTypeArguments(gi,J,Jn(gi.typeArguments,lr,Bi))));return r=ir,ai}return I.updateHeritageClause(nn,Jn(I.createNodeArray(ur(nn.types,ir=>Jl(ir.expression)||ir.expression.kind===104)),lr,Py))}));return[Et,cn(I.updateClassDeclaration(W,Sn,W.name,Er,ut,Te))]}else{const Ne=ye(W.heritageClauses);return cn(I.updateClassDeclaration(W,Sn,W.name,Er,Ne,Te))}}case 240:return cn(On(W));case 263:return cn(I.updateEnumDeclaration(W,I.createNodeArray(pt(W)),W.name,I.createNodeArray(ua(W.members,Sn=>{if(gt(Sn))return;const Er=P.getConstantValue(Sn);return Or(I.updateEnumMember(Sn,Sn.name,Er!==void 0?typeof Er=="string"?I.createStringLiteral(Er):I.createNumericLiteral(Er):void 0),Sn)}))))}return R.assertNever(W,`Unhandled top-level node in declaration emit: ${R.formatSyntaxKind(W.kind)}`);function cn(Sn){return ea(W)&&(d=He),et&&(r=Ye),W.kind===264&&(i=jt),Sn===W?Sn:(j=void 0,U=void 0,Sn&&zr(Or(Sn,W),W))}}function On(W){if(!Ie(W.declarationList.declarations,Ln))return;const He=Jn(W.declarationList.declarations,lr,$i);if(ge(He))return I.updateVariableStatement(W,I.createNodeArray(pt(W)),I.updateVariableDeclarationList(W.declarationList,He))}function Ir(W){return Ha(ua(W.elements,He=>Hr(He)))}function Hr(W){if(W.kind!==229&&W.name)return Ln(W)?$a(W.name)?Ir(W.name):I.createVariableDeclaration(W.name,void 0,pn(W,void 0),void 0):void 0}function Oe(W){let He;C||(He=r,r=zve(W)),U=W.name,R.assert(P.isLateBound(Ea(W)));const Ye=W.name.expression;ta(Ye,d),C||(r=He),U=void 0}function gt(W){return!!be&&!!W&&ZY(W,H)}function Ot(W){return Vl(W)||au(W)}function Le(W){return Dt(W,Ot)}function pt(W){const He=zu(W),et=me(W);return He===et?NY(W.modifiers,Ye=>li(Ye,po),po):I.createModifiersFromModifierFlags(et)}function me(W){let He=241147,et=i&&!JFe(W)?2:0;const Ye=W.parent.kind===308;return(!Ye||o&&Ye&&tc(W.parent))&&(He^=2,et=0),Kve(W,He,et)}function ie(W,He){let et=t$(W);return!et&&W!==He.firstAccessor&&(et=t$(He.firstAccessor),r=Uy(He.firstAccessor)),!et&&He.secondAccessor&&W!==He.secondAccessor&&(et=t$(He.secondAccessor),r=Uy(He.secondAccessor)),et}function ye(W){return I.createNodeArray(ur(Pt(W,He=>I.updateHeritageClause(He,Jn(I.createNodeArray(ur(He.types,et=>Jl(et.expression)||He.token===94&&et.expression.kind===104)),lr,Py))),He=>He.types&&!!He.types.length))}}function JFe(e){return e.kind===261}function KFe(e,t,r){return O.createModifiersFromModifierFlags(Kve(e,t,r))}function Kve(e,t=258043,r=0){let i=zu(e)&t|r;return i&1024&&!(i&1)&&(i^=1),i&1024&&i&2&&(i^=2),i}function t$(e){if(e)return e.kind===174?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function XFe(e){switch(e.kind){case 169:case 168:return!Hd(e,8);case 166:case 257:return!0}return!1}function YFe(e){switch(e.kind){case 259:case 264:case 268:case 261:case 260:case 262:case 263:case 240:case 269:case 275:case 274:return!0}return!1}function $Fe(e){switch(e.kind){case 177:case 173:case 171:case 174:case 175:case 169:case 168:case 170:case 176:case 178:case 257:case 165:case 230:case 180:case 191:case 181:case 182:case 202:return!0}return!1}var cE,QFe=b({"src/compiler/transformers/declarations.ts"(){"use strict";Oa(),AY(),cE=531469}});function ZFe(e){switch(e){case 99:case 7:case 6:case 5:return QY;case 4:return Wve;case 100:case 199:return Hve;default:return $Y}}function n$(e,t,r){return{scriptTransformers:eBe(e,t,r),declarationTransformers:tBe(t)}}function eBe(e,t,r){if(r)return it;const i=ns(e),o=uu(e),s=WR(e),c=[];return xi(c,t&&Pt(t.before,Yve)),c.push(Sve),e.experimentalDecorators?c.push(Lve):(i<99||!s)&&c.push(Ive),c.push(Ave),GJ(e)&&c.push(Mve),i<99&&c.push(Ove),i<8&&c.push(Nve),i<7&&c.push(Rve),i<6&&c.push(Dve),i<5&&c.push(wve),i<4&&c.push(kve),i<3&&c.push(Fve),i<2&&(c.push(Gve),c.push(Vve)),c.push(ZFe(o)),i<1&&c.push(Uve),xi(c,t&&Pt(t.after,Yve)),c}function tBe(e){const t=[];return t.push(e$),xi(t,e&&Pt(e.afterDeclarations,rBe)),t}function nBe(e){return t=>ZK(t)?e.transformBundle(t):e.transformSourceFile(t)}function Xve(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):nBe(i)}}function Yve(e){return Xve(e,rp)}function rBe(e){return Xve(e,(t,r)=>r)}function D4(e,t){return t}function mN(e,t,r){r(e,t)}function hN(e,t,r,i,o,s,c){var _,d;const v=new Array(361);let g,T,C,L=0,I=[],M=[],k=[],U=[],j=0,H=!1,ee=[],X=0,ne,P,ue=D4,re=mN,be=0;const ae=[],z={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Ld(()=>qme(z)),startLexicalEnvironment:Ge,suspendLexicalEnvironment:lt,resumeLexicalEnvironment:Ct,endLexicalEnvironment:bt,setLexicalEnvironmentFlags:zt,getLexicalEnvironmentFlags:nt,hoistVariableDeclaration:Be,hoistFunctionDeclaration:$e,addInitializationStatement:ze,startBlockScope:ot,endBlockScope:sn,addBlockScopedVariable:pn,requestEmitHelper:gn,readEmitHelpers:jn,enableSubstitution:te,enableEmitNotification:Ue,isSubstitutionEnabled:Ze,isEmitNotificationEnabled:Je,get onSubstituteNode(){return ue},set onSubstituteNode(Zt){R.assert(be<1,"Cannot modify transformation hooks after initialization has completed."),R.assert(Zt!==void 0,"Value must not be 'undefined'"),ue=Zt},get onEmitNode(){return re},set onEmitNode(Zt){R.assert(be<1,"Cannot modify transformation hooks after initialization has completed."),R.assert(Zt!==void 0,"Value must not be 'undefined'"),re=Zt},addDiagnostic(Zt){ae.push(Zt)}};for(const Zt of o)RK(Zn(Ea(Zt)));sl("beforeTransform");const ce=s.map(Zt=>Zt(z)),he=Zt=>{for(const pr of ce)Zt=pr(Zt);return Zt};be=1;const Ee=[];for(const Zt of o)(_=Ti)==null||_.push(Ti.Phase.Emit,"transformNodes",Zt.kind===308?{path:Zt.path}:{kind:Zt.kind,pos:Zt.pos,end:Zt.end}),Ee.push((c?he:Ae)(Zt)),(d=Ti)==null||d.pop();return be=2,sl("afterTransform"),e_("transformTime","beforeTransform","afterTransform"),{transformed:Ee,substituteNode:je,emitNodeWithNotification:Fe,isEmitNotificationEnabled:Je,dispose:Ln,diagnostics:ae};function Ae(Zt){return Zt&&(!Ki(Zt)||!Zt.isDeclarationFile)?he(Zt):Zt}function te(Zt){R.assert(be<2,"Cannot modify the transformation context after transformation has completed."),v[Zt]|=1}function Ze(Zt){return(v[Zt.kind]&1)!==0&&(Eo(Zt)&8)===0}function je(Zt,pr){return R.assert(be<3,"Cannot substitute a node after the result is disposed."),pr&&Ze(pr)&&ue(Zt,pr)||pr}function Ue(Zt){R.assert(be<2,"Cannot modify the transformation context after transformation has completed."),v[Zt]|=2}function Je(Zt){return(v[Zt.kind]&2)!==0||(Eo(Zt)&4)!==0}function Fe(Zt,pr,Ii){R.assert(be<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),pr&&(Je(pr)?re(Zt,pr,Ii):Ii(Zt,pr))}function Be(Zt){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed.");const pr=sr(r.createVariableDeclaration(Zt),128);g?g.push(pr):g=[pr],L&1&&(L|=2)}function $e(Zt){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),sr(Zt,2097152),T?T.push(Zt):T=[Zt]}function ze(Zt){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),sr(Zt,2097152),C?C.push(Zt):C=[Zt]}function Ge(){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(!H,"Lexical environment is suspended."),I[j]=g,M[j]=T,k[j]=C,U[j]=L,j++,g=void 0,T=void 0,C=void 0,L=0}function lt(){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(!H,"Lexical environment is already suspended."),H=!0}function Ct(){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(H,"Lexical environment is not suspended."),H=!1}function bt(){R.assert(be>0,"Cannot modify the lexical environment during initialization."),R.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(!H,"Lexical environment is suspended.");let Zt;if(g||T||C){if(T&&(Zt=[...T]),g){const pr=r.createVariableStatement(void 0,r.createVariableDeclarationList(g));sr(pr,2097152),Zt?Zt.push(pr):Zt=[pr]}C&&(Zt?Zt=[...Zt,...C]:Zt=[...C])}return j--,g=I[j],T=M[j],C=k[j],L=U[j],j===0&&(I=[],M=[],k=[],U=[]),Zt}function zt(Zt,pr){L=pr?L|Zt:L&~Zt}function nt(){return L}function ot(){R.assert(be>0,"Cannot start a block scope during initialization."),R.assert(be<2,"Cannot start a block scope after transformation has completed."),ee[X]=ne,X++,ne=void 0}function sn(){R.assert(be>0,"Cannot end a block scope during initialization."),R.assert(be<2,"Cannot end a block scope after transformation has completed.");const Zt=Dt(ne)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(ne.map(pr=>r.createVariableDeclaration(pr)),1))]:void 0;return X--,ne=ee[X],X===0&&(ee=[]),Zt}function pn(Zt){R.assert(X>0,"Cannot add a block scoped variable outside of an iteration body."),(ne||(ne=[])).push(Zt)}function gn(Zt){if(R.assert(be>0,"Cannot modify the transformation context during initialization."),R.assert(be<2,"Cannot modify the transformation context after transformation has completed."),R.assert(!Zt.scoped,"Cannot request a scoped emit helper."),Zt.dependencies)for(const pr of Zt.dependencies)gn(pr);P=Pn(P,Zt)}function jn(){R.assert(be>0,"Cannot modify the transformation context during initialization."),R.assert(be<2,"Cannot modify the transformation context after transformation has completed.");const Zt=P;return P=void 0,Zt}function Ln(){if(be<3){for(const Zt of o)RK(Zn(Ea(Zt)));g=void 0,I=void 0,T=void 0,M=void 0,ue=void 0,re=void 0,P=void 0,be=3}}}var r$,Dg,iBe=b({"src/compiler/transformer.ts"(){"use strict";Oa(),kb(),r$={scriptTransformers:it,declarationTransformers:it},Dg={factory:O,getCompilerOptions:()=>({}),getEmitResolver:qa,getEmitHost:qa,getEmitHelperFactory:qa,startLexicalEnvironment:co,resumeLexicalEnvironment:co,suspendLexicalEnvironment:co,endLexicalEnvironment:n1,setLexicalEnvironmentFlags:co,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:co,hoistFunctionDeclaration:co,addInitializationStatement:co,startBlockScope:co,endBlockScope:n1,addBlockScopedVariable:co,requestEmitHelper:co,readEmitHelpers:qa,enableSubstitution:co,enableEmitNotification:co,isSubstitutionEnabled:qa,isEmitNotificationEnabled:qa,onSubstituteNode:D4,onEmitNode:mN,addDiagnostic:co}}});function $ve(e){return _c(e,".tsbuildinfo")}function i$(e,t,r,i=!1,o,s){const c=ja(r)?r:pJ(e,r,i),_=e.getCompilerOptions();if(Ks(_)){const d=e.getPrependNodes();if(c.length||d.length){const v=O.createBundle(c,d),g=t(N4(v,e,i),v);if(g)return g}}else{if(!o)for(const d of c){const v=t(N4(d,e,i),d);if(v)return v}if(s){const d=Vy(_);if(d)return t({buildInfoPath:d},void 0)}}}function Vy(e){const t=e.configFilePath;if(!VR(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=Ks(e);let i;if(r)i=zd(r);else{if(!t)return;const o=zd(t);i=e.outDir?e.rootDir?Ov(e.outDir,Bm(e.rootDir,o,!0)):Fi(e.outDir,Eu(o)):o}return i+".tsbuildinfo"}function R4(e,t){const r=Ks(e),i=e.emitDeclarationOnly?void 0:r,o=i&&Qve(i,e),s=t||Q_(e)?zd(r)+".d.ts":void 0,c=s&&GP(e)?s+".map":void 0,_=Vy(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:c,buildInfoPath:_}}function N4(e,t,r){const i=t.getCompilerOptions();if(e.kind===309)return R4(i,r);{const o=tpe(e.fileName,t,a$(e.fileName,i)),s=E_(e),c=s&&vT(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,_=i.emitDeclarationOnly||c?void 0:o,d=!_||E_(e)?void 0:Qve(_,i),v=r||Q_(i)&&!s?npe(e.fileName,t):void 0,g=v&&GP(i)?v+".map":void 0;return{jsFilePath:_,sourceMapFilePath:d,declarationFilePath:v,declarationMapPath:g,buildInfoPath:void 0}}}function Qve(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function a$(e,t){return _c(e,".json")?".json":t.jsx===1&&Ic(e,[".jsx",".tsx"])?".jsx":Ic(e,[".mts",".mjs"])?".mjs":Ic(e,[".cts",".cjs"])?".cjs":".js"}function Zve(e,t,r,i,o){return i?Ov(i,Bm(o?o():M4(t,r),e,r)):e}function O4(e,t,r,i){return Xb(Zve(e,t,r,t.options.declarationDir||t.options.outDir,i),fJ(e))}function e0e(e,t,r,i){if(t.options.emitDeclarationOnly)return;const o=_c(e,".json"),s=Xb(Zve(e,t,r,t.options.outDir,i),a$(e,t.options));return!o||vT(e,s,R.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function t0e(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||it}}function n0e(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:c}=R4(e.options,!1);t(r),t(i),t(o),t(s),t(c)}function r0e(e,t,r,i,o){if(vd(t))return;const s=e0e(t,e,r,o);if(i(s),!_c(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),Q_(e.options))){const c=O4(t,e,r,o);i(c),e.options.declarationMap&&i(`${c}.map`)}}function gN(e,t,r,i,o){let s;return e.rootDir?(s=Ma(e.rootDir,r),o==null||o(e.rootDir)):e.composite&&e.configFilePath?(s=vi(ru(e.configFilePath)),o==null||o(s)):s=f0e(t(),r,i),s&&s[s.length-1]!==Bs&&(s+=Bs),s}function M4({options:e,fileNames:t},r){return gN(e,()=>ur(t,i=>!(e.noEmitForJsFiles&&Ic(i,$k))&&!vd(i)),vi(ru(R.checkDefined(e.configFilePath))),lu(!r))}function Z9(e,t){const{addOutput:r,getOutputs:i}=t0e();if(Ks(e.options))n0e(e,r);else{const o=Ld(()=>M4(e,t));for(const s of e.fileNames)r0e(e,s,t,r,o);r(Vy(e.options))}return i()}function aBe(e,t,r){t=Xo(t),R.assert(Fr(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:o}=t0e();return Ks(e.options)?n0e(e,i):r0e(e,t,r,i),o()}function o$(e,t){if(Ks(e.options)){const{jsFilePath:o,declarationFilePath:s}=R4(e.options,!1);return R.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}const r=Ld(()=>M4(e,t));for(const o of e.fileNames){if(vd(o))continue;const s=e0e(o,e,t,r);if(s)return s;if(!_c(o,".json")&&Q_(e.options))return O4(o,e,t,r)}const i=Vy(e.options);return i||R.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function eF(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,c,_){var d=t.getCompilerOptions(),v=d.sourceMap||d.inlineSourceMap||GP(d)?[]:void 0,g=d.listEmittedFiles?[]:void 0,T=EC(),C=m1(d),L=wR(C),{enter:I,exit:M}=Q7("printTime","beforePrint","afterPrint"),k,U=!1;return I(),i$(t,j,pJ(t,r,_),_,c,!r),M(),{emitSkipped:U,diagnostics:T.getDiagnostics(),emittedFiles:g,sourceMaps:v};function j({jsFilePath:z,sourceMapFilePath:ce,declarationFilePath:he,declarationMapPath:Ee,buildInfoPath:Ae},te){var Ze,je,Ue,Je,Fe,Be;let $e;Ae&&te&&ZK(te)&&($e=vi(Ma(Ae,t.getCurrentDirectory())),k={commonSourceDirectory:ze(t.getCommonSourceDirectory()),sourceFiles:te.sourceFiles.map(Ge=>ze(Ma(Ge.fileName,t.getCurrentDirectory())))}),(Ze=Ti)==null||Ze.push(Ti.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:z}),ee(te,z,ce,ze),(je=Ti)==null||je.pop(),(Ue=Ti)==null||Ue.push(Ti.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:he}),X(te,he,Ee,ze),(Je=Ti)==null||Je.pop(),(Fe=Ti)==null||Fe.push(Ti.Phase.Emit,"emitBuildInfo",{buildInfoPath:Ae}),H(k,Ae),(Be=Ti)==null||Be.pop(),!U&&g&&(s||(z&&g.push(z),ce&&g.push(ce),Ae&&g.push(Ae)),s!==0&&(he&&g.push(he),Ee&&g.push(Ee)));function ze(Ge){return Db(Bm($e,Ge,t.getCanonicalFileName))}}function H(z,ce){if(!ce||r||U)return;if(t.isEmitBlocked(ce)){U=!0;return}const he=t.getBuildInfo(z)||yN(void 0,z);Ak(t,T,ce,i0e(he),!1,void 0,{buildInfo:he})}function ee(z,ce,he,Ee){if(!z||s||!ce)return;if(t.isEmitBlocked(ce)||d.noEmit){U=!0;return}const Ae=hN(e,t,O,d,[z],i,!1),te={removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:d.noEmitHelpers,module:d.module,target:d.target,sourceMap:d.sourceMap,inlineSourceMap:d.inlineSourceMap,inlineSources:d.inlineSources,extendedDiagnostics:d.extendedDiagnostics,writeBundleFileInfo:!!k,relativeToBuildInfo:Ee},Ze=uE(te,{hasGlobalName:e.hasGlobalName,onEmitNode:Ae.emitNodeWithNotification,isEmitNotificationEnabled:Ae.isEmitNotificationEnabled,substituteNode:Ae.substituteNode});R.assert(Ae.transformed.length===1,"Should only see one output from the transform"),P(ce,he,Ae,Ze,d),Ae.dispose(),k&&(k.js=Ze.bundleFileInfo)}function X(z,ce,he,Ee){if(!z||s===0)return;if(!ce){(s||d.emitDeclarationOnly)&&(U=!0);return}const Ae=Ki(z)?[z]:z.sourceFiles,te=_?Ae:ur(Ae,jq),Ze=Ks(d)?[O.createBundle(te,Ki(z)?void 0:z.prepends)]:te;s&&!Q_(d)&&te.forEach(ne);const je=hN(e,t,O,d,Ze,o,!1);if(ge(je.diagnostics))for(const Be of je.diagnostics)T.add(Be);const Ue={removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:!0,module:d.module,target:d.target,sourceMap:!_&&d.declarationMap,inlineSourceMap:d.inlineSourceMap,extendedDiagnostics:d.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!k,recordInternalSection:!!k,relativeToBuildInfo:Ee},Je=uE(Ue,{hasGlobalName:e.hasGlobalName,onEmitNode:je.emitNodeWithNotification,isEmitNotificationEnabled:je.isEmitNotificationEnabled,substituteNode:je.substituteNode}),Fe=!!je.diagnostics&&!!je.diagnostics.length||!!t.isEmitBlocked(ce)||!!d.noEmit;U=U||Fe,(!Fe||_)&&(R.assert(je.transformed.length===1,"Should only see one output from the decl transform"),P(ce,he,je,Je,{sourceMap:Ue.sourceMap,sourceRoot:d.sourceRoot,mapRoot:d.mapRoot,extendedDiagnostics:d.extendedDiagnostics})),je.dispose(),k&&(k.dts=Je.bundleFileInfo)}function ne(z){if(Vl(z)){z.expression.kind===79&&e.collectLinkedAliases(z.expression,!0);return}else if(yd(z)){e.collectLinkedAliases(z.propertyName||z.name,!0);return}Pa(z,ne)}function P(z,ce,he,Ee,Ae){const te=he.transformed[0],Ze=te.kind===309?te:void 0,je=te.kind===308?te:void 0,Ue=Ze?Ze.sourceFiles:[je];let Je;ue(Ae,te)&&(Je=ove(t,Eu(ru(z)),re(Ae),be(Ae,z,je),Ae)),Ze?Ee.writeBundle(Ze,L,Je):Ee.writeFile(je,L,Je);let Fe;if(Je){v&&v.push({inputSourceFileNames:Je.getSources(),sourceMap:Je.toJSON()});const $e=ae(Ae,Je,z,ce,je);if($e&&(L.isAtStartOfLine()||L.rawWrite(C),Fe=L.getTextPos(),L.writeComment(`//# sourceMappingURL=${$e}`)),ce){const ze=Je.toString();Ak(t,T,ce,ze,!1,Ue),Ee.bundleFileInfo&&(Ee.bundleFileInfo.mapHash=s2(ze,t))}}else L.writeLine();const Be=L.getText();Ak(t,T,z,Be,!!d.emitBOM,Ue,{sourceMapUrlPos:Fe,diagnostics:he.diagnostics}),Ee.bundleFileInfo&&(Ee.bundleFileInfo.hash=s2(Be,t)),L.clear()}function ue(z,ce){return(z.sourceMap||z.inlineSourceMap)&&(ce.kind!==308||!_c(ce.fileName,".json"))}function re(z){const ce=ru(z.sourceRoot||"");return ce&&Wu(ce)}function be(z,ce,he){if(z.sourceRoot)return t.getCommonSourceDirectory();if(z.mapRoot){let Ee=ru(z.mapRoot);return he&&(Ee=vi(IP(he.fileName,t,Ee))),nm(Ee)===0&&(Ee=Fi(t.getCommonSourceDirectory(),Ee)),Ee}return vi(Xo(ce))}function ae(z,ce,he,Ee,Ae){if(z.inlineSourceMap){const Ze=ce.toString();return`data:application/json;base64,${Ape(nu,Ze)}`}const te=Eu(ru(R.checkDefined(Ee)));if(z.mapRoot){let Ze=ru(z.mapRoot);return Ae&&(Ze=vi(IP(Ae.fileName,t,Ze))),nm(Ze)===0?(Ze=Fi(t.getCommonSourceDirectory(),Ze),encodeURI(TS(vi(Xo(he)),Fi(Ze,te),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Fi(Ze,te))}return encodeURI(te)}}function yN(e,t){return{bundle:t,program:e,version:pe}}function i0e(e){return JSON.stringify(e)}function tF(e,t){return CJ(e,t)}function oBe(e,t,r){var i;const o=R.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&Tb(o.sources.prologues,c=>c.file);return e.sourceFiles.map((c,_)=>{var d,v;const g=s==null?void 0:s.get(_),T=g==null?void 0:g.directives.map(I=>{const M=ht(O.createStringLiteral(I.expression.text),I.expression),k=ht(O.createExpressionStatement(M),I);return jo(M,k),k}),C=O.createToken(1),L=O.createSourceFile(T!=null?T:[],C,0);return L.fileName=Bm(r.getCurrentDirectory(),Ma(c,t),!r.useCaseSensitiveFileNames()),L.text=(d=g==null?void 0:g.text)!=null?d:"",qk(L,0,(v=g==null?void 0:g.text.length)!=null?v:0),wC(L.statements,L),qk(C,L.end,0),jo(C,L),L})}function a0e(e,t,r,i){var o,s;(o=Ti)==null||o.push(Ti.Phase.Emit,"emitUsingBuildInfo",{},!0),oD.mark("beforeEmit");const c=sBe(e,t,r,i);return oD.mark("afterEmit"),oD.measure("Emit","beforeEmit","afterEmit"),(s=Ti)==null||s.pop(),c}function sBe(e,t,r,i){const{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:c,declarationFilePath:_,declarationMapPath:d}=R4(e.options,!1),v=t.getBuildInfo(o,e.options.configFilePath);if(!v||!v.bundle||!v.bundle.js||_&&!v.bundle.dts)return o;const g=t.readFile(R.checkDefined(s));if(!g||s2(g,t)!==v.bundle.js.hash)return s;const T=c&&t.readFile(c);if(c&&!T||e.options.inlineSourceMap)return c||"inline sourcemap decoding";if(c&&s2(T,t)!==v.bundle.js.mapHash)return c;const C=_&&t.readFile(_);if(_&&!C||_&&s2(C,t)!==v.bundle.dts.hash)return _;const L=d&&t.readFile(d);if(d&&!L||e.options.inlineSourceMap)return d||"inline sourcemap decoding";if(d&&s2(L,t)!==v.bundle.dts.mapHash)return d;const I=vi(Ma(o,t.getCurrentDirectory())),M=IK(s,g,c,T,_,C,d,L,o,v,!0),k=[],U=C$(e.projectReferences,r,ne=>t.readFile(ne),t),j=oBe(v.bundle,I,t);let H,ee;const X={getPrependNodes:Ld(()=>[...U,M]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>Ma(v.bundle.commonSourceDirectory,I),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:n1,getSourceFileByPath:n1,getSourceFiles:()=>j,getLibFileFromReference:qa,isSourceFileFromExternalLibrary:Sb,getResolvedProjectReferenceToRedirect:n1,getProjectReferenceRedirect:n1,isSourceOfProjectReferenceRedirect:Sb,writeFile:(ne,P,ue,re,be,ae)=>{switch(ne){case s:if(g===P)return;break;case c:if(T===P)return;break;case o:break;case _:if(C===P)return;H=P,ee=ae;break;case d:if(L===P)return;break;default:R.fail(`Unexpected path: ${ne}`)}k.push({name:ne,text:P,writeByteOrderMark:ue,data:ae})},isEmitBlocked:Sb,readFile:ne=>t.readFile(ne),fileExists:ne=>t.fileExists(ne),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:ne=>{const P=v.program;P&&H!==void 0&&e.options.composite&&(P.outSignature=s2(H,t,ee));const{js:ue,dts:re,sourceFiles:be}=v.bundle;return ne.js.sources=ue.sources,re&&(ne.dts.sources=re.sources),ne.sourceFiles=be,yN(P,ne)},getSourceFileFromReference:n1,redirectTargetsMap:v_(),getFileIncludeReasons:qa,createHash:Vo(t,t.createHash)};return eF(nF,X,void 0,n$(e.options,i)),k}function uE(e={},t={}){var{hasGlobalName:r,onEmitNode:i=mN,isEmitNotificationEnabled:o,substituteNode:s=D4,onBeforeEmitNode:c,onAfterEmitNode:_,onBeforeEmitNodeArray:d,onAfterEmitNodeArray:v,onBeforeEmitToken:g,onAfterEmitToken:T}=t,C=!!e.extendedDiagnostics,L=m1(e),I=uu(e),M=new Map,k,U,j,H,ee,X,ne,P,ue,re,be,ae,z,ce,he,Ee=e.preserveSourceNewlines,Ae,te,Ze,je=PL,Ue,Je=e.writeBundleFileInfo?{sections:[]}:void 0,Fe=Je?R.checkDefined(e.relativeToBuildInfo):void 0,Be=e.recordInternalSection,$e=0,ze="text",Ge=!0,lt,Ct,bt=-1,zt,nt=-1,ot=-1,sn=-1,pn=-1,gn,jn,Ln=!1,Zt=!!e.removeComments,pr,Ii,{enter:ea,exit:ta}=Sde(C,"commentTime","beforeComment","afterComment"),Or=O.parenthesizer,Lt={select:x=>x===0?Or.parenthesizeLeadingTypeArgument:void 0},yn=rc();return He(),{printNode:Wt,printList:In,printFile:lr,printBundle:Bn,writeNode:bi,writeList:Rn,writeFile:Le,writeBundle:gt,bundleFileInfo:Je};function Wt(x,le,Re){switch(x){case 0:R.assert(Ki(le),"Expected a SourceFile node.");break;case 2:R.assert(We(le),"Expected an Identifier node.");break;case 1:R.assert(yt(le),"Expected an Expression node.");break}switch(le.kind){case 308:return lr(le);case 309:return Bn(le);case 310:return Oi(le)}return bi(x,le,Re,pt()),me()}function In(x,le,Re){return Rn(x,le,Re,pt()),me()}function Bn(x){return gt(x,pt(),void 0),me()}function lr(x){return Le(x,pt(),void 0),me()}function Oi(x){return Ot(x,pt()),me()}function bi(x,le,Re,on){const Cr=te;W(on,void 0),ie(x,le,Re),He(),te=Cr}function Rn(x,le,Re,on){const Cr=te;W(on,void 0),Re&&ye(Re),Ns(void 0,le,x),He(),te=Cr}function an(){return te.getTextPosWithWriteLine?te.getTextPosWithWriteLine():te.getTextPos()}function On(x,le,Re){const on=rl(Je.sections);on&&on.kind===Re?on.end=le:Je.sections.push({pos:x,end:le,kind:Re})}function Ir(x){if(Be&&Je&&k&&(Au(x)||pc(x))&&ZY(x,k)&&ze!=="internal"){const le=ze;return Oe(te.getTextPos()),$e=an(),ze="internal",le}}function Hr(x){x&&(Oe(te.getTextPos()),$e=an(),ze=x)}function Oe(x){return $e<x?(On($e,x,ze),!0):!1}function gt(x,le,Re){Ue=!1;const on=te;W(le,Re),W1(x),N2(x),nn(x),w2(x);for(const Cr of x.prepends){Nc();const Ai=te.getTextPos(),di=Je&&Je.sections;if(di&&(Je.sections=[]),ie(4,Cr,void 0),Je){const Vi=Je.sections;Je.sections=di,Cr.oldFileOfCurrentEmit?Je.sections.push(...Vi):(Vi.forEach(mo=>R.assert(Mpe(mo))),Je.sections.push({pos:Ai,end:te.getTextPos(),kind:"prepend",data:Fe(Cr.fileName),texts:Vi}))}}$e=an();for(const Cr of x.sourceFiles)ie(0,Cr,Cr);if(Je&&x.sourceFiles.length){const Cr=te.getTextPos();if(Oe(Cr)){const Ai=Kx(x);Ai&&(Je.sources||(Je.sources={}),Je.sources.prologues=Ai);const di=ut(x);di&&(Je.sources||(Je.sources={}),Je.sources.helpers=di)}}He(),te=on}function Ot(x,le){const Re=te;W(le,void 0),ie(4,x,void 0),He(),te=Re}function Le(x,le,Re){Ue=!0;const on=te;W(le,Re),W1(x),N2(x),ie(0,x,x),He(),te=on}function pt(){return Ze||(Ze=wR(L))}function me(){const x=Ze.getText();return Ze.clear(),x}function ie(x,le,Re){Re&&ye(Re),mt(x,le,void 0)}function ye(x){k=x,gn=void 0,jn=void 0,x&&Zg(x)}function W(x,le){x&&e.omitTrailingSemicolon&&(x=cJ(x)),te=x,lt=le,Ge=!te||!lt}function He(){U=[],j=[],H=[],ee=new Set,X=[],ne=new Map,P=[],ue=0,re=[],be=0,ae=[],z=void 0,ce=[],he=void 0,k=void 0,gn=void 0,jn=void 0,W(void 0,void 0)}function et(){return gn||(gn=mg(R.checkDefined(k)))}function Ye(x,le){if(x===void 0)return;const Re=Ir(x);mt(4,x,le),Hr(Re)}function jt(x){x!==void 0&&mt(2,x,void 0)}function cn(x,le){x!==void 0&&mt(1,x,le)}function Sn(x){mt(Wo(x)?6:4,x)}function Er(x){Ee&&z_(x)&4&&(Ee=!1)}function de(x){Ee=x}function mt(x,le,Re){Ii=Re,fe(0,x,le)(x,le),Ii=void 0}function Jt(x){return!Zt&&!Ki(x)}function at(x){return!Ge&&!Ki(x)&&!_P(x)&&!YT(x)&&!phe(x)}function fe(x,le,Re){switch(x){case 0:if(i!==mN&&(!o||o(Re)))return Y;case 1:if(s!==D4&&(pr=s(le,Re)||Re)!==Re)return Ii&&(pr=Ii(pr)),Et;case 2:if(Jt(Re))return tf;case 3:if(at(Re))return VE;case 4:return Ne;default:return R.assertNever(x)}}function Te(x,le,Re){return fe(x+1,le,Re)}function Y(x,le){const Re=Te(0,x,le);i(x,le,Re)}function Ne(x,le){if(c==null||c(le),Ee){const Re=Ee;Er(le),J(x,le),de(Re)}else J(x,le);_==null||_(le),Ii=void 0}function J(x,le,Re=!0){if(Re){const on=OK(le);if(on)return oo(x,le,on)}if(x===0)return V1(lo(le,Ki));if(x===2)return $r(lo(le,We));if(x===6)return gi(lo(le,Wo),!0);if(x===3)return wt(lo(le,Ul));if(x===5)return R.assertNode(le,XK),Ia(!0);if(x===4){switch(le.kind){case 15:case 16:case 17:return gi(le,!1);case 79:return $r(le);case 80:return ls(le);case 163:return mi(le);case 164:return wn(le);case 165:return pa(le);case 166:return nc(le);case 167:return al(le);case 168:return jl(le);case 169:return $l(le);case 170:return Wl(le);case 171:return Io(le);case 172:return La(le);case 173:return Qo(le);case 174:case 175:return Hl(le);case 176:return ou(le);case 177:return $d(le);case 178:return lc(le);case 179:return yl(le);case 180:return nl(le);case 181:return Ys(le);case 182:return _e(le);case 183:return kt(le);case 184:return Ht(le);case 185:return Z(le);case 186:return At(le);case 187:return Dr(le);case 189:return Mr(le);case 190:return Sa(le);case 191:return cs(le);case 192:return yo(le);case 193:return Ho(le);case 230:return D_(le);case 194:return Qa();case 195:return _l(le);case 196:return mc(le);case 197:return bd(le);case 198:return Ts(le);case 199:return fn(le);case 200:return fs(le);case 201:return Zc(le);case 202:return pl(le);case 203:return Qd(le);case 204:return ql(le);case 205:return Uf(le);case 236:return tt(le);case 237:return Rs();case 238:return Kt(le);case 240:return Da(le);case 239:return Ia(!1);case 241:return De(le);case 242:return Ve(le);case 243:return Mt(le);case 244:return mn(le);case 245:return vn(le);case 246:return En(le);case 247:return Wn(le);case 248:return Xi(le);case 249:return nr(le);case 250:return ih(le);case 251:return Mg(le);case 252:return sp(le);case 253:return w1(le);case 254:return f0(le);case 255:return Vx(le);case 256:return x2(le);case 257:return jx(le);case 258:return Pg(le);case 259:return lp(le);case 260:return A2(le);case 261:return vE(le);case 262:return bE(le);case 263:return m0(le);case 264:return Wx(le);case 265:return EE(le);case 266:return TE(le);case 267:return cp(le);case 268:return h0(le);case 269:return g0(le);case 270:return C2(le);case 271:return Bg(le);case 277:return Md(le);case 272:return es(le);case 273:return SE(le);case 274:return NL(le);case 275:return Ky(le);case 276:return Pd(le);case 278:return Fd(le);case 296:return Gg(le);case 297:return ah(le);case 279:return;case 280:return Hx(le);case 11:return F1(le);case 283:case 286:return L2(le);case 284:case 287:return OL(le);case 288:return y0(le);case 289:return zx(le);case 290:return xE(le);case 291:return v0(le);case 292:return b0(le);case 293:return Vg(le);case 294:return rs(le);case 295:return up(le);case 299:return AE(le);case 300:return xc(le);case 301:return zh(le);case 302:return G1(le);case 303:return Wi(le);case 310:case 304:return ui(le);case 305:case 306:return go(le);case 307:return xo(le);case 308:return V1(le);case 309:return R.fail("Bundles should be printed using printBundle");case 311:return R.fail("InputFiles should not be printed");case 312:return ml(le);case 313:return jg(le);case 315:return mr("*");case 316:return mr("?");case 317:return zl(le);case 318:return wu(le);case 319:return Zu(le);case 320:return rn(le);case 188:case 321:return st(le);case 322:return;case 323:return dp(le);case 325:return ef(le);case 326:return CE(le);case 330:case 335:case 340:return oh(le);case 331:case 332:return Uc(le);case 333:case 334:return;case 336:case 337:case 338:case 339:return;case 341:return zi(le);case 342:return Xr(le);case 344:case 351:return Wg(le);case 343:case 345:case 346:case 347:case 352:case 353:return U1(le);case 348:return k2(le);case 349:return ML(le);case 350:return pu(le);case 355:case 359:case 358:return}if(yt(le)&&(x=1,s!==D4)){const on=s(x,le)||le;on!==le&&(le=on,Ii&&(le=Ii(le)))}}if(x===1)switch(le.kind){case 8:case 9:return ai(le);case 10:case 13:case 14:return gi(le,!1);case 79:return $r(le);case 80:return ls(le);case 206:return Ce(le);case 207:return Nt(le);case 208:return Nn(le);case 209:return ko(le);case 210:return oe(le);case 211:return dt(le);case 212:return Bt(le);case 213:return Ft(le);case 214:return un(le);case 215:return Vn(le);case 216:return Rr(le);case 217:return Mi(le);case 218:return Wa(le);case 219:return zo(le);case 220:return Ss(le);case 221:return $s(le);case 222:return vf(le);case 223:return yn(le);case 224:return Zd(le);case 225:return Du(le);case 226:return bf(le);case 227:return w_(le);case 228:return Zo(le);case 229:return;case 231:return Ef(le);case 232:return op(le);case 230:return D_(le);case 235:return Fp(le);case 233:return V(le);case 234:return R.fail("SyntheticExpression should never be printed.");case 279:return;case 281:return M1(le);case 282:return Ug(le);case 285:return P1(le);case 354:return R.fail("SyntaxList should not be printed");case 355:return;case 356:return qx(le);case 357:return Jx(le);case 358:case 359:return;case 360:return R.fail("SyntheticReferenceExpression should not be printed")}if(Dd(le.kind))return kE(le,_a);if(Kz(le.kind))return kE(le,mr);R.fail(`Unhandled SyntaxKind: ${R.formatSyntaxKind(le.kind)}.`)}function wt(x){Ye(x.name),ar(),_a("in"),ar(),Ye(x.constraint)}function Et(x,le){const Re=Te(1,x,le);R.assertIsDefined(pr),le=pr,pr=void 0,Re(x,le)}function ut(x){let le;if(I===0||e.noEmitHelpers)return;const Re=new Map;for(const on of x.sourceFiles){const Cr=w6(on)!==void 0,Ai=ir(on);if(Ai)for(const di of Ai)!di.scoped&&!Cr&&!Re.get(di.name)&&(Re.set(di.name,!0),(le||(le=[])).push(di.name))}return le}function nn(x){let le=!1;const Re=x.kind===309?x:void 0;if(Re&&I===0)return;const on=Re?Re.prepends.length:0,Cr=Re?Re.sourceFiles.length+on:1;for(let Ai=0;Ai<Cr;Ai++){const di=Re?Ai<on?Re.prepends[Ai]:Re.sourceFiles[Ai-on]:x,Vi=Ki(di)?di:YT(di)?void 0:k,mo=e.noEmitHelpers||!!Vi&&Ihe(Vi),su=(Ki(di)||YT(di))&&!Ue,rf=YT(di)?di.helpers:ir(di);if(rf)for(const xf of rf){if(xf.scoped){if(Re)continue}else{if(mo)continue;if(su){if(M.get(xf.name))continue;M.set(xf.name,!0)}}const sv=an();typeof xf.text=="string"?Ql(xf.text):Ql(xf.text(Wf)),Je&&Je.sections.push({pos:sv,end:te.getTextPos(),kind:"emitHelpers",data:xf.name}),le=!0}}return le}function ir(x){const le=s5(x);return le&&by(le,Jme)}function ai(x){gi(x,!1)}function gi(x,le){const Re=Pl(x,e.neverAsciiEscape,le);(e.sourceMap||e.inlineSourceMap)&&(x.kind===10||Uv(x.kind))?q1(Re):$x(Re)}function ui(x){for(const le of x.texts)Nc(),Ye(le)}function Wi(x){te.rawWrite(x.parent.text.substring(x.pos,x.end))}function go(x){const le=an();Wi(x),Je&&On(le,te.getTextPos(),x.kind===305?"text":"internal")}function xo(x){const le=an();if(Wi(x),Je){const Re=tH(x.section);Re.pos=le,Re.end=te.getTextPos(),Je.sections.push(Re)}}function oo(x,le,Re){switch(Re.kind){case 1:da(x,le,Re);break;case 0:Hi(x,le,Re);break}}function da(x,le,Re){Qy(`\${${Re.order}:`),J(x,le,!1),Qy("}")}function Hi(x,le,Re){R.assert(le.kind===239,`A tab stop cannot be attached to a node of kind ${R.formatSyntaxKind(le.kind)}.`),R.assert(x!==5,"A tab stop cannot be attached to an embedded statement."),Qy(`$${Re.order}`)}function $r(x){(x.symbol?Qx:je)(tv(x,!1),x.symbol),Ns(x,zT(x),53776)}function ls(x){je(tv(x,!1))}function mi(x){fa(x.left),mr("."),Ye(x.right)}function fa(x){x.kind===79?cn(x):Ye(x)}function wn(x){const le=ue,Re=he;hu(),mr("["),cn(x.expression,Or.parenthesizeExpressionOfComputedPropertyName),mr("]"),x0(le,Re)}function pa(x){Hg(x,x.modifiers),Ye(x.name),x.constraint&&(ar(),_a("extends"),ar(),Ye(x.constraint)),x.default&&(ar(),jf("="),ar(),Ye(x.default))}function nc(x){Vf(x,x.modifiers,!0),Ye(x.dotDotDotToken),O2(x.name,T0),Ye(x.questionToken),x.parent&&x.parent.kind===320&&!x.name?Ye(x.type):Gp(x.type),fp(x.initializer,x.type?x.type.end:x.questionToken?x.questionToken.end:x.name?x.name.end:x.modifiers?x.modifiers.end:x.pos,x,Or.parenthesizeExpressionForDisallowedComma)}function al(x){mr("@"),cn(x.expression,Or.parenthesizeLeftSideOfAccess)}function jl(x){Hg(x,x.modifiers),O2(x.name,Zx),Ye(x.questionToken),Gp(x.type),Ml()}function $l(x){Vf(x,x.modifiers,!0),Ye(x.name),Ye(x.questionToken),Ye(x.exclamationToken),Gp(x.type),fp(x.initializer,x.type?x.type.end:x.questionToken?x.questionToken.end:x.name.end,x),Ml()}function Wl(x){Kg(x),Hg(x,x.modifiers),Ye(x.name),Ye(x.questionToken),vm(x,x.typeParameters),qg(x,x.parameters),Gp(x.type),Ml(),Kh(x)}function Io(x){Vf(x,x.modifiers,!0),Ye(x.asteriskToken),Ye(x.name),Ye(x.questionToken),Hh(x,Bp)}function La(x){_a("static"),gE(x.body)}function Qo(x){Vf(x,x.modifiers,!1),_a("constructor"),Hh(x,Bp)}function Hl(x){const le=Vf(x,x.modifiers,!0),Re=x.kind===174?137:151;_n(Re,le,_a,x),ar(),Ye(x.name),Hh(x,Bp)}function ou(x){Kg(x),vm(x,x.typeParameters),qg(x,x.parameters),Gp(x.type),Ml(),Kh(x)}function $d(x){Kg(x),_a("new"),ar(),vm(x,x.typeParameters),qg(x,x.parameters),Gp(x.type),Ml(),Kh(x)}function lc(x){Vf(x,x.modifiers,!1),Yy(x,x.parameters),Gp(x.type),Ml()}function Zc(x){Ye(x.type),Ye(x.literal)}function Rs(){Ml()}function yl(x){x.assertsModifier&&(Ye(x.assertsModifier),ar()),Ye(x.parameterName),x.type&&(ar(),_a("is"),ar(),Ye(x.type))}function nl(x){Ye(x.typeName),ym(x,x.typeArguments)}function Ys(x){Kg(x),vm(x,x.typeParameters),P2(x,x.parameters),ar(),mr("=>"),ar(),Ye(x.type),Kh(x)}function rn(x){_a("function"),qg(x,x.parameters),mr(":"),Ye(x.type)}function zl(x){mr("?"),Ye(x.type)}function wu(x){mr("!"),Ye(x.type)}function Zu(x){Ye(x.type),mr("=")}function _e(x){Kg(x),Hg(x,x.modifiers),_a("new"),ar(),vm(x,x.typeParameters),qg(x,x.parameters),ar(),mr("=>"),ar(),Ye(x.type),Kh(x)}function kt(x){_a("typeof"),ar(),Ye(x.exprName),ym(x,x.typeArguments)}function Ht(x){x0(0,void 0),mr("{");const le=Eo(x)&1?768:32897;Ns(x,x.members,le|524288),mr("}"),hu()}function Z(x){Ye(x.elementType,Or.parenthesizeNonArrayTypeOfPostfixType),mr("["),mr("]")}function st(x){mr("..."),Ye(x.type)}function At(x){_n(22,x.pos,mr,x);const le=Eo(x)&1?528:657;Ns(x,x.elements,le|524288,Or.parenthesizeElementTypeOfTupleType),_n(23,x.elements.end,mr,x)}function fn(x){Ye(x.dotDotDotToken),Ye(x.name),Ye(x.questionToken),_n(58,x.name.end,mr,x),ar(),Ye(x.type)}function Dr(x){Ye(x.type,Or.parenthesizeTypeOfOptionalType),mr("?")}function Mr(x){Ns(x,x.types,516,Or.parenthesizeConstituentTypeOfUnionType)}function Sa(x){Ns(x,x.types,520,Or.parenthesizeConstituentTypeOfIntersectionType)}function cs(x){Ye(x.checkType,Or.parenthesizeCheckTypeOfConditionalType),ar(),_a("extends"),ar(),Ye(x.extendsType,Or.parenthesizeExtendsTypeOfConditionalType),ar(),mr("?"),ar(),Ye(x.trueType),ar(),mr(":"),ar(),Ye(x.falseType)}function yo(x){_a("infer"),ar(),Ye(x.typeParameter)}function Ho(x){mr("("),Ye(x.type),mr(")")}function Qa(){_a("this")}function _l(x){_p(x.operator,_a),ar();const le=x.operator===146?Or.parenthesizeOperandOfReadonlyTypeOperator:Or.parenthesizeOperandOfTypeOperator;Ye(x.type,le)}function mc(x){Ye(x.objectType,Or.parenthesizeNonArrayTypeOfPostfixType),mr("["),Ye(x.indexType),mr("]")}function bd(x){const le=Eo(x);mr("{"),le&1?ar():(Nc(),R_()),x.readonlyToken&&(Ye(x.readonlyToken),x.readonlyToken.kind!==146&&_a("readonly"),ar()),mr("["),mt(3,x.typeParameter),x.nameType&&(ar(),_a("as"),ar(),Ye(x.nameType)),mr("]"),x.questionToken&&(Ye(x.questionToken),x.questionToken.kind!==57&&mr("?")),mr(":"),ar(),Ye(x.type),Ml(),le&1?ar():(Nc(),Up()),Ns(x,x.members,2),mr("}")}function Ts(x){cn(x.literal)}function fs(x){Ye(x.head),Ns(x,x.templateSpans,262144)}function pl(x){if(x.isTypeOf&&(_a("typeof"),ar()),_a("import"),mr("("),Ye(x.argument),x.assertions){mr(","),ar(),mr("{"),ar(),_a("assert"),mr(":"),ar();const le=x.assertions.assertClause.elements;Ns(x.assertions.assertClause,le,526226),ar(),mr("}")}mr(")"),x.qualifier&&(mr("."),Ye(x.qualifier)),ym(x,x.typeArguments)}function Qd(x){mr("{"),Ns(x,x.elements,525136),mr("}")}function ql(x){mr("["),Ns(x,x.elements,524880),mr("]")}function Uf(x){Ye(x.dotDotDotToken),x.propertyName&&(Ye(x.propertyName),mr(":"),ar()),Ye(x.name),fp(x.initializer,x.name.end,x,Or.parenthesizeExpressionForDisallowedComma)}function Ce(x){const le=x.elements,Re=x.multiLine?65536:0;$y(x,le,8914|Re,Or.parenthesizeExpressionForDisallowedComma)}function Nt(x){x0(0,void 0),Ie(x.properties,RE);const le=Eo(x)&131072;le&&R_();const Re=x.multiLine?65536:0,on=k&&k.languageVersion>=1&&!E_(k)?64:0;Ns(x,x.properties,526226|on|Re),le&&Up(),hu()}function Nn(x){cn(x.expression,Or.parenthesizeLeftSideOfAccess);const le=x.questionDotToken||Xm(O.createToken(24),x.expression.end,x.name.pos),Re=Vp(x,x.expression,le),on=Vp(x,le,x.name);ic(Re,!1),le.kind!==28&&Qi(x.expression)&&!te.hasTrailingComment()&&!te.hasTrailingWhitespace()&&mr("."),x.questionDotToken?Ye(le):_n(le.kind,x.expression.end,mr,x),ic(on,!1),Ye(x.name),Jg(Re,on)}function Qi(x){if(x=H_(x),C_(x)){const le=Pl(x,!0,!1);return!x.numericLiteralFlags&&!bu(le,bo(24))}else if(ul(x)){const le=Gme(x);return typeof le=="number"&&isFinite(le)&&Math.floor(le)===le}}function ko(x){cn(x.expression,Or.parenthesizeLeftSideOfAccess),Ye(x.questionDotToken),_n(22,x.expression.end,mr,x),cn(x.argumentExpression),_n(23,x.argumentExpression.end,mr,x)}function oe(x){const le=z_(x)&16;le&&(mr("("),q1("0"),mr(","),ar()),cn(x.expression,Or.parenthesizeLeftSideOfAccess),le&&mr(")"),Ye(x.questionDotToken),ym(x,x.typeArguments),$y(x,x.arguments,2576,Or.parenthesizeExpressionForDisallowedComma)}function dt(x){_n(103,x.pos,_a,x),ar(),cn(x.expression,Or.parenthesizeExpressionOfNew),ym(x,x.typeArguments),$y(x,x.arguments,18960,Or.parenthesizeExpressionForDisallowedComma)}function Bt(x){const le=z_(x)&16;le&&(mr("("),q1("0"),mr(","),ar()),cn(x.tag,Or.parenthesizeLeftSideOfAccess),le&&mr(")"),ym(x,x.typeArguments),ar(),cn(x.template)}function Ft(x){mr("<"),Ye(x.type),mr(">"),cn(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function un(x){const le=_n(20,x.pos,mr,x),Re=wE(x.expression,x);cn(x.expression,void 0),J1(x.expression,x),Jg(Re),_n(21,x.expression?x.expression.end:le,mr,x)}function Vn(x){Yh(x.name),_0(x)}function Rr(x){Hg(x,x.modifiers),Hh(x,ri)}function ri(x){vm(x,x.typeParameters),P2(x,x.parameters),Gp(x.type),ar(),Ye(x.equalsGreaterThanToken)}function Mi(x){_n(89,x.pos,_a,x),ar(),cn(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function Wa(x){_n(112,x.pos,_a,x),ar(),cn(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function zo(x){_n(114,x.pos,_a,x),ar(),cn(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function Ss(x){_n(133,x.pos,_a,x),ar(),cn(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function $s(x){_p(x.operator,jf),Ed(x)&&ar(),cn(x.operand,Or.parenthesizeOperandOfPrefixUnary)}function Ed(x){const le=x.operand;return le.kind===221&&(x.operator===39&&(le.operator===39||le.operator===45)||x.operator===40&&(le.operator===40||le.operator===46))}function vf(x){cn(x.operand,Or.parenthesizeOperandOfPostfixUnary),_p(x.operator,jf)}function rc(){return e9(x,le,Re,on,Cr,void 0);function x(di,Vi){if(Vi){Vi.stackIndex++,Vi.preserveSourceNewlinesStack[Vi.stackIndex]=Ee,Vi.containerPosStack[Vi.stackIndex]=ot,Vi.containerEndStack[Vi.stackIndex]=sn,Vi.declarationListContainerEndStack[Vi.stackIndex]=pn;const mo=Vi.shouldEmitCommentsStack[Vi.stackIndex]=Jt(di),su=Vi.shouldEmitSourceMapsStack[Vi.stackIndex]=at(di);c==null||c(di),mo&&xd(di),su&&jE(di),Er(di)}else Vi={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Vi}function le(di,Vi,mo){return Ai(di,mo,"left")}function Re(di,Vi,mo){const su=di.kind!==27,rf=Vp(mo,mo.left,di),xf=Vp(mo,di,mo.right);ic(rf,su),Gd(di.pos),kE(di,di.kind===101?_a:jf),$g(di.end,!0),ic(xf,!0)}function on(di,Vi,mo){return Ai(di,mo,"right")}function Cr(di,Vi){const mo=Vp(di,di.left,di.operatorToken),su=Vp(di,di.operatorToken,di.right);if(Jg(mo,su),Vi.stackIndex>0){const rf=Vi.preserveSourceNewlinesStack[Vi.stackIndex],xf=Vi.containerPosStack[Vi.stackIndex],sv=Vi.containerEndStack[Vi.stackIndex],af=Vi.declarationListContainerEndStack[Vi.stackIndex],w0=Vi.shouldEmitCommentsStack[Vi.stackIndex],D0=Vi.shouldEmitSourceMapsStack[Vi.stackIndex];de(rf),D0&&WE(di),w0&&B2(di,xf,sv,af),_==null||_(di),Vi.stackIndex--}}function Ai(di,Vi,mo){const su=mo==="left"?Or.getParenthesizeLeftSideOfBinaryForOperator(Vi.operatorToken.kind):Or.getParenthesizeRightSideOfBinaryForOperator(Vi.operatorToken.kind);let rf=fe(0,1,di);if(rf===Et&&(R.assertIsDefined(pr),di=su(lo(pr,yt)),rf=Te(1,1,di),pr=void 0),(rf===tf||rf===VE||rf===Ne)&&Tr(di))return di;Ii=su,rf(1,di)}}function Zd(x){const le=Vp(x,x.condition,x.questionToken),Re=Vp(x,x.questionToken,x.whenTrue),on=Vp(x,x.whenTrue,x.colonToken),Cr=Vp(x,x.colonToken,x.whenFalse);cn(x.condition,Or.parenthesizeConditionOfConditionalExpression),ic(le,!0),Ye(x.questionToken),ic(Re,!0),cn(x.whenTrue,Or.parenthesizeBranchOfConditionalExpression),Jg(le,Re),ic(on,!0),Ye(x.colonToken),ic(Cr,!0),cn(x.whenFalse,Or.parenthesizeBranchOfConditionalExpression),Jg(on,Cr)}function Du(x){Ye(x.head),Ns(x,x.templateSpans,262144)}function bf(x){_n(125,x.pos,_a,x),Ye(x.asteriskToken),gm(x.expression&&Qs(x.expression),cc)}function w_(x){_n(25,x.pos,mr,x),cn(x.expression,Or.parenthesizeExpressionForDisallowedComma)}function Zo(x){Yh(x.name),yE(x)}function D_(x){cn(x.expression,Or.parenthesizeLeftSideOfAccess),ym(x,x.typeArguments)}function Ef(x){cn(x.expression,void 0),x.type&&(ar(),_a("as"),ar(),Ye(x.type))}function op(x){cn(x.expression,Or.parenthesizeLeftSideOfAccess),jf("!")}function Fp(x){cn(x.expression,void 0),x.type&&(ar(),_a("satisfies"),ar(),Ye(x.type))}function V(x){Zy(x.keywordToken,x.pos,mr),mr("."),Ye(x.name)}function tt(x){cn(x.expression),Ye(x.literal)}function Kt(x){Yn(x,!x.multiLine&&Jh(x))}function Yn(x,le){_n(18,x.pos,mr,x);const Re=le||Eo(x)&1?768:129;Ns(x,x.statements,Re),_n(19,x.statements.end,mr,x,!!(Re&1))}function Da(x){Vf(x,x.modifiers,!1),Ye(x.declarationList),Ml()}function Ia(x){x?mr(";"):Ml()}function De(x){cn(x.expression,Or.parenthesizeExpressionOfExpressionStatement),(!k||!E_(k)||tl(x.expression))&&Ml()}function Ve(x){const le=_n(99,x.pos,_a,x);ar(),_n(20,le,mr,x),cn(x.expression),_n(21,x.expression.end,mr,x),Td(x,x.thenStatement),x.elseStatement&&(ev(x,x.thenStatement,x.elseStatement),_n(91,x.thenStatement.end,_a,x),x.elseStatement.kind===242?(ar(),Ye(x.elseStatement)):Td(x,x.elseStatement))}function It(x,le){const Re=_n(115,le,_a,x);ar(),_n(20,Re,mr,x),cn(x.expression),_n(21,x.expression.end,mr,x)}function Mt(x){_n(90,x.pos,_a,x),Td(x,x.statement),fo(x.statement)&&!Ee?ar():ev(x,x.statement,x.expression),It(x,x.statement.end),Ml()}function mn(x){It(x,x.pos),Td(x,x.statement)}function vn(x){const le=_n(97,x.pos,_a,x);ar();let Re=_n(20,le,mr,x);Jr(x.initializer),Re=_n(26,x.initializer?x.initializer.end:Re,mr,x),gm(x.condition),Re=_n(26,x.condition?x.condition.end:Re,mr,x),gm(x.incrementor),_n(21,x.incrementor?x.incrementor.end:Re,mr,x),Td(x,x.statement)}function En(x){const le=_n(97,x.pos,_a,x);ar(),_n(20,le,mr,x),Jr(x.initializer),ar(),_n(101,x.initializer.end,_a,x),ar(),cn(x.expression),_n(21,x.expression.end,mr,x),Td(x,x.statement)}function Wn(x){const le=_n(97,x.pos,_a,x);ar(),M2(x.awaitModifier),_n(20,le,mr,x),Jr(x.initializer),ar(),_n(162,x.initializer.end,_a,x),ar(),cn(x.expression),_n(21,x.expression.end,mr,x),Td(x,x.statement)}function Jr(x){x!==void 0&&(x.kind===258?Ye(x):cn(x))}function Xi(x){_n(86,x.pos,_a,x),H1(x.label),Ml()}function nr(x){_n(81,x.pos,_a,x),H1(x.label),Ml()}function _n(x,le,Re,on,Cr){const Ai=Ea(on),di=Ai&&Ai.kind===on.kind,Vi=le;if(di&&k&&(le=Yo(k.text,le)),di&&on.pos!==Vi){const mo=Cr&&k&&!x_(Vi,le,k);mo&&R_(),Gd(Vi),mo&&Up()}if(le=_p(x,Re,le),di&&on.end!==le){const mo=on.kind===291;$g(le,!mo,mo)}return le}function dr(x){return x.kind===2||!!x.hasTrailingNewLine}function Aa(x){return k?Dt(xh(k.text,x.pos),dr)||Dt(MC(x),dr)?!0:V5(x)?x.pos!==x.expression.pos&&Dt(i1(k.text,x.expression.pos),dr)?!0:Aa(x.expression):!1:!1}function Qs(x){if(!Zt&&V5(x)&&Aa(x)){const le=Ea(x);if(le&&qd(le)){const Re=O.createParenthesizedExpression(x.expression);return zr(Re,x),ht(Re,le),Re}return O.createParenthesizedExpression(x)}return x}function cc(x){return Qs(Or.parenthesizeExpressionForDisallowedComma(x))}function ih(x){_n(105,x.pos,_a,x),gm(x.expression&&Qs(x.expression),Qs),Ml()}function Mg(x){const le=_n(116,x.pos,_a,x);ar(),_n(20,le,mr,x),cn(x.expression),_n(21,x.expression.end,mr,x),Td(x,x.statement)}function sp(x){const le=_n(107,x.pos,_a,x);ar(),_n(20,le,mr,x),cn(x.expression),_n(21,x.expression.end,mr,x),ar(),Ye(x.caseBlock)}function w1(x){Ye(x.label),_n(58,x.label.end,mr,x),ar(),Ye(x.statement)}function f0(x){_n(109,x.pos,_a,x),gm(Qs(x.expression),Qs),Ml()}function Vx(x){_n(111,x.pos,_a,x),ar(),Ye(x.tryBlock),x.catchClause&&(ev(x,x.tryBlock,x.catchClause),Ye(x.catchClause)),x.finallyBlock&&(ev(x,x.catchClause||x.tryBlock,x.finallyBlock),_n(96,(x.catchClause||x.tryBlock).end,_a,x),ar(),Ye(x.finallyBlock))}function x2(x){Zy(87,x.pos,_a),Ml()}function jx(x){var le,Re,on,Cr,Ai;Ye(x.name),Ye(x.exclamationToken),Gp(x.type),fp(x.initializer,(Ai=(Cr=(le=x.type)==null?void 0:le.end)!=null?Cr:(on=(Re=x.name.emitNode)==null?void 0:Re.typeNode)==null?void 0:on.end)!=null?Ai:x.name.end,x,Or.parenthesizeExpressionForDisallowedComma)}function Pg(x){_a(_k(x)?"let":Eg(x)?"const":"var"),ar(),Ns(x,x.declarations,528)}function lp(x){_0(x)}function _0(x){Vf(x,x.modifiers,!1),_a("function"),Ye(x.asteriskToken),ar(),jt(x.name),Hh(x,Bp)}function Hh(x,le){const Re=x.body;if(Re)if(fo(Re)){const on=Eo(x)&131072;on&&R_(),Kg(x),Ie(x.parameters,Ac),Ac(x.body),le(x),gE(Re),Kh(x),on&&Up()}else le(x),ar(),cn(Re,Or.parenthesizeConciseBodyOfArrowFunction);else le(x),Ml()}function Bp(x){vm(x,x.typeParameters),qg(x,x.parameters),Gp(x.type)}function p0(x){if(Eo(x)&1)return!0;if(x.multiLine||!tl(x)&&k&&!VT(x,k)||mu(x,tu(x.statements),2)||ch(x,rl(x.statements),2,x.statements))return!1;let le;for(const Re of x.statements){if(N_(le,Re,2)>0)return!1;le=Re}return!0}function gE(x){c==null||c(x),ar(),mr("{"),R_();const le=p0(x)?D1:Fg;Yg(x,x.statements,le),Up(),Zy(19,x.statements.end,mr,x),_==null||_(x)}function D1(x){Fg(x,!0)}function Fg(x,le){const Re=E0(x.statements),on=te.getTextPos();nn(x),Re===0&&on===te.getTextPos()&&le?(Up(),Ns(x,x.statements,768),R_()):Ns(x,x.statements,1,void 0,Re)}function A2(x){yE(x)}function yE(x){x0(0,void 0),Ie(x.members,RE),Vf(x,x.modifiers,!0),_n(84,sm(x).pos,_a,x),x.name&&(ar(),jt(x.name));const le=Eo(x)&131072;le&&R_(),vm(x,x.typeParameters),Ns(x,x.heritageClauses,0),ar(),mr("{"),Ns(x,x.members,129),mr("}"),le&&Up(),hu()}function vE(x){x0(0,void 0),Vf(x,x.modifiers,!1),_a("interface"),ar(),Ye(x.name),vm(x,x.typeParameters),Ns(x,x.heritageClauses,512),ar(),mr("{"),Ns(x,x.members,129),mr("}"),hu()}function bE(x){Vf(x,x.modifiers,!1),_a("type"),ar(),Ye(x.name),vm(x,x.typeParameters),ar(),mr("="),ar(),Ye(x.type),Ml()}function m0(x){Vf(x,x.modifiers,!1),_a("enum"),ar(),Ye(x.name),ar(),mr("{"),Ns(x,x.members,145),mr("}")}function Wx(x){Vf(x,x.modifiers,!1),~x.flags&1024&&(_a(x.flags&16?"namespace":"module"),ar()),Ye(x.name);let le=x.body;if(!le)return Ml();for(;le&&Xl(le);)mr("."),Ye(le.name),le=le.body;ar(),Ye(le)}function EE(x){Kg(x),Ie(x.statements,Ac),Yn(x,Jh(x)),Kh(x)}function TE(x){_n(18,x.pos,mr,x),Ns(x,x.clauses,129),_n(19,x.clauses.end,mr,x,!0)}function h0(x){Vf(x,x.modifiers,!1),_n(100,x.modifiers?x.modifiers.end:x.pos,_a,x),ar(),x.isTypeOnly&&(_n(154,x.pos,_a,x),ar()),Ye(x.name),ar(),_n(63,x.name.end,mr,x),ar(),R1(x.moduleReference),Ml()}function R1(x){x.kind===79?cn(x):Ye(x)}function g0(x){Vf(x,x.modifiers,!1),_n(100,x.modifiers?x.modifiers.end:x.pos,_a,x),ar(),x.importClause&&(Ye(x.importClause),ar(),_n(158,x.importClause.end,_a,x),ar()),cn(x.moduleSpecifier),x.assertClause&&H1(x.assertClause),Ml()}function C2(x){x.isTypeOnly&&(_n(154,x.pos,_a,x),ar()),Ye(x.name),x.name&&x.namedBindings&&(_n(27,x.name.end,mr,x),ar()),Ye(x.namedBindings)}function Bg(x){const le=_n(41,x.pos,mr,x);ar(),_n(128,le,_a,x),ar(),Ye(x.name)}function es(x){N1(x)}function SE(x){O1(x)}function NL(x){const le=_n(93,x.pos,_a,x);ar(),x.isExportEquals?_n(63,le,jf,x):_n(88,le,_a,x),ar(),cn(x.expression,x.isExportEquals?Or.getParenthesizeRightSideOfBinaryForOperator(63):Or.parenthesizeExpressionOfExportDefault),Ml()}function Ky(x){Vf(x,x.modifiers,!1);let le=_n(93,x.pos,_a,x);if(ar(),x.isTypeOnly&&(le=_n(154,le,_a,x),ar()),x.exportClause?Ye(x.exportClause):le=_n(41,le,mr,x),x.moduleSpecifier){ar();const Re=x.exportClause?x.exportClause.end:le;_n(158,Re,_a,x),ar(),cn(x.moduleSpecifier)}x.assertClause&&H1(x.assertClause),Ml()}function Gg(x){_n(130,x.pos,_a,x),ar();const le=x.elements;Ns(x,le,526226)}function ah(x){Ye(x.name),mr(":"),ar();const le=x.value;if(!(Eo(le)&1024)){const Re=Ym(le);$g(Re.pos)}Ye(le)}function cp(x){let le=_n(93,x.pos,_a,x);ar(),le=_n(128,le,_a,x),ar(),le=_n(143,le,_a,x),ar(),Ye(x.name),Ml()}function Md(x){const le=_n(41,x.pos,mr,x);ar(),_n(128,le,_a,x),ar(),Ye(x.name)}function Pd(x){N1(x)}function Fd(x){O1(x)}function N1(x){mr("{"),Ns(x,x.elements,525136),mr("}")}function O1(x){x.isTypeOnly&&(_a("type"),ar()),x.propertyName&&(Ye(x.propertyName),ar(),_n(128,x.propertyName.end,_a,x),ar()),Ye(x.name)}function Hx(x){_a("require"),mr("("),cn(x.expression),mr(")")}function M1(x){Ye(x.openingElement),Ns(x,x.children,262144),Ye(x.closingElement)}function Ug(x){mr("<"),B1(x.tagName),ym(x,x.typeArguments),ar(),Ye(x.attributes),mr("/>")}function P1(x){Ye(x.openingFragment),Ns(x,x.children,262144),Ye(x.closingFragment)}function L2(x){if(mr("<"),Gh(x)){const le=wE(x.tagName,x);B1(x.tagName),ym(x,x.typeArguments),x.attributes.properties&&x.attributes.properties.length>0&&ar(),Ye(x.attributes),J1(x.attributes,x),Jg(le)}mr(">")}function F1(x){te.writeLiteral(x.text)}function OL(x){mr("</"),lx(x)&&B1(x.tagName),mr(">")}function zx(x){Ns(x,x.properties,262656)}function y0(x){Ye(x.name),Xx("=",mr,x.initializer,Sn)}function xE(x){mr("{..."),cn(x.expression),mr("}")}function Xe(x){let le=!1;return LD((k==null?void 0:k.text)||"",x+1,()=>le=!0),le}function Xy(x){let le=!1;return CD((k==null?void 0:k.text)||"",x+1,()=>le=!0),le}function hm(x){return Xe(x)||Xy(x)}function v0(x){var le;if(x.expression||!Zt&&!tl(x)&&hm(x.pos)){const Re=k&&!tl(x)&&ll(k,x.pos).line!==ll(k,x.end).line;Re&&te.increaseIndent();const on=_n(18,x.pos,mr,x);Ye(x.dotDotDotToken),cn(x.expression),_n(19,((le=x.expression)==null?void 0:le.end)||on,mr,x),Re&&te.decreaseIndent()}}function B1(x){x.kind===79?cn(x):Ye(x)}function b0(x){_n(82,x.pos,_a,x),ar(),cn(x.expression,Or.parenthesizeExpressionForDisallowedComma),I2(x,x.statements,x.expression.end)}function Vg(x){const le=_n(88,x.pos,_a,x);I2(x,x.statements,le)}function I2(x,le,Re){const on=le.length===1&&(!k||tl(x)||tl(le[0])||NP(x,le[0],k));let Cr=163969;on?(Zy(58,Re,mr,x),ar(),Cr&=-130):_n(58,Re,mr,x),Ns(x,le,Cr)}function rs(x){ar(),_p(x.token,_a),ar(),Ns(x,x.types,528)}function up(x){const le=_n(83,x.pos,_a,x);ar(),x.variableDeclaration&&(_n(20,le,mr,x),Ye(x.variableDeclaration),_n(21,x.variableDeclaration.end,mr,x),ar()),Ye(x.block)}function AE(x){Ye(x.name),mr(":"),ar();const le=x.initializer;if(!(Eo(le)&1024)){const Re=Ym(le);$g(Re.pos)}cn(le,Or.parenthesizeExpressionForDisallowedComma)}function xc(x){Ye(x.name),x.objectAssignmentInitializer&&(ar(),mr("="),ar(),cn(x.objectAssignmentInitializer,Or.parenthesizeExpressionForDisallowedComma))}function zh(x){x.expression&&(_n(25,x.pos,mr,x),cn(x.expression,Or.parenthesizeExpressionForDisallowedComma))}function G1(x){Ye(x.name),fp(x.initializer,x.name.end,x,Or.parenthesizeExpressionForDisallowedComma)}function dp(x){if(je("/**"),x.comment){const le=ND(x.comment);if(le){const Re=le.split(/\r\n?|\n/g);for(const on of Re)Nc(),ar(),mr("*"),ar(),je(on)}}x.tags&&(x.tags.length===1&&x.tags[0].kind===347&&!x.comment?(ar(),Ye(x.tags[0])):Ns(x,x.tags,33)),ar(),je("*/")}function U1(x){qh(x.tagName),ml(x.typeExpression),sh(x.comment)}function pu(x){qh(x.tagName),Ye(x.name),sh(x.comment)}function jg(x){ar(),mr("{"),Ye(x.name),mr("}")}function Uc(x){qh(x.tagName),ar(),mr("{"),Ye(x.class),mr("}"),sh(x.comment)}function k2(x){qh(x.tagName),ml(x.constraint),ar(),Ns(x,x.typeParameters,528),sh(x.comment)}function ML(x){qh(x.tagName),x.typeExpression&&(x.typeExpression.kind===312?ml(x.typeExpression):(ar(),mr("{"),je("Object"),x.typeExpression.isArrayType&&(mr("["),mr("]")),mr("}"))),x.fullName&&(ar(),Ye(x.fullName)),sh(x.comment),x.typeExpression&&x.typeExpression.kind===325&&ef(x.typeExpression)}function zi(x){qh(x.tagName),x.name&&(ar(),Ye(x.name)),sh(x.comment),CE(x.typeExpression)}function Xr(x){sh(x.comment),CE(x.typeExpression)}function oh(x){qh(x.tagName),sh(x.comment)}function ef(x){Ns(x,O.createNodeArray(x.jsDocPropertyTags),33)}function CE(x){x.typeParameters&&Ns(x,O.createNodeArray(x.typeParameters),33),x.parameters&&Ns(x,O.createNodeArray(x.parameters),33),x.type&&(Nc(),ar(),mr("*"),ar(),Ye(x.type))}function Wg(x){qh(x.tagName),ml(x.typeExpression),ar(),x.isBracketed&&mr("["),Ye(x.name),x.isBracketed&&mr("]"),sh(x.comment)}function qh(x){mr("@"),Ye(x)}function sh(x){const le=ND(x);le&&(ar(),je(le))}function ml(x){x&&(ar(),mr("{"),Ye(x.type),mr("}"))}function V1(x){Nc();const le=x.statements;if(le.length===0||!Cp(le[0])||tl(le[0])){Yg(x,le,u_);return}u_(x)}function w2(x){D2(!!x.hasNoDefaultLib,x.syntheticFileReferences||[],x.syntheticTypeReferences||[],x.syntheticLibReferences||[]);for(const le of x.prepends)if(YT(le)&&le.syntheticReferences)for(const Re of le.syntheticReferences)Ye(Re),Nc()}function j1(x){x.isDeclarationFile&&D2(x.hasNoDefaultLib,x.referencedFiles,x.typeReferenceDirectives,x.libReferenceDirectives)}function D2(x,le,Re,on){if(x){const Cr=te.getTextPos();lh('/// <reference no-default-lib="true"/>'),Je&&Je.sections.push({pos:Cr,end:te.getTextPos(),kind:"no-default-lib"}),Nc()}if(k&&k.moduleName&&(lh(`/// <amd-module name="${k.moduleName}" />`),Nc()),k&&k.amdDependencies)for(const Cr of k.amdDependencies)Cr.name?lh(`/// <amd-dependency name="${Cr.name}" path="${Cr.path}" />`):lh(`/// <amd-dependency path="${Cr.path}" />`),Nc();for(const Cr of le){const Ai=te.getTextPos();lh(`/// <reference path="${Cr.fileName}" />`),Je&&Je.sections.push({pos:Ai,end:te.getTextPos(),kind:"reference",data:Cr.fileName}),Nc()}for(const Cr of Re){const Ai=te.getTextPos(),di=Cr.resolutionMode&&Cr.resolutionMode!==(k==null?void 0:k.impliedNodeFormat)?`resolution-mode="${Cr.resolutionMode===99?"import":"require"}"`:"";lh(`/// <reference types="${Cr.fileName}" ${di}/>`),Je&&Je.sections.push({pos:Ai,end:te.getTextPos(),kind:Cr.resolutionMode?Cr.resolutionMode===99?"type-import":"type-require":"type",data:Cr.fileName}),Nc()}for(const Cr of on){const Ai=te.getTextPos();lh(`/// <reference lib="${Cr.fileName}" />`),Je&&Je.sections.push({pos:Ai,end:te.getTextPos(),kind:"lib",data:Cr.fileName}),Nc()}}function u_(x){const le=x.statements;Kg(x),Ie(x.statements,Ac),nn(x);const Re=ii(le,on=>!Cp(on));j1(x),Ns(x,le,1,void 0,Re===-1?le.length:Re),Kh(x)}function qx(x){const le=Eo(x);!(le&1024)&&x.pos!==x.expression.pos&&$g(x.expression.pos),cn(x.expression),!(le&2048)&&x.end!==x.expression.end&&Gd(x.expression.end)}function Jx(x){$y(x,x.elements,528,void 0)}function E0(x,le,Re,on){let Cr=!!le;for(let Ai=0;Ai<x.length;Ai++){const di=x[Ai];if(Cp(di)){if(Re?!Re.has(di.expression.text):!0){Cr&&(Cr=!1,ye(le)),Nc();const mo=te.getTextPos();Ye(di),on&&Je&&Je.sections.push({pos:mo,end:te.getTextPos(),kind:"prologue",data:di.expression.text}),Re&&Re.add(di.expression.text)}}else return Ai}return x.length}function R2(x,le){for(const Re of x)if(!le.has(Re.data)){Nc();const on=te.getTextPos();Ye(Re),Je&&Je.sections.push({pos:on,end:te.getTextPos(),kind:"prologue",data:Re.data}),le&&le.add(Re.data)}}function N2(x){if(Ki(x))E0(x.statements,x);else{const le=new Set;for(const Re of x.prepends)R2(Re.prologues,le);for(const Re of x.sourceFiles)E0(Re.statements,Re,le,!0);ye(void 0)}}function Kx(x){const le=new Set;let Re;for(let on=0;on<x.sourceFiles.length;on++){const Cr=x.sourceFiles[on];let Ai,di=0;for(const Vi of Cr.statements){if(!Cp(Vi))break;le.has(Vi.expression.text)||(le.add(Vi.expression.text),(Ai||(Ai=[])).push({pos:Vi.pos,end:Vi.end,expression:{pos:Vi.expression.pos,end:Vi.expression.end,text:Vi.expression.text}}),di=di<Vi.end?Vi.end:di)}Ai&&(Re||(Re=[])).push({file:on,text:Cr.text.substring(0,di),directives:Ai})}return Re}function W1(x){if(Ki(x)||YT(x)){const le=EM(x.text);if(le)return lh(le),Nc(),!0}else{for(const le of x.prepends)if(R.assertNode(le,YT),W1(le))return!0;for(const le of x.sourceFiles)if(W1(le))return!0}}function O2(x,le){if(!x)return;const Re=je;je=le,Ye(x),je=Re}function Vf(x,le,Re){if(le!=null&&le.length){if(Qn(le,po))return Hg(x,le);if(Qn(le,qu))return Re?zg(x,le):x.pos;d==null||d(le);let on,Cr,Ai=0,di=0,Vi;for(;Ai<le.length;){for(;di<le.length;){if(Vi=le[di],Cr=qu(Vi)?"decorators":"modifiers",on===void 0)on=Cr;else if(Cr!==on)break;di++}const mo={pos:-1,end:-1};Ai===0&&(mo.pos=le.pos),di===le.length-1&&(mo.end=le.end),(on==="modifiers"||Re)&&z1(Ye,x,le,on==="modifiers"?2359808:2146305,void 0,Ai,di-Ai,!1,mo),Ai=di,on=Cr,di++}if(v==null||v(le),Vi&&!lm(Vi.end))return Vi.end}return x.pos}function Hg(x,le){Ns(x,le,2359808);const Re=rl(le);return Re&&!lm(Re.end)?Re.end:x.pos}function Gp(x){x&&(mr(":"),ar(),Ye(x))}function fp(x,le,Re,on){x&&(ar(),_n(63,le,jf,Re),ar(),cn(x,on))}function Xx(x,le,Re,on){Re&&(le(x),on(Re))}function H1(x){x&&(ar(),Ye(x))}function gm(x,le){x&&(ar(),cn(x,le))}function M2(x){x&&(Ye(x),ar())}function Td(x,le){fo(le)||Eo(x)&1?(ar(),Ye(le)):(Nc(),R_(),XK(le)?mt(5,le):Ye(le),Up())}function zg(x,le){Ns(x,le,2146305);const Re=rl(le);return Re&&!lm(Re.end)?Re.end:x.pos}function ym(x,le){Ns(x,le,53776,Lt)}function vm(x,le){if(Ya(x)&&x.typeArguments)return ym(x,x.typeArguments);Ns(x,le,53776)}function qg(x,le){Ns(x,le,2576)}function LE(x,le){const Re=Nm(le);return Re&&Re.pos===x.pos&&Xs(x)&&!x.type&&!Dt(x.modifiers)&&!Dt(x.typeParameters)&&!Dt(Re.modifiers)&&!Re.dotDotDotToken&&!Re.questionToken&&!Re.type&&!Re.initializer&&We(Re.name)}function P2(x,le){LE(x,le)?Ns(x,le,528):qg(x,le)}function Yy(x,le){Ns(x,le,8848)}function IE(x){switch(x&60){case 0:break;case 16:mr(",");break;case 4:ar(),mr("|");break;case 32:ar(),mr("*"),ar();break;case 8:ar(),mr("&");break}}function Ns(x,le,Re,on,Cr,Ai){Yx(Ye,x,le,Re|(x&&Eo(x)&2?65536:0),on,Cr,Ai)}function $y(x,le,Re,on,Cr,Ai){Yx(cn,x,le,Re,on,Cr,Ai)}function Yx(x,le,Re,on,Cr,Ai=0,di=Re?Re.length-Ai:0){if(Re===void 0&&on&16384)return;const mo=Re===void 0||Ai>=Re.length||di===0;if(mo&&on&32768){d==null||d(Re),v==null||v(Re);return}on&15360&&(mr(cBe(on)),mo&&Re&&$g(Re.pos,!0)),d==null||d(Re),mo?on&1&&!(Ee&&(!le||k&&VT(le,k)))?Nc():on&256&&!(on&524288)&&ar():z1(x,le,Re,on,Cr,Ai,di,Re.hasTrailingComma,Re),v==null||v(Re),on&15360&&(mo&&Re&&Gd(Re.end),mr(uBe(on)))}function z1(x,le,Re,on,Cr,Ai,di,Vi,mo){const su=(on&262144)===0;let rf=su;const xf=mu(le,Re[Ai],on);xf?(Nc(xf),rf=!1):on&256&&ar(),on&128&&R_();const sv=pBe(x,Cr);let af,w0,D0=!1;for(let fh=0;fh<di;fh++){const cv=Re[Ai+fh];if(on&32)Nc(),IE(on);else if(af){on&60&&af.end!==(le?le.end:-1)&&(Eo(af)&2048||Gd(af.end)),IE(on),Hr(w0);const d_=N_(af,cv,on);d_>0?(on&131||(R_(),D0=!0),Nc(d_),rf=!1):af&&on&512&&ar()}if(w0=Ir(cv),rf){const d_=Ym(cv);$g(d_.pos)}else rf=su;Ae=cv.pos,sv(cv,x,Cr,fh),D0&&(Up(),D0=!1),af=cv}const lv=af?Eo(af):0,O_=Zt||!!(lv&2048),HE=Vi&&on&64&&on&16;HE&&(af&&!O_?_n(27,af.end,mr,af):mr(",")),af&&(le?le.end:-1)!==af.end&&on&60&&!O_&&Gd(HE&&(mo!=null&&mo.end)?mo.end:af.end),on&128&&Up(),Hr(w0);const zf=ch(le,Re[Ai+di-1],on,mo);zf?Nc(zf):on&2097408&&ar()}function q1(x){te.writeLiteral(x)}function $x(x){te.writeStringLiteral(x)}function PL(x){te.write(x)}function Qx(x,le){te.writeSymbol(x,le)}function mr(x){te.writePunctuation(x)}function Ml(){te.writeTrailingSemicolon(";")}function _a(x){te.writeKeyword(x)}function jf(x){te.writeOperator(x)}function T0(x){te.writeParameter(x)}function lh(x){te.writeComment(x)}function ar(){te.writeSpace(" ")}function Zx(x){te.writeProperty(x)}function Qy(x){te.nonEscapingWrite?te.nonEscapingWrite(x):te.write(x)}function Nc(x=1){for(let le=0;le<x;le++)te.writeLine(le>0)}function R_(){te.increaseIndent()}function Up(){te.decreaseIndent()}function Zy(x,le,Re,on){return Ge?_p(x,Re,le):FL(on,x,Re,le,_p)}function kE(x,le){g&&g(x),le(bo(x.kind)),T&&T(x)}function _p(x,le,Re){const on=bo(x);return le(on),Re<0?Re:Re+on.length}function ev(x,le,Re){if(Eo(x)&1)ar();else if(Ee){const on=Vp(x,le,Re);on?Nc(on):ar()}else Nc()}function Ql(x){const le=x.split(/\r\n?|\n/g),Re=Kfe(le);for(const on of le){const Cr=Re?on.slice(Re):on;Cr.length&&(Nc(),je(Cr))}}function ic(x,le){x?(R_(),Nc(x)):le&&ar()}function Jg(x,le){x&&Up(),le&&Up()}function mu(x,le,Re){if(Re&2||Ee){if(Re&65536)return 1;if(le===void 0)return!x||k&&VT(x,k)?0:1;if(le.pos===Ae||le.kind===11)return 0;if(k&&x&&!lm(x.pos)&&!tl(le)&&(!le.parent||Cl(le.parent)===Cl(x)))return Ee?Bd(on=>wpe(le.pos,x.pos,k,on)):NP(x,le,k)?0:1;if(K1(le,Re))return 1}return Re&1?1:0}function N_(x,le,Re){if(Re&2||Ee){if(x===void 0||le===void 0||le.kind===11)return 0;if(k&&!tl(x)&&!tl(le))return Ee&&Qh(x,le)?Bd(on=>IJ(x,le,k,on)):!Ee&&I0(x,le)?FR(x,le,k)?0:1:Re&65536?1:0;if(K1(x,Re)||K1(le,Re))return 1}else if(l6(le))return 1;return Re&1?1:0}function ch(x,le,Re,on){if(Re&2||Ee){if(Re&65536)return 1;if(le===void 0)return!x||k&&VT(x,k)?0:1;if(k&&x&&!lm(x.pos)&&!tl(le)&&(!le.parent||le.parent===x)){if(Ee){const Cr=on&&!lm(on.end)?on.end:le.end;return Bd(Ai=>Dpe(Cr,x.end,k,Ai))}return Lpe(x,le,k)?0:1}if(K1(le,Re))return 1}return Re&1&&!(Re&131072)?1:0}function Bd(x){R.assert(!!Ee);const le=x(!0);return le===0?x(!1):le}function wE(x,le){const Re=Ee&&mu(le,x,0);return Re&&ic(Re,!1),!!Re}function J1(x,le){const Re=Ee&&ch(le,x,0,void 0);Re&&Nc(Re)}function K1(x,le){if(tl(x)){const Re=l6(x);return Re===void 0?(le&65536)!==0:Re}return(le&65536)!==0}function Vp(x,le,Re){return Eo(x)&262144?0:(x=DE(x),le=DE(le),Re=DE(Re),l6(Re)?1:k&&!tl(x)&&!tl(le)&&!tl(Re)?Ee?Bd(on=>IJ(le,Re,k,on)):FR(le,Re,k)?0:1:0)}function Jh(x){return x.statements.length===0&&(!k||FR(x,x,k))}function DE(x){for(;x.kind===214&&tl(x);)x=x.expression;return x}function tv(x,le){if(Ll(x)||AS(x))return X1(x);if(Wo(x)&&x.textSourceNode)return tv(x.textSourceNode,le);const Re=k,on=!!Re&&!!x.parent&&!tl(x);if(gg(x)){if(!on||Zn(x)!==Cl(Re))return Pr(x)}else if(R.assertNode(x,ST),!on)return x.text;return Fb(Re,x,le)}function Pl(x,le,Re){if(x.kind===10&&x.textSourceNode){const Cr=x.textSourceNode;if(We(Cr)||Ri(Cr)||C_(Cr)){const Ai=C_(Cr)?Cr.text:tv(Cr);return Re?`"${lJ(Ai)}"`:le||Eo(x)&33554432?`"${FS(Ai)}"`:`"${IR(Ai)}"`}else return Pl(Cr,le,Re)}const on=(le?1:0)|(Re?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target===99?8:0);return c_e(x,k,on)}function Kg(x){x&&Eo(x)&1048576||(re.push(be),be=0,X.push(ne),ne=void 0,ae.push(z))}function Kh(x){x&&Eo(x)&1048576||(be=re.pop(),ne=X.pop(),z=ae.pop())}function S0(x){(!z||z===rl(ae))&&(z=new Set),z.add(x)}function x0(x,le){P.push(ue),ue=x,ce.push(z),he=le}function hu(){ue=P.pop(),he=ce.pop()}function Xh(x){(!he||he===rl(ce))&&(he=new Set),he.add(x)}function Ac(x){if(x)switch(x.kind){case 238:Ie(x.statements,Ac);break;case 253:case 251:case 243:case 244:Ac(x.statement);break;case 242:Ac(x.thenStatement),Ac(x.elseStatement);break;case 245:case 247:case 246:Ac(x.initializer),Ac(x.statement);break;case 252:Ac(x.caseBlock);break;case 266:Ie(x.clauses,Ac);break;case 292:case 293:Ie(x.statements,Ac);break;case 255:Ac(x.tryBlock),Ac(x.catchClause),Ac(x.finallyBlock);break;case 295:Ac(x.variableDeclaration),Ac(x.block);break;case 240:Ac(x.declarationList);break;case 258:Ie(x.declarations,Ac);break;case 257:case 166:case 205:case 260:Yh(x.name);break;case 259:Yh(x.name),Eo(x)&1048576&&(Ie(x.parameters,Ac),Ac(x.body));break;case 203:case 204:Ie(x.elements,Ac);break;case 269:Ac(x.importClause);break;case 270:Yh(x.name),Ac(x.namedBindings);break;case 271:Yh(x.name);break;case 277:Yh(x.name);break;case 272:Ie(x.elements,Ac);break;case 273:Yh(x.propertyName||x.name);break}}function RE(x){if(x)switch(x.kind){case 299:case 300:case 169:case 171:case 174:case 175:Yh(x.name);break}}function Yh(x){x&&(Ll(x)||AS(x)?X1(x):$a(x)&&Ac(x))}function X1(x){const le=x.emitNode.autoGenerate;if((le.flags&7)===4)return Sd(t9(x),Ri(x),le.flags,le.prefix,le.suffix);{const Re=le.id;return H[Re]||(H[Re]=kr(x))}}function Sd(x,le,Re,on,Cr){const Ai=hs(x),di=le?j:U;return di[Ai]||(di[Ai]=os(x,le,Re!=null?Re:0,eL(on,X1),eL(Cr)))}function uh(x,le){return A0(x,le)&&!Y1(x,le)&&!ee.has(x)}function Y1(x,le){return le?!!(he!=null&&he.has(x)):!!(z!=null&&z.has(x))}function A0(x,le){return k?zM(k,x,r):!0}function NE(x,le){for(let Re=le;Re&&PT(Re,le);Re=Re.nextContainer)if(Vm(Re)&&Re.locals){const on=Re.locals.get(cl(x));if(on&&on.flags&3257279)return!1}return!0}function nv(x){var le;switch(x){case"":return be;case"#":return ue;default:return(le=ne==null?void 0:ne.get(x))!=null?le:0}}function F2(x,le){switch(x){case"":be=le;break;case"#":ue=le;break;default:ne!=null||(ne=new Map),ne.set(x,le);break}}function C0(x,le,Re,on,Cr){on.length>0&&on.charCodeAt(0)===35&&(on=on.slice(1));const Ai=ZT(Re,on,"",Cr);let di=nv(Ai);if(x&&!(di&x)){const mo=ZT(Re,on,x===268435456?"_i":"_n",Cr);if(uh(mo,Re))return di|=x,Re?Xh(mo):le&&S0(mo),F2(Ai,di),mo}for(;;){const Vi=di&268435455;if(di++,Vi!==8&&Vi!==13){const mo=Vi<26?"_"+String.fromCharCode(97+Vi):"_"+(Vi-26),su=ZT(Re,on,mo,Cr);if(uh(su,Re))return Re?Xh(su):le&&S0(su),F2(Ai,di),su}}}function Xg(x,le=uh,Re,on,Cr,Ai,di){if(x.length>0&&x.charCodeAt(0)===35&&(x=x.slice(1)),Ai.length>0&&Ai.charCodeAt(0)===35&&(Ai=Ai.slice(1)),Re){const mo=ZT(Cr,Ai,x,di);if(le(mo,Cr))return Cr?Xh(mo):on?S0(mo):ee.add(mo),mo}x.charCodeAt(x.length-1)!==95&&(x+="_");let Vi=1;for(;;){const mo=ZT(Cr,Ai,x+Vi,di);if(le(mo,Cr))return Cr?Xh(mo):on?S0(mo):ee.add(mo),mo;Vi++}}function Wf(x){return Xg(x,A0,!0,!1,!1,"","")}function OE(x){const le=tv(x.name);return NE(le,li(x,Vm))?le:Xg(le,uh,!1,!1,!1,"","")}function Tf(x){const le=fC(x),Re=Wo(le)?d_e(le.text):"module";return Xg(Re,uh,!1,!1,!1,"","")}function $h(){return Xg("default",uh,!1,!1,!1,"","")}function L0(){return Xg("class",uh,!1,!1,!1,"","")}function eA(x,le,Re,on){return We(x.name)?Sd(x.name,le):C0(0,!1,le,Re,on)}function os(x,le,Re,on,Cr){switch(x.kind){case 79:case 80:return Xg(tv(x),uh,!!(Re&16),!!(Re&8),le,on,Cr);case 264:case 263:return R.assert(!on&&!Cr&&!le),OE(x);case 269:case 275:return R.assert(!on&&!Cr&&!le),Tf(x);case 259:case 260:{R.assert(!on&&!Cr&&!le);const Ai=x.name;return Ai&&!Ll(Ai)?os(Ai,!1,Re,on,Cr):$h()}case 274:return R.assert(!on&&!Cr&&!le),$h();case 228:return R.assert(!on&&!Cr&&!le),L0();case 171:case 174:case 175:return eA(x,le,on,Cr);case 164:return C0(0,!0,le,on,Cr);default:return C0(0,!1,le,on,Cr)}}function kr(x){const le=x.emitNode.autoGenerate,Re=eL(le.prefix,X1),on=eL(le.suffix);switch(le.flags&7){case 1:return C0(0,!!(le.flags&8),Ri(x),Re,on);case 2:return R.assertNode(x,We),C0(268435456,!!(le.flags&8),!1,Re,on);case 3:return Xg(Pr(x),le.flags&32?A0:uh,!!(le.flags&16),!!(le.flags&8),Ri(x),Re,on)}return R.fail(`Unsupported GeneratedIdentifierKind: ${R.formatEnum(le.flags&7,aM,!0)}.`)}function tf(x,le){const Re=Te(2,x,le),on=ot,Cr=sn,Ai=pn;xd(le),Re(x,le),B2(le,on,Cr,Ai)}function xd(x){const le=Eo(x),Re=Ym(x);ME(x,le,Re.pos,Re.end),le&4096&&(Zt=!0)}function B2(x,le,Re,on){const Cr=Eo(x),Ai=Ym(x);Cr&4096&&(Zt=!1),rv(x,Cr,Ai.pos,Ai.end,le,Re,on);const di=Wme(x);di&&rv(x,Cr,di.pos,di.end,le,Re,on)}function ME(x,le,Re,on){ea(),Ln=!1;const Cr=Re<0||(le&1024)!==0||x.kind===11,Ai=on<0||(le&2048)!==0||x.kind===11;(Re>0||on>0)&&Re!==on&&(Cr||Em(Re,x.kind!==355),(!Cr||Re>=0&&le&1024)&&(ot=Re),(!Ai||on>=0&&le&2048)&&(sn=on,x.kind===258&&(pn=on))),Ie(MC(x),tA),ta()}function rv(x,le,Re,on,Cr,Ai,di){ea();const Vi=on<0||(le&2048)!==0||x.kind===11;Ie(u6(x),iv),(Re>0||on>0)&&Re!==on&&(ot=Cr,sn=Ai,pn=di,!Vi&&x.kind!==355&&PE(on)),ta()}function tA(x){(x.hasLeadingNewline||x.kind===2)&&te.writeLine(),bm(x),x.hasTrailingNewLine||x.kind===2?te.writeLine():te.writeSpace(" ")}function iv(x){te.isAtStartOfLine()||te.writeSpace(" "),bm(x),x.hasTrailingNewLine&&te.writeLine()}function bm(x){const le=jp(x),Re=x.kind===3?SD(le):void 0;SC(le,Re,te,0,le.length,L)}function jp(x){return x.kind===3?`/*${x.text}*/`:`//${x.text}`}function Yg(x,le,Re){ea();const{pos:on,end:Cr}=le,Ai=Eo(x),di=on<0||(Ai&1024)!==0,Vi=Zt||Cr<0||(Ai&2048)!==0;di||k0(le),ta(),Ai&4096&&!Zt?(Zt=!0,Re(x),Zt=!1):Re(x),ea(),Vi||(Em(le.end,!0),Ln&&!te.isAtStartOfLine()&&te.writeLine()),ta()}function I0(x,le){return x=Cl(x),x.parent&&x.parent===Cl(le).parent}function Qh(x,le){if(le.pos<x.end)return!1;x=Cl(x),le=Cl(le);const Re=x.parent;if(!Re||Re!==le.parent)return!1;const on=ume(x),Cr=on==null?void 0:on.indexOf(x);return Cr!==void 0&&Cr>-1&&on.indexOf(le)===Cr+1}function Em(x,le){Ln=!1,le?x===0&&(k!=null&&k.isDeclarationFile)?Os(x,Zl):Os(x,dh):x===0&&Os(x,G2)}function G2(x,le,Re,on,Cr){GE(x,le)&&dh(x,le,Re,on,Cr)}function Zl(x,le,Re,on,Cr){GE(x,le)||dh(x,le,Re,on,Cr)}function Sf(x,le){return e.onlyPrintJsDocStyle?TX(x,le)||qM(x,le):!0}function dh(x,le,Re,on,Cr){!k||!Sf(k.text,x)||(Ln||(upe(et(),te,Cr,x),Ln=!0),nf(x),SC(k.text,et(),te,x,le,L),nf(le),on?te.writeLine():Re===3&&te.writeSpace(" "))}function Gd(x){Zt||x===-1||Em(x,!0)}function PE(x){FE(x,av)}function av(x,le,Re,on){!k||!Sf(k.text,x)||(te.isAtStartOfLine()||te.writeSpace(" "),nf(x),SC(k.text,et(),te,x,le,L),nf(le),on&&te.writeLine())}function $g(x,le,Re){Zt||(ea(),FE(x,le?av:Re?nA:Hf),ta())}function nA(x,le,Re){k&&(nf(x),SC(k.text,et(),te,x,le,L),nf(le),Re===2&&te.writeLine())}function Hf(x,le,Re,on){k&&(nf(x),SC(k.text,et(),te,x,le,L),nf(le),on?te.writeLine():te.writeSpace(" "))}function Os(x,le){k&&(ot===-1||x!==ot)&&(BE(x)?Qg(le):CD(k.text,x,le,x))}function FE(x,le){k&&(sn===-1||x!==sn&&x!==pn)&&LD(k.text,x,le)}function BE(x){return jn!==void 0&&Ko(jn).nodePos===x}function Qg(x){if(!k)return;const le=Ko(jn).detachedCommentEndPos;jn.length-1?jn.pop():jn=void 0,CD(k.text,le,x,le)}function k0(x){const le=k&&fpe(k.text,et(),te,U2,x,L,Zt);le&&(jn?jn.push(le):jn=[le])}function U2(x,le,Re,on,Cr,Ai){!k||!Sf(k.text,on)||(nf(on),SC(x,le,Re,on,Cr,Ai),nf(Cr))}function GE(x,le){return!!k&&yq(k.text,x,le)}function UE(x){return x.parsedSourceMap===void 0&&x.sourceMapText!==void 0&&(x.parsedSourceMap=OY(x.sourceMapText)||!1),x.parsedSourceMap||void 0}function VE(x,le){const Re=Te(3,x,le);jE(le),Re(x,le),WE(le)}function jE(x){const le=Eo(x),Re=y1(x);if(Jz(x)){R.assertIsDefined(x.parent,"UnparsedNodes must have parent pointers");const on=UE(x.parent);on&&lt&&lt.appendSourceMap(te.getLine(),te.getColumn(),on,x.parent.sourceMapPath,x.parent.getLineAndCharacterOfPosition(x.pos),x.parent.getLineAndCharacterOfPosition(x.end))}else{const on=Re.source||Ct;x.kind!==355&&!(le&32)&&Re.pos>=0&&Zh(Re.source||Ct,ov(on,Re.pos)),le&128&&(Ge=!0)}}function WE(x){const le=Eo(x),Re=y1(x);Jz(x)||(le&128&&(Ge=!1),x.kind!==355&&!(le&64)&&Re.end>=0&&Zh(Re.source||Ct,Re.end))}function ov(x,le){return x.skipTrivia?x.skipTrivia(le):Yo(x.text,le)}function nf(x){if(Ge||lm(x)||iA(Ct))return;const{line:le,character:Re}=ll(Ct,x);lt.addMapping(te.getLine(),te.getColumn(),bt,le,Re,void 0)}function Zh(x,le){if(x!==Ct){const Re=Ct,on=bt;Zg(x),nf(le),rA(Re,on)}else nf(le)}function FL(x,le,Re,on,Cr){if(Ge||x&&_P(x))return Cr(le,Re,on);const Ai=x&&x.emitNode,di=Ai&&Ai.flags||0,Vi=Ai&&Ai.tokenSourceMapRanges&&Ai.tokenSourceMapRanges[le],mo=Vi&&Vi.source||Ct;return on=ov(mo,Vi?Vi.pos:on),!(di&256)&&on>=0&&Zh(mo,on),on=Cr(le,Re,on),Vi&&(on=Vi.end),!(di&512)&&on>=0&&Zh(mo,on),on}function Zg(x){if(!Ge){if(Ct=x,x===zt){bt=nt;return}iA(x)||(bt=lt.addSource(x.fileName),e.inlineSources&&lt.setSourceContent(bt,x.text),zt=x,nt=bt)}}function rA(x,le){Ct=x,bt=le}function iA(x){return _c(x.fileName,".json")}}function lBe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function cBe(e){return s$[e&15360][0]}function uBe(e){return s$[e&15360][1]}function dBe(e,t,r,i){t(e)}function fBe(e,t,r,i){t(e,r.select(i))}function _Be(e,t,r,i){t(e,r)}function pBe(e,t){return e.length===1?dBe:typeof t=="object"?fBe:_Be}var s$,nF,l$,dE,c$,vN,mBe=b({"src/compiler/emitter.ts"(){"use strict";Oa(),Oa(),kb(),s$=lBe(),nF={hasGlobalName:qa,getReferencedExportContainer:qa,getReferencedImportDeclaration:qa,getReferencedDeclarationWithCollidingName:qa,isDeclarationWithCollidingName:qa,isValueAliasDeclaration:qa,isReferencedAliasDeclaration:qa,isTopLevelValueImportEqualsWithEntityName:qa,getNodeCheckFlags:qa,isDeclarationVisible:qa,isLateBound:e=>!1,collectLinkedAliases:qa,isImplementationOfOverload:qa,isRequiredInitializedParameter:qa,isOptionalUninitializedParameterProperty:qa,isExpandoFunctionDeclaration:qa,getPropertiesOfContainerFunction:qa,createTypeOfDeclaration:qa,createReturnTypeOfSignatureDeclaration:qa,createTypeOfExpression:qa,createLiteralConstValue:qa,isSymbolAccessible:qa,isEntityNameVisible:qa,getConstantValue:qa,getReferencedValueDeclaration:qa,getTypeReferenceSerializationKind:qa,isOptionalParameter:qa,moduleExportsSomeValue:qa,isArgumentsLocalBinding:qa,getExternalModuleFileFromDeclaration:qa,getTypeReferenceDirectivesForEntityName:qa,getTypeReferenceDirectivesForSymbol:qa,isLiteralConstDeclaration:qa,getJsxFactoryEntity:qa,getJsxFragmentFactoryEntity:qa,getAllAccessorDeclarations:qa,getSymbolOfExternalModuleSpecifier:qa,isBindingCapturedByNode:qa,getDeclarationStatementsForSourceFile:qa,isImportRequiredByAugmentation:qa},l$=Ld(()=>uE({})),dE=Ld(()=>uE({removeComments:!0})),c$=Ld(()=>uE({removeComments:!0,neverAsciiEscape:!0})),vN=Ld(()=>uE({removeComments:!0,omitTrailingSemicolon:!0}))}});function o0e(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=lu(r);return{useCaseSensitiveFileNames:r,fileExists:L,readFile:(P,ue)=>e.readFile(P,ue),directoryExists:e.directoryExists&&I,getDirectories:k,readDirectory:U,createDirectory:e.createDirectory&&M,writeFile:e.writeFile&&C,addOrDeleteFileOrDirectory:H,addOrDeleteFile:ee,clearCache:ne,realpath:e.realpath&&j};function s(P){return Js(P,t,o)}function c(P){return i.get(Wu(P))}function _(P){const ue=c(vi(P));return ue&&(ue.sortedAndCanonicalizedFiles||(ue.sortedAndCanonicalizedFiles=ue.files.map(o).sort(),ue.sortedAndCanonicalizedDirectories=ue.directories.map(o).sort()),ue)}function d(P){return Eu(Xo(P))}function v(P,ue){var re;if(!e.realpath||Wu(s(e.realpath(P)))===ue){const be={files:Pt(e.readDirectory(P,void 0,void 0,["*.*"]),d)||[],directories:e.getDirectories(P)||[]};return i.set(Wu(ue),be),be}if((re=e.directoryExists)!=null&&re.call(e,P))return i.set(ue,!1),!1}function g(P,ue){ue=Wu(ue);const re=c(ue);if(re)return re;try{return v(P,ue)}catch(be){R.assert(!i.has(Wu(ue)));return}}function T(P,ue){return Rv(P,ue,gl,ju)>=0}function C(P,ue,re){const be=s(P),ae=_(be);return ae&&X(ae,d(P),!0),e.writeFile(P,ue,re)}function L(P){const ue=s(P),re=_(ue);return re&&T(re.sortedAndCanonicalizedFiles,o(d(P)))||e.fileExists(P)}function I(P){const ue=s(P);return i.has(Wu(ue))||e.directoryExists(P)}function M(P){const ue=s(P),re=_(ue);if(re){const be=d(P),ae=o(be),z=re.sortedAndCanonicalizedDirectories;Dv(z,ae,ju)&&re.directories.push(be)}e.createDirectory(P)}function k(P){const ue=s(P),re=g(P,ue);return re?re.directories.slice():e.getDirectories(P)}function U(P,ue,re,be,ae){const z=s(P),ce=g(P,z);let he;if(ce!==void 0)return zJ(P,ue,re,be,r,t,ae,Ee,j);return e.readDirectory(P,ue,re,be,ae);function Ee(te){const Ze=s(te);if(Ze===z)return ce||Ae(te,Ze);const je=g(te,Ze);return je!==void 0?je||Ae(te,Ze):i5}function Ae(te,Ze){if(he&&Ze===z)return he;const je={files:Pt(e.readDirectory(te,void 0,void 0,["*.*"]),d)||it,directories:e.getDirectories(te)||it};return Ze===z&&(he=je),je}}function j(P){return e.realpath?e.realpath(P):P}function H(P,ue){if(c(ue)!==void 0){ne();return}const be=_(ue);if(!be)return;if(!e.directoryExists){ne();return}const ae=d(P),z={fileExists:e.fileExists(ue),directoryExists:e.directoryExists(ue)};return z.directoryExists||T(be.sortedAndCanonicalizedDirectories,o(ae))?ne():X(be,ae,z.fileExists),z}function ee(P,ue,re){if(re===1)return;const be=_(ue);be&&X(be,d(P),re===0)}function X(P,ue,re){const be=P.sortedAndCanonicalizedFiles,ae=o(ue);if(re)Dv(be,ae,ju)&&P.files.push(ue);else{const z=Rv(be,ae,gl,ju);if(z>=0){be.splice(z,1);const ce=P.files.findIndex(he=>o(he)===ae);P.files.splice(ce,1)}}}function ne(){i.clear()}}function u$(e,t,r,i,o){var s;const c=Tb(((s=t==null?void 0:t.configFile)==null?void 0:s.extendedSourceFiles)||it,o);r.forEach((_,d)=>{c.has(d)||(_.projects.delete(e),_.close())}),c.forEach((_,d)=>{const v=r.get(d);v?v.projects.add(e):r.set(d,{projects:new Set([e]),watcher:i(_,d),close:()=>{const g=r.get(d);!g||g.projects.size!==0||(g.watcher.close(),r.delete(d))}})})}function s0e(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function d$(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(c=>r(c)===t)&&d$(e,o,r)})}function hBe(e,t,r){const i=new Map(e);CC(t,i,{createNewValue:r,onDeleteValue:Km})}function l0e(e,t,r){const i=e.getMissingFilePaths(),o=Tb(i,gl,xb);CC(t,o,{createNewValue:r,onDeleteValue:Km})}function rF(e,t,r){CC(e,t,{createNewValue:i,onDeleteValue:nh,onExistingValue:o});function i(s,c){return{watcher:r(s,c),flags:c}}function o(s,c,_){s.flags!==c&&(s.watcher.close(),e.set(_,i(_,c)))}}function iF({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:c,currentDirectory:_,useCaseSensitiveFileNames:d,writeLog:v,toPath:g}){const T=H$(r);if(!T)return v(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=T,r===e)return!1;if(WA(r)&&!tme(t,o,c))return v(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(Vge(t,o.configFile.configFileSpecs,Ma(vi(i),_),d,_))return v(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||Ks(o)||o.outDir)return!1;if(vd(r)){if(o.declarationDir)return!1}else if(!Ic(r,$k))return!1;const C=zd(r),L=ja(s)?void 0:gBe(s)?s.getProgramOrUndefined():s,I=!L&&!ja(s)?s:void 0;if(M(C+".ts")||M(C+".tsx"))return v(`Project: ${i} Detected output file: ${t}`),!0;return!1;function M(k){return L?!!L.getSourceFileByPath(k):I?I.getState().fileInfos.has(k):!!$t(s,U=>g(U)===k)}}function gBe(e){return!!e.getState}function c0e(e,t){return e?e.isEmittedFile(t):!1}function u0e(e,t,r,i){wde(t===2?r:co);const o={watchFile:(M,k,U,j)=>e.watchFile(M,k,U,j),watchDirectory:(M,k,U,j)=>e.watchDirectory(M,k,(U&1)!==0,j)},s=t!==0?{watchFile:L("watchFile"),watchDirectory:L("watchDirectory")}:void 0,c=t===2?{watchFile:T,watchDirectory:C}:s||o,_=t===2?g:kN;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(M){return(k,U,j,H,ee,X)=>{var ne;return f9(k,M==="watchFile"?H==null?void 0:H.excludeFiles:H==null?void 0:H.excludeDirectories,v(),((ne=e.getCurrentDirectory)==null?void 0:ne.call(e))||"")?_(k,j,H,ee,X):c[M].call(void 0,k,U,j,H,ee,X)}}function v(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function g(M,k,U,j,H){return r(`ExcludeWatcher:: Added:: ${I(M,k,U,j,H,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${I(M,k,U,j,H,i)}`)}}function T(M,k,U,j,H,ee){r(`FileWatcher:: Added:: ${I(M,U,j,H,ee,i)}`);const X=s.watchFile(M,k,U,j,H,ee);return{close:()=>{r(`FileWatcher:: Close:: ${I(M,U,j,H,ee,i)}`),X.close()}}}function C(M,k,U,j,H,ee){const X=`DirectoryWatcher:: Added:: ${I(M,U,j,H,ee,i)}`;r(X);const ne=ol(),P=s.watchDirectory(M,k,U,j,H,ee),ue=ol()-ne;return r(`Elapsed:: ${ue}ms ${X}`),{close:()=>{const re=`DirectoryWatcher:: Close:: ${I(M,U,j,H,ee,i)}`;r(re);const be=ol();P.close();const ae=ol()-be;r(`Elapsed:: ${ae}ms ${re}`)}}}function L(M){return(k,U,j,H,ee,X)=>o[M].call(void 0,k,(...ne)=>{const P=`${M==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ne[0]} ${ne[1]!==void 0?ne[1]:""}:: ${I(k,j,H,ee,X,i)}`;r(P);const ue=ol();U.call(void 0,...ne);const re=ol()-ue;r(`Elapsed:: ${re}ms ${P}`)},j,H,ee,X)}function I(M,k,U,j,H,ee){return`WatchInfo: ${M} ${k} ${JSON.stringify(U)} ${ee?ee(j,H):H===void 0?j:`${j} ${H}`}`}}function bN(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function nh(e){e.watcher.close()}var f$,_$,yBe=b({"src/compiler/watchUtilities.ts"(){"use strict";Oa(),Oa(),f$=(e=>(e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",e))(f$||{}),_$=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(_$||{})}});function d0e(e,t,r="tsconfig.json"){return pg(e,i=>{const o=Fi(i,r);return t(o)?o:void 0})}function aF(e,t){const r=vi(t),i=Fm(e)?e:Fi(r,e);return Xo(i)}function f0e(e,t,r){let i;return Ie(e,s=>{const c=vD(s,t);if(c.pop(),!i){i=c;return}const _=Math.min(i.length,c.length);for(let d=0;d<_;d++)if(r(i[d])!==r(c[d])){if(d===0)return!0;i.length=d;break}c.length<i.length&&(i.length=c.length)})?"":i?wb(i):t}function _0e(e,t){return h$(e,t)}function p$(e,t,r){return(i,o,s)=>{let c;try{sl("beforeIORead"),c=e(i,t().charset),sl("afterIORead"),e_("I/O Read","beforeIORead","afterIORead")}catch(_){s&&s(_.message),c=""}return c!==void 0?F6(i,c,o,r):void 0}}function m$(e,t,r){return(i,o,s,c)=>{try{sl("beforeIOWrite"),hJ(i,o,s,e,t,r),sl("afterIOWrite"),e_("I/O Write","beforeIOWrite","afterIOWrite")}catch(_){c&&c(_.message)}}}function h$(e,t,r=nu){const i=new Map,o=lu(r.useCaseSensitiveFileNames);function s(g){return i.has(g)?!0:(v.directoryExists||r.directoryExists)(g)?(i.set(g,!0),!0):!1}function c(){return vi(Xo(r.getExecutingFilePath()))}const _=m1(e),d=r.realpath&&(g=>r.realpath(g)),v={getSourceFile:p$(g=>v.readFile(g),()=>e,t),getDefaultLibLocation:c,getDefaultLibFileName:g=>Fi(c(),SM(g)),writeFile:m$((g,T,C)=>r.writeFile(g,T,C),g=>(v.createDirectory||r.createDirectory)(g),g=>s(g)),getCurrentDirectory:Ld(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>_,fileExists:g=>r.fileExists(g),readFile:g=>r.readFile(g),trace:g=>r.write(g+_),directoryExists:g=>r.directoryExists(g),getEnvironmentVariable:g=>r.getEnvironmentVariable?r.getEnvironmentVariable(g):"",getDirectories:g=>r.getDirectories(g),realpath:d,readDirectory:(g,T,C,L,I)=>r.readDirectory(g,T,C,L,I),createDirectory:g=>r.createDirectory(g),createHash:Vo(r,r.createHash)};return v}function EN(e,t,r){const i=e.readFile,o=e.fileExists,s=e.directoryExists,c=e.createDirectory,_=e.writeFile,d=new Map,v=new Map,g=new Map,T=new Map,C=M=>{const k=t(M),U=d.get(k);return U!==void 0?U!==!1?U:void 0:L(k,M)},L=(M,k)=>{const U=i.call(e,k);return d.set(M,U!==void 0?U:!1),U};e.readFile=M=>{const k=t(M),U=d.get(k);return U!==void 0?U!==!1?U:void 0:!_c(M,".json")&&!$ve(M)?i.call(e,M):L(k,M)};const I=r?(M,k,U,j)=>{const H=t(M),ee=typeof k=="object"?k.impliedNodeFormat:void 0,X=T.get(ee),ne=X==null?void 0:X.get(H);if(ne)return ne;const P=r(M,k,U,j);return P&&(vd(M)||_c(M,".json"))&&T.set(ee,(X||new Map).set(H,P)),P}:void 0;return e.fileExists=M=>{const k=t(M),U=v.get(k);if(U!==void 0)return U;const j=o.call(e,M);return v.set(k,!!j),j},_&&(e.writeFile=(M,k,...U)=>{const j=t(M);v.delete(j);const H=d.get(j);H!==void 0&&H!==k?(d.delete(j),T.forEach(ee=>ee.delete(j))):I&&T.forEach(ee=>{const X=ee.get(j);X&&X.text!==k&&ee.delete(j)}),_.call(e,M,k,...U)}),s&&(e.directoryExists=M=>{const k=t(M),U=g.get(k);if(U!==void 0)return U;const j=s.call(e,M);return g.set(k,!!j),j},c&&(e.createDirectory=M=>{const k=t(M);g.delete(k),c.call(e,M)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:_,getSourceFileWithCache:I,readFileWithCache:C}}function vBe(e,t,r){let i;return i=xi(i,e.getConfigFileParsingDiagnostics()),i=xi(i,e.getOptionsDiagnostics(r)),i=xi(i,e.getSyntacticDiagnostics(t,r)),i=xi(i,e.getGlobalDiagnostics(r)),i=xi(i,e.getSemanticDiagnostics(t,r)),Q_(e.getCompilerOptions())&&(i=xi(i,e.getDeclarationDiagnostics(t,r))),zA(i||it)}function bBe(e,t){let r="";for(const i of e)r+=g$(i,t);return r}function g$(e,t){const r=`${eM(e)} TS${e.code}: ${i0(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:o}=ll(e.file,e.start),s=e.file.fileName;return`${WI(s,t.getCurrentDirectory(),_=>t.getCanonicalFileName(_))}(${i+1},${o+1}): `+r}return r}function p0e(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return R.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function fE(e,t){return t+e+k$}function m0e(e,t,r,i,o,s){const{line:c,character:_}=ll(e,t),{line:d,character:v}=ll(e,t+r),g=ll(e,e.text.length).line,T=d-c>=4;let C=(d+1+"").length;T&&(C=Math.max(w$.length,C));let L="";for(let I=c;I<=d;I++){L+=s.getNewLine(),T&&c+1<I&&I<d-1&&(L+=i+fE(hS(w$,C),_F)+pF+s.getNewLine(),I=d-1);const M=xD(e,I,0),k=I<g?xD(e,I+1,0):e.text.length;let U=e.text.slice(M,k);if(U=iD(U),U=U.replace(/\t/g," "),L+=i+fE(hS(I+1+"",C),_F)+pF,L+=U+s.getNewLine(),L+=i+fE(hS("",C),_F)+pF,L+=o,I===c){const j=I===d?v:void 0;L+=U.slice(0,_).replace(/\S/g," "),L+=U.slice(_,j).replace(/./g,"~")}else I===d?L+=U.slice(0,v).replace(/./g,"~"):L+=U.replace(/./g,"~");L+=k$}return L}function y$(e,t,r,i=fE){const{line:o,character:s}=ll(e,t),c=r?WI(e.fileName,r.getCurrentDirectory(),d=>r.getCanonicalFileName(d)):e.fileName;let _="";return _+=i(c,"\x1B[96m"),_+=":",_+=i(`${o+1}`,"\x1B[93m"),_+=":",_+=i(`${s+1}`,"\x1B[93m"),_}function h0e(e,t){let r="";for(const i of e){if(i.file){const{file:o,start:s}=i;r+=y$(o,s,t),r+=" - "}if(r+=fE(eM(i),p0e(i.category)),r+=fE(` TS${i.code}: `,"\x1B[90m"),r+=i0(i.messageText,t.getNewLine()),i.file&&(r+=t.getNewLine(),r+=m0e(i.file,i.start,i.length,"",p0e(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:o,start:s,length:c,messageText:_}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=v0e+y$(o,s,t),r+=m0e(o,s,c,D$,"\x1B[96m",t)),r+=t.getNewLine(),r+=D$+i0(_,t.getNewLine())}r+=t.getNewLine()}return r}function i0(e,t,r=0){if(za(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+=i0(o,t,r);return i}function TN(e,t){return(za(e)?t:e.resolutionMode)||t}function v$(e,t){if(e.impliedNodeFormat!==void 0)return Dp(e,fF(e,t))}function b$(e){var t;return au(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function Dp(e,t){var r,i;if(e.impliedNodeFormat===void 0)return;if((Yc(t.parent)||au(t.parent))&&b$(t.parent)){const c=yx(t.parent.assertClause);if(c)return c}if(t.parent.parent&&Ig(t.parent.parent)){const s=yx((r=t.parent.parent.assertions)==null?void 0:r.assertClause);if(s)return s}if(e.impliedNodeFormat!==99)return pf(zv(t.parent))?99:1;const o=(i=zv(t.parent))==null?void 0:i.parent;return o&&fu(o)?1:99}function yx(e,t){if(!e)return;if(ge(e.elements)!==1){t==null||t(e,m.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}const r=e.elements[0];if(As(r.name)){if(r.name.text!=="resolution-mode"){t==null||t(r.name,m.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(As(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 E$(e){return e.text}function T$(e,t,r,i,o){return{nameAndMode:B4,resolve:(s,c)=>S4(s,e,r,i,o,t,c)}}function oF(e){return za(e)?e:V_(e.fileName)}function sF(e,t,r,i,o){return{nameAndMode:AN,resolve:(s,c)=>rY(s,e,r,i,t,o,c)}}function SN(e,t,r,i,o,s,c,_){if(e.length===0)return it;const d=[],v=new Map,g=_(t,r,i,s,c);for(const T of e){const C=g.nameAndMode.getName(T),L=g.nameAndMode.getMode(T,o),I=T4(C,L);let M=v.get(I);M||v.set(I,M=g.resolve(C,L)),d.push(M)}return d}function g0e(e,t){return xN(void 0,e,(r,i)=>r&&t(r,i))}function xN(e,t,r,i){let o;return s(e,t,void 0);function s(c,_,d){if(i){const v=i(c,d);if(v)return v}return Ie(_,(v,g)=>{if(v&&(o!=null&&o.has(v.sourceFile.path)))return;const T=r(v,d,g);return T||!v?T:((o||(o=new Set)).add(v.sourceFile.path),s(v.commandLine.projectReferences,v.references,v))})}}function S1(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function cL(e){return e.pos!==void 0}function P4(e,t){var r,i,o,s,c,_;const d=R.checkDefined(e(t.file)),{kind:v,index:g}=t;let T,C,L,I;switch(v){case 3:const M=fF(d,g);if(L=(o=(i=(r=d.resolvedModules)==null?void 0:r.get(M.text,v$(d,g)))==null?void 0:i.resolvedModule)==null?void 0:o.packageId,M.pos===-1)return{file:d,packageId:L,text:M.text};T=Yo(d.text,M.pos),C=M.end;break;case 4:({pos:T,end:C}=d.referencedFiles[g]);break;case 5:({pos:T,end:C,resolutionMode:I}=d.typeReferenceDirectives[g]),L=(_=(c=(s=d.resolvedTypeReferenceDirectiveNames)==null?void 0:s.get(V_(d.typeReferenceDirectives[g].fileName),I||d.impliedNodeFormat))==null?void 0:c.resolvedTypeReferenceDirective)==null?void 0:_.packageId;break;case 7:({pos:T,end:C}=d.libReferenceDirectives[g]);break;default:return R.assertNever(v)}return{file:d,pos:T,end:C,packageId:L}}function S$(e,t,r,i,o,s,c,_,d){if(!e||c!=null&&c()||!Zp(e.getRootFileNames(),t))return!1;let v;if(!Zp(e.getProjectReferences(),d,L)||e.getSourceFiles().some(T)||e.getMissingFilePaths().some(o))return!1;const g=e.getCompilerOptions();if(!DJ(g,r))return!1;if(g.configFile&&r.configFile)return g.configFile.text===r.configFile.text;return!0;function T(M){return!C(M)||s(M.path)}function C(M){return M.version===i(M.resolvedPath,M.fileName)}function L(M,k,U){return mq(M,k)&&I(e.getResolvedProjectReferences()[U],M)}function I(M,k){if(M){if(Fr(v,M))return!0;const j=F4(k),H=_(j);return!H||M.commandLine.options.configFile!==H.options.configFile||!Zp(M.commandLine.fileNames,H.fileNames)?!1:((v||(v=[])).push(M),!Ie(M.references,(ee,X)=>!I(ee,M.commandLine.projectReferences[X])))}const U=F4(k);return!_(U)}}function o2(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function lF(e,t,r,i){const o=x$(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function x$(e,t,r,i){switch(El(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=L9(t,r,i),c=[];s.failedLookupLocations=c,s.affectingLocations=c;const _=I9(e,s);return{impliedNodeFormat:(_==null?void 0:_.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:c,packageJsonScope:_}}}function EBe(e,t){return e?eC(e.getCompilerOptions(),t,m9):!1}function TBe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function cF(e,t,r,i,o){var s,c,_,d,v,g,T,C,L,I,M,k,U,j,H,ee;const X=ja(e)?TBe(e,t,r,i,o):e,{rootNames:ne,options:P,configFileParsingDiagnostics:ue,projectReferences:re,typeScriptVersion:be}=X;let{oldProgram:ae}=X;const z=Ld(()=>D_("ignoreDeprecations",m.Invalid_value_for_ignoreDeprecations));let ce,he,Ee,Ae,te,Ze,je;const Ue=new Map;let Je=v_();const Fe={},Be={};let $e=t2(),ze,Ge,lt;const Ct=typeof P.maxNodeModuleJsDepth=="number"?P.maxNodeModuleJsDepth:0;let bt=0;const zt=new Map,nt=new Map;(s=Ti)==null||s.push(Ti.Phase.Program,"createProgram",{configFilePath:P.configFilePath,rootDir:P.rootDir},!0),sl("beforeProgram");const ot=X.host||_0e(P),sn=dF(ot);let pn=P.noLib;const gn=Ld(()=>ot.getDefaultLibFileName(P)),jn=ot.getDefaultLibLocation?ot.getDefaultLibLocation():vi(gn()),Ln=EC(),Zt=ot.getCurrentDirectory(),pr=jk(P),Ii=HR(P,pr),ea=new Map;let ta,Or,Lt;const yn=ot.hasInvalidatedResolutions||Sb;ot.resolveModuleNameLiterals?(Lt=ot.resolveModuleNameLiterals.bind(ot),Or=(c=ot.getModuleResolutionCache)==null?void 0:c.call(ot)):ot.resolveModuleNames?(Lt=(De,Ve,It,Mt,mn,vn)=>ot.resolveModuleNames(De.map(E$),Ve,vn==null?void 0:vn.map(E$),It,Mt,mn).map(En=>En?En.extension!==void 0?{resolvedModule:En}:{resolvedModule:so(Li({},En),{extension:XR(En.resolvedFileName)})}:R$),Or=(_=ot.getModuleResolutionCache)==null?void 0:_.call(ot)):(Or=x9(Zt,oe,P),Lt=(De,Ve,It,Mt,mn)=>SN(De,Ve,It,Mt,mn,ot,Or,T$));let Wt;if(ot.resolveTypeReferenceDirectiveReferences)Wt=ot.resolveTypeReferenceDirectiveReferences.bind(ot);else if(ot.resolveTypeReferenceDirectives)Wt=(De,Ve,It,Mt,mn)=>ot.resolveTypeReferenceDirectives(De.map(oF),Ve,It,Mt,mn==null?void 0:mn.impliedNodeFormat).map(vn=>({resolvedTypeReferenceDirective:vn}));else{const De=A9(Zt,oe,void 0,Or==null?void 0:Or.getPackageJsonInfoCache());Wt=(Ve,It,Mt,mn,vn)=>SN(Ve,It,Mt,mn,vn,ot,De,sF)}const In=new Map;let Bn=new Map,lr=v_(),Oi=!1;const bi=new Map;let Rn;const an=ot.useCaseSensitiveFileNames()?new Map:void 0;let On,Ir,Hr,Oe;const gt=!!((d=ot.useSourceOfProjectReferenceRedirect)!=null&&d.call(ot))&&!P.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Ot,fileExists:Le,directoryExists:pt}=SBe({compilerHost:ot,getSymlinkCache:Ia,useSourceOfProjectReferenceRedirect:gt,toPath:mt,getResolvedProjectReferences:ut,getSourceOfProjectReferenceRedirect:pl,forEachResolvedProjectReference:fs}),me=ot.readFile.bind(ot);(v=Ti)==null||v.push(Ti.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!ae});const ie=EBe(ae,P);(g=Ti)==null||g.pop();let ye;if((T=Ti)==null||T.push(Ti.Phase.Program,"tryReuseStructureFromOldProgram",{}),ye=Ne(),(C=Ti)==null||C.pop(),ye!==2){if(ce=[],he=[],re&&(On||(On=re.map(Ft)),ne.length&&(On==null||On.forEach((De,Ve)=>{if(!De)return;const It=Ks(De.commandLine.options);if(gt){if(It||uu(De.commandLine.options)===0)for(const Mt of De.commandLine.fileNames)fn(Mt,{kind:1,index:Ve})}else if(It)fn(Xb(It,".d.ts"),{kind:2,index:Ve});else if(uu(De.commandLine.options)===0){const Mt=Ld(()=>M4(De.commandLine,!ot.useCaseSensitiveFileNames()));for(const mn of De.commandLine.fileNames)!vd(mn)&&!_c(mn,".json")&&fn(O4(mn,De.commandLine,!ot.useCaseSensitiveFileNames(),Mt),{kind:2,index:Ve})}}))),(L=Ti)==null||L.push(Ti.Phase.Program,"processRootFiles",{count:ne.length}),Ie(ne,(De,Ve)=>zl(De,!1,!1,{kind:0,index:Ve})),(I=Ti)==null||I.pop(),Ge!=null||(Ge=ne.length?S9(P,ot):it),lt=t2(),Ge.length){(M=Ti)==null||M.push(Ti.Phase.Program,"processTypeReferences",{count:Ge.length});const De=P.configFilePath?vi(P.configFilePath):ot.getCurrentDirectory(),Ve=Fi(De,mF),It=Te(Ge,Ve);for(let Mt=0;Mt<Ge.length;Mt++)lt.set(Ge[Mt],void 0,It[Mt]),Nt(Ge[Mt],void 0,It[Mt],{kind:8,typeReference:Ge[Mt],packageId:(U=(k=It[Mt])==null?void 0:k.resolvedTypeReferenceDirective)==null?void 0:U.packageId});(j=Ti)==null||j.pop()}if(ne.length&&!pn){const De=gn();!P.lib&&De?zl(De,!0,!1,{kind:6}):Ie(P.lib,(Ve,It)=>{zl(Qi(Ve),!0,!1,{kind:6,index:It})})}Rn=Oo(yy(bi.entries(),([De,Ve])=>Ve===void 0?De:void 0)),Ee=by(ce,Er).concat(he),ce=void 0,he=void 0}if(R.assert(!!Rn),ae&&ot.onReleaseOldSourceFile){const De=ae.getSourceFiles();for(const Ve of De){const It=da(Ve.resolvedPath);(ie||!It||It.impliedNodeFormat!==Ve.impliedNodeFormat||Ve.resolvedPath===Ve.path&&It.resolvedPath!==Ve.path)&&ot.onReleaseOldSourceFile(Ve,ae.getCompilerOptions(),!!da(Ve.path))}ot.getParsedCommandLine||ae.forEachResolvedProjectReference(Ve=>{ql(Ve.sourceFile.path)||ot.onReleaseOldSourceFile(Ve.sourceFile,ae.getCompilerOptions(),!1)})}ae&&ot.onReleaseParsedCommandLine&&xN(ae.getProjectReferences(),ae.getResolvedProjectReferences(),(De,Ve,It)=>{const Mt=(Ve==null?void 0:Ve.commandLine.projectReferences[It])||ae.getProjectReferences()[It],mn=F4(Mt);Ir!=null&&Ir.has(mt(mn))||ot.onReleaseParsedCommandLine(mn,De,ae.getCompilerOptions())}),ae=void 0;const W={getRootFileNames:()=>ne,getSourceFile:oo,getSourceFileByPath:da,getSourceFiles:()=>Ee,getMissingFilePaths:()=>Rn,getModuleResolutionCache:()=>Or,getFilesByNameMap:()=>bi,getCompilerOptions:()=>P,getSyntacticDiagnostics:$r,getOptionsDiagnostics:yl,getGlobalDiagnostics:Ys,getSemanticDiagnostics:ls,getCachedSemanticDiagnostics:mi,getSuggestionDiagnostics:Qo,getDeclarationDiagnostics:pa,getBindAndCheckDiagnostics:fa,getProgramDiagnostics:wn,getTypeChecker:ui,getClassifiableNames:at,getCommonSourceDirectory:Jt,emit:Wi,getCurrentDirectory:()=>Zt,getNodeCount:()=>ui().getNodeCount(),getIdentifierCount:()=>ui().getIdentifierCount(),getSymbolCount:()=>ui().getSymbolCount(),getTypeCount:()=>ui().getTypeCount(),getInstantiationCount:()=>ui().getInstantiationCount(),getRelationCacheSizes:()=>ui().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>ze,getResolvedTypeReferenceDirectives:()=>$e,getAutomaticTypeDirectiveNames:()=>Ge,getAutomaticTypeDirectiveResolutions:()=>lt,isSourceFileFromExternalLibrary:ai,isSourceFileDefaultLibrary:gi,getSourceFileFromReference:Z,getLibFileFromReference:Ht,sourceFileToPackageName:Bn,redirectTargetsMap:lr,usesUriStyleNodeCoreModules:Oi,isEmittedFile:Yn,getConfigFileParsingDiagnostics:rn,getProjectReferences:nn,getResolvedProjectReferences:ut,getProjectReferenceRedirect:_l,getResolvedProjectReferenceToRedirect:Ts,getResolvedProjectReferenceByPath:ql,forEachResolvedProjectReference:fs,isSourceOfProjectReferenceRedirect:Qd,emitBuildInfo:Et,fileExists:Le,readFile:me,directoryExists:pt,getSymlinkCache:Ia,realpath:(H=ot.realpath)==null?void 0:H.bind(ot),useCaseSensitiveFileNames:()=>ot.useCaseSensitiveFileNames(),getCanonicalFileName:oe,getFileIncludeReasons:()=>Je,structureIsReused:ye,writeFile:wt};return Ot(),ze==null||ze.forEach(De=>{switch(De.kind){case 1:return Ln.add(Wa(De.file&&da(De.file),De.fileProcessingReason,De.diagnostic,De.args||it));case 0:const{file:Ve,pos:It,end:Mt}=P4(da,De.reason);return Ln.add(Pc(Ve,R.checkDefined(It),R.checkDefined(Mt)-It,De.diagnostic,...De.args||it));case 2:return De.diagnostics.forEach(mn=>Ln.add(mn));default:R.assertNever(De)}}),un(),sl("afterProgram"),e_("Program","beforeProgram","afterProgram"),(ee=Ti)==null||ee.pop(),W;function He(De){var Ve;(Ve=De.resolutionDiagnostics)!=null&&Ve.length&&(ze!=null?ze:ze=[]).push({kind:2,diagnostics:De.resolutionDiagnostics})}function et(De,Ve,It,Mt){if(ot.resolveModuleNameLiterals||!ot.resolveModuleNames)return He(It);if(!Or||zc(Ve))return;const mn=Ma(De.originalFileName,Zt),vn=vi(mn),En=cn(De),Wn=Or.getFromNonRelativeNameCache(Ve,Mt,vn,En);Wn&&He(Wn)}function Ye(De,Ve,It){var Mt,mn;if(!De.length)return it;const vn=Ma(Ve.originalFileName,Zt),En=cn(Ve);(Mt=Ti)==null||Mt.push(Ti.Phase.Program,"resolveModuleNamesWorker",{containingFileName:vn}),sl("beforeResolveModule");const Wn=Lt(De,vn,En,P,Ve,It);return sl("afterResolveModule"),e_("ResolveModule","beforeResolveModule","afterResolveModule"),(mn=Ti)==null||mn.pop(),Wn}function jt(De,Ve,It){var Mt,mn;if(!De.length)return[];const vn=za(Ve)?void 0:Ve,En=za(Ve)?Ve:Ma(Ve.originalFileName,Zt),Wn=vn&&cn(vn);(Mt=Ti)==null||Mt.push(Ti.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:En}),sl("beforeResolveTypeReference");const Jr=Wt(De,En,Wn,P,vn,It);return sl("afterResolveTypeReference"),e_("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(mn=Ti)==null||mn.pop(),Jr}function cn(De){const Ve=Ts(De.originalFileName);if(Ve||!vd(De.originalFileName))return Ve;const It=Sn(De.path);if(It)return It;if(!ot.realpath||!P.preserveSymlinks||!bu(De.originalFileName,Gy))return;const Mt=mt(ot.realpath(De.originalFileName));return Mt===De.path?void 0:Sn(Mt)}function Sn(De){const Ve=pl(De);if(za(Ve))return Ts(Ve);if(Ve)return fs(It=>{const Mt=Ks(It.commandLine.options);if(Mt)return mt(Mt)===De?It:void 0})}function Er(De,Ve){return qs(de(De),de(Ve))}function de(De){if(Mv(jn,De.fileName,!1)){const Ve=Eu(De.fileName);if(Ve==="lib.d.ts"||Ve==="lib.es6.d.ts")return 0;const It=UA(BI(Ve,"lib."),".d.ts"),Mt=K6.indexOf(It);if(Mt!==-1)return Mt+1}return K6.length+2}function mt(De){return Js(De,Zt,oe)}function Jt(){if(te===void 0){const De=ur(Ee,Ve=>BS(Ve,W));te=gN(P,()=>ua(De,Ve=>Ve.isDeclarationFile?void 0:Ve.fileName),Zt,oe,Ve=>Bt(De,Ve))}return te}function at(){var De;if(!je){ui(),je=new Set;for(const Ve of Ee)(De=Ve.classifiableNames)==null||De.forEach(It=>je.add(It))}return je}function fe(De,Ve){var It;if(ye===0&&!Ve.ambientModuleNames.length)return Ye(De,Ve,void 0);const Mt=ae&&ae.getSourceFile(Ve.fileName);if(Mt!==Ve&&Ve.resolvedModules){const _n=[];for(const dr of De){const Aa=Ve.resolvedModules.get(dr.text,Dp(Ve,dr));_n.push(Aa)}return _n}let mn,vn,En;const Wn=R$;for(let _n=0;_n<De.length;_n++){const dr=De[_n];if(Ve===Mt&&!yn(Mt.path)){const Qs=Dp(Ve,dr),cc=(It=Mt.resolvedModules)==null?void 0:It.get(dr.text,Qs);if(cc!=null&&cc.resolvedModule){r0(P,ot)&&ha(ot,cc.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,dr.text,Ma(Ve.originalFileName,Zt),cc.resolvedModule.resolvedFileName,cc.resolvedModule.packageId&&LT(cc.resolvedModule.packageId)),(vn!=null?vn:vn=new Array(De.length))[_n]=cc,(En!=null?En:En=[]).push(dr);continue}}let Aa=!1;Fr(Ve.ambientModuleNames,dr.text)?(Aa=!0,r0(P,ot)&&ha(ot,m.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,dr.text,Ma(Ve.originalFileName,Zt))):Aa=nr(dr),Aa?(vn||(vn=new Array(De.length)))[_n]=Wn:(mn!=null?mn:mn=[]).push(dr)}const Jr=mn&&mn.length?Ye(mn,Ve,En):it;if(!vn)return R.assert(Jr.length===De.length),Jr;let Xi=0;for(let _n=0;_n<vn.length;_n++)vn[_n]||(vn[_n]=Jr[Xi],Xi++);return R.assert(Xi===Jr.length),vn;function nr(_n){const dr=tC(Mt,_n.text,Dp(Ve,_n)),Aa=dr&&ae.getSourceFile(dr.resolvedFileName);if(dr&&Aa)return!1;const Qs=Ue.get(_n.text);return Qs?(r0(P,ot)&&ha(ot,m.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,_n.text,Qs),!0):!1}}function Te(De,Ve){var It;if(ye===0)return jt(De,Ve,void 0);const Mt=za(Ve)?void 0:ae&&ae.getSourceFile(Ve.fileName);if(!za(Ve)&&Mt!==Ve&&Ve.resolvedTypeReferenceDirectiveNames){const _n=[];for(const dr of De){const Aa=Ve.resolvedTypeReferenceDirectiveNames.get(oF(dr),TN(dr,Ve.impliedNodeFormat));_n.push(Aa)}return _n}let mn,vn,En;const Wn=za(Ve)?void 0:Ve,Jr=za(Ve)?!yn(mt(Ve)):Ve===Mt&&!yn(Mt.path);for(let _n=0;_n<De.length;_n++){const dr=De[_n];if(Jr){const Aa=oF(dr),Qs=TN(dr,Wn==null?void 0:Wn.impliedNodeFormat),cc=(It=za(Ve)?ae==null?void 0:ae.getAutomaticTypeDirectiveResolutions():Mt==null?void 0:Mt.resolvedTypeReferenceDirectiveNames)==null?void 0:It.get(Aa,Qs);if(cc!=null&&cc.resolvedTypeReferenceDirective){r0(P,ot)&&ha(ot,cc.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,Aa,za(Ve)?Ve:Ma(Ve.originalFileName,Zt),cc.resolvedTypeReferenceDirective.resolvedFileName,cc.resolvedTypeReferenceDirective.packageId&&LT(cc.resolvedTypeReferenceDirective.packageId)),(vn!=null?vn:vn=new Array(De.length))[_n]=cc,(En!=null?En:En=[]).push(dr);continue}}(mn!=null?mn:mn=[]).push(dr)}if(!mn)return vn||it;const Xi=jt(mn,Ve,En);if(!vn)return R.assert(Xi.length===De.length),Xi;let nr=0;for(let _n=0;_n<vn.length;_n++)vn[_n]||(vn[_n]=Xi[nr],nr++);return R.assert(nr===Xi.length),vn}function Y(){return!xN(ae.getProjectReferences(),ae.getResolvedProjectReferences(),(De,Ve,It)=>{const Mt=(Ve?Ve.commandLine.projectReferences:re)[It],mn=Ft(Mt);return De?!mn||mn.sourceFile!==De.sourceFile||!Zp(De.commandLine.fileNames,mn.commandLine.fileNames):mn!==void 0},(De,Ve)=>{const It=Ve?ql(Ve.sourceFile.path).commandLine.projectReferences:re;return!Zp(De,It,mq)})}function Ne(){var De;if(!ae)return 0;const Ve=ae.getCompilerOptions();if(pq(Ve,P))return 0;const It=ae.getRootFileNames();if(!Zp(It,ne)||!Y())return 0;re&&(On=re.map(Ft));const Mt=[],mn=[];if(ye=2,ae.getMissingFilePaths().some(nr=>ot.fileExists(nr)))return 0;const vn=ae.getSourceFiles();let En;(nr=>{nr[nr.Exists=0]="Exists",nr[nr.Modified=1]="Modified"})(En||(En={}));const Wn=new Map;for(const nr of vn){const _n=cs(nr.fileName,Or,ot,P);let dr=ot.getSourceFileByPath?ot.getSourceFileByPath(nr.fileName,nr.resolvedPath,_n,void 0,ie||_n.impliedNodeFormat!==nr.impliedNodeFormat):ot.getSourceFile(nr.fileName,_n,void 0,ie||_n.impliedNodeFormat!==nr.impliedNodeFormat);if(!dr)return 0;dr.packageJsonLocations=(De=_n.packageJsonLocations)!=null&&De.length?_n.packageJsonLocations:void 0,dr.packageJsonScope=_n.packageJsonScope,R.assert(!dr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Aa;if(nr.redirectInfo){if(dr!==nr.redirectInfo.unredirected)return 0;Aa=!1,dr=nr}else if(ae.redirectTargetsMap.has(nr.path)){if(dr!==nr)return 0;Aa=!1}else Aa=dr!==nr;dr.path=nr.path,dr.originalFileName=nr.originalFileName,dr.resolvedPath=nr.resolvedPath,dr.fileName=nr.fileName;const Qs=ae.sourceFileToPackageName.get(nr.path);if(Qs!==void 0){const cc=Wn.get(Qs),ih=Aa?1:0;if(cc!==void 0&&ih===1||cc===1)return 0;Wn.set(Qs,ih)}Aa?(nr.impliedNodeFormat!==dr.impliedNodeFormat?ye=1:Zp(nr.libReferenceDirectives,dr.libReferenceDirectives,wu)?nr.hasNoDefaultLib!==dr.hasNoDefaultLib?ye=1:Zp(nr.referencedFiles,dr.referencedFiles,wu)?(kt(dr),Zp(nr.imports,dr.imports,Zu)&&Zp(nr.moduleAugmentations,dr.moduleAugmentations,Zu)?(nr.flags&6291456)!==(dr.flags&6291456)?ye=1:Zp(nr.typeReferenceDirectives,dr.typeReferenceDirectives,wu)||(ye=1):ye=1):ye=1:ye=1,mn.push({oldFile:nr,newFile:dr})):yn(nr.path)&&(ye=1,mn.push({oldFile:nr,newFile:dr})),Mt.push(dr)}if(ye!==2)return ye;const Jr=mn.map(nr=>nr.oldFile);for(const nr of vn)if(!Fr(Jr,nr))for(const _n of nr.ambientModuleNames)Ue.set(_n,nr.fileName);for(const{oldFile:nr,newFile:_n}of mn){const dr=y0e(_n),Aa=fe(dr,_n);hq(dr,_n,Aa,nr.resolvedModules,t_e,B4)?(ye=1,_n.resolvedModules=lY(_n,dr,Aa,B4)):_n.resolvedModules=nr.resolvedModules;const cc=_n.typeReferenceDirectives,ih=Te(cc,_n);hq(cc,_n,ih,nr.resolvedTypeReferenceDirectiveNames,n_e,AN)?(ye=1,_n.resolvedTypeReferenceDirectiveNames=lY(_n,cc,ih,AN)):_n.resolvedTypeReferenceDirectiveNames=nr.resolvedTypeReferenceDirectiveNames}if(ye!==2)return ye;if($fe(Ve,P))return 1;if(ot.hasChangedAutomaticTypeDirectiveNames){if(ot.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Ge=S9(P,ot),!Zp(ae.getAutomaticTypeDirectiveNames(),Ge))return 1;Rn=ae.getMissingFilePaths(),R.assert(Mt.length===ae.getSourceFiles().length);for(const nr of Mt)bi.set(nr.path,nr);return ae.getFilesByNameMap().forEach((nr,_n)=>{if(!nr){bi.set(_n,nr);return}if(nr.path===_n){ae.isSourceFileFromExternalLibrary(nr)&&nt.set(nr.path,!0);return}bi.set(_n,bi.get(nr.path))}),Ee=Mt,Je=ae.getFileIncludeReasons(),ze=ae.getFileProcessingDiagnostics(),$e=ae.getResolvedTypeReferenceDirectives(),Ge=ae.getAutomaticTypeDirectiveNames(),lt=ae.getAutomaticTypeDirectiveResolutions(),Bn=ae.sourceFileToPackageName,lr=ae.redirectTargetsMap,Oi=ae.usesUriStyleNodeCoreModules,2}function J(De){return{getPrependNodes:ir,getCanonicalFileName:oe,getCommonSourceDirectory:W.getCommonSourceDirectory,getCompilerOptions:W.getCompilerOptions,getCurrentDirectory:()=>Zt,getSourceFile:W.getSourceFile,getSourceFileByPath:W.getSourceFileByPath,getSourceFiles:W.getSourceFiles,getLibFileFromReference:W.getLibFileFromReference,isSourceFileFromExternalLibrary:ai,getResolvedProjectReferenceToRedirect:Ts,getProjectReferenceRedirect:_l,isSourceOfProjectReferenceRedirect:Qd,getSymlinkCache:Ia,writeFile:De||wt,isEmitBlocked:go,readFile:Ve=>ot.readFile(Ve),fileExists:Ve=>{const It=mt(Ve);return da(It)?!0:Fr(Rn,It)?!1:ot.fileExists(Ve)},useCaseSensitiveFileNames:()=>ot.useCaseSensitiveFileNames(),getBuildInfo:Ve=>{var It;return(It=W.getBuildInfo)==null?void 0:It.call(W,Ve)},getSourceFileFromReference:(Ve,It)=>W.getSourceFileFromReference(Ve,It),redirectTargetsMap:lr,getFileIncludeReasons:W.getFileIncludeReasons,createHash:Vo(ot,ot.createHash)}}function wt(De,Ve,It,Mt,mn,vn){ot.writeFile(De,Ve,It,Mt,mn,vn)}function Et(De){var Ve,It;R.assert(!Ks(P)),(Ve=Ti)==null||Ve.push(Ti.Phase.Emit,"emitBuildInfo",{},!0),sl("beforeEmit");const Mt=eF(nF,J(De),void 0,r$,!1,!0);return sl("afterEmit"),e_("Emit","beforeEmit","afterEmit"),(It=Ti)==null||It.pop(),Mt}function ut(){return On}function nn(){return re}function ir(){return C$(re,(De,Ve)=>{var It;return(It=On[Ve])==null?void 0:It.commandLine},De=>{const Ve=mt(De),It=da(Ve);return It?It.text:bi.has(Ve)?void 0:ot.readFile(Ve)},ot)}function ai(De){return!!nt.get(De.path)}function gi(De){if(!De.isDeclarationFile)return!1;if(De.hasNoDefaultLib)return!0;if(!P.noLib)return!1;const Ve=ot.useCaseSensitiveFileNames()?mS:pS;return P.lib?Dt(P.lib,It=>Ve(De.fileName,Qi(It))):Ve(De.fileName,gn())}function ui(){return Ze||(Ze=Zye(W))}function Wi(De,Ve,It,Mt,mn,vn){var En,Wn;(En=Ti)==null||En.push(Ti.Phase.Emit,"emit",{path:De==null?void 0:De.path},!0);const Jr=al(()=>xo(W,De,Ve,It,Mt,mn,vn));return(Wn=Ti)==null||Wn.pop(),Jr}function go(De){return ea.has(mt(De))}function xo(De,Ve,It,Mt,mn,vn,En){if(!En){const Xi=A$(De,Ve,It,Mt);if(Xi)return Xi}const Wn=ui().getEmitResolver(Ks(P)?void 0:Ve,Mt);sl("beforeEmit");const Jr=eF(Wn,J(It),Ve,n$(P,vn,mn),mn,!1,En);return sl("afterEmit"),e_("Emit","beforeEmit","afterEmit"),Jr}function oo(De){return da(mt(De))}function da(De){return bi.get(De)||void 0}function Hi(De,Ve,It){return zA(De?Ve(De,It):ji(W.getSourceFiles(),Mt=>(It&&It.throwIfCancellationRequested(),Ve(Mt,It))))}function $r(De,Ve){return Hi(De,nc,Ve)}function ls(De,Ve){return Hi(De,jl,Ve)}function mi(De){var Ve;return De?(Ve=Fe.perFile)==null?void 0:Ve.get(De.path):Fe.allDiagnostics}function fa(De,Ve){return $l(De,Ve)}function wn(De){var Ve;if(Wk(De,P,W))return it;const It=Ln.getDiagnostics(De.fileName);return(Ve=De.commentDirectives)!=null&&Ve.length?La(De,De.commentDirectives,It).diagnostics:It}function pa(De,Ve){const It=W.getCompilerOptions();return!De||Ks(It)?$d(De,Ve):Hi(De,Rs,Ve)}function nc(De){return ld(De)?(De.additionalSyntacticDiagnostics||(De.additionalSyntacticDiagnostics=ou(De)),ba(De.additionalSyntacticDiagnostics,De.parseDiagnostics)):De.parseDiagnostics}function al(De){try{return De()}catch(Ve){throw Ve instanceof VI&&(Ze=void 0),Ve}}function jl(De,Ve){return ba(uF($l(De,Ve),P),wn(De))}function $l(De,Ve){return Zc(De,Ve,Fe,Wl)}function Wl(De,Ve){return al(()=>{if(Wk(De,P,W))return it;const It=ui();R.assert(!!De.bindDiagnostics);const mn=(De.scriptKind===1||De.scriptKind===2)&&YR(De,P),vn=HM(De,P.checkJs),Wn=!(!!De.checkJsDirective&&De.checkJsDirective.enabled===!1)&&(De.scriptKind===3||De.scriptKind===4||De.scriptKind===5||vn||mn||De.scriptKind===7);let Jr=Wn?De.bindDiagnostics:it,Xi=Wn?It.getDiagnostics(De,Ve):it;return vn&&(Jr=ur(Jr,nr=>hF.has(nr.code)),Xi=ur(Xi,nr=>hF.has(nr.code))),Io(De,Wn&&!vn,Jr,Xi,mn?De.jsDocDiagnostics:void 0)})}function Io(De,Ve,...It){var Mt;const mn=Ha(It);if(!Ve||!((Mt=De.commentDirectives)!=null&&Mt.length))return mn;const{diagnostics:vn,directives:En}=La(De,De.commentDirectives,mn);for(const Wn of En.getUnusedExpectations())vn.push(Nq(De,Wn.range,m.Unused_ts_expect_error_directive));return vn}function La(De,Ve,It){const Mt=l_e(De,Ve);return{diagnostics:It.filter(vn=>Hl(vn,Mt)===-1),directives:Mt}}function Qo(De,Ve){return al(()=>ui().getSuggestionDiagnostics(De,Ve))}function Hl(De,Ve){const{file:It,start:Mt}=De;if(!It)return-1;const mn=mg(It);let vn=AD(mn,Mt).line-1;for(;vn>=0;){if(Ve.markUsed(vn))return vn;const En=It.text.slice(mn[vn],mn[vn+1]).trim();if(En!==""&&!/^(\s*)\/\/(.*)$/.test(En))return-1;vn--}return-1}function ou(De){return al(()=>{const Ve=[];return It(De,De),P6(De,It,Mt),Ve;function It(Wn,Jr){switch(Jr.kind){case 166:case 169:case 171:if(Jr.questionToken===Wn)return Ve.push(En(Wn,m.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 170:case 173:case 174:case 175:case 215:case 259:case 216:case 257:if(Jr.type===Wn)return Ve.push(En(Wn,m.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Wn.kind){case 270:if(Wn.isTypeOnly)return Ve.push(En(Jr,m._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 275:if(Wn.isTypeOnly)return Ve.push(En(Wn,m._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 273:case 278:if(Wn.isTypeOnly)return Ve.push(En(Wn,m._0_declarations_can_only_be_used_in_TypeScript_files,Nd(Wn)?"import...type":"export...type")),"skip";break;case 268:return Ve.push(En(Wn,m.import_can_only_be_used_in_TypeScript_files)),"skip";case 274:if(Wn.isExportEquals)return Ve.push(En(Wn,m.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 294:if(Wn.token===117)return Ve.push(En(Wn,m.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 261:const nr=bo(118);return R.assertIsDefined(nr),Ve.push(En(Wn,m._0_declarations_can_only_be_used_in_TypeScript_files,nr)),"skip";case 264:const _n=Wn.flags&16?bo(143):bo(142);return R.assertIsDefined(_n),Ve.push(En(Wn,m._0_declarations_can_only_be_used_in_TypeScript_files,_n)),"skip";case 262:return Ve.push(En(Wn,m.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 263:const dr=R.checkDefined(bo(92));return Ve.push(En(Wn,m._0_declarations_can_only_be_used_in_TypeScript_files,dr)),"skip";case 232:return Ve.push(En(Wn,m.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 231:return Ve.push(En(Wn.type,m.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return Ve.push(En(Wn.type,m.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 213:R.fail()}}function Mt(Wn,Jr){if(vX(Jr)){const Xi=$t(Jr.modifiers,qu);Xi&&Ve.push(En(Xi,m.Decorators_are_not_valid_here))}else if(_x(Jr)&&Jr.modifiers){const Xi=ii(Jr.modifiers,qu);if(Xi>=0){if(Ba(Jr)&&!P.experimentalDecorators)Ve.push(En(Jr.modifiers[Xi],m.Decorators_are_not_valid_here));else if(Bc(Jr)){const nr=ii(Jr.modifiers,P5);if(nr>=0){const _n=ii(Jr.modifiers,Zme);if(Xi>nr&&_n>=0&&Xi<_n)Ve.push(En(Jr.modifiers[Xi],m.Decorators_are_not_valid_here));else if(nr>=0&&Xi<nr){const dr=ii(Jr.modifiers,qu,nr);dr>=0&&Ve.push($o(En(Jr.modifiers[dr],m.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),En(Jr.modifiers[Xi],m.Decorator_used_before_export_here)))}}}}}switch(Jr.kind){case 260:case 228:case 171:case 173:case 174:case 175:case 215:case 259:case 216:if(Wn===Jr.typeParameters)return Ve.push(vn(Wn,m.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 240:if(Wn===Jr.modifiers)return mn(Jr.modifiers,Jr.kind===240),"skip";break;case 169:if(Wn===Jr.modifiers){for(const Xi of Wn)po(Xi)&&Xi.kind!==124&&Xi.kind!==127&&Ve.push(En(Xi,m.The_0_modifier_can_only_be_used_in_TypeScript_files,bo(Xi.kind)));return"skip"}break;case 166:if(Wn===Jr.modifiers&&Dt(Wn,po))return Ve.push(vn(Wn,m.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 210:case 211:case 230:case 282:case 283:case 212:if(Wn===Jr.typeArguments)return Ve.push(vn(Wn,m.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function mn(Wn,Jr){for(const Xi of Wn)switch(Xi.kind){case 85:if(Jr)continue;case 123:case 121:case 122:case 146:case 136:case 126:case 161:case 101:case 145:Ve.push(En(Xi,m.The_0_modifier_can_only_be_used_in_TypeScript_files,bo(Xi.kind)));break;case 124:case 93:case 88:case 127:}}function vn(Wn,Jr,Xi,nr,_n){const dr=Wn.pos;return Pc(De,dr,Wn.end-dr,Jr,Xi,nr,_n)}function En(Wn,Jr,Xi,nr,_n){return hd(De,Wn,Jr,Xi,nr,_n)}})}function $d(De,Ve){return Zc(De,Ve,Be,lc)}function lc(De,Ve){return al(()=>{const It=ui().getEmitResolver(De,Ve);return qve(J(co),It,De)||it})}function Zc(De,Ve,It,Mt){var mn;const vn=De?(mn=It.perFile)==null?void 0:mn.get(De.path):It.allDiagnostics;if(vn)return vn;const En=Mt(De,Ve);return De?(It.perFile||(It.perFile=new Map)).set(De.path,En):It.allDiagnostics=En,En}function Rs(De,Ve){return De.isDeclarationFile?[]:$d(De,Ve)}function yl(){return zA(ba(Ln.getGlobalDiagnostics(),nl()))}function nl(){if(!P.configFile)return it;let De=Ln.getDiagnostics(P.configFile.fileName);return fs(Ve=>{De=ba(De,Ln.getDiagnostics(Ve.sourceFile.fileName))}),De}function Ys(){return ne.length?zA(ui().getGlobalDiagnostics().slice()):it}function rn(){return ue||it}function zl(De,Ve,It,Mt){At(Xo(De),Ve,It,void 0,Mt)}function wu(De,Ve){return De.fileName===Ve.fileName}function Zu(De,Ve){return De.kind===79?Ve.kind===79&&De.escapedText===Ve.escapedText:Ve.kind===10&&De.text===Ve.text}function _e(De,Ve){const It=O.createStringLiteral(De),Mt=O.createImportDeclaration(void 0,void 0,It,void 0);return JS(Mt,2),jo(It,Mt),jo(Mt,Ve),It.flags&=-9,Mt.flags&=-9,It}function kt(De){if(De.imports)return;const Ve=ld(De),It=tc(De);let Mt,mn,vn;if((Y_(P)||It)&&!De.isDeclarationFile){P.importHelpers&&(Mt=[_e(g1,De)]);const nr=jP(VP(P,De),P);nr&&(Mt||(Mt=[])).push(_e(nr,De))}for(const nr of De.statements)Wn(nr,!1);const En=Ve&&El(P)!==100;(De.flags&2097152||En)&&Jr(De),De.imports=Mt||it,De.moduleAugmentations=mn||it,De.ambientModuleNames=vn||it;return;function Wn(nr,_n){if(JD(nr)){const dr=fC(nr);dr&&Wo(dr)&&dr.text&&(!_n||!zc(dr.text))&&(Yv(nr,!1),Mt=Pn(Mt,dr),!Oi&&bt===0&&!De.isDeclarationFile&&(Oi=xa(dr.text,"node:")))}else if(Xl(nr)&&Hu(nr)&&(_n||Qr(nr,2)||De.isDeclarationFile)){nr.name.parent=nr;const dr=K_(nr.name);if(It||_n&&!zc(dr))(mn||(mn=[])).push(nr.name);else if(!_n){De.isDeclarationFile&&(vn||(vn=[])).push(dr);const Aa=nr.body;if(Aa)for(const Qs of Aa.statements)Wn(Qs,!0)}}}function Jr(nr){const _n=/import|require/g;for(;_n.exec(nr.text)!==null;){const dr=Xi(nr,_n.lastIndex);En&&wd(dr,!0)||pf(dr)&&dr.arguments.length>=1&&As(dr.arguments[0])?(Yv(dr,!1),Mt=Pn(Mt,dr.arguments[0])):l1(dr)&&(Yv(dr,!1),Mt=Pn(Mt,dr.argument.literal))}}function Xi(nr,_n){let dr=nr;const Aa=Qs=>{if(Qs.pos<=_n&&(_n<Qs.end||_n===Qs.end&&Qs.kind===1))return Qs};for(;;){const Qs=Ve&&Df(dr)&&Ie(dr.jsDoc,Aa)||Pa(dr,Aa);if(!Qs)return dr;dr=Qs}}}function Ht(De){const Ve=V_(De.fileName),It=X6.get(Ve);if(It)return oo(Qi(It))}function Z(De,Ve){return st(aF(Ve.fileName,De.fileName),oo)}function st(De,Ve,It,Mt){if(WA(De)){const mn=ot.getCanonicalFileName(De);if(!P.allowNonTsExtensions&&!Ie(Ha(Ii),En=>_c(mn,En))){It&&(zS(mn)?It(m.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,De):It(m.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,De,"'"+Ha(pr).join("', '")+"'"));return}const vn=Ve(De);if(It)if(vn)S1(Mt)&&mn===ot.getCanonicalFileName(da(Mt.file).fileName)&&It(m.A_file_cannot_have_a_reference_to_itself);else{const En=_l(De);En?It(m.Output_file_0_has_not_been_built_from_source_file_1,En,De):It(m.File_0_not_found,De)}return vn}else{const mn=P.allowNonTsExtensions&&Ve(De);if(mn)return mn;if(It&&P.allowNonTsExtensions){It(m.File_0_not_found,De);return}const vn=Ie(pr[0],En=>Ve(De+En));return It&&!vn&&It(m.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,De,"'"+Ha(pr).join("', '")+"'"),vn}}function At(De,Ve,It,Mt,mn){st(De,vn=>Sa(vn,Ve,It,mn,Mt),(vn,...En)=>zo(void 0,mn,vn,En),mn)}function fn(De,Ve){return At(De,!1,!1,void 0,Ve)}function Dr(De,Ve,It){!S1(It)&&Dt(Je.get(Ve.path),S1)?zo(Ve,It,m.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ve.fileName,De]):zo(Ve,It,m.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[De,Ve.fileName])}function Mr(De,Ve,It,Mt,mn,vn,En){var Wn;const Jr=th.createRedirectedSourceFile({redirectTarget:De,unredirected:Ve});return Jr.fileName=It,Jr.path=Mt,Jr.resolvedPath=mn,Jr.originalFileName=vn,Jr.packageJsonLocations=(Wn=En.packageJsonLocations)!=null&&Wn.length?En.packageJsonLocations:void 0,Jr.packageJsonScope=En.packageJsonScope,nt.set(Mt,bt>0),Jr}function Sa(De,Ve,It,Mt,mn){var vn,En;(vn=Ti)==null||vn.push(Ti.Phase.Program,"findSourceFile",{fileName:De,isDefaultLib:Ve||void 0,fileIncludeKind:oM[Mt.kind]});const Wn=yo(De,Ve,It,Mt,mn);return(En=Ti)==null||En.pop(),Wn}function cs(De,Ve,It,Mt){const mn=x$(Ma(De,Zt),Ve==null?void 0:Ve.getPackageJsonInfoCache(),It,Mt),vn=ns(Mt),En=UR(Mt);return typeof mn=="object"?so(Li({},mn),{languageVersion:vn,setExternalModuleIndicator:En}):{languageVersion:vn,impliedNodeFormat:mn,setExternalModuleIndicator:En}}function yo(De,Ve,It,Mt,mn){var vn,En;const Wn=mt(De);if(gt){let dr=pl(Wn);if(!dr&&ot.realpath&&P.preserveSymlinks&&vd(De)&&bu(De,Gy)){const Aa=mt(ot.realpath(De));Aa!==Wn&&(dr=pl(Aa))}if(dr){const Aa=za(dr)?Sa(dr,Ve,It,Mt,mn):void 0;return Aa&&Qa(Aa,Wn,void 0),Aa}}const Jr=De;if(bi.has(Wn)){const dr=bi.get(Wn);if(Ho(dr||void 0,Mt),dr&&P.forceConsistentCasingInFileNames!==!1){const Aa=dr.fileName;mt(Aa)!==mt(De)&&(De=_l(De)||De);const cc=Sz(Aa,Zt),ih=Sz(De,Zt);cc!==ih&&Dr(De,dr,Mt)}return dr&&nt.get(dr.path)&&bt===0?(nt.set(dr.path,!1),P.noResolve||(Uf(dr,Ve),Ce(dr)),P.noLib||ko(dr),zt.set(dr.path,!1),dt(dr)):dr&&zt.get(dr.path)&&bt<Ct&&(zt.set(dr.path,!1),dt(dr)),dr||void 0}let Xi;if(S1(Mt)&&!gt){const dr=mc(De);if(dr){if(Ks(dr.commandLine.options))return;const Aa=bd(dr,De);De=Aa,Xi=mt(Aa)}}const nr=cs(De,Or,ot,P),_n=ot.getSourceFile(De,nr,dr=>zo(void 0,Mt,m.Cannot_read_file_0_Colon_1,[De,dr]),ie||((vn=ae==null?void 0:ae.getSourceFileByPath(mt(De)))==null?void 0:vn.impliedNodeFormat)!==nr.impliedNodeFormat);if(mn){const dr=LT(mn),Aa=In.get(dr);if(Aa){const Qs=Mr(Aa,_n,De,Wn,mt(De),Jr,nr);return lr.add(Aa.path,De),Qa(Qs,Wn,Xi),Ho(Qs,Mt),Bn.set(Wn,jM(mn)),he.push(Qs),Qs}else _n&&(In.set(dr,_n),Bn.set(Wn,jM(mn)))}if(Qa(_n,Wn,Xi),_n){if(nt.set(Wn,bt>0),_n.fileName=De,_n.path=Wn,_n.resolvedPath=mt(De),_n.originalFileName=Jr,_n.packageJsonLocations=(En=nr.packageJsonLocations)!=null&&En.length?nr.packageJsonLocations:void 0,_n.packageJsonScope=nr.packageJsonScope,Ho(_n,Mt),ot.useCaseSensitiveFileNames()){const dr=V_(Wn),Aa=an.get(dr);Aa?Dr(De,Aa,Mt):an.set(dr,_n)}pn=pn||_n.hasNoDefaultLib&&!It,P.noResolve||(Uf(_n,Ve),Ce(_n)),P.noLib||ko(_n),dt(_n),Ve?ce.push(_n):he.push(_n)}return _n}function Ho(De,Ve){De&&Je.add(De.path,Ve)}function Qa(De,Ve,It){It?(bi.set(It,De),bi.set(Ve,De||!1)):bi.set(Ve,De)}function _l(De){const Ve=mc(De);return Ve&&bd(Ve,De)}function mc(De){if(!(!On||!On.length||vd(De)||_c(De,".json")))return Ts(De)}function bd(De,Ve){const It=Ks(De.commandLine.options);return It?Xb(It,".d.ts"):O4(Ve,De.commandLine,!ot.useCaseSensitiveFileNames())}function Ts(De){Hr===void 0&&(Hr=new Map,fs(It=>{mt(P.configFilePath)!==It.sourceFile.path&&It.commandLine.fileNames.forEach(Mt=>Hr.set(mt(Mt),It.sourceFile.path))}));const Ve=Hr.get(mt(De));return Ve&&ql(Ve)}function fs(De){return g0e(On,De)}function pl(De){if(vd(De))return Oe===void 0&&(Oe=new Map,fs(Ve=>{const It=Ks(Ve.commandLine.options);if(It){const Mt=Xb(It,".d.ts");Oe.set(mt(Mt),!0)}else{const Mt=Ld(()=>M4(Ve.commandLine,!ot.useCaseSensitiveFileNames()));Ie(Ve.commandLine.fileNames,mn=>{if(!vd(mn)&&!_c(mn,".json")){const vn=O4(mn,Ve.commandLine,!ot.useCaseSensitiveFileNames(),Mt);Oe.set(mt(vn),mn)}})}})),Oe.get(De)}function Qd(De){return gt&&!!Ts(De)}function ql(De){if(Ir)return Ir.get(De)||void 0}function Uf(De,Ve){Ie(De.referencedFiles,(It,Mt)=>{At(aF(It.fileName,De.fileName),Ve,!1,void 0,{kind:4,file:De.path,index:Mt})})}function Ce(De){const Ve=De.typeReferenceDirectives;if(!Ve.length){De.resolvedTypeReferenceDirectiveNames=void 0;return}const It=Te(Ve,De);for(let Mt=0;Mt<Ve.length;Mt++){const mn=De.typeReferenceDirectives[Mt],vn=It[Mt],En=V_(mn.fileName);e_e(De,En,vn,TN(mn,De.impliedNodeFormat));const Wn=mn.resolutionMode||De.impliedNodeFormat;Wn&&El(P)!==3&&El(P)!==99&&(ze!=null?ze:ze=[]).push({kind:2,diagnostics:[Nq(De,mn,m.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)]}),Nt(En,Wn,vn,{kind:5,file:De.path,index:Mt})}}function Nt(De,Ve,It,Mt){var mn,vn;(mn=Ti)==null||mn.push(Ti.Phase.Program,"processTypeReferenceDirective",{directive:De,hasResolved:!!It.resolvedTypeReferenceDirective,refKind:Mt.kind,refPath:S1(Mt)?Mt.file:void 0}),Nn(De,Ve,It,Mt),(vn=Ti)==null||vn.pop()}function Nn(De,Ve,It,Mt){var mn;He(It);const vn=(mn=$e.get(De,Ve))==null?void 0:mn.resolvedTypeReferenceDirective;if(vn&&vn.primary)return;let En=!0;const{resolvedTypeReferenceDirective:Wn}=It;if(Wn){if(Wn.isExternalLibraryImport&&bt++,Wn.primary)At(Wn.resolvedFileName,!1,!1,Wn.packageId,Mt);else if(vn){if(Wn.resolvedFileName!==vn.resolvedFileName){const Jr=ot.readFile(Wn.resolvedFileName),Xi=oo(vn.resolvedFileName);Jr!==Xi.text&&zo(Xi,Mt,m.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[De,Wn.resolvedFileName,vn.resolvedFileName])}En=!1}else At(Wn.resolvedFileName,!1,!1,Wn.packageId,Mt);Wn.isExternalLibraryImport&&bt--}else zo(void 0,Mt,m.Cannot_find_type_definition_file_for_0,[De]);En&&$e.set(De,Ve,It)}function Qi(De){const Ve=De.split(".");let It=Ve[1],Mt=2;for(;Ve[Mt]&&Ve[Mt]!=="d";)It+=(Mt===2?"/":"-")+Ve[Mt],Mt++;const mn=Fi(Zt,`__lib_node_modules_lookup_${De}__.ts`),vn=S4("@typescript/lib-"+It,mn,{moduleResolution:2},ot,Or);return vn!=null&&vn.resolvedModule?vn.resolvedModule.resolvedFileName:Fi(jn,De)}function ko(De){Ie(De.libReferenceDirectives,(Ve,It)=>{const Mt=V_(Ve.fileName),mn=X6.get(Mt);if(mn)zl(Qi(mn),!0,!0,{kind:7,file:De.path,index:It});else{const vn=UA(BI(Mt,"lib."),".d.ts"),En=FI(vn,K6,gl),Wn=En?m.Cannot_find_lib_definition_for_0_Did_you_mean_1:m.Cannot_find_lib_definition_for_0;(ze||(ze=[])).push({kind:0,reason:{kind:7,file:De.path,index:It},diagnostic:Wn,args:[Mt,En]})}})}function oe(De){return ot.getCanonicalFileName(De)}function dt(De){var Ve;if(kt(De),De.imports.length||De.moduleAugmentations.length){const It=y0e(De),Mt=fe(It,De);R.assert(Mt.length===It.length);const mn=(gt?(Ve=cn(De))==null?void 0:Ve.commandLine.options:void 0)||P;for(let vn=0;vn<It.length;vn++){const En=Mt[vn].resolvedModule,Wn=It[vn].text,Jr=Dp(De,It[vn]);if(Zfe(De,Wn,Mt[vn],Jr),et(De,Wn,Mt[vn],Jr),!En)continue;const Xi=En.isExternalLibraryImport,nr=!KR(En.extension),_n=Xi&&nr,dr=En.resolvedFileName;Xi&&bt++;const Aa=_n&&bt>Ct,Qs=dr&&!L$(mn,En,De)&&!mn.noResolve&&vn<De.imports.length&&!Aa&&!(nr&&!jR(mn))&&(_r(De.imports[vn])||!(De.imports[vn].flags&8388608));Aa?zt.set(De.path,!0):Qs&&Sa(dr,!1,!1,{kind:3,file:De.path,index:vn},En.packageId),Xi&&bt--}}else De.resolvedModules=void 0}function Bt(De,Ve){let It=!0;const Mt=ot.getCanonicalFileName(Ma(Ve,Zt));for(const mn of De)mn.isDeclarationFile||ot.getCanonicalFileName(Ma(mn.fileName,Zt)).indexOf(Mt)!==0&&(Ss(mn,m.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[mn.fileName,Ve]),It=!1);return It}function Ft(De){Ir||(Ir=new Map);const Ve=F4(De),It=mt(Ve),Mt=Ir.get(It);if(Mt!==void 0)return Mt||void 0;let mn,vn;if(ot.getParsedCommandLine){if(mn=ot.getParsedCommandLine(Ve),!mn){Qa(void 0,It,void 0),Ir.set(It,!1);return}vn=R.checkDefined(mn.options.configFile),R.assert(!vn.path||vn.path===It),Qa(vn,It,void 0)}else{const Wn=Ma(vi(Ve),ot.getCurrentDirectory());if(vn=ot.getSourceFile(Ve,100),Qa(vn,It,void 0),vn===void 0){Ir.set(It,!1);return}mn=W6(vn,sn,Wn,void 0,Ve)}vn.fileName=Ve,vn.path=It,vn.resolvedPath=It,vn.originalFileName=Ve;const En={commandLine:mn,sourceFile:vn};return Ir.set(It,En),mn.projectReferences&&(En.references=mn.projectReferences.map(Ft)),En}function un(){P.strictPropertyInitialization&&!A_(P,"strictNullChecks")&&Zo(m.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),P.exactOptionalPropertyTypes&&!A_(P,"strictNullChecks")&&Zo(m.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(P.isolatedModules||P.verbatimModuleSyntax)&&(P.out&&Zo(m.Option_0_cannot_be_specified_with_option_1,"out",P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),P.outFile&&Zo(m.Option_0_cannot_be_specified_with_option_1,"outFile",P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules")),P.inlineSourceMap&&(P.sourceMap&&Zo(m.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),P.mapRoot&&Zo(m.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),P.composite&&(P.declaration===!1&&Zo(m.Composite_projects_may_not_disable_declaration_emit,"declaration"),P.incremental===!1&&Zo(m.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const De=Ks(P);if(P.tsBuildInfoFile?VR(P)||Zo(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):P.incremental&&!De&&!P.configFilePath&&Ln.add(Gs(m.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),ri(),Ed(),P.composite){const En=new Set(ne.map(mt));for(const Wn of Ee)BS(Wn,W)&&!En.has(Wn.path)&&Ss(Wn,m.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[Wn.fileName,P.configFilePath||""])}if(P.paths){for(const En in P.paths)if(Fs(P.paths,En))if(UJ(En)||rc(!0,En,m.Pattern_0_can_have_at_most_one_Asterisk_character,En),ja(P.paths[En])){const Wn=P.paths[En].length;Wn===0&&rc(!1,En,m.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,En);for(let Jr=0;Jr<Wn;Jr++){const Xi=P.paths[En][Jr],nr=typeof Xi;nr==="string"?(UJ(Xi)||vf(En,Jr,m.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,Xi,En),!P.baseUrl&&!wf(Xi)&&!jI(Xi)&&vf(En,Jr,m.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):vf(En,Jr,m.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,Xi,En,nr)}}else rc(!1,En,m.Substitutions_for_pattern_0_should_be_an_array,En)}!P.sourceMap&&!P.inlineSourceMap&&(P.inlineSources&&Zo(m.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),P.sourceRoot&&Zo(m.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),P.out&&P.outFile&&Zo(m.Option_0_cannot_be_specified_with_option_1,"out","outFile"),P.mapRoot&&!(P.sourceMap||P.declarationMap)&&Zo(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),P.declarationDir&&(Q_(P)||Zo(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),De&&Zo(m.Option_0_cannot_be_specified_with_option_1,"declarationDir",P.out?"out":"outFile")),P.declarationMap&&!Q_(P)&&Zo(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),P.lib&&P.noLib&&Zo(m.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),P.noImplicitUseStrict&&A_(P,"alwaysStrict")&&Zo(m.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");const Ve=ns(P),It=$t(Ee,En=>tc(En)&&!En.isDeclarationFile);if(P.isolatedModules||P.verbatimModuleSyntax)P.module===0&&Ve<2&&P.isolatedModules&&Zo(m.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),P.preserveConstEnums===!1&&Zo(m.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(It&&Ve<2&&P.module===0){const En=Gb(It,typeof It.externalModuleIndicator=="boolean"?It:It.externalModuleIndicator);Ln.add(Pc(It,En.start,En.length,m.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(De&&!P.emitDeclarationOnly){if(P.module&&!(P.module===2||P.module===4))Zo(m.Only_amd_and_system_modules_are_supported_alongside_0,P.out?"out":"outFile","module");else if(P.module===void 0&&It){const En=Gb(It,typeof It.externalModuleIndicator=="boolean"?It:It.externalModuleIndicator);Ln.add(Pc(It,En.start,En.length,m.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,P.out?"out":"outFile"))}}if(WT(P)&&(El(P)===1?Zo(m.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):FP(P)||Zo(m.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),P.outDir||P.rootDir||P.sourceRoot||P.mapRoot){const En=Jt();P.outDir&&En===""&&Ee.some(Wn=>nm(Wn.fileName)>1)&&Zo(m.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}P.useDefineForClassFields&&Ve===0&&Zo(m.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),P.checkJs&&!jR(P)&&Ln.add(Gs(m.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),P.emitDeclarationOnly&&(Q_(P)||Zo(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),P.noEmit&&Zo(m.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),P.emitDecoratorMetadata&&!P.experimentalDecorators&&Zo(m.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),P.jsxFactory?(P.reactNamespace&&Zo(m.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(P.jsx===4||P.jsx===5)&&Zo(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",b4.get(""+P.jsx)),mx(P.jsxFactory,Ve)||D_("jsxFactory",m.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFactory)):P.reactNamespace&&!W_(P.reactNamespace,Ve)&&D_("reactNamespace",m.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,P.reactNamespace),P.jsxFragmentFactory&&(P.jsxFactory||Zo(m.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(P.jsx===4||P.jsx===5)&&Zo(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",b4.get(""+P.jsx)),mx(P.jsxFragmentFactory,Ve)||D_("jsxFragmentFactory",m.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFragmentFactory)),P.reactNamespace&&(P.jsx===4||P.jsx===5)&&Zo(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",b4.get(""+P.jsx)),P.jsxImportSource&&P.jsx===2&&Zo(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",b4.get(""+P.jsx)),P.preserveValueImports&&uu(P)<5&&Zo(m.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const Mt=uu(P);P.verbatimModuleSyntax&&((Mt===2||Mt===3||Mt===4)&&Zo(m.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),P.isolatedModules&&tt("isolatedModules","verbatimModuleSyntax"),P.preserveValueImports&&tt("preserveValueImports","verbatimModuleSyntax"),P.importsNotUsedAsValues&&tt("importsNotUsedAsValues","verbatimModuleSyntax")),P.allowImportingTsExtensions&&!(P.noEmit||P.emitDeclarationOnly)&&D_("allowImportingTsExtensions",m.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const mn=El(P);if(P.resolvePackageJsonExports&&!HS(mn)&&Zo(m.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),P.resolvePackageJsonImports&&!HS(mn)&&Zo(m.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),P.customConditions&&!HS(mn)&&Zo(m.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),mn===100&&!FJ(Mt)&&D_("moduleResolution",m.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),!P.noEmit&&!P.suppressOutputPathCheck){const En=J(),Wn=new Set;i$(En,Jr=>{P.emitDeclarationOnly||vn(Jr.jsFilePath,Wn),vn(Jr.declarationFilePath,Wn)})}function vn(En,Wn){if(En){const Jr=mt(En);if(bi.has(Jr)){let nr;P.configFilePath||(nr=Na(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)),nr=Na(nr,m.Cannot_write_file_0_because_it_would_overwrite_input_file,En),Kt(En,MP(nr))}const Xi=ot.useCaseSensitiveFileNames()?Jr:V_(Jr);Wn.has(Xi)?Kt(En,Gs(m.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,En)):Wn.add(Xi)}}}function Vn(){const De=P.ignoreDeprecations;if(De){if(De==="5.0")return new j_(De);z()}return j_.zero}function Rr(De,Ve,It,Mt){const mn=new j_(De),vn=new j_(Ve),En=new j_(be||$),Wn=Vn(),Jr=vn.compareTo(En)!==1,Xi=!Jr&&Wn.compareTo(mn)===-1;(Jr||Xi)&&Mt((nr,_n,dr)=>{Jr?_n===void 0?It(nr,_n,dr,m.Option_0_has_been_removed_Please_remove_it_from_your_configuration,nr):It(nr,_n,dr,m.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,nr,_n):_n===void 0?It(nr,_n,dr,m.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,nr,Ve,De):It(nr,_n,dr,m.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,nr,_n,Ve,De)})}function ri(){function De(Ve,It,Mt,mn,vn,En,Wn,Jr){if(Mt){const Xi=Na(void 0,m.Use_0_instead,Mt),nr=Na(Xi,mn,vn,En,Wn,Jr);op(!It,Ve,void 0,nr)}else op(!It,Ve,void 0,mn,vn,En,Wn,Jr)}Rr("5.0","5.5",De,Ve=>{P.target===0&&Ve("target","ES3"),P.noImplicitUseStrict&&Ve("noImplicitUseStrict"),P.keyofStringsOnly&&Ve("keyofStringsOnly"),P.suppressExcessPropertyErrors&&Ve("suppressExcessPropertyErrors"),P.suppressImplicitAnyIndexErrors&&Ve("suppressImplicitAnyIndexErrors"),P.noStrictGenericChecks&&Ve("noStrictGenericChecks"),P.charset&&Ve("charset"),P.out&&Ve("out",void 0,"outFile"),P.importsNotUsedAsValues&&Ve("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),P.preserveValueImports&&Ve("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Mi(De,Ve,It){function Mt(mn,vn,En,Wn,Jr,Xi,nr,_n){Ef(Ve,It,Wn,Jr,Xi,nr,_n)}Rr("5.0","5.5",Mt,mn=>{De.prepend&&mn("prepend")})}function Wa(De,Ve,It,Mt){var mn;let vn,En,Wn=S1(Ve)?Ve:void 0;De&&((mn=Je.get(De.path))==null||mn.forEach(dr)),Ve&&dr(Ve),Wn&&(vn==null?void 0:vn.length)===1&&(vn=void 0);const Jr=Wn&&P4(da,Wn),Xi=vn&&Na(vn,m.The_file_is_in_the_program_because_Colon),nr=De&&J$(De),_n=Na(nr?Xi?[Xi,...nr]:nr:Xi,It,...Mt||it);return Jr&&cL(Jr)?$M(Jr.file,Jr.pos,Jr.end-Jr.pos,_n,En):MP(_n,En);function dr(Aa){(vn||(vn=[])).push(Y$(W,Aa)),!Wn&&S1(Aa)?Wn=Aa:Wn!==Aa&&(En=Pn(En,$s(Aa))),Aa===Ve&&(Ve=void 0)}}function zo(De,Ve,It,Mt){(ze||(ze=[])).push({kind:1,file:De&&De.path,fileProcessingReason:Ve,diagnostic:It,args:Mt})}function Ss(De,Ve,It){Ln.add(Wa(De,void 0,Ve,It))}function $s(De){if(S1(De)){const Mt=P4(da,De);let mn;switch(De.kind){case 3:mn=m.File_is_included_via_import_here;break;case 4:mn=m.File_is_included_via_reference_here;break;case 5:mn=m.File_is_included_via_type_library_reference_here;break;case 7:mn=m.File_is_included_via_library_reference_here;break;default:R.assertNever(De)}return cL(Mt)?Pc(Mt.file,Mt.pos,Mt.end-Mt.pos,mn):void 0}if(!P.configFile)return;let Ve,It;switch(De.kind){case 0:if(!P.configFile.configFileSpecs)return;const Mt=Ma(ne[De.index],Zt),mn=K$(W,Mt);if(mn){Ve=aP(P.configFile,"files",mn),It=m.File_is_matched_by_files_list_specified_here;break}const vn=X$(W,Mt);if(!vn||!za(vn))return;Ve=aP(P.configFile,"include",vn),It=m.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const En=R.checkDefined(On==null?void 0:On[De.index]),Wn=xN(re,On,(dr,Aa,Qs)=>dr===En?{sourceFile:(Aa==null?void 0:Aa.sourceFile)||P.configFile,index:Qs}:void 0);if(!Wn)return;const{sourceFile:Jr,index:Xi}=Wn,nr=qt(YD(Jr,"references"),dr=>Ju(dr.initializer)?dr.initializer:void 0);return nr&&nr.elements.length>Xi?hd(Jr,nr.elements[Xi],De.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(!P.types)return;Ve=w_("types",De.typeReference),It=m.File_is_entry_point_of_type_library_specified_here;break;case 6:if(De.index!==void 0){Ve=w_("lib",P.lib[De.index]),It=m.File_is_library_specified_here;break}const _n=ff(Q6.type,(dr,Aa)=>dr===ns(P)?Aa:void 0);Ve=_n?bf("target",_n):void 0,It=m.File_is_default_library_for_target_specified_here;break;default:R.assertNever(De)}return Ve&&hd(P.configFile,Ve,It)}function Ed(){const De=P.suppressOutputPathCheck?void 0:Vy(P);xN(re,On,(Ve,It,Mt)=>{const mn=(It?It.commandLine.projectReferences:re)[Mt],vn=It&&It.sourceFile;if(Mi(mn,vn,Mt),!Ve){Ef(vn,Mt,m.File_0_not_found,mn.path);return}const En=Ve.commandLine.options;if((!En.composite||En.noEmit)&&(It?It.commandLine.fileNames:ne).length&&(En.composite||Ef(vn,Mt,m.Referenced_project_0_must_have_setting_composite_Colon_true,mn.path),En.noEmit&&Ef(vn,Mt,m.Referenced_project_0_may_not_disable_emit,mn.path)),mn.prepend){const Wn=Ks(En);Wn?ot.fileExists(Wn)||Ef(vn,Mt,m.Output_file_0_from_project_1_does_not_exist,Wn,mn.path):Ef(vn,Mt,m.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,mn.path)}!It&&De&&De===Vy(En)&&(Ef(vn,Mt,m.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,De,mn.path),ea.set(mt(De),!0))})}function vf(De,Ve,It,Mt,mn,vn){let En=!0;const Wn=Du();for(const Jr of Wn)if(Is(Jr.initializer))for(const Xi of lC(Jr.initializer,De)){const nr=Xi.initializer;Ju(nr)&&nr.elements.length>Ve&&(Ln.add(hd(P.configFile,nr.elements[Ve],It,Mt,mn,vn)),En=!1)}En&&Ln.add(Gs(It,Mt,mn,vn))}function rc(De,Ve,It,Mt){let mn=!0;const vn=Du();for(const En of vn)Is(En.initializer)&&V(En.initializer,De,Ve,void 0,It,Mt)&&(mn=!1);mn&&Ln.add(Gs(It,Mt))}function Zd(De){const Ve=Fp();return Ve&&lC(Ve,De)}function Du(){return Zd("paths")||it}function bf(De,Ve){const It=Zd(De);return It&&qt(It,Mt=>Wo(Mt.initializer)&&Mt.initializer.text===Ve?Mt.initializer:void 0)}function w_(De,Ve){const It=Fp();return It&&L_e(It,De,Ve)}function Zo(De,Ve,It,Mt){op(!0,Ve,It,De,Ve,It,Mt)}function D_(De,Ve,It,Mt){op(!1,De,void 0,Ve,It,Mt)}function Ef(De,Ve,It,Mt,mn,vn,En){const Wn=qt(YD(De||P.configFile,"references"),Jr=>Ju(Jr.initializer)?Jr.initializer:void 0);Wn&&Wn.elements.length>Ve?Ln.add(hd(De||P.configFile,Wn.elements[Ve],It,Mt,mn,vn,En)):Ln.add(Gs(It,Mt,mn,vn,En))}function op(De,Ve,It,Mt,mn,vn,En,Wn){const Jr=Fp();(!Jr||!V(Jr,De,Ve,It,Mt,mn,vn,En,Wn))&&("messageText"in Mt?Ln.add(MP(Mt)):Ln.add(Gs(Mt,mn,vn,En,Wn)))}function Fp(){if(ta===void 0){ta=!1;const De=pk(P.configFile);if(De){for(const Ve of lC(De,"compilerOptions"))if(Is(Ve.initializer)){ta=Ve.initializer;break}}}return ta||void 0}function V(De,Ve,It,Mt,mn,vn,En,Wn,Jr){const Xi=lC(De,It,Mt);for(const nr of Xi)"messageText"in mn?Ln.add(bg(P.configFile,Ve?nr.name:nr.initializer,mn)):Ln.add(hd(P.configFile,Ve?nr.name:nr.initializer,mn,vn,En,Wn,Jr));return!!Xi.length}function tt(De,Ve){const It=Fp();It?V(It,!0,De,void 0,m.Option_0_is_redundant_and_cannot_be_specified_with_option_1,De,Ve):Zo(m.Option_0_is_redundant_and_cannot_be_specified_with_option_1,De,Ve)}function Kt(De,Ve){ea.set(mt(De),!0),Ln.add(Ve)}function Yn(De){if(P.noEmit)return!1;const Ve=mt(De);if(da(Ve))return!1;const It=Ks(P);if(It)return Da(Ve,It)||Da(Ve,zd(It)+".d.ts");if(P.declarationDir&&Mv(P.declarationDir,Ve,Zt,!ot.useCaseSensitiveFileNames()))return!0;if(P.outDir)return Mv(P.outDir,Ve,Zt,!ot.useCaseSensitiveFileNames());if(Ic(Ve,$k)||vd(Ve)){const Mt=zd(Ve);return!!da(Mt+".ts")||!!da(Mt+".tsx")}return!1}function Da(De,Ve){return vT(De,Ve,Zt,!ot.useCaseSensitiveFileNames())===0}function Ia(){return ot.getSymlinkCache?ot.getSymlinkCache():(Ae||(Ae=$pe(Zt,oe)),Ee&&lt&&!Ae.hasProcessedResolutions()&&Ae.setSymlinksFromResolutions(Ee,lt),Ae)}}function SBe(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:co,fileExists:d};e.compilerHost.fileExists=d;let c;return i&&(c=e.compilerHost.directoryExists=L=>i.call(e.compilerHost,L)?(T(L),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(I=>{const M=Ks(I.commandLine.options);if(M)t.add(vi(e.toPath(M)));else{const k=I.commandLine.options.declarationDir||I.commandLine.options.outDir;k&&t.add(e.toPath(k))}})),C(L,!1)):!1),o&&(e.compilerHost.getDirectories=L=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,L)?o.call(e.compilerHost,L):[]),s&&(e.compilerHost.realpath=L=>{var I;return((I=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:I.get(e.toPath(L)))||s.call(e.compilerHost,L)}),{onProgramCreateComplete:_,fileExists:d,directoryExists:c};function _(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function d(L){return r.call(e.compilerHost,L)?!0:!e.getResolvedProjectReferences()||!vd(L)?!1:C(L,!0)}function v(L){const I=e.getSourceOfProjectReferenceRedirect(e.toPath(L));return I!==void 0?za(I)?r.call(e.compilerHost,I):!0:void 0}function g(L){const I=e.toPath(L),M=`${I}${Bs}`;return lk(t,k=>I===k||xa(k,M)||xa(I,`${k}/`))}function T(L){var I;if(!e.getResolvedProjectReferences()||Jk(L)||!s||!bu(L,Gy))return;const M=e.getSymlinkCache(),k=Wu(e.toPath(L));if((I=M.getSymlinkedDirectories())!=null&&I.has(k))return;const U=Xo(s.call(e.compilerHost,L));let j;if(U===L||(j=Wu(e.toPath(U)))===k){M.setSymlinkedDirectory(k,!1);return}M.setSymlinkedDirectory(L,{real:Wu(U),realPath:j})}function C(L,I){var M;const k=I?X=>v(X):X=>g(X),U=k(L);if(U!==void 0)return U;const j=e.getSymlinkCache(),H=j.getSymlinkedDirectories();if(!H)return!1;const ee=e.toPath(L);return bu(ee,Gy)?I&&((M=j.getSymlinkedFiles())!=null&&M.has(ee))?!0:Xn(H.entries(),([X,ne])=>{if(!ne||!xa(ee,X))return;const P=k(ee.replace(X,ne.realPath));if(I&&P){const ue=Ma(L,e.compilerHost.getCurrentDirectory());j.setSymlinkedFile(ee,`${ne.real}${ue.replace(new RegExp(X,"i"),"")}`)}return P})||!1:!1}}function A$(e,t,r,i){const o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||Ks(o)?gF: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&&Q_(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let c;if(!t&&!Ks(o)){const _=e.emitBuildInfo(r,i);_.diagnostics&&(s=[...s,..._.diagnostics]),c=_.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}function uF(e,t){return ur(e,r=>!r.skippedOn||!t[r.skippedOn])}function dF(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,c){return R.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,c)},readFile:r=>t.readFile(r),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||n1,trace:e.trace?r=>e.trace(r):void 0}}function C$(e,t,r,i){if(!e)return it;let o;for(let s=0;s<e.length;s++){const c=e[s],_=t(c,s);if(c.prepend&&_&&_.options){if(!Ks(_.options))continue;const{jsFilePath:v,sourceMapFilePath:g,declarationFilePath:T,declarationMapPath:C,buildInfoPath:L}=R4(_.options,!0),I=LK(r,v,g,T,C,L,i,_.options);(o||(o=[])).push(I)}}return o||it}function F4(e){return rQ(e.path)}function L$(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 c()}function i(){return e.jsx?void 0:m.Module_0_was_resolved_to_1_but_jsx_is_not_set}function o(){return jR(e)||!A_(e,"noImplicitAny")?void 0:m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function s(){return WT(e)?void 0:m.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function c(){return r||e.allowArbitraryExtensions?void 0:m.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function y0e({imports:e,moduleAugmentations:t}){const r=e.map(i=>i);for(const i of t)i.kind===10&&r.push(i);return r}function fF({imports:e,moduleAugmentations:t},r){if(r<e.length)return e[r];let i=e.length;for(const o of t)if(o.kind===10){if(r===i)return o;i++}R.fail("should never ask for module name at index higher than possible module name")}var I$,_F,pF,k$,w$,v0e,D$,R$,B4,AN,mF,hF,gF,xBe=b({"src/compiler/program.ts"(){"use strict";Oa(),Oa(),kb(),I$=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(I$||{}),_F="\x1B[7m",pF=" ",k$="\x1B[0m",w$="...",v0e=" ",D$=" ",R$={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},B4={getName:E$,getMode:(e,t)=>Dp(t,e)},AN={getName:oF,getMode:(e,t)=>TN(e,t==null?void 0:t.impliedNodeFormat)},mF="__inferred type names__.ts",hF=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.Octal_literals_are_not_allowed_in_strict_mode.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_assertion_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.const_declarations_can_only_be_declared_inside_a_block.code,m.const_declarations_must_be_initialized.code,m.extends_clause_already_seen.code,m.let_declarations_can_only_be_declared_inside_a_block.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]),gF={diagnostics:it,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),ABe=b({"src/compiler/builderStatePublic.ts"(){"use strict"}});function b0e(e,t,r,i,o,s){const c=[],{emitSkipped:_,diagnostics:d}=e.emit(t,v,i,r,o,s);return{outputFiles:c,emitSkipped:_,diagnostics:d};function v(g,T,C){c.push({name:g,writeByteOrderMark:C,text:T})}}var rh,CBe=b({"src/compiler/builderState.ts"(){"use strict";Oa(),(e=>{function t(){function ae(z,ce,he){const Ee={getKeys:Ae=>ce.get(Ae),getValues:Ae=>z.get(Ae),keys:()=>z.keys(),deleteKey:Ae=>{(he||(he=new Set)).add(Ae);const te=z.get(Ae);return te?(te.forEach(Ze=>i(ce,Ze,Ae)),z.delete(Ae),!0):!1},set:(Ae,te)=>{he==null||he.delete(Ae);const Ze=z.get(Ae);return z.set(Ae,te),Ze==null||Ze.forEach(je=>{te.has(je)||i(ce,je,Ae)}),te.forEach(je=>{Ze!=null&&Ze.has(je)||r(ce,je,Ae)}),Ee}};return Ee}return ae(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(ae,z,ce){let he=ae.get(z);he||(he=new Set,ae.set(z,he)),he.add(ce)}function i(ae,z,ce){const he=ae.get(z);return he!=null&&he.delete(ce)?(he.size||ae.delete(z),!0):!1}function o(ae){return ua(ae.declarations,z=>{var ce;return(ce=Zn(z))==null?void 0:ce.resolvedPath})}function s(ae,z){const ce=ae.getSymbolAtLocation(z);return ce&&o(ce)}function c(ae,z,ce,he){return Js(ae.getProjectReferenceRedirect(z)||z,ce,he)}function _(ae,z,ce){let he;if(z.imports&&z.imports.length>0){const Ze=ae.getTypeChecker();for(const je of z.imports){const Ue=s(Ze,je);Ue==null||Ue.forEach(te)}}const Ee=vi(z.resolvedPath);if(z.referencedFiles&&z.referencedFiles.length>0)for(const Ze of z.referencedFiles){const je=c(ae,Ze.fileName,Ee,ce);te(je)}if(z.resolvedTypeReferenceDirectiveNames&&z.resolvedTypeReferenceDirectiveNames.forEach(({resolvedTypeReferenceDirective:Ze})=>{if(!Ze)return;const je=Ze.resolvedFileName,Ue=c(ae,je,Ee,ce);te(Ue)}),z.moduleAugmentations.length){const Ze=ae.getTypeChecker();for(const je of z.moduleAugmentations){if(!Wo(je))continue;const Ue=Ze.getSymbolAtLocation(je);Ue&&Ae(Ue)}}for(const Ze of ae.getTypeChecker().getAmbientModules())Ze.declarations&&Ze.declarations.length>1&&Ae(Ze);return he;function Ae(Ze){if(Ze.declarations)for(const je of Ze.declarations){const Ue=Zn(je);Ue&&Ue!==z&&te(Ue.resolvedPath)}}function te(Ze){(he||(he=new Set)).add(Ze)}}function d(ae,z){return z&&!z.referencedMap==!ae}e.canReuseOldState=d;function v(ae,z,ce){var he,Ee,Ae;const te=new Map,Ze=ae.getCompilerOptions(),je=Ks(Ze),Ue=Ze.module!==0&&!je?t():void 0,Je=Ue?t():void 0,Fe=d(Ue,z);ae.getTypeChecker();for(const Be of ae.getSourceFiles()){const $e=R.checkDefined(Be.version,"Program intended to be used with Builder should have source files with versions set"),ze=Fe?(he=z.oldSignatures)==null?void 0:he.get(Be.resolvedPath):void 0,Ge=ze===void 0?Fe?(Ee=z.fileInfos.get(Be.resolvedPath))==null?void 0:Ee.signature:void 0:ze||void 0;if(Ue){const lt=_(ae,Be,ae.getCanonicalFileName);if(lt&&Ue.set(Be.resolvedPath,lt),Fe){const Ct=(Ae=z.oldExportedModulesMap)==null?void 0:Ae.get(Be.resolvedPath),bt=Ct===void 0?z.exportedModulesMap.getValues(Be.resolvedPath):Ct||void 0;bt&&Je.set(Be.resolvedPath,bt)}}te.set(Be.resolvedPath,{version:$e,signature:Ge,affectsGlobalScope:je?void 0:P(Be)||void 0,impliedFormat:Be.impliedNodeFormat})}return{fileInfos:te,referencedMap:Ue,exportedModulesMap:Je,useFileVersionAsSignature:!ce&&!Fe}}e.create=v;function g(ae){ae.allFilesExcludingDefaultLibraryFile=void 0,ae.allFileNames=void 0}e.releaseCache=g;function T(ae,z,ce,he,Ee){var Ae,te;const Ze=C(ae,z,ce,he,Ee);return(Ae=ae.oldSignatures)==null||Ae.clear(),(te=ae.oldExportedModulesMap)==null||te.clear(),Ze}e.getFilesAffectedBy=T;function C(ae,z,ce,he,Ee){const Ae=z.getSourceFileByPath(ce);return Ae?M(ae,z,Ae,he,Ee)?(ae.referencedMap?be:re)(ae,z,Ae,he,Ee):[Ae]:it}e.getFilesAffectedByWithOldState=C;function L(ae,z,ce){ae.fileInfos.get(ce).signature=z,(ae.hasCalledUpdateShapeSignature||(ae.hasCalledUpdateShapeSignature=new Set)).add(ce)}e.updateSignatureOfFile=L;function I(ae,z,ce,he,Ee){ae.emit(z,(Ae,te,Ze,je,Ue,Je)=>{R.assert(vd(Ae),`File extension for signature expected to be dts: Got:: ${Ae}`),Ee(P$(ae,z,te,he,Je),Ue)},ce,!0,void 0,!0)}e.computeDtsSignature=I;function M(ae,z,ce,he,Ee,Ae=ae.useFileVersionAsSignature){var te;if((te=ae.hasCalledUpdateShapeSignature)!=null&&te.has(ce.resolvedPath))return!1;const Ze=ae.fileInfos.get(ce.resolvedPath),je=Ze.signature;let Ue;if(!ce.isDeclarationFile&&!Ae&&I(z,ce,he,Ee,(Je,Fe)=>{Ue=Je,Ue!==je&&k(ae,ce,Fe[0].exportedModulesFromDeclarationEmit)}),Ue===void 0&&(Ue=ce.version,ae.exportedModulesMap&&Ue!==je)){(ae.oldExportedModulesMap||(ae.oldExportedModulesMap=new Map)).set(ce.resolvedPath,ae.exportedModulesMap.getValues(ce.resolvedPath)||!1);const Je=ae.referencedMap?ae.referencedMap.getValues(ce.resolvedPath):void 0;Je?ae.exportedModulesMap.set(ce.resolvedPath,Je):ae.exportedModulesMap.deleteKey(ce.resolvedPath)}return(ae.oldSignatures||(ae.oldSignatures=new Map)).set(ce.resolvedPath,je||!1),(ae.hasCalledUpdateShapeSignature||(ae.hasCalledUpdateShapeSignature=new Set)).add(ce.resolvedPath),Ze.signature=Ue,Ue!==je}e.updateShapeSignature=M;function k(ae,z,ce){if(!ae.exportedModulesMap)return;(ae.oldExportedModulesMap||(ae.oldExportedModulesMap=new Map)).set(z.resolvedPath,ae.exportedModulesMap.getValues(z.resolvedPath)||!1);const he=U(ce);he?ae.exportedModulesMap.set(z.resolvedPath,he):ae.exportedModulesMap.deleteKey(z.resolvedPath)}e.updateExportedModules=k;function U(ae){let z;return ae==null||ae.forEach(ce=>o(ce).forEach(he=>(z!=null?z:z=new Set).add(he))),z}e.getExportedModules=U;function j(ae,z,ce){const he=z.getCompilerOptions();if(Ks(he)||!ae.referencedMap||P(ce))return H(ae,z);const Ee=new Set,Ae=[ce.resolvedPath];for(;Ae.length;){const te=Ae.pop();if(!Ee.has(te)){Ee.add(te);const Ze=ae.referencedMap.getValues(te);if(Ze)for(const je of Ze.keys())Ae.push(je)}}return Oo(yy(Ee.keys(),te=>{var Ze,je;return(je=(Ze=z.getSourceFileByPath(te))==null?void 0:Ze.fileName)!=null?je:te}))}e.getAllDependencies=j;function H(ae,z){if(!ae.allFileNames){const ce=z.getSourceFiles();ae.allFileNames=ce===it?it:ce.map(he=>he.fileName)}return ae.allFileNames}function ee(ae,z){const ce=ae.referencedMap.getKeys(z);return ce?Oo(ce.keys()):[]}e.getReferencedByPaths=ee;function X(ae){for(const z of ae.statements)if(!KM(z))return!1;return!0}function ne(ae){return Dt(ae.moduleAugmentations,z=>im(z.parent))}function P(ae){return ne(ae)||!_f(ae)&&!E_(ae)&&!X(ae)}function ue(ae,z,ce){if(ae.allFilesExcludingDefaultLibraryFile)return ae.allFilesExcludingDefaultLibraryFile;let he;ce&&Ee(ce);for(const Ae of z.getSourceFiles())Ae!==ce&&Ee(Ae);return ae.allFilesExcludingDefaultLibraryFile=he||it,ae.allFilesExcludingDefaultLibraryFile;function Ee(Ae){z.isSourceFileDefaultLibrary(Ae)||(he||(he=[])).push(Ae)}}e.getAllFilesExcludingDefaultLibraryFile=ue;function re(ae,z,ce){const he=z.getCompilerOptions();return he&&Ks(he)?[ce]:ue(ae,z,ce)}function be(ae,z,ce,he,Ee){if(P(ce))return ue(ae,z,ce);const Ae=z.getCompilerOptions();if(Ae&&(Y_(Ae)||Ks(Ae)))return[ce];const te=new Map;te.set(ce.resolvedPath,ce);const Ze=ee(ae,ce.resolvedPath);for(;Ze.length>0;){const je=Ze.pop();if(!te.has(je)){const Ue=z.getSourceFileByPath(je);te.set(je,Ue),Ue&&M(ae,z,Ue,he,Ee)&&Ze.push(...ee(ae,Ue.resolvedPath))}}return Oo(yy(te.values(),je=>je))}})(rh||(rh={}))}});function a0(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Q_(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function uL(e,t){const r=t&&(Ey(t)?t:a0(t)),i=Ey(e)?e:a0(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 LBe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!lk(e,r=>!t.has(r))}function IBe(e,t){var r,i;const o=rh.create(e,t,!1);o.program=e;const s=e.getCompilerOptions();o.compilerOptions=s;const c=Ks(s);c?s.composite&&(t!=null&&t.outSignature)&&c===Ks(t==null?void 0:t.compilerOptions)&&(o.outSignature=t.outSignature&&T0e(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 _=rh.canReuseOldState(o.referencedMap,t),d=_?t.compilerOptions:void 0,v=_&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!Kpe(s,d),g=s.composite&&(t==null?void 0:t.emitSignatures)&&!c&&!Ype(s,t.compilerOptions);_?((r=t.changedFilesSet)==null||r.forEach(M=>o.changedFilesSet.add(M)),!c&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;const T=o.referencedMap,C=_?t.referencedMap:void 0,L=v&&!s.skipLibCheck==!d.skipLibCheck,I=L&&!s.skipDefaultLibCheck==!d.skipDefaultLibCheck;if(o.fileInfos.forEach((M,k)=>{var U;let j,H;if(!_||!(j=t.fileInfos.get(k))||j.version!==M.version||j.impliedFormat!==M.impliedFormat||!LBe(H=T&&T.getValues(k),C&&C.getValues(k))||H&&lk(H,ee=>!o.fileInfos.has(ee)&&t.fileInfos.has(ee)))E0e(o,k);else if(v){const ee=e.getSourceFileByPath(k);if(ee.isDeclarationFile&&!L||ee.hasNoDefaultLib&&!I)return;const X=t.semanticDiagnosticsPerFile.get(k);X&&(o.semanticDiagnosticsPerFile.set(k,t.hasReusableDiagnostic?kBe(X,e):X),o.semanticDiagnosticsFromOldState||(o.semanticDiagnosticsFromOldState=new Set),o.semanticDiagnosticsFromOldState.add(k))}if(g){const ee=t.emitSignatures.get(k);ee&&((U=o.emitSignatures)!=null?U:o.emitSignatures=new Map).set(k,T0e(s,t.compilerOptions,ee))}}),_&&ff(t.fileInfos,(M,k)=>o.fileInfos.has(k)?!1:c||M.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))rh.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(M=>E0e(o,M.resolvedPath));else if(d){const M=Xpe(s,d)?a0(s):uL(s,d);M!==0&&(c?o.programEmitPending=o.programEmitPending?o.programEmitPending|M:M:(e.getSourceFiles().forEach(k=>{o.changedFilesSet.has(k.resolvedPath)||B$(o,k.resolvedPath,M)}),R.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return c&&!o.changedFilesSet.size&&(_&&(o.bundle=t.bundle),Dt(e.getProjectReferences(),M=>!!M.prepend)&&(o.programEmitPending=a0(s))),o}function E0e(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function T0e(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:za(r)?[r]:r[0]}function kBe(e,t){if(!e.length)return it;let r;return e.map(o=>{const s=S0e(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;const{relatedInformation:c}=o;return s.relatedInformation=c?c.length?c.map(_=>S0e(_,t,i)):[]:void 0,s});function i(o){return r!=null||(r=vi(Ma(Vy(t.getCompilerOptions()),t.getCurrentDirectory()))),Js(o,r,t.getCanonicalFileName)}}function S0e(e,t,r){const{file:i}=e;return so(Li({},e),{file:i?t.getSourceFileByPath(r(i)):void 0})}function wBe(e){rh.releaseCache(e),e.program=void 0}function DBe(e){const t=Ks(e.compilerOptions);return R.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}}function RBe(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,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function x0e(e,t){R.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function A0e(e,t,r){for(var i,o;;){const{affectedFiles:s}=e;if(s){const v=e.seenAffectedFiles;let g=e.affectedFilesIndex;for(;g<s.length;){const T=s[g];if(!v.has(T.resolvedPath))return e.affectedFilesIndex=g,B$(e,T.resolvedPath,a0(e.compilerOptions)),MBe(e,T,t,r),T;g++}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 c=e.changedFilesSet.keys().next();if(c.done)return;const _=R.checkDefined(e.program),d=_.getCompilerOptions();if(Ks(d))return R.assert(!e.semanticDiagnosticsPerFile),_;e.affectedFiles=rh.getFilesAffectedByWithOldState(e,_,c.value,t,r),e.currentChangedFilePath=c.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function NBe(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 OBe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return ff(e.affectedFilesPendingEmit,(i,o)=>{var s;const c=e.program.getSourceFileByPath(o);if(!c||!BS(c,e.program)){e.affectedFilesPendingEmit.delete(o);return}const _=(s=e.seenEmittedFiles)==null?void 0:s.get(c.resolvedPath);let d=uL(i,_);if(t&&(d=d&24),d)return{affectedFile:c,emitKind:d}})}function C0e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=R.checkDefined(e.program),r=t.getCompilerOptions();Ie(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!Wk(i,r,t)&&N$(e,i.resolvedPath))}}function MBe(e,t,r,i){if(N$(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){C0e(e),rh.updateShapeSignature(e,R.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||PBe(e,t,r,i)}function yF(e,t,r,i){if(N$(e,t),!e.changedFilesSet.has(t)){const o=R.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(rh.updateShapeSignature(e,o,s,r,i,!0),Q_(e.compilerOptions)&&B$(e,t,e.compilerOptions.declarationMap?24:8))}}function N$(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function L0e(e,t){const r=R.checkDefined(e.oldSignatures).get(t)||void 0;return R.checkDefined(e.fileInfos.get(t)).signature!==r}function O$(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(rh.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>yF(e,s.resolvedPath,r,i)),C0e(e),!0):!1}function PBe(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!L0e(e,t.resolvedPath))return;if(Y_(e.compilerOptions)){const c=new Map;c.set(t.resolvedPath,!0);const _=rh.getReferencedByPaths(e,t.resolvedPath);for(;_.length>0;){const d=_.pop();if(!c.has(d)){if(c.set(d,!0),O$(e,d,r,i))return;if(yF(e,d,r,i),L0e(e,d)){const v=R.checkDefined(e.program).getSourceFileByPath(d);_.push(...rh.getReferencedByPaths(e,v.resolvedPath))}}}}const s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(c=>{if(O$(e,c,r,i))return!0;const _=e.referencedMap.getKeys(c);return _&&lk(_,d=>I0e(e,d,s,r,i))})}function I0e(e,t,r,i,o){var s,c;if(wv(r,t)){if(O$(e,t,i,o))return!0;yF(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(_=>I0e(e,_,r,i,o)),(c=e.referencedMap.getKeys(t))==null||c.forEach(_=>!r.has(_)&&yF(e,_,i,o))}}function M$(e,t,r){return ba(FBe(e,t,r),R.checkDefined(e.program).getProgramDiagnostics(t))}function FBe(e,t,r){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const s=e.semanticDiagnosticsPerFile.get(i);if(s)return uF(s,e.compilerOptions)}const o=R.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),uF(o,e.compilerOptions)}function k0e(e){return!!Ks(e.options||{})}function BBe(e,t){var r,i,o;const s=R.checkDefined(e.program).getCurrentDirectory(),c=vi(Ma(Vy(e.compilerOptions),s)),_=e.latestChangedDtsFile?X(e.latestChangedDtsFile):void 0,d=[],v=new Map,g=[];if(Ks(e.compilerOptions)){const ae=Oo(e.fileInfos.entries(),([te,Ze])=>{const je=P(te);return re(te,je),Ze.impliedFormat?{version:Ze.version,impliedFormat:Ze.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Ze.version}),z={fileNames:d,fileInfos:ae,root:g,options:be(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:_,pendingEmit:e.programEmitPending?e.programEmitPending===a0(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:ce,dts:he,commonSourceDirectory:Ee,sourceFiles:Ae}=t;return e.bundle=t={commonSourceDirectory:Ee,sourceFiles:Ae,js:ce||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:he||(Q_(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},yN(z,t)}let T,C,L;const I=Oo(e.fileInfos.entries(),([ae,z])=>{var ce,he;const Ee=P(ae);re(ae,Ee),R.assert(d[Ee-1]===ne(ae));const Ae=(ce=e.oldSignatures)==null?void 0:ce.get(ae),te=Ae!==void 0?Ae||void 0:z.signature;if(e.compilerOptions.composite){const Ze=e.program.getSourceFileByPath(ae);if(!E_(Ze)&&BS(Ze,e.program)){const je=(he=e.emitSignatures)==null?void 0:he.get(ae);je!==te&&(L||(L=[])).push(je===void 0?Ee:[Ee,!za(je)&&je[0]===te?it:je])}}return z.version===te?z.affectsGlobalScope||z.impliedFormat?{version:z.version,signature:void 0,affectsGlobalScope:z.affectsGlobalScope,impliedFormat:z.impliedFormat}:z.version:te!==void 0?Ae===void 0?z:{version:z.version,signature:te,affectsGlobalScope:z.affectsGlobalScope,impliedFormat:z.impliedFormat}:{version:z.version,signature:!1,affectsGlobalScope:z.affectsGlobalScope,impliedFormat:z.impliedFormat}});let M;e.referencedMap&&(M=Oo(e.referencedMap.keys()).sort(ju).map(ae=>[P(ae),ue(e.referencedMap.getValues(ae))]));let k;e.exportedModulesMap&&(k=ua(Oo(e.exportedModulesMap.keys()).sort(ju),ae=>{var z;const ce=(z=e.oldExportedModulesMap)==null?void 0:z.get(ae);if(ce===void 0)return[P(ae),ue(e.exportedModulesMap.getValues(ae))];if(ce)return[P(ae),ue(ce)]}));let U;if(e.semanticDiagnosticsPerFile)for(const ae of Oo(e.semanticDiagnosticsPerFile.keys()).sort(ju)){const z=e.semanticDiagnosticsPerFile.get(ae);(U||(U=[])).push(z.length?[P(ae),UBe(z,ne)]:P(ae))}let j;if((o=e.affectedFilesPendingEmit)!=null&&o.size){const ae=a0(e.compilerOptions),z=new Set;for(const ce of Oo(e.affectedFilesPendingEmit.keys()).sort(ju))if(wv(z,ce)){const he=e.program.getSourceFileByPath(ce);if(!he||!BS(he,e.program))continue;const Ee=P(ce),Ae=e.affectedFilesPendingEmit.get(ce);(j||(j=[])).push(Ae===ae?Ee:Ae===8?[Ee]:[Ee,Ae])}}let H;if(e.changedFilesSet.size)for(const ae of Oo(e.changedFilesSet.keys()).sort(ju))(H||(H=[])).push(P(ae));const ee={fileNames:d,fileInfos:I,root:g,options:be(e.compilerOptions),fileIdsList:T,referencedMap:M,exportedModulesMap:k,semanticDiagnosticsPerFile:U,affectedFilesPendingEmit:j,changeFileSet:H,emitSignatures:L,latestChangedDtsFile:_};return yN(ee,t);function X(ae){return ne(Ma(ae,s))}function ne(ae){return Db(Bm(c,ae,e.program.getCanonicalFileName))}function P(ae){let z=v.get(ae);return z===void 0&&(d.push(ne(ae)),v.set(ae,z=d.length)),z}function ue(ae){const z=Oo(ae.keys(),P).sort(qs),ce=z.join();let he=C==null?void 0:C.get(ce);return he===void 0&&((T||(T=[])).push(z),(C||(C=new Map)).set(ce,he=T.length)),he}function re(ae,z){const ce=e.program.getSourceFile(ae);if(!e.program.getFileIncludeReasons().get(ce.path).some(te=>te.kind===0))return;if(!g.length)return g.push(z);const he=g[g.length-1],Ee=ja(he);if(Ee&&he[1]===z-1)return he[1]=z;if(Ee||g.length===1||he!==z-1)return g.push(z);const Ae=g[g.length-2];return!Ey(Ae)||Ae!==he-1?g.push(z):(g[g.length-2]=[Ae,z],g.length=g.length-1)}function be(ae){let z;const{optionsNameMap:ce}=rL();for(const he of fg(ae).sort(ju)){const Ee=ce.get(he.toLowerCase());Ee!=null&&Ee.affectsBuildInfo&&((z||(z={}))[he]=GBe(Ee,ae[he],X))}return z}}function GBe(e,t,r){if(e){if(R.assert(e.type!=="listOrElement"),e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t)}return t}function UBe(e,t){return R.assert(!!e.length),e.map(r=>{const i=w0e(r,t);i.reportsUnnecessary=r.reportsUnnecessary,i.reportDeprecated=r.reportsDeprecated,i.source=r.source,i.skippedOn=r.skippedOn;const{relatedInformation:o}=r;return i.relatedInformation=o?o.length?o.map(s=>w0e(s,t)):[]:void 0,i})}function w0e(e,t){const{file:r}=e;return so(Li({},e),{file:r?t(r.resolvedPath):void 0})}function vF(e,t,r,i,o,s){let c,_,d;return e===void 0?(R.assert(t===void 0),c=r,d=i,R.assert(!!d),_=d.getProgram()):ja(e)?(d=i,_=cF({rootNames:e,options:t,host:r,oldProgram:d&&d.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:s}),c=r):(_=e,c=t,d=r,o=i),{host:c,newProgram:_,oldProgram:d,configFileParsingDiagnostics:o||it}}function D0e(e,t){return(t==null?void 0:t.sourceMapUrlPos)!==void 0?e.substring(0,t.sourceMapUrlPos):e}function P$(e,t,r,i,o){var s,c;r=D0e(r,o);let _;return(s=o==null?void 0:o.diagnostics)!=null&&s.length&&(r+=o.diagnostics.map(g=>`${v(g)}${cD[g.category]}${g.code}: ${d(g.messageText)}`).join(`
`)),((c=i.createHash)!=null?c:fD)(r);function d(g){return za(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(d).join(`
`):g.messageText}function v(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(_===void 0&&(_=vi(t.resolvedPath)),`${Db(Bm(_,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function s2(e,t,r){var i;return((i=t.createHash)!=null?i:fD)(D0e(e,r))}function F$(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 c=IBe(t,s);t.getBuildInfo=M=>BBe(c,M),t=void 0,i=void 0,s=void 0;const _=()=>c,d=U$(_,o);return d.getState=_,d.saveEmitState=()=>DBe(c),d.restoreEmitState=M=>RBe(c,M),d.hasChangedEmitSignature=()=>!!c.hasChangedEmitSignature,d.getAllDependencies=M=>rh.getAllDependencies(c,R.checkDefined(c.program),M),d.getSemanticDiagnostics=I,d.emit=C,d.releaseProgram=()=>wBe(c),e===0?d.getSemanticDiagnosticsOfNextAffectedFile=L:e===1?(d.getSemanticDiagnosticsOfNextAffectedFile=L,d.emitNextAffectedFile=g,d.emitBuildInfo=v):qa(),d;function v(M,k){if(c.buildInfoEmitPending){const U=R.checkDefined(c.program).emitBuildInfo(M||Vo(r,r.writeFile),k);return c.buildInfoEmitPending=!1,U}return gF}function g(M,k,U,j){var H,ee,X,ne,P;let ue=A0e(c,k,r);const re=a0(c.compilerOptions);let be=U?re&24:re;if(!ue)if(Ks(c.compilerOptions)){if(!c.programEmitPending||(be=c.programEmitPending,U&&(be=be&24),!be))return;ue=c.program}else{const ce=OBe(c,U);if(!ce){if(!c.buildInfoEmitPending)return;const he=c.program,Ee=he.emitBuildInfo(M||Vo(r,r.writeFile),k);return c.buildInfoEmitPending=!1,{result:Ee,affected:he}}({affectedFile:ue,emitKind:be}=ce)}let ae;be&7&&(ae=0),be&24&&(ae=ae===void 0?1:void 0),ue===c.program&&(c.programEmitPending=c.changedFilesSet.size?uL(re,be):c.programEmitPending?uL(c.programEmitPending,be):void 0);const z=c.program.emit(ue===c.program?void 0:ue,T(M,j),k,ae,j);if(ue!==c.program){const ce=ue;c.seenAffectedFiles.add(ce.resolvedPath),c.affectedFilesIndex!==void 0&&c.affectedFilesIndex++,c.buildInfoEmitPending=!0;const he=((H=c.seenEmittedFiles)==null?void 0:H.get(ce.resolvedPath))||0;((ee=c.seenEmittedFiles)!=null?ee:c.seenEmittedFiles=new Map).set(ce.resolvedPath,be|he);const Ee=((X=c.affectedFilesPendingEmit)==null?void 0:X.get(ce.resolvedPath))||re,Ae=uL(Ee,be|he);Ae?((ne=c.affectedFilesPendingEmit)!=null?ne:c.affectedFilesPendingEmit=new Map).set(ce.resolvedPath,Ae):(P=c.affectedFilesPendingEmit)==null||P.delete(ce.resolvedPath)}else c.changedFilesSet.clear();return{result:z,affected:ue}}function T(M,k){return Q_(c.compilerOptions)?(U,j,H,ee,X,ne)=>{var P,ue,re,be,ae,z,ce;if(vd(U))if(Ks(c.compilerOptions)){if(c.compilerOptions.composite){const Ee=he(c.outSignature,void 0);if(!Ee)return;c.outSignature=Ee}}else{R.assert((X==null?void 0:X.length)===1);let Ee;if(!k){const Ae=X[0],te=c.fileInfos.get(Ae.resolvedPath);if(te.signature===Ae.version){const Ze=P$(c.program,Ae,j,r,ne);(P=ne==null?void 0:ne.diagnostics)!=null&&P.length||(Ee=Ze),Ze!==Ae.version&&(r.storeFilesChangingSignatureDuringEmit&&((ue=c.filesChangingSignature)!=null?ue:c.filesChangingSignature=new Set).add(Ae.resolvedPath),c.exportedModulesMap&&rh.updateExportedModules(c,Ae,Ae.exportedModulesFromDeclarationEmit),c.affectedFiles?(((re=c.oldSignatures)==null?void 0:re.get(Ae.resolvedPath))===void 0&&((be=c.oldSignatures)!=null?be:c.oldSignatures=new Map).set(Ae.resolvedPath,te.signature||!1),te.signature=Ze):(te.signature=Ze,(ae=c.oldExportedModulesMap)==null||ae.clear()))}}if(c.compilerOptions.composite){const Ae=X[0].resolvedPath;if(Ee=he((z=c.emitSignatures)==null?void 0:z.get(Ae),Ee),!Ee)return;((ce=c.emitSignatures)!=null?ce:c.emitSignatures=new Map).set(Ae,Ee)}}M?M(U,j,H,ee,X,ne):r.writeFile?r.writeFile(U,j,H,ee,X,ne):c.program.writeFile(U,j,H,ee,X,ne);function he(Ee,Ae){const te=!Ee||za(Ee)?Ee:Ee[0];if(Ae!=null||(Ae=s2(j,r,ne)),Ae===te){if(Ee===te)return;ne?ne.differsOnlyInMap=!0:ne={differsOnlyInMap:!0}}else c.hasChangedEmitSignature=!0,c.latestChangedDtsFile=U;return Ae}}:M||Vo(r,r.writeFile)}function C(M,k,U,j,H){e===1&&x0e(c,M);const ee=A$(d,M,k,U);if(ee)return ee;if(!M)if(e===1){let X=[],ne=!1,P,ue=[],re;for(;re=g(k,U,j,H);)ne=ne||re.result.emitSkipped,P=xi(P,re.result.diagnostics),ue=xi(ue,re.result.emittedFiles),X=xi(X,re.result.sourceMaps);return{emitSkipped:ne,diagnostics:P||it,emittedFiles:ue,sourceMaps:X}}else NBe(c,j);return R.checkDefined(c.program).emit(M,T(k,H),U,j,H)}function L(M,k){for(;;){const U=A0e(c,M,r);let j;if(U)if(U!==c.program){const H=U;if((!k||!k(H))&&(j=M$(c,H,M)),c.seenAffectedFiles.add(H.resolvedPath),c.affectedFilesIndex++,c.buildInfoEmitPending=!0,!j)continue}else j=c.program.getSemanticDiagnostics(void 0,M),c.changedFilesSet.clear(),c.programEmitPending=a0(c.compilerOptions);else return;return{result:j,affected:U}}}function I(M,k){x0e(c,M);const U=R.checkDefined(c.program).getCompilerOptions();if(Ks(U))return R.assert(!c.semanticDiagnosticsPerFile),R.checkDefined(c.program).getSemanticDiagnostics(M,k);if(M)return M$(c,M,k);for(;L(k););let j;for(const H of R.checkDefined(c.program).getSourceFiles())j=xi(j,M$(c,H,k));return j||it}}function B$(e,t,r){var i,o;const s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;((o=e.affectedFilesPendingEmit)!=null?o:e.affectedFilesPendingEmit=new Map).set(t,s|r)}function R0e(e){return za(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:za(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function N0e(e,t){return Ey(e)?t:e[1]||8}function O0e(e,t){return e||a0(t||{})}function M0e(e,t,r){var i,o,s,c;const _=e.program,d=vi(Ma(t,r.getCurrentDirectory())),v=lu(r.useCaseSensitiveFileNames());let g;const T=(i=_.fileNames)==null?void 0:i.map(I);let C;const L=_.latestChangedDtsFile?M(_.latestChangedDtsFile):void 0;if(k0e(_)){const H=new Map;_.fileInfos.forEach((ee,X)=>{const ne=k(X+1);H.set(ne,za(ee)?{version:ee,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:ee)}),g={fileInfos:H,compilerOptions:_.options?FX(_.options,M):{},latestChangedDtsFile:L,outSignature:_.outSignature,programEmitPending:_.pendingEmit===void 0?void 0:O0e(_.pendingEmit,_.options),bundle:e.bundle}}else{C=(o=_.fileIdsList)==null?void 0:o.map(ne=>new Set(ne.map(k)));const H=new Map,ee=(s=_.options)!=null&&s.composite&&!Ks(_.options)?new Map:void 0;_.fileInfos.forEach((ne,P)=>{const ue=k(P+1),re=R0e(ne);H.set(ue,re),ee&&re.signature&&ee.set(ue,re.signature)}),(c=_.emitSignatures)==null||c.forEach(ne=>{if(Ey(ne))ee.delete(k(ne));else{const P=k(ne[0]);ee.set(P,!za(ne[1])&&!ne[1].length?[ee.get(P)]:ne[1])}});const X=_.affectedFilesPendingEmit?a0(_.options||{}):void 0;g={fileInfos:H,compilerOptions:_.options?FX(_.options,M):{},referencedMap:j(_.referencedMap),exportedModulesMap:j(_.exportedModulesMap),semanticDiagnosticsPerFile:_.semanticDiagnosticsPerFile&&Tb(_.semanticDiagnosticsPerFile,ne=>k(Ey(ne)?ne:ne[0]),ne=>Ey(ne)?it:ne[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:_.affectedFilesPendingEmit&&Tb(_.affectedFilesPendingEmit,ne=>k(Ey(ne)?ne:ne[0]),ne=>N0e(ne,X)),changedFilesSet:new Set(Pt(_.changeFileSet,k)),latestChangedDtsFile:L,emitSignatures:ee!=null&&ee.size?ee:void 0}}return{getState:()=>g,saveEmitState:co,restoreEmitState:co,getProgram:qa,getProgramOrUndefined:n1,releaseProgram:co,getCompilerOptions:()=>g.compilerOptions,getSourceFile:qa,getSourceFiles:qa,getOptionsDiagnostics:qa,getGlobalDiagnostics:qa,getConfigFileParsingDiagnostics:qa,getSyntacticDiagnostics:qa,getDeclarationDiagnostics:qa,getSemanticDiagnostics:qa,emit:qa,getAllDependencies:qa,getCurrentDirectory:qa,emitNextAffectedFile:qa,getSemanticDiagnosticsOfNextAffectedFile:qa,emitBuildInfo:qa,close:co,hasChangedEmitSignature:Sb};function I(H){return Js(H,d,v)}function M(H){return Ma(H,d)}function k(H){return T[H-1]}function U(H){return C[H-1]}function j(H){if(!H)return;const ee=rh.createManyToManyPathMap();return H.forEach(([X,ne])=>ee.set(k(X),U(ne))),ee}}function G$(e,t,r){const i=vi(Ma(t,r.getCurrentDirectory())),o=lu(r.useCaseSensitiveFileNames()),s=new Map;let c=0;const _=[];return e.fileInfos.forEach((d,v)=>{const g=Js(e.fileNames[v],i,o),T=za(d)?d:d.version;if(s.set(g,T),c<e.root.length){const C=e.root[c],L=v+1;ja(C)?C[0]<=L&&L<=C[1]&&(_.push(g),C[1]===L&&c++):C===L&&(_.push(g),c++)}}),{fileInfos:s,roots:_}}function U$(e,t){return{getState:qa,saveEmitState:co,restoreEmitState:co,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,c,_)=>r().emit(i,o,s,c,_),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:qa,getCurrentDirectory:()=>r().getCurrentDirectory(),close:co};function r(){return R.checkDefined(e().program)}}var V$,j$,VBe=b({"src/compiler/builder.ts"(){"use strict";Oa(),Oa(),V$=(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))(V$||{}),j$=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(j$||{})}});function jBe(e,t,r,i,o,s){return F$(0,vF(e,t,r,i,o,s))}function W$(e,t,r,i,o,s){return F$(1,vF(e,t,r,i,o,s))}function WBe(e,t,r,i,o,s){const{newProgram:c,configFileParsingDiagnostics:_}=vF(e,t,r,i,o,s);return U$(()=>({program:c,compilerOptions:c.getCompilerOptions()}),_)}var HBe=b({"src/compiler/builderPublic.ts"(){"use strict";Oa()}});function H$(e){return oc(e,"/node_modules/.staging")?UA(e,"/.staging"):Dt(gD,t=>bu(e,t))?void 0:e}function CN(e){const t=nm(e);if(e.length===t)return!1;let r=e.indexOf(Bs,t);if(r===-1)return!1;let i=e.substring(t,r+1);const o=t>1||e.charCodeAt(0)!==47;if(o&&e.search(/[a-zA-Z]:/)!==0&&i.search(/[a-zA-Z]\$\//)===0){if(r=e.indexOf(Bs,r+1),r===-1)return!1;i=e.substring(t+i.length,r+1)}if(o&&i.search(/users\//i)!==0)return!0;for(let s=r+1,c=2;c>0;c--)if(s=e.indexOf(Bs,s)+1,s===0)return!1;return!0}function P0e(e,t,r){let i,o,s;const c=v_(),_=new Set,d=new Set,v=new Map,g=new Map;let T=!1,C,L,I,M,k;const U=Ld(()=>e.getCurrentDirectory()),j=e.getCachedDirectoryStructureHost(),H=new Map,ee=x9(U(),e.getCanonicalFileName,e.getCompilationSettings()),X=new Map,ne=A9(U(),e.getCanonicalFileName,e.getCompilationSettings(),ee.getPackageJsonInfoCache()),P=[".ts",".tsx",".js",".jsx",".json"],ue=new Map,re=new Map,be=new Map,ae=t&&yT(Ma(t,U())),z=ae&&e.toPath(ae),ce=z!==void 0?z.split(Bs).length:0,he=new Map;return{getModuleResolutionCache:()=>ee,startRecordingFilesWithChangedResolutions:je,finishRecordingFilesWithChangedResolutions:Ue,startCachingPerDirectoryResolution:Be,finishCachingPerDirectoryResolution:$e,resolveModuleNameLiterals:bt,resolveTypeReferenceDirectiveReferences:Ct,resolveSingleModuleNameWithoutWatching:zt,removeResolutionsFromProjectReferenceRedirects:yn,removeResolutionsOfFile:Wt,hasChangedAutomaticTypeDirectiveNames:()=>T,invalidateResolutionOfFile:Bn,invalidateResolutionsOfFailedLookupLocations:bi,setFilesWithInvalidatedNonRelativeUnresolvedImports:lr,createHasInvalidatedResolutions:Fe,isFileWithInvalidatedNonRelativeUnresolvedImports:Je,updateTypeRootsWatch:gt,closeTypeRootsWatch:Ir,clear:Ze};function Ee(Le){return Le.resolvedModule}function Ae(Le){return Le.resolvedTypeReferenceDirective}function te(Le,pt){return Le===void 0||pt.length<=Le.length?!1:xa(pt,Le)&&pt[Le.length]===Bs}function Ze(){o_(re,nh),o_(be,nh),ue.clear(),c.clear(),Ir(),H.clear(),X.clear(),v.clear(),_.clear(),d.clear(),I=void 0,M=void 0,k=void 0,L=void 0,C=void 0,ee.clear(),ne.clear(),ee.update(e.getCompilationSettings()),ne.update(e.getCompilationSettings()),g.clear(),T=!1}function je(){i=[]}function Ue(){const Le=i;return i=void 0,Le}function Je(Le){if(!s)return!1;const pt=s.get(Le);return!!pt&&!!pt.length}function Fe(Le){bi();const pt=o;return o=void 0,me=>Le(me)||!!(pt!=null&&pt.has(me))||Je(me)}function Be(){ee.clearAllExceptPackageJsonInfoCache(),ne.clearAllExceptPackageJsonInfoCache(),c.forEach(pr),c.clear()}function $e(Le,pt){s=void 0,c.forEach(pr),c.clear(),Le!==pt&&(Le==null||Le.getSourceFiles().forEach(me=>{var ie,ye,W;const He=_f(me)&&(ye=(ie=me.packageJsonLocations)==null?void 0:ie.length)!=null?ye:0,et=(W=g.get(me.path))!=null?W:it;for(let Ye=et.length;Ye<He;Ye++)Zt(me.packageJsonLocations[Ye],!1);if(et.length>He)for(let Ye=He;Ye<et.length;Ye++)be.get(et[Ye]).files--;He?g.set(me.path,me.packageJsonLocations):g.delete(me.path)}),g.forEach((me,ie)=>{Le!=null&&Le.getSourceFileByPath(ie)||(me.forEach(ye=>be.get(ye).files--),g.delete(ie))})),re.forEach((me,ie)=>{me.refCount===0&&(re.delete(ie),me.watcher.close())}),be.forEach((me,ie)=>{me.files===0&&me.resolutions===0&&(be.delete(ie),me.watcher.close())}),T=!1}function ze(Le,pt,me,ie,ye){var W;const He=((W=e.getCompilerHost)==null?void 0:W.call(e))||e,et=S4(Le,pt,me,He,ee,ie,ye);if(!e.getGlobalCache)return et;const Ye=e.getGlobalCache();if(Ye!==void 0&&!zc(Le)&&!(et.resolvedModule&&qP(et.resolvedModule.extension))){const{resolvedModule:jt,failedLookupLocations:cn,affectingLocations:Sn,resolutionDiagnostics:Er}=Dye(R.checkDefined(e.globalCacheResolutionModuleName)(Le),e.projectName,me,He,Ye,ee);if(jt)return et.resolvedModule=jt,et.failedLookupLocations=oL(et.failedLookupLocations,cn),et.affectingLocations=oL(et.affectingLocations,Sn),et.resolutionDiagnostics=oL(et.resolutionDiagnostics,Er),et}return et}function Ge(Le,pt,me){return{nameAndMode:B4,resolve:(ie,ye)=>ze(ie,Le,me,pt,ye)}}function lt({entries:Le,containingFile:pt,containingSourceFile:me,redirectedReference:ie,options:ye,perFileCache:W,reusedNames:He,loader:et,getResolutionWithResolvedFileName:Ye,shouldRetryResolution:jt,logChanges:cn}){var Sn;const Er=e.toPath(pt),de=W.get(Er)||W.set(Er,t2()).get(Er),mt=[],Jt=cn&&Je(Er),at=e.getCurrentProgram(),fe=at&&at.getResolvedProjectReferenceToRedirect(pt),Te=fe?!ie||ie.sourceFile.path!==fe.sourceFile.path:!!ie,Y=t2();for(const J of Le){const wt=et.nameAndMode.getName(J),Et=et.nameAndMode.getMode(J,me);let ut=de.get(wt,Et);if(!Y.has(wt,Et)&&Te||!ut||ut.isInvalidated||Jt&&!zc(wt)&&jt(ut)){const nn=ut;ut=et.resolve(wt,Et),e.onDiscoveredSymlink&&zBe(ut)&&e.onDiscoveredSymlink(),de.set(wt,Et,ut),gn(wt,ut,Er,Ye),nn&&ea(nn,Er,Ye),cn&&i&&!Ne(nn,ut)&&(i.push(Er),cn=!1)}else{const nn=((Sn=e.getCompilerHost)==null?void 0:Sn.call(e))||e;if(r0(ye,nn)&&!Y.has(wt,Et)){const ir=Ye(ut);ha(nn,W===H?ir!=null&&ir.resolvedFileName?ir.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:ir!=null&&ir.resolvedFileName?ir.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,wt,pt,ir==null?void 0:ir.resolvedFileName,(ir==null?void 0:ir.packageId)&&LT(ir.packageId))}}R.assert(ut!==void 0&&!ut.isInvalidated),Y.set(wt,Et,!0),mt.push(ut)}return He==null||He.forEach(J=>Y.set(et.nameAndMode.getName(J),et.nameAndMode.getMode(J,me),!0)),de.size()!==Y.size()&&de.forEach((J,wt,Et)=>{Y.has(wt,Et)||(ea(J,Er,Ye),de.delete(wt,Et))}),mt;function Ne(J,wt){if(J===wt)return!0;if(!J||!wt)return!1;const Et=Ye(J),ut=Ye(wt);return Et===ut?!0:!Et||!ut?!1:Et.resolvedFileName===ut.resolvedFileName}}function Ct(Le,pt,me,ie,ye,W){var He;return lt({entries:Le,containingFile:pt,containingSourceFile:ye,redirectedReference:me,options:ie,reusedNames:W,perFileCache:X,loader:sF(pt,me,ie,((He=e.getCompilerHost)==null?void 0:He.call(e))||e,ne),getResolutionWithResolvedFileName:Ae,shouldRetryResolution:et=>et.resolvedTypeReferenceDirective===void 0})}function bt(Le,pt,me,ie,ye,W){return lt({entries:Le,containingFile:pt,containingSourceFile:ye,redirectedReference:me,options:ie,reusedNames:W,perFileCache:H,loader:Ge(pt,me,ie),getResolutionWithResolvedFileName:Ee,shouldRetryResolution:He=>!He.resolvedModule||!KR(He.resolvedModule.extension),logChanges:r})}function zt(Le,pt){const me=e.toPath(pt),ie=H.get(me),ye=ie==null?void 0:ie.get(Le,void 0);return ye&&!ye.isInvalidated?ye:ze(Le,pt,e.getCompilationSettings())}function nt(Le){return oc(Le,"/node_modules/@types")}function ot(Le,pt){if(te(z,pt)){Le=Fm(Le)?Xo(Le):Ma(Le,U());const me=pt.split(Bs),ie=Le.split(Bs);return R.assert(ie.length===me.length,`FailedLookup: ${Le} failedLookupLocationPath: ${pt}`),me.length>ce+1?{dir:ie.slice(0,ce+1).join(Bs),dirPath:me.slice(0,ce+1).join(Bs)}:{dir:ae,dirPath:z,nonRecursive:!1}}return sn(vi(Ma(Le,U())),vi(pt))}function sn(Le,pt){for(;hx(pt);)Le=vi(Le),pt=vi(pt);if(gM(pt))return CN(vi(pt))?{dir:Le,dirPath:pt}:void 0;let me=!0,ie,ye;if(z!==void 0)for(;!te(pt,z);){const W=vi(pt);if(W===pt)break;me=!1,ie=pt,ye=Le,pt=W,Le=vi(Le)}return CN(pt)?{dir:ye||Le,dirPath:ie||pt,nonRecursive:me}:void 0}function pn(Le){return Ic(Le,P)}function gn(Le,pt,me,ie){var ye,W;if(pt.refCount)pt.refCount++,R.assertIsDefined(pt.files);else{pt.refCount=1,R.assert(!((ye=pt.files)!=null&&ye.size)),zc(Le)?jn(pt):c.add(Le,pt);const He=ie(pt);if(He&&He.resolvedFileName){const et=e.toPath(He.resolvedFileName);let Ye=v.get(et);Ye||v.set(et,Ye=new Set),Ye.add(pt)}}((W=pt.files)!=null?W:pt.files=new Set).add(me)}function jn(Le){R.assert(!!Le.refCount);const{failedLookupLocations:pt,affectingLocations:me}=Le;if(!(pt!=null&&pt.length)&&!(me!=null&&me.length))return;pt!=null&&pt.length&&_.add(Le);let ie=!1;if(pt){for(const ye of pt){const W=e.toPath(ye),He=ot(ye,W);if(He){const{dir:et,dirPath:Ye,nonRecursive:jt}=He;if(!pn(W)){const cn=ue.get(W)||0;ue.set(W,cn+1)}Ye===z?(R.assert(!jt),ie=!0):Ii(et,Ye,jt)}}ie&&Ii(ae,z,!0)}Ln(Le,!(pt!=null&&pt.length))}function Ln(Le,pt){R.assert(!!Le.refCount);const{affectingLocations:me}=Le;if(me!=null&&me.length){pt&&d.add(Le);for(const ie of me)Zt(ie,!0)}}function Zt(Le,pt){const me=be.get(Le);if(me){pt?me.resolutions++:me.files++;return}let ie=Le;if(e.realpath&&(ie=e.realpath(Le),Le!==ie)){const et=be.get(ie);if(et){pt?et.resolutions++:et.files++,et.paths.add(Le),be.set(Le,et);return}}const ye=new Set;ye.add(ie);let W=CN(e.toPath(ie))?e.watchAffectingFileLocation(ie,(et,Ye)=>{j==null||j.addOrDeleteFile(et,e.toPath(ie),Ye);const jt=ee.getPackageJsonInfoCache().getInternalMap();ye.forEach(cn=>{He.resolutions&&(L!=null?L:L=new Set).add(cn),He.files&&(C!=null?C:C=new Set).add(cn),jt==null||jt.delete(e.toPath(cn))}),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):dL;const He={watcher:W!==dL?{close:()=>{W.close(),W=dL}}:W,resolutions:pt?1:0,files:pt?0:1,paths:ye};be.set(ie,He),Le!==ie&&(be.set(Le,He),ye.add(Le))}function pr(Le,pt){const me=e.getCurrentProgram();!me||!me.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(pt)?Le.forEach(jn):Le.forEach(ie=>Ln(ie,!0))}function Ii(Le,pt,me){const ie=re.get(pt);ie?(R.assert(!!me==!!ie.nonRecursive),ie.refCount++):re.set(pt,{watcher:Or(Le,pt,me),refCount:1,nonRecursive:me})}function ea(Le,pt,me){if(R.checkDefined(Le.files).delete(pt),Le.refCount--,Le.refCount)return;const ie=me(Le);if(ie&&ie.resolvedFileName){const He=e.toPath(ie.resolvedFileName),et=v.get(He);et!=null&&et.delete(Le)&&!et.size&&v.delete(He)}const{failedLookupLocations:ye,affectingLocations:W}=Le;if(_.delete(Le)){let He=!1;for(const et of ye){const Ye=e.toPath(et),jt=ot(et,Ye);if(jt){const{dirPath:cn}=jt,Sn=ue.get(Ye);Sn&&(Sn===1?ue.delete(Ye):(R.assert(Sn>1),ue.set(Ye,Sn-1))),cn===z?He=!0:ta(cn)}}He&&ta(z)}else W!=null&&W.length&&d.delete(Le);if(W)for(const He of W){const et=be.get(He);et.resolutions--}}function ta(Le){const pt=re.get(Le);pt.refCount--}function Or(Le,pt,me){return e.watchDirectoryOfFailedLookupLocation(Le,ie=>{const ye=e.toPath(ie);j&&j.addOrDeleteFileOrDirectory(ie,ye),Oi(ye,pt===ye)},me?0:1)}function Lt(Le,pt,me){const ie=Le.get(pt);ie&&(ie.forEach(ye=>ea(ye,pt,me)),Le.delete(pt))}function yn(Le){if(!_c(Le,".json"))return;const pt=e.getCurrentProgram();if(!pt)return;const me=pt.getResolvedProjectReferenceByPath(Le);me&&me.commandLine.fileNames.forEach(ie=>Wt(e.toPath(ie)))}function Wt(Le){Lt(H,Le,Ee),Lt(X,Le,Ae)}function In(Le,pt){if(!Le)return!1;let me=!1;return Le.forEach(ie=>{if(!(ie.isInvalidated||!pt(ie))){ie.isInvalidated=me=!0;for(const ye of R.checkDefined(ie.files))(o!=null?o:o=new Set).add(ye),T=T||oc(ye,mF)}}),me}function Bn(Le){Wt(Le);const pt=T;In(v.get(Le),xb)&&T&&!pt&&e.onChangedAutomaticTypeDirectiveNames()}function lr(Le){R.assert(s===Le||s===void 0),s=Le}function Oi(Le,pt){if(pt)(k||(k=new Set)).add(Le);else{const me=H$(Le);if(!me||(Le=me,e.fileIsOpen(Le)))return!1;const ie=vi(Le);if(nt(Le)||gM(Le)||nt(ie)||gM(ie))(I||(I=new Set)).add(Le),(M||(M=new Set)).add(Le);else{if(!pn(Le)&&!ue.has(Le)||c0e(e.getCurrentProgram(),Le))return!1;(I||(I=new Set)).add(Le);const ye=cY(Le);ye&&(M||(M=new Set)).add(ye)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function bi(){var Le;let pt=!1;if(C&&((Le=e.getCurrentProgram())==null||Le.getSourceFiles().forEach(ie=>{Dt(ie.packageJsonLocations,ye=>C.has(ye))&&((o!=null?o:o=new Set).add(ie.path),pt=!0)}),C=void 0),!I&&!M&&!k&&!L)return pt;pt=In(_,Rn)||pt;const me=ee.getPackageJsonInfoCache().getInternalMap();return me&&(I||M||k)&&me.forEach((ie,ye)=>an(ye)?me.delete(ye):void 0),I=void 0,M=void 0,k=void 0,pt=In(d,On)||pt,L=void 0,pt}function Rn(Le){var pt;return On(Le)?!0:!I&&!M&&!k?!1:(pt=Le.failedLookupLocations)==null?void 0:pt.some(me=>an(e.toPath(me)))}function an(Le){return(I==null?void 0:I.has(Le))||Xn((M==null?void 0:M.keys())||[],pt=>xa(Le,pt)?!0:void 0)||Xn((k==null?void 0:k.keys())||[],pt=>te(pt,Le)?!0:void 0)}function On(Le){var pt;return!!L&&((pt=Le.affectingLocations)==null?void 0:pt.some(me=>L.has(me)))}function Ir(){o_(he,Km)}function Hr(Le,pt){if(te(z,pt))return z;const me=sn(Le,pt);return me&&re.has(me.dirPath)?me.dirPath:void 0}function Oe(Le,pt){return e.watchTypeRootsDirectory(pt,me=>{const ie=e.toPath(me);j&&j.addOrDeleteFileOrDirectory(me,ie),T=!0,e.onChangedAutomaticTypeDirectiveNames();const ye=Hr(pt,Le);ye&&Oi(ie,ye===ie)},1)}function gt(){const Le=e.getCompilationSettings();if(Le.types){Ir();return}const pt=nN(Le,{directoryExists:Ot,getCurrentDirectory:U});pt?CC(he,Tb(pt,me=>e.toPath(me)),{createNewValue:Oe,onDeleteValue:Km}):Ir()}function Ot(Le){const pt=vi(vi(Le)),me=e.toPath(pt);return me===z||CN(me)}}function zBe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var qBe=b({"src/compiler/resolutionCache.ts"(){"use strict";Oa(),Oa()}});function LN(e,t){const r=e===nu&&tQ?tQ:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:lu(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(g$(o,r));const i=new Array(1);return o=>{i[0]=o,e.write(h0e(i,r)+r.getNewLine()),i[0]=void 0}}function F0e(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&Fr(AF,t.code)?(e.clearScreen(),!0):!1}function JBe(e,t){return Fr(AF,e.code)?t+t:t}function IN(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function B0e(e,t){return t?(r,i,o)=>{F0e(e,r,o);let s=`[${fE(IN(e),"\x1B[90m")}] `;s+=`${i0(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";F0e(e,r,o)||(s+=i),s+=`${IN(e)} - `,s+=`${i0(r.messageText,e.newLine)}${JBe(r,i)}`,e.write(s)}}function KBe(e,t,r,i,o,s){const c=o;c.onUnRecoverableConfigFileDiagnostic=d=>z0e(o,s,d);const _=G6(e,t,c,r,i);return c.onUnRecoverableConfigFileDiagnostic=void 0,_}function bF(e){return Hc(e,t=>t.category===1)}function EF(e){return ur(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;const i=$t(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){const{line:o}=ll(i.file,i.start);return{fileName:r,line:o+1}}})}function z$(e){return e===1?m.Found_1_error_Watching_for_file_changes:m.Found_0_errors_Watching_for_file_changes}function G0e(e,t){const r=fE(":"+e.line,"\x1B[90m");return jI(e.fileName)&&jI(t)?Bm(t,e.fileName,!1)+r:e.fileName+r}function U0e(e,t,r,i){if(e===0)return"";const o=t.filter(v=>v!==void 0),s=o.map(v=>`${v.fileName}:${v.line}`).filter((v,g,T)=>T.indexOf(v)===g),c=o[0]&&G0e(o[0],i.getCurrentDirectory()),_=e===1?Gs(t[0]!==void 0?m.Found_1_error_in_1:m.Found_1_error,e,c):Gs(s.length===0?m.Found_0_errors:s.length===1?m.Found_0_errors_in_the_same_file_starting_at_Colon_1:m.Found_0_errors_in_1_files,e,s.length===1?c:s.length),d=s.length>1?XBe(o,i):"";return`${r}${i0(_.messageText,r)}${r}${r}${d}`}function XBe(e,t){const r=e.filter((T,C,L)=>C===L.findIndex(I=>(I==null?void 0:I.fileName)===(T==null?void 0:T.fileName)));if(r.length===0)return"";const i=T=>Math.log(T)*Math.LOG10E+1,o=r.map(T=>[T,Hc(e,C=>C.fileName===T.fileName)]),s=o.reduce((T,C)=>Math.max(T,C[1]||0),0),c=m.Errors_Files.message,_=c.split(" ")[0].length,d=Math.max(_,i(s)),v=Math.max(i(s)-_,0);let g="";return g+=" ".repeat(v)+c+`
`,o.forEach(T=>{const[C,L]=T,I=Math.log(L)*Math.LOG10E+1|0,M=I<d?" ".repeat(d-I):"",k=G0e(C,t.getCurrentDirectory());g+=`${M}${L} ${k}
`}),g}function V0e(e){return!!e.getState}function q$(e,t){const r=e.getCompilerOptions();r.explainFiles?j0e(V0e(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&Ie(e.getSourceFiles(),i=>{t(i.fileName)})}function j0e(e,t){var r,i;const o=e.getFileIncludeReasons(),s=c=>WI(c,e.getCurrentDirectory(),e.getCanonicalFileName);for(const c of e.getSourceFiles())t(`${vx(c,s)}`),(r=o.get(c.path))==null||r.forEach(_=>t(` ${Y$(e,_,s).messageText}`)),(i=J$(c,s))==null||i.forEach(_=>t(` ${_.messageText}`))}function J$(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i!=null?i:i=[]).push(Na(void 0,m.File_is_output_of_project_reference_source_0,vx(e.originalFileName,t))),e.redirectInfo&&(i!=null?i:i=[]).push(Na(void 0,m.File_redirects_to_file_0,vx(e.redirectInfo.redirectTarget,t))),_f(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i!=null?i:i=[]).push(Na(void 0,m.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,vx(Ko(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i!=null?i:i=[]).push(Na(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,vx(Ko(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i!=null?i:i=[]).push(Na(void 0,m.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function K$(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=vi(Ma(i.fileName,e.getCurrentDirectory()));return $t(i.configFileSpecs.validatedFilesSpec,c=>e.getCanonicalFileName(Ma(c,s))===o)}function X$(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=_c(t,".json"),c=vi(Ma(o.fileName,e.getCurrentDirectory())),_=e.useCaseSensitiveFileNames();return $t((i=o==null?void 0:o.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,d=>{if(s&&!oc(d,".json"))return!1;const v=WJ(d,c,"files");return!!v&&Xv(`(${v})$`,_).test(t)})}function Y$(e,t,r){var i,o;const s=e.getCompilerOptions();if(S1(t)){const c=P4(v=>e.getSourceFileByPath(v),t),_=cL(c)?c.file.text.substring(c.pos,c.end):`"${c.text}"`;let d;switch(R.assert(cL(c)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:cL(c)?d=c.packageId?m.Imported_via_0_from_file_1_with_packageId_2:m.Imported_via_0_from_file_1:c.text===g1?d=c.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:d=c.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:R.assert(!c.packageId),d=m.Referenced_via_0_from_file_1;break;case 5:d=c.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:R.assert(!c.packageId),d=m.Library_referenced_via_0_from_file_1;break;default:R.assertNever(t)}return Na(void 0,d,_,vx(c.file,r),c.packageId&&LT(c.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return Na(void 0,m.Root_file_specified_for_compilation);const c=Ma(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(K$(e,c))return Na(void 0,m.Part_of_files_list_in_tsconfig_json);const d=X$(e,c);return za(d)?Na(void 0,m.Matched_by_include_pattern_0_in_1,d,vx(s.configFile,r)):Na(void 0,d?m.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:m.Root_file_specified_for_compilation);case 1:case 2:const v=t.kind===2,g=R.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return Na(void 0,Ks(s)?v?m.Output_from_referenced_project_0_included_because_1_specified:m.Source_from_referenced_project_0_included_because_1_specified:v?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,vx(g.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:return Na(void 0,s.types?t.packageId?m.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:m.Entry_point_of_type_library_0_specified_in_compilerOptions:t.packageId?m.Entry_point_for_implicit_type_library_0_with_packageId_1:m.Entry_point_for_implicit_type_library_0,t.typeReference,t.packageId&&LT(t.packageId));case 6:if(t.index!==void 0)return Na(void 0,m.Library_0_specified_in_compilerOptions,s.lib[t.index]);const T=ff(Q6.type,(C,L)=>C===ns(s)?L:void 0);return Na(void 0,T?m.Default_library_for_target_0:m.Default_library,T);default:R.assertNever(t)}}function vx(e,t){const r=za(e)?e:e.fileName;return t?t(r):r}function TF(e,t,r,i,o,s,c,_){const d=!!e.getCompilerOptions().listFilesOnly,v=e.getConfigFileParsingDiagnostics().slice(),g=v.length;xi(v,e.getSyntacticDiagnostics(void 0,s)),v.length===g&&(xi(v,e.getOptionsDiagnostics(s)),d||(xi(v,e.getGlobalDiagnostics(s)),v.length===g&&xi(v,e.getSemanticDiagnostics(void 0,s))));const T=d?{emitSkipped:!0,diagnostics:it}:e.emit(void 0,o,s,c,_),{emittedFiles:C,diagnostics:L}=T;xi(v,L);const I=zA(v);if(I.forEach(t),r){const M=e.getCurrentDirectory();Ie(C,k=>{const U=Ma(k,M);r(`TSFILE: ${U}`)}),q$(e,r)}return i&&i(bF(I),EF(I)),{emitResult:T,diagnostics:I}}function W0e(e,t,r,i,o,s,c,_){const{emitResult:d,diagnostics:v}=TF(e,t,r,i,o,s,c,_);return d.emitSkipped&&v.length>0?1:v.length>0?2:0}function $$(e=nu,t){return{onWatchStatusChange:t||B0e(e),watchFile:Vo(e,e.watchFile)||kN,watchDirectory:Vo(e,e.watchDirectory)||kN,setTimeout:Vo(e,e.setTimeout)||co,clearTimeout:Vo(e,e.clearTimeout)||co}}function Q$(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):co,o=u0e(e,r,i);return o.writeLog=i,o}function Z$(e,t,r=e){const i=e.useCaseSensitiveFileNames(),o={getSourceFile:p$((s,c)=>c?e.readFile(s,c):o.readFile(s),t,void 0),getDefaultLibLocation:Vo(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:m$((s,c,_)=>e.writeFile(s,c,_),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Ld(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:lu(i),getNewLine:()=>m1(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:Vo(e,e.trace),directoryExists:Vo(r,r.directoryExists),getDirectories:Vo(r,r.getDirectories),realpath:Vo(e,e.realpath),getEnvironmentVariable:Vo(e,e.getEnvironmentVariable)||(()=>""),createHash:Vo(e,e.createHash),readDirectory:Vo(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit};return o}function SF(e,t){if(t.match(PY)){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||!Tu(s)){i=o;continue}break}const c=t.substring(i,r);if(c.match(H9)){t=t.substring(0,i);break}else if(!c.match(z9))break;r=i}}return(e.createHash||fD)(t)}function xF(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=SF(e,i.text)),i}}function eQ(e,t){const r=Ld(()=>vi(Xo(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Ld(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Fi(r(),SM(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,c,_)=>e.readDirectory(i,o,s,c,_),realpath:Vo(e,e.realpath),getEnvironmentVariable:Vo(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:Vo(e,e.createHash),createProgram:t||W$,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:Vo(e,e.now)}}function H0e(e=nu,t,r,i){const o=c=>e.write(c+e.newLine),s=eQ(e,t);return nH(s,$$(e,i)),s.afterProgramCreate=c=>{const _=c.getCompilerOptions(),d=m1(_);TF(c,r,o,v=>s.onWatchStatusChange(Gs(z$(v),v),d,_,v))},s}function z0e(e,t,r){t(r),e.exit(1)}function q0e({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:c,reportWatchStatus:_}){const d=c||LN(o),v=H0e(o,s,d,_);return v.onUnRecoverableConfigFileDiagnostic=g=>z0e(o,d,g),v.configFileName=e,v.optionsToExtend=t,v.watchOptionsToExtend=r,v.extraFileExtensions=i,v}function J0e({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:c,reportWatchStatus:_}){const d=H0e(o,s,c||LN(o),_);return d.rootFiles=e,d.options=t,d.watchOptions=r,d.projectReferences=i,d}function YBe(e){const t=e.system||nu,r=e.host||(e.host=nQ(e.options,t)),i=K0e(e),o=W0e(i,e.reportDiagnostic||LN(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,c)=>t.write(U0e(s,c,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var tQ,AF,dL,kN,I_,$Be=b({"src/compiler/watch.ts"(){"use strict";Oa(),tQ=nu?{getCurrentDirectory:()=>nu.getCurrentDirectory(),getNewLine:()=>nu.newLine,getCanonicalFileName:lu(nu.useCaseSensitiveFileNames)}:void 0,AF=[m.Starting_compilation_in_watch_mode.code,m.File_change_detected_Starting_incremental_compilation.code],dL={close:co},kN=()=>dL,I_={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"}}});function CF(e,t){const r=Vy(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=tF(r,o)}if(!(!i||i.version!==pe||!i.program))return M0e(i,r,t)}function nQ(e,t=nu){const r=h$(e,void 0,t);return r.createHash=Vo(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,xF(r),EN(r,i=>Js(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function K0e({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||nQ(t),s=s||W$;const c=CF(t,o);return s(e,t,o,c,r,i)}function QBe(e,t,r,i,o,s,c,_){return ja(e)?J0e({rootFiles:e,options:t,watchOptions:_,projectReferences:c,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):q0e({configFileName:e,optionsToExtend:t,watchOptionsToExtend:c,extraFileExtensions:_,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function ZBe(e){let t,r,i,o,s,c,_,d,v=e.extendedConfigCache,g=!1;const T=new Map;let C,L=!1;const I=e.useCaseSensitiveFileNames(),M=e.getCurrentDirectory(),{configFileName:k,optionsToExtend:U={},watchOptionsToExtend:j,extraFileExtensions:H,createProgram:ee}=e;let{rootFiles:X,options:ne,watchOptions:P,projectReferences:ue}=e,re,be,ae=!1,z=!1;const ce=k===void 0?void 0:o0e(e,M,I),he=ce||e,Ee=dF(e,he);let Ae=sn();k&&e.configFileParsingResult&&(On(e.configFileParsingResult),Ae=sn()),ta(m.Starting_compilation_in_watch_mode),k&&!e.configFileParsingResult&&(Ae=m1(U),R.assert(!X),an(),Ae=sn()),R.assert(ne),R.assert(X);const{watchFile:te,watchDirectory:Ze,writeLog:je}=Q$(e,ne),Ue=lu(I);je(`Current directory: ${M} CaseSensitiveFileNames: ${I}`);let Je;k&&(Je=te(k,Bn,2e3,P,I_.ConfigFile));const Fe=Z$(e,()=>ne,he);xF(Fe);const Be=Fe.getSourceFile;Fe.getSourceFile=(et,...Ye)=>Zt(et,pn(et),...Ye),Fe.getSourceFileByPath=Zt,Fe.getNewLine=()=>Ae,Fe.fileExists=Ln,Fe.onReleaseOldSourceFile=ea,Fe.onReleaseParsedCommandLine=Oe,Fe.toPath=pn,Fe.getCompilationSettings=()=>ne,Fe.useSourceOfProjectReferenceRedirect=Vo(e,e.useSourceOfProjectReferenceRedirect),Fe.watchDirectoryOfFailedLookupLocation=(et,Ye,jt)=>Ze(et,Ye,jt,P,I_.FailedLookupLocations),Fe.watchAffectingFileLocation=(et,Ye)=>te(et,Ye,2e3,P,I_.AffectingFileLocation),Fe.watchTypeRootsDirectory=(et,Ye,jt)=>Ze(et,Ye,jt,P,I_.TypeRoots),Fe.getCachedDirectoryStructureHost=()=>ce,Fe.scheduleInvalidateResolutionsOfFailedLookupLocations=yn,Fe.onInvalidatedResolution=In,Fe.onChangedAutomaticTypeDirectiveNames=In,Fe.fileIsOpen=Sb,Fe.getCurrentProgram=bt,Fe.writeLog=je,Fe.getParsedCommandLine=Ir;const $e=P0e(Fe,k?vi(Ma(k,M)):M,!1);Fe.resolveModuleNameLiterals=Vo(e,e.resolveModuleNameLiterals),Fe.resolveModuleNames=Vo(e,e.resolveModuleNames),!Fe.resolveModuleNameLiterals&&!Fe.resolveModuleNames&&(Fe.resolveModuleNameLiterals=$e.resolveModuleNameLiterals.bind($e)),Fe.resolveTypeReferenceDirectiveReferences=Vo(e,e.resolveTypeReferenceDirectiveReferences),Fe.resolveTypeReferenceDirectives=Vo(e,e.resolveTypeReferenceDirectives),!Fe.resolveTypeReferenceDirectiveReferences&&!Fe.resolveTypeReferenceDirectives&&(Fe.resolveTypeReferenceDirectiveReferences=$e.resolveTypeReferenceDirectiveReferences.bind($e)),Fe.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Vo(e,e.getModuleResolutionCache):()=>$e.getModuleResolutionCache();const Ge=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Vo(e,e.hasInvalidatedResolutions)||xb:Sb;return t=CF(ne,Fe),zt(),ie(),k&&W(pn(k),ne,P,I_.ExtendedConfigFile),k?{getCurrentProgram:Ct,getProgram:Oi,close:lt}:{getCurrentProgram:Ct,getProgram:Oi,updateRootFileNames:ot,close:lt};function lt(){Lt(),$e.clear(),o_(T,et=>{et&&et.fileWatcher&&(et.fileWatcher.close(),et.fileWatcher=void 0)}),Je&&(Je.close(),Je=void 0),v==null||v.clear(),v=void 0,d&&(o_(d,nh),d=void 0),o&&(o_(o,nh),o=void 0),i&&(o_(i,Km),i=void 0),_&&(o_(_,et=>{var Ye;(Ye=et.watcher)==null||Ye.close(),et.watcher=void 0,et.watchedDirectories&&o_(et.watchedDirectories,nh),et.watchedDirectories=void 0}),_=void 0)}function Ct(){return t}function bt(){return t&&t.getProgramOrUndefined()}function zt(){je("Synchronizing program"),R.assert(ne),R.assert(X),Lt();const et=Ct();L&&(Ae=sn(),et&&pq(et.getCompilerOptions(),ne)&&$e.clear());const Ye=$e.createHasInvalidatedResolutions(Ge),{originalReadFile:jt,originalFileExists:cn,originalDirectoryExists:Sn,originalCreateDirectory:Er,originalWriteFile:de,readFileWithCache:mt}=EN(Fe,pn);return S$(bt(),X,ne,Jt=>Ii(Jt,mt),Jt=>Fe.fileExists(Jt),Ye,Or,Ir,ue)?z&&(g&&ta(m.File_change_detected_Starting_incremental_compilation),t=ee(void 0,void 0,Fe,t,be,ue),z=!1):(g&&ta(m.File_change_detected_Starting_incremental_compilation),nt(Ye)),g=!1,e.afterProgramCreate&&et!==t&&e.afterProgramCreate(t),Fe.readFile=jt,Fe.fileExists=cn,Fe.directoryExists=Sn,Fe.createDirectory=Er,Fe.writeFile=de,t}function nt(et){je("CreatingProgramWith::"),je(` roots: ${JSON.stringify(X)}`),je(` options: ${JSON.stringify(ne)}`),ue&&je(` projectReferences: ${JSON.stringify(ue)}`);const Ye=L||!bt();L=!1,z=!1,$e.startCachingPerDirectoryResolution(),Fe.hasInvalidatedResolutions=et,Fe.hasChangedAutomaticTypeDirectiveNames=Or;const jt=bt();if(t=ee(X,ne,Fe,t,be,ue),$e.finishCachingPerDirectoryResolution(t.getProgram(),jt),l0e(t.getProgram(),i||(i=new Map),pt),Ye&&$e.updateTypeRootsWatch(),C){for(const cn of C)i.has(cn)||T.delete(cn);C=void 0}}function ot(et){R.assert(!k,"Cannot update root file names with config file watch mode"),X=et,In()}function sn(){return m1(ne||U)}function pn(et){return Js(et,M,Ue)}function gn(et){return typeof et=="boolean"}function jn(et){return typeof et.version=="boolean"}function Ln(et){const Ye=pn(et);return gn(T.get(Ye))?!1:he.fileExists(et)}function Zt(et,Ye,jt,cn,Sn){const Er=T.get(Ye);if(!gn(Er)){if(Er===void 0||Sn||jn(Er)){const de=Be(et,jt,cn);if(Er)de?(Er.sourceFile=de,Er.version=de.version,Er.fileWatcher||(Er.fileWatcher=gt(Ye,et,Ot,250,P,I_.SourceFile))):(Er.fileWatcher&&Er.fileWatcher.close(),T.set(Ye,!1));else if(de){const mt=gt(Ye,et,Ot,250,P,I_.SourceFile);T.set(Ye,{sourceFile:de,version:de.version,fileWatcher:mt})}else T.set(Ye,!1);return de}return Er.sourceFile}}function pr(et){const Ye=T.get(et);Ye!==void 0&&(gn(Ye)?T.set(et,{version:!1}):Ye.version=!1)}function Ii(et,Ye){const jt=T.get(et);if(!jt)return;if(jt.version)return jt.version;const cn=Ye(et);return cn!==void 0?SF(Fe,cn):void 0}function ea(et,Ye,jt){const cn=T.get(et.resolvedPath);cn!==void 0&&(gn(cn)?(C||(C=[])).push(et.path):cn.sourceFile===et&&(cn.fileWatcher&&cn.fileWatcher.close(),T.delete(et.resolvedPath),jt||$e.removeResolutionsOfFile(et.path)))}function ta(et){e.onWatchStatusChange&&e.onWatchStatusChange(Gs(et),Ae,ne||U)}function Or(){return $e.hasChangedAutomaticTypeDirectiveNames()}function Lt(){return c?(e.clearTimeout(c),c=void 0,!0):!1}function yn(){if(!e.setTimeout||!e.clearTimeout)return $e.invalidateResolutionsOfFailedLookupLocations();const et=Lt();je(`Scheduling invalidateFailedLookup${et?", Cancelled earlier one":""}`),c=e.setTimeout(Wt,250)}function Wt(){c=void 0,$e.invalidateResolutionsOfFailedLookupLocations()&&In()}function In(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),je("Scheduling update"),s=e.setTimeout(lr,250))}function Bn(){R.assert(!!k),r=2,In()}function lr(){s=void 0,g=!0,Oi()}function Oi(){switch(r){case 1:tm.logStartUpdateProgram("PartialConfigReload"),bi();break;case 2:tm.logStartUpdateProgram("FullConfigReload"),Rn();break;default:tm.logStartUpdateProgram("SynchronizeProgram"),zt();break}return tm.logStopUpdateProgram("Done"),Ct()}function bi(){je("Reloading new file names and options"),R.assert(ne),R.assert(k),r=0,X=q6(ne.configFile.configFileSpecs,Ma(vi(k),M),ne,Ee,H),UX(X,Ma(k,M),ne.configFile.configFileSpecs,be,ae)&&(z=!0),zt()}function Rn(){R.assert(k),je(`Reloading config file: ${k}`),r=0,ce&&ce.clearCache(),an(),L=!0,zt(),ie(),W(pn(k),ne,P,I_.ExtendedConfigFile)}function an(){R.assert(k),On(G6(k,U,Ee,v||(v=new Map),j,H))}function On(et){X=et.fileNames,ne=et.options,P=et.watchOptions,ue=et.projectReferences,re=et.wildcardDirectories,be=o2(et).slice(),ae=H6(et.raw),z=!0}function Ir(et){const Ye=pn(et);let jt=_==null?void 0:_.get(Ye);if(jt){if(!jt.reloadLevel)return jt.parsedCommandLine;if(jt.parsedCommandLine&&jt.reloadLevel===1&&!e.getParsedCommandLine){je("Reloading new file names and options"),R.assert(ne);const Sn=q6(jt.parsedCommandLine.options.configFile.configFileSpecs,Ma(vi(et),M),ne,Ee);return jt.parsedCommandLine=so(Li({},jt.parsedCommandLine),{fileNames:Sn}),jt.reloadLevel=void 0,jt.parsedCommandLine}}je(`Loading config file: ${et}`);const cn=e.getParsedCommandLine?e.getParsedCommandLine(et):Hr(et);return jt?(jt.parsedCommandLine=cn,jt.reloadLevel=void 0):(_||(_=new Map)).set(Ye,jt={parsedCommandLine:cn}),He(et,Ye,jt),cn}function Hr(et){const Ye=Ee.onUnRecoverableConfigFileDiagnostic;Ee.onUnRecoverableConfigFileDiagnostic=co;const jt=G6(et,void 0,Ee,v||(v=new Map),j);return Ee.onUnRecoverableConfigFileDiagnostic=Ye,jt}function Oe(et){var Ye;const jt=pn(et),cn=_==null?void 0:_.get(jt);cn&&(_.delete(jt),cn.watchedDirectories&&o_(cn.watchedDirectories,nh),(Ye=cn.watcher)==null||Ye.close(),s0e(jt,d))}function gt(et,Ye,jt,cn,Sn,Er){return te(Ye,(de,mt)=>jt(de,mt,et),cn,Sn,Er)}function Ot(et,Ye,jt){Le(et,jt,Ye),Ye===2&&T.has(jt)&&$e.invalidateResolutionOfFile(jt),pr(jt),In()}function Le(et,Ye,jt){ce&&ce.addOrDeleteFile(et,Ye,jt)}function pt(et){return _!=null&&_.has(et)?dL:gt(et,et,me,500,P,I_.MissingFile)}function me(et,Ye,jt){Le(et,jt,Ye),Ye===0&&i.has(jt)&&(i.get(jt).close(),i.delete(jt),pr(jt),In())}function ie(){re?rF(o||(o=new Map),new Map(Object.entries(re)),ye):o&&o_(o,nh)}function ye(et,Ye){return Ze(et,jt=>{R.assert(k),R.assert(ne);const cn=pn(jt);ce&&ce.addOrDeleteFileOrDirectory(jt,cn),pr(cn),!iF({watchedDirPath:pn(et),fileOrDirectory:jt,fileOrDirectoryPath:cn,configFileName:k,extraFileExtensions:H,options:ne,program:Ct()||X,currentDirectory:M,useCaseSensitiveFileNames:I,writeLog:je,toPath:pn})&&r!==2&&(r=1,In())},Ye,P,I_.WildcardDirectory)}function W(et,Ye,jt,cn){R.assert(k),u$(et,Ye,d||(d=new Map),(Sn,Er)=>te(Sn,(de,mt)=>{var Jt;Le(Sn,Er,mt),v&&d$(v,Er,pn);const at=(Jt=d.get(Er))==null?void 0:Jt.projects;at!=null&&at.size&&at.forEach(fe=>{if(pn(k)===fe)r=2;else{const Te=_==null?void 0:_.get(fe);Te&&(Te.reloadLevel=2),$e.removeResolutionsFromProjectReferenceRedirects(fe)}In()})},2e3,jt,cn),pn)}function He(et,Ye,jt){var cn,Sn,Er,de,mt;jt.watcher||(jt.watcher=te(et,(Jt,at)=>{Le(et,Ye,at);const fe=_==null?void 0:_.get(Ye);fe&&(fe.reloadLevel=2),$e.removeResolutionsFromProjectReferenceRedirects(Ye),In()},2e3,((cn=jt.parsedCommandLine)==null?void 0:cn.watchOptions)||P,I_.ConfigFileOfReferencedProject)),(Sn=jt.parsedCommandLine)!=null&&Sn.wildcardDirectories?rF(jt.watchedDirectories||(jt.watchedDirectories=new Map),new Map(Object.entries((Er=jt.parsedCommandLine)==null?void 0:Er.wildcardDirectories)),(Jt,at)=>{var fe;return Ze(Jt,Te=>{const Y=pn(Te);ce&&ce.addOrDeleteFileOrDirectory(Te,Y),pr(Y);const Ne=_==null?void 0:_.get(Ye);Ne!=null&&Ne.parsedCommandLine&&(iF({watchedDirPath:pn(Jt),fileOrDirectory:Te,fileOrDirectoryPath:Y,configFileName:et,options:Ne.parsedCommandLine.options,program:Ne.parsedCommandLine.fileNames,currentDirectory:M,useCaseSensitiveFileNames:I,writeLog:je,toPath:pn})||Ne.reloadLevel!==2&&(Ne.reloadLevel=1,In()))},at,((fe=jt.parsedCommandLine)==null?void 0:fe.watchOptions)||P,I_.WildcardDirectoryOfReferencedProject)}):jt.watchedDirectories&&(o_(jt.watchedDirectories,nh),jt.watchedDirectories=void 0),W(Ye,(de=jt.parsedCommandLine)==null?void 0:de.options,((mt=jt.parsedCommandLine)==null?void 0:mt.watchOptions)||P,I_.ExtendedConfigOfReferencedProject)}}var eGe=b({"src/compiler/watchPublic.ts"(){"use strict";Oa(),Oa()}});function rQ(e){return _c(e,".json")?e:Fi(e,"tsconfig.json")}var iQ,tGe=b({"src/compiler/tsbuild.ts"(){"use strict";Oa(),iQ=(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))(iQ||{})}});function nGe(e,t,r){const i=e.get(t);let o;return i||(o=r(),e.set(t,o)),i||o}function aQ(e,t){return nGe(e,t,()=>new Map)}function wN(e){return e.now?e.now():new Date}function bx(e){return!!e&&!!e.buildOrder}function LF(e){return bx(e)?e.buildOrder:e}function X0e(e,t){return r=>{let i=t?`[${fE(IN(e),"\x1B[90m")}] `:`${IN(e)} - `;i+=`${i0(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function Y0e(e,t,r,i){const o=eQ(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):n1,o.setModifiedTime=e.setModifiedTime?(s,c)=>e.setModifiedTime(s,c):co,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):co,o.reportDiagnostic=r||LN(e),o.reportSolutionBuilderStatus=i||X0e(e),o.now=Vo(e,e.now),o}function rGe(e=nu,t,r,i,o){const s=Y0e(e,t,r,i);return s.reportErrorSummary=o,s}function iGe(e=nu,t,r,i,o){const s=Y0e(e,t,r,i),c=$$(e,o);return nH(s,c),s}function aGe(e){const t={};return $6.forEach(r=>{Fs(e,r.name)&&(t[r.name]=e[r.name])}),t}function oGe(e,t,r){return v1e(!1,e,t,r)}function sGe(e,t,r,i){return v1e(!0,e,t,r,i)}function lGe(e,t,r,i,o){const s=t,c=t,_=aGe(i),d=Z$(s,()=>I.projectCompilerOptions);xF(d),d.getParsedCommandLine=M=>l2(I,M,Rp(I,M)),d.resolveModuleNameLiterals=Vo(s,s.resolveModuleNameLiterals),d.resolveTypeReferenceDirectiveReferences=Vo(s,s.resolveTypeReferenceDirectiveReferences),d.resolveModuleNames=Vo(s,s.resolveModuleNames),d.resolveTypeReferenceDirectives=Vo(s,s.resolveTypeReferenceDirectives),d.getModuleResolutionCache=Vo(s,s.getModuleResolutionCache);let v,g;!d.resolveModuleNameLiterals&&!d.resolveModuleNames&&(v=x9(d.getCurrentDirectory(),d.getCanonicalFileName),d.resolveModuleNameLiterals=(M,k,U,j,H)=>SN(M,k,U,j,H,s,v,T$),d.getModuleResolutionCache=()=>v),!d.resolveTypeReferenceDirectiveReferences&&!d.resolveTypeReferenceDirectives&&(g=A9(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,v==null?void 0:v.getPackageJsonInfoCache()),d.resolveTypeReferenceDirectiveReferences=(M,k,U,j,H)=>SN(M,k,U,j,H,s,g,sF)),d.getBuildInfo=(M,k)=>u1e(I,M,Rp(I,k),void 0);const{watchFile:T,watchDirectory:C,writeLog:L}=Q$(c,i),I={host:s,hostWithWatch:c,parseConfigFileHost:dF(s),write:Vo(s,s.trace),options:i,baseCompilerOptions:_,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:d,moduleResolutionCache:v,typeReferenceDirectiveResolutionCache:g,buildOrder:void 0,readFileWithCache:M=>s.readFile(M),projectCompilerOptions:_,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:T,watchDirectory:C,writeLog:L};return I}function Kd(e,t){return Js(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Rp(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const o=Kd(e,t);return r.set(t,o),o}function $0e(e){return!!e.options}function cGe(e,t){const r=e.configFileCache.get(t);return r&&$0e(r)?r:void 0}function l2(e,t,r){const{configFileCache:i}=e,o=i.get(r);if(o)return $0e(o)?o:void 0;sl("SolutionBuilder::beforeConfigFileParsing");let s;const{parseConfigFileHost:c,baseCompilerOptions:_,baseWatchOptions:d,extendedConfigCache:v,host:g}=e;let T;return g.getParsedCommandLine?(T=g.getParsedCommandLine(t),T||(s=Gs(m.File_0_not_found,t))):(c.onUnRecoverableConfigFileDiagnostic=C=>s=C,T=G6(t,_,c,v,d),c.onUnRecoverableConfigFileDiagnostic=co),i.set(r,T||s),sl("SolutionBuilder::afterConfigFileParsing"),e_("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),T}function fL(e,t){return rQ(Ov(e.compilerHost.getCurrentDirectory(),t))}function Q0e(e,t){const r=new Map,i=new Map,o=[];let s,c;for(const d of t)_(d);return c?{buildOrder:s||it,circularDiagnostics:c}:s||it;function _(d,v){const g=Rp(e,d);if(i.has(g))return;if(r.has(g)){v||(c||(c=[])).push(Gs(m.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r
`)));return}r.set(g,!0),o.push(d);const T=l2(e,d,g);if(T&&T.projectReferences)for(const C of T.projectReferences){const L=fL(e,C.path);_(L,v||C.circular)}o.pop(),i.set(g,!0),(s||(s=[])).push(d)}}function DN(e){return e.buildOrder||uGe(e)}function uGe(e){const t=Q0e(e,e.rootNames.map(o=>fL(e,o)));e.resolvedConfigFilePaths.clear();const r=new Map(LF(t).map(o=>[Rp(e,o),!0])),i={onDeleteValue:co};return Ag(e.configFileCache,r,i),Ag(e.projectStatus,r,i),Ag(e.builderPrograms,r,i),Ag(e.diagnostics,r,i),Ag(e.projectPendingBuild,r,i),Ag(e.projectErrorsReported,r,i),Ag(e.buildInfoCache,r,i),Ag(e.outputTimeStamps,r,i),e.watch&&(Ag(e.allWatchedConfigFiles,r,{onDeleteValue:Km}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),Ag(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(nh)}),Ag(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Km)}),Ag(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Km)})),e.buildOrder=t}function Z0e(e,t,r){const i=t&&fL(e,t),o=DN(e);if(bx(o))return o;if(i){const c=Rp(e,i);if(ii(o,d=>Rp(e,d)===c)===-1)return}const s=i?Q0e(e,[i]):o;return R.assert(!bx(s)),R.assert(!r||i!==void 0),R.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function e1e(e){e.cache&&oQ(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:c,originalDirectoryExists:_,originalCreateDirectory:d,originalWriteFile:v,getSourceFileWithCache:g,readFileWithCache:T}=EN(r,C=>Kd(e,C),(...C)=>o.call(t,...C));e.readFileWithCache=T,t.getSourceFile=g,e.cache={originalReadFile:s,originalFileExists:c,originalDirectoryExists:_,originalCreateDirectory:d,originalWriteFile:v,originalReadFileWithCache:i,originalGetSourceFile:o}}function oQ(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:c}=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(),c==null||c.clear(),e.cache=void 0}function t1e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function n1e({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||i<r)&&e.set(t,r)}function r1e(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&yQ(e,m.Starting_compilation_in_watch_mode),e1e(e),LF(DN(e)).forEach(i=>e.projectPendingBuild.set(Rp(e,i),0)),t&&t.throwIfCancellationRequested()}function i1e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function dGe(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:()=>{f1e(e,i,r),s=!1},done:()=>(s&&f1e(e,i,r),sl("SolutionBuilder::Timestamps only updates"),i1e(e,r))}}function a1e(e,t,r,i,o,s,c){let _=e===0?0:4,d,v,g;return e===0?{kind:e,project:r,projectPath:i,buildOrder:c,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>C(gl),getProgram:()=>C(P=>P.getProgramOrUndefined()),getSourceFile:P=>C(ue=>ue.getSourceFile(P)),getSourceFiles:()=>L(P=>P.getSourceFiles()),getOptionsDiagnostics:P=>L(ue=>ue.getOptionsDiagnostics(P)),getGlobalDiagnostics:P=>L(ue=>ue.getGlobalDiagnostics(P)),getConfigFileParsingDiagnostics:()=>L(P=>P.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(P,ue)=>L(re=>re.getSyntacticDiagnostics(P,ue)),getAllDependencies:P=>L(ue=>ue.getAllDependencies(P)),getSemanticDiagnostics:(P,ue)=>L(re=>re.getSemanticDiagnostics(P,ue)),getSemanticDiagnosticsOfNextAffectedFile:(P,ue)=>C(re=>re.getSemanticDiagnosticsOfNextAffectedFile&&re.getSemanticDiagnosticsOfNextAffectedFile(P,ue)),emit:(P,ue,re,be,ae)=>{if(P||be)return C(z=>{var ce,he;return z.emit(P,ue,re,be,ae||((he=(ce=t.host).getCustomTransformers)==null?void 0:he.call(ce,r)))});if(ne(2,re),_===5)return H(ue,re);if(_===3)return j(ue,re,ae)},done:T}:{kind:e,project:r,projectPath:i,buildOrder:c,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(P,ue)=>_!==4?g:X(P,ue),done:T};function T(P,ue,re){return ne(8,P,ue,re),sl(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),i1e(t,i)}function C(P){return ne(0),d&&P(d)}function L(P){return C(P)||it}function I(){var P,ue;if(R.assert(d===void 0),t.options.dry){$u(t,m.A_non_dry_build_would_build_project_0,r),v=1,_=7;return}if(t.options.verbose&&$u(t,m.Building_project_0,r),s.fileNames.length===0){_L(t,i,o2(s)),v=0,_=7;return}const{host:re,compilerHost:be}=t;t.projectCompilerOptions=s.options,(P=t.moduleResolutionCache)==null||P.update(s.options),(ue=t.typeReferenceDirectiveResolutionCache)==null||ue.update(s.options),d=re.createProgram(s.fileNames,s.options,be,_Ge(t,i,s),o2(s),s.projectReferences),t.watch&&(t.lastCachedPackageJsonLookups.set(i,t.moduleResolutionCache&&Pt(t.moduleResolutionCache.getPackageJsonInfoCache().entries(),([ae,z])=>[t.host.realpath&&z?Kd(t,t.host.realpath(ae)):ae,z])),t.builderPrograms.set(i,d)),_++}function M(P,ue,re){P.length?{buildResult:v,step:_}=cQ(t,i,d,s,P,ue,re):_++}function k(P){R.assertIsDefined(d),M([...d.getConfigFileParsingDiagnostics(),...d.getOptionsDiagnostics(P),...d.getGlobalDiagnostics(P),...d.getSyntacticDiagnostics(void 0,P)],8,"Syntactic")}function U(P){M(R.checkDefined(d).getSemanticDiagnostics(void 0,P),16,"Semantic")}function j(P,ue,re){var be,ae,z;R.assertIsDefined(d),R.assert(_===3);const ce=d.saveEmitState();let he;const Ee=lt=>(he||(he=[])).push(lt),Ae=[],{emitResult:te}=TF(d,Ee,void 0,void 0,(lt,Ct,bt,zt,nt,ot)=>Ae.push({name:lt,text:Ct,writeByteOrderMark:bt,data:ot}),ue,!1,re||((ae=(be=t.host).getCustomTransformers)==null?void 0:ae.call(be,r)));if(he)return d.restoreEmitState(ce),{buildResult:v,step:_}=cQ(t,i,d,s,he,32,"Declaration file"),{emitSkipped:!0,diagnostics:te.diagnostics};const{host:Ze,compilerHost:je}=t,Ue=(z=d.hasChangedEmitSignature)!=null&&z.call(d)?0:2,Je=EC(),Fe=new Map,Be=d.getCompilerOptions(),$e=VR(Be);let ze,Ge;return Ae.forEach(({name:lt,text:Ct,writeByteOrderMark:bt,data:zt})=>{const nt=Kd(t,lt);Fe.set(Kd(t,lt),lt),zt!=null&&zt.buildInfo&&dQ(t,zt.buildInfo,i,Be,Ue);const ot=zt!=null&&zt.differsOnlyInMap?ES(t.host,lt):void 0;Ak(P?{writeFile:P}:je,Je,lt,Ct,bt),zt!=null&&zt.differsOnlyInMap?t.host.setModifiedTime(lt,ot):!$e&&t.watch&&(ze||(ze=uQ(t,i))).set(nt,Ge||(Ge=wN(t.host)))}),ee(Je,Fe,Ae.length?Ae[0].name:o$(s,!Ze.useCaseSensitiveFileNames()),Ue),te}function H(P,ue){R.assertIsDefined(d),R.assert(_===5);const re=d.emitBuildInfo((be,ae,z,ce,he,Ee)=>{Ee!=null&&Ee.buildInfo&&dQ(t,Ee.buildInfo,i,d.getCompilerOptions(),2),P?P(be,ae,z,ce,he,Ee):t.compilerHost.writeFile(be,ae,z,ce,he,Ee)},ue);return re.diagnostics.length&&(NN(t,re.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...re.diagnostics]),v=64&v),re.emittedFiles&&t.write&&re.emittedFiles.forEach(be=>l1e(t,s,be)),lQ(t,d,s),_=7,re}function ee(P,ue,re,be){const ae=P.getDiagnostics();return ae.length?({buildResult:v,step:_}=cQ(t,i,d,s,ae,64,"Emit"),ae):(t.write&&ue.forEach(z=>l1e(t,s,z)),d1e(t,s,i,m.Updating_unchanged_output_timestamps_of_project_0,ue),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:re}),lQ(t,d,s),_=7,v=be,ae)}function X(P,ue){var re,be,ae,z;if(R.assert(e===1),t.options.dry){$u(t,m.A_non_dry_build_would_update_output_of_project_0,r),v=1,_=7;return}t.options.verbose&&$u(t,m.Updating_output_of_project_0,r);const{compilerHost:ce}=t;t.projectCompilerOptions=s.options,(be=(re=t.host).beforeEmitBundle)==null||be.call(re,s);const he=a0e(s,ce,Ue=>{const Je=fL(t,Ue.path);return l2(t,Je,Rp(t,Je))},ue||((z=(ae=t.host).getCustomTransformers)==null?void 0:z.call(ae,r)));if(za(he))return $u(t,m.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,Gc(t,he)),_=6,g=a1e(0,t,r,i,o,s,c);R.assert(!!he.length);const Ee=EC(),Ae=new Map;let te=2;const Ze=t.buildInfoCache.get(i).buildInfo||void 0;return he.forEach(({name:Ue,text:Je,writeByteOrderMark:Fe,data:Be})=>{var $e,ze;Ae.set(Kd(t,Ue),Ue),Be!=null&&Be.buildInfo&&((($e=Be.buildInfo.program)==null?void 0:$e.outSignature)!==((ze=Ze==null?void 0:Ze.program)==null?void 0:ze.outSignature)&&(te&=-3),dQ(t,Be.buildInfo,i,s.options,te)),Ak(P?{writeFile:P}:ce,Ee,Ue,Je,Fe)}),{emitSkipped:!1,diagnostics:ee(Ee,Ae,he[0].name,te)}}function ne(P,ue,re,be){for(;_<=P&&_<8;){const ae=_;switch(_){case 0:I();break;case 1:k(ue);break;case 2:U(ue);break;case 3:j(re,ue,be);break;case 5:H(re,ue);break;case 4:X(re,be);break;case 6:R.checkDefined(g).done(ue,re,be),_=8;break;case 7:gGe(t,r,i,o,s,c,R.checkDefined(v)),_++;break;case 8:default:}R.assert(_>ae)}}}function fGe({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!o2(r).length||!VR(r.options)}function o1e(e,t,r){if(!e.projectPendingBuild.size||bx(t))return;const{options:i,projectPendingBuild:o}=e;for(let s=0;s<t.length;s++){const c=t[s],_=Rp(e,c),d=e.projectPendingBuild.get(_);if(d===void 0)continue;r&&(r=!1,T1e(e,t));const v=l2(e,c,_);if(!v){b1e(e,_),o.delete(_);continue}d===2?(h1e(e,c,_,v),g1e(e,_,v),y1e(e,c,_,v),hQ(e,c,_,v),gQ(e,c,_,v)):d===1&&(v.fileNames=q6(v.options.configFile.configFileSpecs,vi(c),v.options,e.parseConfigFileHost),UX(v.fileNames,c,v.options.configFile.configFileSpecs,v.errors,H6(v.raw)),hQ(e,c,_,v),gQ(e,c,_,v));const g=pQ(e,v,_);if(!i.force){if(g.type===1){wF(e,c,g),_L(e,_,o2(v)),o.delete(_),i.dry&&$u(e,m.Project_0_is_up_to_date,c);continue}if(g.type===2||g.type===15)return _L(e,_,o2(v)),{kind:2,status:g,project:c,projectPath:_,projectIndex:s,config:v}}if(g.type===12){wF(e,c,g),_L(e,_,o2(v)),o.delete(_),i.verbose&&$u(e,g.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,c,g.upstreamProjectName);continue}if(g.type===16){wF(e,c,g),_L(e,_,o2(v)),o.delete(_);continue}return{kind:fGe(e,g,v)?0:1,status:g,project:c,projectPath:_,projectIndex:s,config:v}}}function s1e(e,t,r){return wF(e,t.project,t.status),t.kind!==2?a1e(t.kind,e,t.project,t.projectPath,t.projectIndex,t.config,r):dGe(e,t.project,t.projectPath,t.config,r)}function sQ(e,t,r){const i=o1e(e,t,r);return i&&s1e(e,i,t)}function l1e({write:e},t,r){e&&t.options.listEmittedFiles&&e(`TSFILE: ${r}`)}function _Ge({options:e,builderPrograms:t,compilerHost:r},i,o){if(e.force)return;const s=t.get(i);return s||CF(o.options,r)}function lQ(e,t,r){t?(e.write&&q$(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(r),e.projectCompilerOptions=e.baseCompilerOptions}function cQ(e,t,r,i,o,s,c){const _=r&&!Ks(r.getCompilerOptions());return _L(e,t,o),e.projectStatus.set(t,{type:0,reason:`${c} errors`}),_?{buildResult:s,step:5}:(lQ(e,r,i),{buildResult:s,step:7})}function IF(e){return!!e.watcher}function c1e(e,t){const r=Kd(e,t),i=e.filesWatched.get(r);if(e.watch&&i){if(!IF(i))return i;if(i.modifiedTime)return i.modifiedTime}const o=ES(e.host,t);return e.watch&&(i?i.modifiedTime=o:e.filesWatched.set(r,o)),o}function kF(e,t,r,i,o,s,c){const _=Kd(e,t),d=e.filesWatched.get(_);if(d&&IF(d))d.callbacks.push(r);else{const v=e.watchFile(t,(g,T,C)=>{const L=R.checkDefined(e.filesWatched.get(_));R.assert(IF(L)),L.modifiedTime=C,L.callbacks.forEach(I=>I(g,T,C))},i,o,s,c);e.filesWatched.set(_,{callbacks:[r],watcher:v,modifiedTime:d})}return{close:()=>{const v=R.checkDefined(e.filesWatched.get(_));R.assert(IF(v)),v.callbacks.length===1?(e.filesWatched.delete(_),nh(v)):rD(v.callbacks,r)}}}function uQ(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function dQ(e,t,r,i,o){const s=Vy(i),c=fQ(e,s,r),_=wN(e.host);c?(c.buildInfo=t,c.modifiedTime=_,o&2||(c.latestChangedDtsTime=_)):e.buildInfoCache.set(r,{path:Kd(e,s),buildInfo:t,modifiedTime:_,latestChangedDtsTime:o&2?void 0:_})}function fQ(e,t,r){const i=Kd(e,t),o=e.buildInfoCache.get(r);return(o==null?void 0:o.path)===i?o:void 0}function u1e(e,t,r,i){const o=Kd(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;const c=e.readFileWithCache(t),_=c?tF(t,c):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:_||!1,modifiedTime:i||_g}),_}function _Q(e,t,r,i){const o=c1e(e,t);if(r<o)return{type:6,outOfDateOutputFileName:i,newerInputFileName:t}}function pGe(e,t,r){var i,o;if(!t.fileNames.length&&!H6(t.raw))return{type:16};let s;const c=!!e.options.force;if(t.projectReferences){e.projectStatus.set(r,{type:13});for(const re of t.projectReferences){const be=F4(re),ae=Rp(e,be),z=l2(e,be,ae),ce=pQ(e,z,ae);if(!(ce.type===13||ce.type===16)){if(ce.type===0||ce.type===12)return{type:12,upstreamProjectName:re.path,upstreamProjectBlocked:ce.type===12};if(ce.type!==1)return{type:11,upstreamProjectName:re.path};c||(s||(s=[])).push({ref:re,refStatus:ce,resolvedRefPath:ae,resolvedConfig:z})}}}if(c)return{type:17};const{host:_}=e,d=Vy(t.options);let v,g=x1e,T,C,L;if(d){const re=fQ(e,d,r);if(T=(re==null?void 0:re.modifiedTime)||ES(_,d),T===_g)return re||e.buildInfoCache.set(r,{path:Kd(e,d),buildInfo:!1,modifiedTime:T}),{type:4,missingOutputFileName:d};const be=u1e(e,d,r,T);if(!be)return{type:5,fileName:d};if((be.bundle||be.program)&&be.version!==pe)return{type:14,version:be.version};if(be.program){if((i=be.program.changeFileSet)!=null&&i.length||(t.options.noEmit?Dt(be.program.semanticDiagnosticsPerFile,ja):(o=be.program.affectedFilesPendingEmit)!=null&&o.length))return{type:8,buildInfoFile:d};if(!t.options.noEmit&&uL(t.options,be.program.options||{}))return{type:9,buildInfoFile:d};C=be.program}g=T,v=d}let I,M=S1e,k=!1;const U=new Set;for(const re of t.fileNames){const be=c1e(e,re);if(be===_g)return{type:0,reason:`${re} does not exist`};if(T&&T<be){let ae,z;if(C){L||(L=G$(C,d,_)),ae=L.fileInfos.get(Kd(e,re));const ce=ae?e.readFileWithCache(re):void 0;z=ce!==void 0?SF(_,ce):void 0,ae&&ae===z&&(k=!0)}if(!ae||ae!==z)return{type:6,outOfDateOutputFileName:d,newerInputFileName:re}}be>M&&(I=re,M=be),C&&U.add(Kd(e,re))}if(C){L||(L=G$(C,d,_));for(const re of L.roots)if(!U.has(re))return{type:10,buildInfoFile:d,inputFile:re}}if(!d){const re=Z9(t,!_.useCaseSensitiveFileNames()),be=uQ(e,r);for(const ae of re){const z=Kd(e,ae);let ce=be==null?void 0:be.get(z);if(ce||(ce=ES(e.host,ae),be==null||be.set(z,ce)),ce===_g)return{type:4,missingOutputFileName:ae};if(ce<M)return{type:6,outOfDateOutputFileName:ae,newerInputFileName:I};ce<g&&(g=ce,v=ae)}}const j=e.buildInfoCache.get(r);let H=!1,ee=!1,X;if(s)for(const{ref:re,refStatus:be,resolvedConfig:ae,resolvedRefPath:z}of s){if(ee=ee||!!re.prepend,be.newestInputFileTime&&be.newestInputFileTime<=g)continue;if(j&&mGe(e,j,z))return{type:7,outOfDateOutputFileName:d,newerProjectName:re.path};const ce=hGe(e,ae.options,z);if(ce&&ce<=g){H=!0,X=re.path;continue}return R.assert(v!==void 0,"Should have an oldest output filename here"),{type:7,outOfDateOutputFileName:v,newerProjectName:re.path}}const ne=_Q(e,t.options.configFilePath,g,v);if(ne)return ne;const P=Ie(t.options.configFile.extendedSourceFiles||it,re=>_Q(e,re,g,v));if(P)return P;const ue=Ie(e.lastCachedPackageJsonLookups.get(r)||it,([re])=>_Q(e,re,g,v));return ue||(ee&&H?{type:3,outOfDateOutputFileName:v,newerProjectName:X}:{type:H?2:k?15:1,newestInputFileTime:M,newestInputFileName:I,oldestOutputFileName:v})}function mGe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function pQ(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;sl("SolutionBuilder::beforeUpToDateCheck");const o=pGe(e,t,r);return sl("SolutionBuilder::afterUpToDateCheck"),e_("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function d1e(e,t,r,i,o){if(t.options.noEmit)return;let s;const c=Vy(t.options);if(c){o!=null&&o.has(Kd(e,c))||(e.options.verbose&&$u(e,i,t.options.configFilePath),e.host.setModifiedTime(c,s=wN(e.host)),fQ(e,c,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}const{host:_}=e,d=Z9(t,!_.useCaseSensitiveFileNames()),v=uQ(e,r),g=v?new Set:void 0;if(!o||d.length!==o.size){let T=!!e.options.verbose;for(const C of d){const L=Kd(e,C);o!=null&&o.has(L)||(T&&(T=!1,$u(e,i,t.options.configFilePath)),_.setModifiedTime(C,s||(s=wN(e.host))),v&&(v.set(L,s),g.add(L)))}}v==null||v.forEach((T,C)=>{!(o!=null&&o.has(C))&&!g.has(C)&&v.delete(C)})}function hGe(e,t,r){if(!t.composite)return;const i=R.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(Ma(i.buildInfo.program.latestChangedDtsFile,vi(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function f1e(e,t,r){if(e.options.dry)return $u(e,m.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);d1e(e,t,r,m.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:o$(t,!e.host.useCaseSensitiveFileNames())})}function gGe(e,t,r,i,o,s,c){if(!(c&124)&&o.options.composite)for(let _=i+1;_<s.length;_++){const d=s[_],v=Rp(e,d);if(e.projectPendingBuild.has(v))continue;const g=l2(e,d,v);if(!(!g||!g.projectReferences))for(const T of g.projectReferences){const C=fL(e,T.path);if(Rp(e,C)!==r)continue;const L=e.projectStatus.get(v);if(L)switch(L.type){case 1:if(c&2){T.prepend?e.projectStatus.set(v,{type:3,outOfDateOutputFileName:L.oldestOutputFileName,newerProjectName:t}):L.type=2;break}case 15:case 2:case 3:c&2||e.projectStatus.set(v,{type:7,outOfDateOutputFileName:L.type===3?L.outOfDateOutputFileName:L.oldestOutputFileName,newerProjectName:t});break;case 12:Rp(e,fL(e,L.upstreamProjectName))===r&&t1e(e,v);break}n1e(e,v,0);break}}}function _1e(e,t,r,i,o,s){sl("SolutionBuilder::beforeBuild");const c=yGe(e,t,r,i,o,s);return sl("SolutionBuilder::afterBuild"),e_("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),c}function yGe(e,t,r,i,o,s){const c=Z0e(e,t,s);if(!c)return 3;r1e(e,r);let _=!0,d=0;for(;;){const v=sQ(e,c,_);if(!v)break;_=!1,v.done(r,i,o==null?void 0:o(v.project)),e.diagnostics.has(v.projectPath)||d++}return oQ(e),E1e(e,c),TGe(e,c),bx(c)?4:c.some(v=>e.diagnostics.has(Rp(e,v)))?d?2:1:0}function p1e(e,t,r){sl("SolutionBuilder::beforeClean");const i=vGe(e,t,r);return sl("SolutionBuilder::afterClean"),e_("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function vGe(e,t,r){const i=Z0e(e,t,r);if(!i)return 3;if(bx(i))return NN(e,i.circularDiagnostics),4;const{options:o,host:s}=e,c=o.dry?[]:void 0;for(const _ of i){const d=Rp(e,_),v=l2(e,_,d);if(v===void 0){b1e(e,d);continue}const g=Z9(v,!s.useCaseSensitiveFileNames());if(!g.length)continue;const T=new Set(v.fileNames.map(C=>Kd(e,C)));for(const C of g)T.has(Kd(e,C))||s.fileExists(C)&&(c?c.push(C):(s.deleteFile(C),mQ(e,d,0)))}return c&&$u(e,m.A_non_dry_build_would_delete_the_following_files_Colon_0,c.map(_=>`\r
* ${_}`).join("")),0}function mQ(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,t1e(e,t),n1e(e,t,r),e1e(e)}function RN(e,t,r){e.reportFileChangeDetected=!0,mQ(e,t,r),m1e(e,250,!0)}function m1e(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(bGe,t,e,r))}function bGe(e,t){sl("SolutionBuilder::beforeBuild");const r=EGe(e,t);sl("SolutionBuilder::afterBuild"),e_("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&E1e(e,r)}function EGe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),yQ(e,m.File_change_detected_Starting_incremental_compilation));let r=0;const i=DN(e),o=sQ(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const s=o1e(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){m1e(e,100,!1);return}s1e(e,s,i).done(),s.kind!==2&&r++}return oQ(e),i}function h1e(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,kF(e,t,()=>RN(e,r,2),2e3,i==null?void 0:i.watchOptions,I_.ConfigFile,t))}function g1e(e,t,r){u$(t,r==null?void 0:r.options,e.allWatchedExtendedConfigFiles,(i,o)=>kF(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(c=>RN(e,c,2))},2e3,r==null?void 0:r.watchOptions,I_.ExtendedConfigFile),i=>Kd(e,i))}function y1e(e,t,r,i){e.watch&&rF(aQ(e.allWatchedWildcardDirectories,r),new Map(Object.entries(i.wildcardDirectories)),(o,s)=>e.watchDirectory(o,c=>{var _;iF({watchedDirPath:Kd(e,o),fileOrDirectory:c,fileOrDirectoryPath:Kd(e,c),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((_=cGe(e,r))==null?void 0:_.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:d=>e.writeLog(d),toPath:d=>Kd(e,d)})||RN(e,r,1)},s,i==null?void 0:i.watchOptions,I_.WildcardDirectory,t))}function hQ(e,t,r,i){e.watch&&CC(aQ(e.allWatchedInputFiles,r),Tb(i.fileNames,o=>Kd(e,o)),{createNewValue:(o,s)=>kF(e,s,()=>RN(e,r,0),250,i==null?void 0:i.watchOptions,I_.SourceFile,t),onDeleteValue:Km})}function gQ(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||CC(aQ(e.allWatchedPackageJsonFiles,r),new Map(e.lastCachedPackageJsonLookups.get(r)),{createNewValue:(o,s)=>kF(e,o,()=>RN(e,r,0),2e3,i==null?void 0:i.watchOptions,I_.PackageJson,t),onDeleteValue:Km})}function TGe(e,t){if(e.watchAllProjectsPending){sl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of LF(t)){const i=Rp(e,r),o=l2(e,r,i);h1e(e,r,i,o),g1e(e,i,o),o&&(y1e(e,r,i,o),hQ(e,r,i,o),gQ(e,r,i,o))}sl("SolutionBuilder::afterWatcherCreation"),e_("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function SGe(e){o_(e.allWatchedConfigFiles,Km),o_(e.allWatchedExtendedConfigFiles,nh),o_(e.allWatchedWildcardDirectories,t=>o_(t,nh)),o_(e.allWatchedInputFiles,t=>o_(t,Km)),o_(e.allWatchedPackageJsonFiles,t=>o_(t,Km))}function v1e(e,t,r,i,o){const s=lGe(e,t,r,i,o);return{build:(c,_,d,v)=>_1e(s,c,_,d,v),clean:c=>p1e(s,c),buildReferences:(c,_,d,v)=>_1e(s,c,_,d,v,!0),cleanReferences:c=>p1e(s,c,!0),getNextInvalidatedProject:c=>(r1e(s,c),sQ(s,DN(s),!1)),getBuildOrder:()=>DN(s),getUpToDateStatusOfProject:c=>{const _=fL(s,c),d=Rp(s,_);return pQ(s,l2(s,_,d),d)},invalidateProject:(c,_)=>mQ(s,c,_||0),close:()=>SGe(s)}}function Gc(e,t){return WI(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function $u(e,t,...r){e.host.reportSolutionBuilderStatus(Gs(t,...r))}function yQ(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Gs(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function NN({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function _L(e,t,r){NN(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function b1e(e,t){_L(e,t,[e.configFileCache.get(t)])}function E1e(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,s=[];bx(t)?(T1e(e,t.buildOrder),NN(e,t.circularDiagnostics),r&&(o+=bF(t.circularDiagnostics)),r&&(s=[...s,...EF(t.circularDiagnostics)])):(t.forEach(c=>{const _=Rp(e,c);e.projectErrorsReported.has(_)||NN(e,i.get(_)||it)}),r&&i.forEach(c=>o+=bF(c)),r&&i.forEach(c=>[...s,...EF(c)])),e.watch?yQ(e,z$(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function T1e(e,t){e.options.verbose&&$u(e,m.Projects_in_this_build_Colon_0,t.map(r=>`\r
* `+Gc(e,r)).join(""))}function xGe(e,t,r){switch(r.type){case 6:return $u(e,m.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Gc(e,t),Gc(e,r.outOfDateOutputFileName),Gc(e,r.newerInputFileName));case 7:return $u(e,m.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Gc(e,t),Gc(e,r.outOfDateOutputFileName),Gc(e,r.newerProjectName));case 4:return $u(e,m.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Gc(e,t),Gc(e,r.missingOutputFileName));case 5:return $u(e,m.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Gc(e,t),Gc(e,r.fileName));case 8:return $u(e,m.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Gc(e,t),Gc(e,r.buildInfoFile));case 9:return $u(e,m.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Gc(e,t),Gc(e,r.buildInfoFile));case 10:return $u(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,Gc(e,t),Gc(e,r.buildInfoFile),Gc(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return $u(e,m.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Gc(e,t),Gc(e,r.newestInputFileName||""),Gc(e,r.oldestOutputFileName||""));break;case 3:return $u(e,m.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Gc(e,t),Gc(e,r.newerProjectName));case 2:return $u(e,m.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Gc(e,t));case 15:return $u(e,m.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Gc(e,t));case 11:return $u(e,m.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Gc(e,t),Gc(e,r.upstreamProjectName));case 12:return $u(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,Gc(e,t),Gc(e,r.upstreamProjectName));case 0:return $u(e,m.Failed_to_parse_file_0_Colon_1,Gc(e,t),r.reason);case 14:return $u(e,m.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Gc(e,t),r.version,pe);case 17:return $u(e,m.Project_0_is_being_forcibly_rebuilt,Gc(e,t));case 16:case 13:break;default:}}function wF(e,t,r){e.options.verbose&&xGe(e,t,r)}var S1e,x1e,vQ,AGe=b({"src/compiler/tsbuildPublic.ts"(){"use strict";Oa(),Oa(),kb(),S1e=new Date(-864e13),x1e=new Date(864e13),vQ=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(vQ||{})}}),Oa=b({"src/compiler/_namespaces/ts.ts"(){"use strict";qe(),i3e(),a3e(),m3e(),y3e(),v3e(),w3e(),Cde(),V3e(),X3e(),Y3e(),t7e(),T7e(),VMe(),jMe(),WMe(),HMe(),nPe(),oPe(),sPe(),APe(),i5e(),a5e(),h5e(),W5e(),v9e(),A9e(),C9e(),F9e(),W9e(),Q9e(),aFe(),yFe(),vFe(),bFe(),CFe(),LFe(),IFe(),kFe(),wFe(),DFe(),RFe(),NFe(),OFe(),MFe(),PFe(),FFe(),BFe(),GFe(),VFe(),jFe(),WFe(),HFe(),zFe(),qFe(),QFe(),iBe(),mBe(),yBe(),xBe(),ABe(),CBe(),VBe(),HBe(),qBe(),$Be(),eGe(),tGe(),AGe(),AY(),kb()}});function A1e(e,t){return new j_(Qw(t,`ts${$}`)||Qw(t,"latest")).compareTo(e.version)<=0}function C1e(e){return xQ.has(e)?"node":e}function CGe(e,t){const r=U6(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function LGe(e,t){var r;const i=U6(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function IGe(e,t,r,i,o,s,c,_,d,v){if(!c||!c.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const g=new Map;r=ua(r,ee=>{const X=Xo(ee);if(zS(X))return X});const T=[];c.include&&U(c.include,"Explicitly included types");const C=c.exclude||[];if(!v.types){const ee=new Set(r.map(vi));ee.add(i),ee.forEach(X=>{j(X,"bower.json","bower_components",T),j(X,"package.json","node_modules",T)})}if(c.disableFilenameBasedTypeAcquisition||H(r),_){const ee=BA(_.map(C1e),mS,ju);U(ee,"Inferred typings from unresolved imports")}s.forEach((ee,X)=>{const ne=d.get(X);g.has(X)&&g.get(X)===void 0&&ne!==void 0&&A1e(ee,ne)&&g.set(X,ee.typingLocation)});for(const ee of C)g.delete(ee)&&t&&t(`Typing for ${ee} is in exclude list, will be ignored.`);const L=[],I=[];g.forEach((ee,X)=>{ee!==void 0?I.push(ee):L.push(X)});const M={cachedTypingPaths:I,newTypingNames:L,filesToWatch:T};return t&&t(`Result: ${JSON.stringify(M)}`),M;function k(ee){g.has(ee)||g.set(ee,void 0)}function U(ee,X){t&&t(`${X}: ${JSON.stringify(ee)}`),Ie(ee,k)}function j(ee,X,ne,P){const ue=Fi(ee,X);let re,be;e.fileExists(ue)&&(P.push(ue),re=U6(ue,he=>e.readFile(he)).config,be=ji([re.dependencies,re.devDependencies,re.optionalDependencies,re.peerDependencies],fg),U(be,`Typing names in '${ue}' dependencies`));const ae=Fi(ee,ne);if(P.push(ae),!e.directoryExists(ae))return;const z=[],ce=be?be.map(he=>Fi(ae,he,X)):e.readDirectory(ae,[".json"],void 0,void 0,3).filter(he=>{if(Eu(he)!==X)return!1;const Ee=md(Xo(he)),Ae=Ee[Ee.length-3][0]==="@";return Ae&&V_(Ee[Ee.length-4])===ne||!Ae&&V_(Ee[Ee.length-3])===ne});t&&t(`Searching for typing names in ${ae}; all files: ${JSON.stringify(ce)}`);for(const he of ce){const Ee=Xo(he),te=U6(Ee,je=>e.readFile(je)).config;if(!te.name)continue;const Ze=te.types||te.typings;if(Ze){const je=Ma(Ze,vi(Ee));e.fileExists(je)?(t&&t(` Package '${te.name}' provides its own types.`),g.set(te.name,je)):t&&t(` Package '${te.name}' provides its own types but they are missing.`)}else z.push(te.name)}U(z," Found package names")}function H(ee){const X=ua(ee,P=>{if(!zS(P))return;const ue=zd(V_(Eu(P))),re=Que(ue);return o.get(re)});X.length&&U(X,"Inferred typings from file names"),Dt(ee,P=>_c(P,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),k("react"))}}function kGe(e){return bQ(e,!0)}function bQ(e,t){if(!e)return 1;if(e.length>CQ)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=bQ(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const o=bQ(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function wGe(e,t){return typeof e=="object"?L1e(t,e.result,e.name,e.isScopeName):L1e(t,e,t,!1)}function L1e(e,t,r,i){const o=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${o} name '${r}' cannot be empty`;case 2:return`'${e}':: ${o} name '${r}' should be less than ${CQ} characters`;case 3:return`'${e}':: ${o} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${r}' contains non URI safe characters`;case 0:return R.fail();default:throw R.assertNever(t)}}var EQ,TQ,SQ,xQ,AQ,CQ,DGe=b({"src/jsTyping/jsTyping.ts"(){"use strict";DF(),EQ=["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"],TQ=EQ.map(e=>`node:${e}`),SQ=[...EQ,...TQ],xQ=new Set(SQ),AQ=(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))(AQ||{}),CQ=214}}),c2={};B(c2,{NameValidationResult:()=>AQ,discoverTypings:()=>IGe,isTypingUpToDate:()=>A1e,loadSafeList:()=>CGe,loadTypesMap:()=>LGe,nodeCoreModuleList:()=>SQ,nodeCoreModules:()=>xQ,nonRelativeModuleNameForTypingCache:()=>C1e,prefixedNodeCoreModuleList:()=>TQ,renderPackageNameValidationFailure:()=>wGe,validatePackageName:()=>kGe});var RGe=b({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";DGe()}});function NGe(e){return nu.args.indexOf(e)>=0}function OGe(e){const t=nu.args.indexOf(e);return t>=0&&t<nu.args.length-1?nu.args[t+1]:void 0}function MGe(){const e=new Date;return`${hS(e.getHours().toString(),2,"0")}:${hS(e.getMinutes().toString(),2,"0")}:${hS(e.getSeconds().toString(),2,"0")}.${hS(e.getMilliseconds().toString(),3,"0")}`}var I1e,k1e,w1e,D1e,R1e,N1e,O1e,LQ,PGe=b({"src/jsTyping/shared.ts"(){"use strict";DF(),I1e="action::set",k1e="action::invalidate",w1e="action::packageInstalled",D1e="event::typesRegistry",R1e="event::beginInstallTypes",N1e="event::endInstallTypes",O1e="event::initializationFailed",(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(LQ||(LQ={}))}}),FGe=b({"src/jsTyping/types.ts"(){"use strict"}}),M1e={};B(M1e,{ActionInvalidate:()=>k1e,ActionPackageInstalled:()=>w1e,ActionSet:()=>I1e,Arguments:()=>LQ,EventBeginInstallTypes:()=>R1e,EventEndInstallTypes:()=>N1e,EventInitializationFailed:()=>O1e,EventTypesRegistry:()=>D1e,findArgument:()=>OGe,hasArgument:()=>NGe,nowString:()=>MGe});var BGe=b({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";PGe(),FGe()}}),DF=b({"src/jsTyping/_namespaces/ts.ts"(){"use strict";Oa(),RGe(),BGe()}});function P1e(e){return{indentSize:4,tabSize:4,newLineCharacter:e||`
`,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}}var IQ,kQ,wQ,DQ,mm,RQ,NQ,OQ,MQ,PQ,FQ,BQ,F1e,ON,GQ,UQ,VQ,jQ,WQ,HQ,zQ,qQ,JQ,GGe=b({"src/services/types.ts"(){"use strict";(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})(IQ||(IQ={})),kQ=(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))(kQ||{}),wQ=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(wQ||{}),DQ=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(DQ||{}),mm={},RQ=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(RQ||{}),NQ=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(NQ||{}),OQ=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(OQ||{}),MQ=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(MQ||{}),PQ=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(PQ||{}),FQ=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(FQ||{}),BQ=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(BQ||{}),F1e=P1e(`
`),ON=(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))(ON||{}),GQ=(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))(GQ||{}),UQ=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(UQ||{}),VQ=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(VQ||{}),jQ=(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))(jQ||{}),WQ=(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))(WQ||{}),HQ=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.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))(HQ||{}),zQ=(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))(zQ||{}),qQ=(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))(qQ||{}),JQ=(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))(JQ||{})}});function MN(e){switch(e.kind){case 257:return _r(e)&&Vz(e)?7:1;case 166:case 205:case 169:case 168:case 299:case 300:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 295:case 288:return 1;case 165:case 261:case 262:case 184:return 2;case 349:return e.name===void 0?3:2;case 302:case 260:return 3;case 264:return Hu(e)||wg(e)===1?5:4;case 263:case 272:case 273:case 268:case 269:case 274:case 275:return 7;case 308:return 5}return 7}function u2(e){e=aZ(e);const t=e.parent;return e.kind===308?1:Vl(t)||yd(t)||Zm(t)||Nd(t)||Qm(t)||fu(t)&&e===t.name?7:RF(e)?UGe(e):xg(e)?MN(t):uf(e)&&rr(e,Pm(_4,IS,E1))?7:HGe(e)?2:VGe(e)?4:Ul(t)?(R.assert(wp(t.parent)),2):v1(t)?3:1}function UGe(e){const t=e.kind===163?e:Rd(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===268?7:4}function RF(e){for(;e.parent.kind===163;)e=e.parent;return uC(e.parent)&&e.parent.moduleReference===e}function VGe(e){return jGe(e)||WGe(e)}function jGe(e){let t=e,r=!0;if(t.parent.kind===163){for(;t.parent&&t.parent.kind===163;)t=t.parent;r=t.right===e}return t.parent.kind===180&&!r}function WGe(e){let t=e,r=!0;if(t.parent.kind===208){for(;t.parent&&t.parent.kind===208;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===230&&t.parent.parent.kind===294){const i=t.parent.parent.parent;return i.kind===260&&t.parent.parent.token===117||i.kind===261&&t.parent.parent.token===94}return!1}function HGe(e){switch(Dk(e)&&(e=e.parent),e.kind){case 108:return!Tg(e);case 194:return!0}switch(e.parent.kind){case 180:return!0;case 202:return!e.parent.isTypeOf;case 230:return Ih(e.parent)}return!1}function KQ(e,t=!1,r=!1){return U4(e,io,NF,t,r)}function G4(e,t=!1,r=!1){return U4(e,Zb,NF,t,r)}function XQ(e,t=!1,r=!1){return U4(e,vg,NF,t,r)}function B1e(e,t=!1,r=!1){return U4(e,qT,zGe,t,r)}function G1e(e,t=!1,r=!1){return U4(e,qu,NF,t,r)}function U1e(e,t=!1,r=!1){return U4(e,sd,qGe,t,r)}function NF(e){return e.expression}function zGe(e){return e.tag}function qGe(e){return e.tagName}function U4(e,t,r,i,o){let s=i?V1e(e):OF(e);return o&&(s=Cu(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function OF(e){return pL(e)?e.parent:e}function V1e(e){return pL(e)||ZQ(e)?e.parent:e}function MF(e,t){for(;e;){if(e.kind===253&&e.label.escapedText===t)return e.label;e=e.parent}}function PN(e,t){return Br(e.expression)?e.expression.name.text===t:!1}function FN(e){var t;return We(e)&&((t=li(e.parent,nk))==null?void 0:t.label)===e}function YQ(e){var t;return We(e)&&((t=li(e.parent,eE))==null?void 0:t.label)===e}function $Q(e){return YQ(e)||FN(e)}function QQ(e){var t;return((t=li(e.parent,sk))==null?void 0:t.tagName)===e}function j1e(e){var t;return((t=li(e.parent,Rd))==null?void 0:t.right)===e}function pL(e){var t;return((t=li(e.parent,Br))==null?void 0:t.name)===e}function ZQ(e){var t;return((t=li(e.parent,dl))==null?void 0:t.argumentExpression)===e}function eZ(e){var t;return((t=li(e.parent,Xl))==null?void 0:t.name)===e}function tZ(e){var t;return We(e)&&((t=li(e.parent,Ya))==null?void 0:t.name)===e}function PF(e){switch(e.parent.kind){case 169:case 168:case 299:case 302:case 171:case 170:case 174:case 175:case 264:return ka(e.parent)===e;case 209:return e.parent.argumentExpression===e;case 164:return!0;case 198:return e.parent.parent.kind===196;default:return!1}}function W1e(e){return c1(e.parent.parent)&&gk(e.parent.parent)===e}function d2(e){for(T_(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 308:case 171:case 170:case 259:case 215:case 174:case 175:case 260:case 261:case 263:case 264:return e}}}function _E(e){switch(e.kind){case 308:return tc(e)?"module":"script";case 264:return"module";case 260:case 228:return"class";case 261:return"interface";case 262:case 341:case 349:return"type";case 263:return"enum";case 257:return t(e);case 205:return t(zm(e));case 216:case 259:case 215:return"function";case 174:return"getter";case 175:return"setter";case 171:case 170:return"method";case 299:const{initializer:r}=e;return Ya(r)?"method":"property";case 169:case 168:case 300:case 301:return"property";case 178:return"index";case 177:return"construct";case 176:return"call";case 173:case 172:return"constructor";case 165:return"type parameter";case 302:return"enum member";case 166:return Qr(e,16476)?"property":"parameter";case 268:case 273:case 278:case 271:case 277:return"alias";case 223:const i=wl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const c=_E(o);return c===""?"const":c;case 3:return Us(o)?"method":"property";case 4:return"property";case 5:return Us(o)?"method":"property";case 6:return"local class";default:return""}case 79:return Qm(e.parent)?"alias":"";case 274:const s=_E(e.expression);return s===""?"const":s;default:return""}function t(r){return Eg(r)?"const":_k(r)?"let":"var"}}function mL(e){switch(e.kind){case 108:return!0;case 79:return gJ(e)&&e.parent.kind===166;default:return!1}}function k_(e,t){const r=mg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function gf(e,t){return nZ(e.pos,e.end,t)}function H1e(e,t){return GN(e,t.pos)&&GN(e,t.end)}function BN(e,t){return e.pos<=t&&t<=e.end}function GN(e,t){return e.pos<t&&t<e.end}function nZ(e,t,r){return e<=r.pos&&t>=r.end}function UN(e,t,r){return e.pos<=t&&e.end>=r}function V4(e,t,r){return FF(e.pos,e.end,t,r)}function rZ(e,t,r,i){return FF(e.getStart(t),e.end,r,i)}function FF(e,t,r,i){const o=Math.max(e,r),s=Math.min(t,i);return o<s}function iZ(e,t,r){return R.assert(e.pos<=t),t<e.end||!ip(e,r)}function ip(e,t){if(e===void 0||kl(e))return!1;switch(e.kind){case 260:case 261:case 263:case 207:case 203:case 184:case 238:case 265:case 266:case 272:case 276:return BF(e,19,t);case 295:return ip(e.block,t);case 211:if(!e.arguments)return!0;case 210:case 214:case 193:return BF(e,21,t);case 181:case 182:return ip(e.type,t);case 173:case 174:case 175:case 259:case 215:case 171:case 170:case 177:case 176:case 216:return e.body?ip(e.body,t):e.type?ip(e.type,t):VN(e,21,t);case 264:return!!e.body&&ip(e.body,t);case 242:return e.elseStatement?ip(e.elseStatement,t):ip(e.thenStatement,t);case 241:return ip(e.expression,t)||VN(e,26,t);case 206:case 204:case 209:case 164:case 186:return BF(e,23,t);case 178:return e.type?ip(e.type,t):VN(e,23,t);case 292:case 293:return!1;case 245:case 246:case 247:case 244:return ip(e.statement,t);case 243:return VN(e,115,t)?BF(e,21,t):ip(e.statement,t);case 183:return ip(e.exprName,t);case 218:case 217:case 219:case 226:case 227:return ip(e.expression,t);case 212:return ip(e.template,t);case 225:const i=rl(e.templateSpans);return ip(i,t);case 236:return b_(e.literal);case 275:case 269:return b_(e.moduleSpecifier);case 221:return ip(e.operand,t);case 223:return ip(e.right,t);case 224:return ip(e.whenFalse,t);default:return!0}}function BF(e,t,r){const i=e.getChildren(r);if(i.length){const o=Ko(i);if(o.kind===t)return!0;if(o.kind===26&&i.length!==1)return i[i.length-2].kind===t}return!1}function z1e(e){const t=GF(e);if(!t)return;const r=t.getChildren();return{listItemIndex:nC(r,e),list:t}}function VN(e,t,r){return!!Es(e,t,r)}function Es(e,t,r){return $t(e.getChildren(r),i=>i.kind===t)}function GF(e){const t=$t(e.parent.getChildren(),r=>$C(r)&&gf(r,e));return R.assert(!t||Fr(t.getChildren(),e)),t}function q1e(e){return e.kind===88}function JGe(e){return e.kind===84}function KGe(e){return e.kind===98}function XGe(e){if(Su(e))return e.name;if(Bc(e)){const t=e.modifiers&&$t(e.modifiers,q1e);if(t)return t}if(Ku(e)){const t=$t(e.getChildren(),JGe);if(t)return t}}function YGe(e){if(Su(e))return e.name;if(Sc(e)){const t=$t(e.modifiers,q1e);if(t)return t}if(Us(e)){const t=$t(e.getChildren(),KGe);if(t)return t}}function $Ge(e){let t;return rr(e,r=>(Bi(r)&&(t=r),!Rd(r.parent)&&!Bi(r.parent)&&!xT(r.parent))),t}function UF(e,t){if(e.flags&8388608)return;const r=aB(e,t);if(r)return r;const i=$Ge(e);return i&&t.getTypeAtLocation(i)}function QGe(e,t){if(!t)switch(e.kind){case 260:case 228:return XGe(e);case 259:case 215:return YGe(e);case 173:return e}if(Su(e))return e.name}function J1e(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(Fy(e.importClause.namedBindings)){const r=Nm(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Zv(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function K1e(e,t){if(e.exportClause){if(tp(e.exportClause))return Nm(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Bh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function ZGe(e){if(e.types.length===1)return e.types[0].expression}function X1e(e,t){const{parent:r}=e;if(po(e)&&(t||e.kind!==88)?np(r)&&Fr(r.modifiers,e):e.kind===84?Bc(r)||Ku(e):e.kind===98?Sc(r)||Us(e):e.kind===118?dd(r):e.kind===92?b1(r):e.kind===154?um(r):e.kind===143||e.kind===142?Xl(r):e.kind===100?fu(r):e.kind===137?Z_(r):e.kind===151&&s_(r)){const i=QGe(r,t);if(i)return i}if((e.kind===113||e.kind===85||e.kind===119)&&Xu(r)&&r.declarations.length===1){const i=r.declarations[0];if(We(i.name))return i.name}if(e.kind===154){if(Qm(r)&&r.isTypeOnly){const i=J1e(r.parent,t);if(i)return i}if(au(r)&&r.isTypeOnly){const i=K1e(r,t);if(i)return i}}if(e.kind===128){if(Nd(r)&&r.propertyName||yd(r)&&r.propertyName||Zv(r)||Bh(r))return r.name;if(au(r)&&r.exportClause&&Bh(r.exportClause))return r.exportClause.name}if(e.kind===100&&Yc(r)){const i=J1e(r,t);if(i)return i}if(e.kind===93){if(au(r)){const i=K1e(r,t);if(i)return i}if(Vl(r))return Cu(r.expression)}if(e.kind===147&&Zm(r))return r.expression;if(e.kind===158&&(Yc(r)||au(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===94||e.kind===117)&&Jd(r)&&r.token===e.kind){const i=ZGe(r);if(i)return i}if(e.kind===94){if(Ul(r)&&r.constraint&&ep(r.constraint))return r.constraint.typeName;if(VC(r)&&ep(r.extendsType))return r.extendsType.typeName}if(e.kind===138&&jC(r))return r.typeParameter.name;if(e.kind===101&&Ul(r)&&s4(r.parent))return r.name;if(e.kind===141&&nx(r)&&r.operator===141&&ep(r.type))return r.type.typeName;if(e.kind===146&&nx(r)&&r.operator===146&&zK(r.type)&&ep(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===103&&Zb(r)||e.kind===114&&ix(r)||e.kind===112&&HC(r)||e.kind===133&&zC(r)||e.kind===125&&U5(r)||e.kind===89&&lhe(r))&&r.expression)return Cu(r.expression);if((e.kind===101||e.kind===102)&&Tr(r)&&r.operatorToken===e)return Cu(r.right);if(e.kind===128&&v6(r)&&ep(r.type))return r.type.typeName;if(e.kind===101&&YK(r)||e.kind===162&&b6(r))return Cu(r.expression)}return e}function aZ(e){return X1e(e,!1)}function VF(e){return X1e(e,!0)}function Bf(e,t){return j4(e,t,r=>J_(r)||Dd(r.kind)||Ri(r))}function j4(e,t,r){return Y1e(e,t,!1,r,!1)}function la(e,t){return Y1e(e,t,!0,void 0,!1)}function Y1e(e,t,r,i,o){let s=e,c;e:for(;;){const d=s.getChildren(e),v=fS(d,t,(g,T)=>T,(g,T)=>{const C=d[g].getEnd();if(C<t)return-1;const L=r?d[g].getFullStart():d[g].getStart(e,!0);return L>t?1:_(d[g],L,C)?d[g-1]&&_(d[g-1])?1:0:i&&L===t&&d[g-1]&&d[g-1].getEnd()===t&&_(d[g-1])?1:-1});if(c)return c;if(v>=0&&d[v]){s=d[v];continue e}return s}function _(d,v,g){if(g!=null||(g=d.getEnd()),g<t||(v!=null||(v=r?d.getFullStart():d.getStart(e,!0)),v>t))return!1;if(t<g||t===g&&(d.kind===1||o))return!0;if(i&&g===t){const T=Dc(t,e,d);if(T&&i(T))return c=T,!0}return!1}}function $1e(e,t){let r=la(e,t);for(;jN(r);){const i=f2(r,r.parent,e);if(!i)return;r=i}return r}function jF(e,t){const r=la(e,t);return SS(r)&&t>r.getStart(e)&&t<r.getEnd()?r:Dc(t,e)}function f2(e,t,r){return i(t);function i(o){return SS(o)&&o.pos===e.end?o:qt(o.getChildren(r),s=>(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&dZ(s,r)?i(s):void 0)}}function Dc(e,t,r,i){const o=s(r||t);return R.assert(!(o&&jN(o))),o;function s(c){if(Q1e(c)&&c.kind!==1)return c;const _=c.getChildren(t),d=fS(_,e,(g,T)=>T,(g,T)=>e<_[g].end?!_[g-1]||e>=_[g-1].end?0:1:-1);if(d>=0&&_[d]){const g=_[d];if(e<g.end)if(g.getStart(t,!i)>=e||!dZ(g,t)||jN(g)){const L=sZ(_,d,t,c.kind);return L&&oZ(L,t)}else return s(g)}R.assert(r!==void 0||c.kind===308||c.kind===1||lq(c));const v=sZ(_,_.length,t,c.kind);return v&&oZ(v,t)}}function Q1e(e){return SS(e)&&!jN(e)}function oZ(e,t){if(Q1e(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=sZ(r,r.length,t,e.kind);return i&&oZ(i,t)}function sZ(e,t,r,i){for(let o=t-1;o>=0;o--){const s=e[o];if(jN(s))o===0&&(i===11||i===282)&&R.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(dZ(e[o],r))return e[o]}}function _2(e,t,r=Dc(t,e)){if(r&&$z(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 Z1e(e,t){const r=la(e,t);return r?!!(r.kind===11||r.kind===29&&r.parent.kind===11||r.kind===29&&r.parent.kind===291||r&&r.kind===19&&r.parent.kind===291||r.kind===29&&r.parent.kind===284):!1}function jN(e){return YS(e)&&e.containsOnlyTriviaWhiteSpaces}function lZ(e,t){const r=la(e,t);return Uv(r.kind)&&t>r.getStart(e)}function ebe(e,t){const r=la(e,t);return!!(YS(r)||r.kind===18&&d4(r.parent)&&By(r.parent.parent)||r.kind===29&&sd(r.parent)&&By(r.parent.parent))}function WF(e,t){function r(i){for(;i;)if(i.kind>=282&&i.kind<=291||i.kind===11||i.kind===29||i.kind===31||i.kind===79||i.kind===19||i.kind===18||i.kind===43)i=i.parent;else if(i.kind===281){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(la(e,t))}function HF(e,t,r){const i=bo(e.kind),o=bo(t),s=e.getFullStart(),c=r.text.lastIndexOf(o,s);if(c===-1)return;if(r.text.lastIndexOf(i,s-1)<c){const v=Dc(c+1,r);if(v&&v.kind===t)return v}const _=e.kind;let d=0;for(;;){const v=Dc(e.getFullStart(),r);if(!v)return;if(e=v,e.kind===t){if(d===0)return e;d--}else e.kind===_&&d++}}function tbe(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function WN(e,t,r){const i=uZ(e,t);return i!==void 0&&(Ih(i.called)||cZ(i.called,i.nTypeArguments,r).length!==0||WN(i.called,t,r))}function cZ(e,t,r){let i=r.getTypeAtLocation(e);return xu(e.parent)&&(i=tbe(i,ek(e.parent),!0)),(Zb(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(s=>!!s.typeParameters&&s.typeParameters.length>=t)}function uZ(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 29:if(r=Dc(r.getFullStart(),t),r&&r.kind===28&&(r=Dc(r.getFullStart(),t)),!r||!We(r))return;if(!i)return xg(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(r=HF(r,18,t),!r)return;break;case 21:if(r=HF(r,20,t),!r)return;break;case 23:if(r=HF(r,22,t),!r)return;break;case 27:o++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 141:case 24:case 51:case 57:case 58:break;default:if(Bi(r))break;return}r=Dc(r.getFullStart(),t)}}function jy(e,t,r){return Rc.getRangeOfEnclosingComment(e,t,void 0,r)}function nbe(e,t){const r=la(e,t);return!!rr(r,eh)}function dZ(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function W4(e,t=0){const r=[],i=Au(e)?Pz(e)&~t:0;return i&8&&r.push("private"),i&16&&r.push("protected"),i&4&&r.push("public"),(i&32||Rl(e))&&r.push("static"),i&256&&r.push("abstract"),i&1&&r.push("export"),i&8192&&r.push("deprecated"),e.flags&16777216&&r.push("declare"),e.kind===274&&r.push("export"),r.length>0?r.join(","):""}function rbe(e){if(e.kind===180||e.kind===210)return e.typeArguments;if(Ya(e)||e.kind===260||e.kind===261)return e.typeParameters}function zF(e){return e===2||e===3}function fZ(e){return!!(e===10||e===13||Uv(e))}function ibe(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&t[0].flags&4&&r.isEmptyAnonymousObjectType(t[1])}function abe(e){return 18<=e&&e<=78}function HN(e,t,r){return Uv(e.kind)&&e.getStart(r)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function _Z(e){switch(e){case 123:case 121:case 122:return!0}return!1}function obe(e){const t=tH(e);return BX(t,e&&e.configFile),t}function Wy(e){return!!((e.kind===206||e.kind===207)&&(e.parent.kind===223&&e.parent.left===e&&e.parent.operatorToken.kind===63||e.parent.kind===247&&e.parent.initializer===e||Wy(e.parent.kind===299?e.parent.parent:e.parent)))}function sbe(e,t){return cbe(e,t,!0)}function lbe(e,t){return cbe(e,t,!1)}function cbe(e,t,r){const i=jy(e,t,void 0);return!!i&&r===Hbe.test(e.text.substring(i.pos,i.end))}function pZ(e){if(e)switch(e.kind){case 10:case 14:return mZ(e);default:return fd(e)}}function fd(e,t,r){return Ec(e.getStart(t),(r||e).getEnd())}function mZ(e){if(!e.isUnterminated)return Ec(e.getStart()+1,e.getEnd()-1)}function hZ(e,t){return S_(e.getStart(t),e.end)}function o0(e){return Ec(e.pos,e.end)}function qF(e){return S_(e.start,e.start+e.length)}function JF(e,t,r){return zN(Mc(e,t),r)}function zN(e,t){return{span:e,newText:t}}function H4(e){return Fr(EB,e)}function gZ(e){return e.kind===154}function KF(e){return gZ(e)||We(e)&&e.text==="type"}function qN(e){return!!(e.flags&1536)&&e.name.charCodeAt(0)===34}function hL(){const e=[];return t=>{const r=hs(t);return!e[r]&&(e[r]=!0)}}function XF(e){return e.getText(0,e.getLength())}function JN(e,t){let r="";for(let i=0;i<t;i++)r+=e;return r}function yZ(e){return e.isTypeParameter()&&e.getConstraint()||e}function KN(e){return e.kind===164?n_(e.expression)?e.expression.text:void 0:Ri(e)?Pr(e):K_(e)}function ube(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function dbe(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function vZ(e){return!!e.module||ns(e)>=2||!!e.noEmit}function Ex(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Vo(t,t.readFile),useCaseSensitiveFileNames:Vo(t,t.useCaseSensitiveFileNames),getSymlinkCache:Vo(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Vo(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Vo(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:Vo(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function bZ(e,t){return so(Li({},Ex(e,t)),{getCommonSourceDirectory:()=>e.getCommonSourceDirectory()})}function YF(e){return e===2||e>=3&&e<=99||e===100}function fbe(e,t,r,i){return e||t&&t.length?Hy(e,t,r,i):void 0}function Hy(e,t,r,i,o){return O.createImportDeclaration(void 0,e||t?O.createImportClause(!!o,e,t&&t.length?O.createNamedImports(t):void 0):void 0,typeof r=="string"?$F(r,i):r,void 0)}function $F(e,t){return O.createStringLiteral(e,t===0)}function EZ(e,t){return mP(e,t)?1:0}function Np(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=e.imports&&$t(e.imports,i=>Wo(i)&&!tl(i.parent));return r?EZ(r,e):1}}function _be(e){switch(e){case 0:return"'";case 1:return'"';default:return R.assertNever(e)}}function QF(e){const t=ZF(e);return t===void 0?void 0:ia(t)}function ZF(e){return e.escapedName!=="default"?e.escapedName:qt(e.declarations,t=>{const r=ka(t);return r&&r.kind===79?r.escapedText:void 0})}function eB(e){return As(e)&&(Zm(e.parent)||Yc(e.parent)||wd(e.parent,!1)&&e.parent.arguments[0]===e||pf(e.parent)&&e.parent.arguments[0]===e)}function XN(e){return ms(e)&&$m(e.parent)&&We(e.name)&&!e.propertyName}function tB(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function YN(e,t,r){if(e)for(;e.parent;){if(Ki(e.parent)||!eUe(r,e.parent,t))return e;e=e.parent}}function eUe(e,t,r){return Oz(e,t.getStart(r))&&t.getEnd()<=cu(e)}function gL(e,t){return np(e)?$t(e.modifiers,r=>r.kind===t):void 0}function nB(e,t,r,i,o){const c=(ja(r)?r[0]:r).kind===240?Hq:kT,_=ur(t.statements,c);let d=ja(r)?ap.detectImportDeclarationSorting(r,o):3;const v=ap.getOrganizeImportsComparer(o,d===2),g=ja(r)?by(r,(T,C)=>ap.compareImportsOrRequireStatements(T,C,v)):[r];if(!_.length)e.insertNodesAtTopOfFile(t,g,i);else if(_&&(d=ap.detectImportDeclarationSorting(_,o))){const T=ap.getOrganizeImportsComparer(o,d===2);for(const C of g){const L=ap.getImportDeclarationInsertionIndex(_,C,T);if(L===0){const I=_[0]===t.statements[0]?{leadingTriviaOption:vr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,_[0],C,!1,I)}else{const I=_[L-1];e.insertNodeAfter(t,I,C)}}}else{const T=rl(_);T?e.insertNodesAfter(t,T,g):e.insertNodesAtTopOfFile(t,g,i)}}function TZ(e,t){return R.assert(e.isTypeOnly),lo(e.getChildAt(0,t),gZ)}function yL(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function tUe(e,t){return e.fileName===t.fileName&&yL(e.textSpan,t.textSpan)}function SZ(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 pbe(e,t,r){for(let i=t;i<r;i++)if(!hg(e.charCodeAt(i)))return!1;return!0}function $N(e,t,r){const i=t.tryGetSourcePosition(e);return i&&(!r||r(Xo(i.fileName))?i:void 0)}function xZ(e,t,r){const{fileName:i,textSpan:o}=e,s=$N({fileName:i,pos:o.start},t,r);if(!s)return;const c=$N({fileName:i,pos:o.start+o.length},t,r),_=c?c.pos-s.pos:o.length;return{fileName:s.fileName,textSpan:{start:s.pos,length:_},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:mbe(e,t,r),originalContextSpan:e.contextSpan}}function mbe(e,t,r){const i=e.contextSpan&&$N({fileName:e.fileName,pos:e.contextSpan.start},t,r),o=e.contextSpan&&$N({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 AZ(e){const t=e.declarations?tu(e.declarations):void 0;return!!rr(t,r=>Ba(r)?!0:ms(r)||$m(r)||WC(r)?!1:"quit")}function nUe(){const e=e6*10;let t,r,i,o;g();const s=T=>_(T,17);return{displayParts:()=>{const T=t.length&&t[t.length-1].text;return o>e&&T&&T!=="..."&&(hg(T.charCodeAt(T.length-1))||t.push(Od(" ",16)),t.push(Od("...",15))),t},writeKeyword:T=>_(T,5),writeOperator:T=>_(T,12),writePunctuation:T=>_(T,15),writeTrailingSemicolon:T=>_(T,15),writeSpace:T=>_(T,16),writeStringLiteral:T=>_(T,8),writeParameter:T=>_(T,13),writeProperty:T=>_(T,14),writeLiteral:T=>_(T,8),writeSymbol:d,writeLine:v,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:qa,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:g};function c(){if(!(o>e)&&r){const T=CP(i);T&&(o+=T.length,t.push(Od(T,16))),r=!1}}function _(T,C){o>e||(c(),o+=T.length,t.push(Od(T,C)))}function d(T,C){o>e||(c(),o+=T.length,t.push(hbe(T,C)))}function v(){o>e||(o+=1,t.push(vL()),r=!0)}function g(){t=[],r=!0,i=0,o=0}}function hbe(e,t){return Od(e,r(t));function r(i){const o=i.flags;return o&3?AZ(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 Od(e,t){return{text:e,kind:ON[t]}}function Tl(){return Od(" ",16)}function Xd(e){return Od(bo(e),5)}function Iu(e){return Od(bo(e),15)}function z4(e){return Od(bo(e),12)}function gbe(e){return Od(e,13)}function ybe(e){return Od(e,14)}function CZ(e){const t=bT(e);return t===void 0?Gf(e):Xd(t)}function Gf(e){return Od(e,17)}function vbe(e){return Od(e,0)}function bbe(e){return Od(e,18)}function rB(e){return Od(e,24)}function Ebe(e,t){return{text:e,kind:ON[23],target:{fileName:Zn(t).fileName,textSpan:fd(t)}}}function LZ(e){return Od(e,22)}function Tbe(e,t){var r;const i=mhe(e)?"link":hhe(e)?"linkcode":"linkplain",o=[LZ(`{@${i} `)];if(!e.name)e.text&&o.push(rB(e.text));else{const s=t==null?void 0:t.getSymbolAtLocation(e.name),c=iUe(e.text),_=kc(e.name)+e.text.slice(0,c),d=rUe(e.text.slice(c)),v=(s==null?void 0:s.valueDeclaration)||((r=s==null?void 0:s.declarations)==null?void 0:r[0]);v?(o.push(Ebe(_,v)),d&&o.push(rB(d))):o.push(rB(_+(c?"":" ")+d))}return o.push(LZ("}")),o}function rUe(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 iUe(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 x1(e,t){var r;return(t==null?void 0:t.newLineCharacter)||((r=e.getNewLine)==null?void 0:r.call(e))||zbe}function vL(){return Od(`
`,6)}function s0(e){try{return e(TB),TB.displayParts()}finally{TB.clear()}}function QN(e,t,r,i=0){return s0(o=>{e.writeType(t,r,i|1024|16384,o)})}function q4(e,t,r,i,o=0){return s0(s=>{e.writeSymbol(t,r,i,o|8,s)})}function IZ(e,t,r,i=0){return i|=25632,s0(o=>{e.writeSignature(t,r,i,void 0,o)})}function aUe(e,t){const r=t.getSourceFile();return s0(i=>{vN().writeNode(4,e,r,i)})}function Sbe(e){return!!e.parent&&xS(e.parent)&&e.parent.propertyName===e}function kZ(e,t){return HP(e,t.getScriptKind&&t.getScriptKind(e))}function xbe(e,t){let r=e;for(;oUe(r)||jm(r)&&r.links.target;)jm(r)&&r.links.target?r=r.links.target:r=mf(r,t);return r}function oUe(e){return(e.flags&2097152)!==0}function Abe(e,t){return To(mf(e,t))}function Cbe(e,t){for(;hg(e.charCodeAt(t));)t+=1;return t}function wZ(e,t){for(;t>-1&&Gm(e.charCodeAt(t));)t-=1;return t+1}function Ol(e,t=!0){const r=e&&Lbe(e);return r&&!t&&Yd(r),r}function ZN(e,t,r){let i=r(e);return i?zr(i,e):i=Lbe(e,r),i&&!t&&Yd(i),i}function Lbe(e,t){const r=t?s=>ZN(s,!0,t):Ol,o=Fn(e,r,Dg,t?s=>s&&DZ(s,!0,t):s=>s&&pE(s),r);if(o===e){const s=Wo(e)?zr(O.createStringLiteralFromNode(e),e):C_(e)?zr(O.createNumericLiteral(e.text,e.numericLiteralFlags),e):O.cloneNode(e);return ht(s,e)}return o.parent=void 0,o}function pE(e,t=!0){return e&&O.createNodeArray(e.map(r=>Ol(r,t)),e.hasTrailingComma)}function DZ(e,t,r){return O.createNodeArray(e.map(i=>ZN(i,t,r)),e.hasTrailingComma)}function Yd(e){iB(e),Ibe(e)}function iB(e){RZ(e,1024,lUe)}function Ibe(e){RZ(e,2048,RJ)}function p2(e,t){const r=e.getSourceFile(),i=r.text;sUe(e,i)?bL(e,t,r):tO(e,t,r),J4(e,t,r)}function sUe(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 RZ(e,t,r){cm(e,t);const i=r(e);i&&RZ(i,t,r)}function lUe(e){return e.forEachChild(t=>t)}function m2(e,t){let r=e;for(let i=1;!zM(t,r);i++)r=`${e}_${i}`;return r}function eO(e,t,r,i){let o=0,s=-1;for(const{fileName:c,textChanges:_}of e){R.assert(c===t);for(const d of _){const{span:v,newText:g}=d,T=cUe(g,FS(r));if(T!==-1&&(s=v.start+o+T,!i))return s;o+=g.length-v.length}}return R.assert(i),R.assert(s>=0),s}function bL(e,t,r,i,o){CD(r.text,e.pos,NZ(t,r,i,o,c6))}function J4(e,t,r,i,o){LD(r.text,e.end,NZ(t,r,i,o,o5))}function tO(e,t,r,i,o){LD(r.text,e.pos,NZ(t,r,i,o,c6))}function NZ(e,t,r,i,o){return(s,c,_,d)=>{_===3?(s+=2,c-=2):s+=2,o(e,r||_,t.text.slice(s,c),i!==void 0?i:d)}}function cUe(e,t){if(xa(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 OZ(e){return Tr(e)&&e.operatorToken.kind===27||Is(e)||v6(e)&&Is(e.expression)}function aB(e,t,r){const i=zv(e.parent);switch(i.kind){case 211:return t.getContextualType(i,r);case 223:{const{left:o,operatorToken:s,right:c}=i;return oB(s.kind)?t.getTypeAtLocation(e===c?o:c):t.getContextualType(e,r)}case 292:return PZ(i,t);default:return t.getContextualType(e,r)}}function K4(e,t,r){const i=Np(e,t),o=JSON.stringify(r);return i===0?`'${X_(o).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:o}function oB(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function kbe(e){switch(e.kind){case 10:case 14:case 225:case 212:return!0;default:return!1}}function MZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function PZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function X4(e,t,r,i){const o=r.getTypeChecker();let s=!0;const c=()=>s=!1,_=o.typeToTypeNode(e,t,1,{trackSymbol:(d,v,g)=>(s=s&&o.isSymbolAccessible(d,v,g,!1).accessibility===0,!s),reportInaccessibleThisError:c,reportPrivateInBaseOfClassExpression:c,reportInaccessibleUniqueSymbolError:c,moduleResolverHost:bZ(r,i)});return s?_:void 0}function FZ(e){return e===176||e===177||e===178||e===168||e===170}function wbe(e){return e===259||e===173||e===171||e===174||e===175}function Dbe(e){return e===264}function sB(e){return e===240||e===241||e===243||e===248||e===249||e===250||e===254||e===256||e===169||e===262||e===269||e===268||e===275||e===267||e===274}function uUe(e,t){const r=e.getLastToken(t);if(r&&r.kind===26)return!1;if(FZ(e.kind)){if(r&&r.kind===27)return!1}else if(Dbe(e.kind)){const _=Ko(e.getChildren(t));if(_&&dm(_))return!1}else if(wbe(e.kind)){const _=Ko(e.getChildren(t));if(_&&DT(_))return!1}else if(!sB(e.kind))return!1;if(e.kind===243)return!0;const i=rr(e,_=>!_.parent),o=f2(e,i,t);if(!o||o.kind===19)return!0;const s=t.getLineAndCharacterOfPosition(e.getEnd()).line,c=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==c}function lB(e,t,r){const i=rr(t,o=>o.end!==e?"quit":KZ(o.kind));return!!i&&uUe(i,r)}function cB(e){let t=0,r=0;const i=5;return Pa(e,function o(s){if(sB(s.kind)){const c=s.getLastToken(e);(c==null?void 0:c.kind)===26?t++:r++}else if(FZ(s.kind)){const c=s.getLastToken(e);if((c==null?void 0:c.kind)===26)t++;else if(c&&c.kind!==27){const _=ll(e,c.getStart(e)).line,d=ll(e,wy(e,c.end).start).line;_!==d&&r++}}return t+r>=i?!0:Pa(s,o)}),t===0&&r<=1?!0:t/r>1/i}function uB(e,t){return pB(e,e.getDirectories,t)||[]}function BZ(e,t,r,i,o){return pB(e,e.readDirectory,t,r,i,o)||it}function dB(e,t){return pB(e,e.fileExists,t)}function fB(e,t){return _B(()=>om(t,e))||!1}function _B(e){try{return e()}catch(t){return}}function pB(e,t,...r){return _B(()=>t&&t.apply(e,r))}function GZ(e,t,r){const i=[];return pg(e,o=>{if(o===r)return!0;const s=Fi(o,"package.json");dB(t,s)&&i.push(s)}),i}function Rbe(e,t){let r;return pg(e,i=>{if(i==="node_modules"||(r=d0e(i,o=>dB(t,o),"package.json"),r))return!0}),r}function Nbe(e,t){if(!t.fileExists)return[];const r=[];return pg(vi(e),i=>{const o=Fi(i,"package.json");if(t.fileExists(o)){const s=Obe(o,t);s&&r.push(s)}}),r}function Obe(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=dUe(i),s={};if(o)for(const d of r){const v=o[d];if(!v)continue;const g=new Map;for(const T in v)g.set(T,v[T]);s[d]=g}const c=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return so(Li({},s),{parseable:!!o,fileName:e,get:_,has(d,v){return!!_(d,v)}});function _(d,v=15){for(const[g,T]of c)if(T&&v&g){const C=T.get(d);if(C!==void 0)return C}}}function Y4(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||Nbe(e.fileName,r)).filter(I=>I.parseable);let o,s,c;return{allowsImportingAmbientModule:d,allowsImportingSourceFile:v,allowsImportingSpecifier:g};function _(I){const M=L(I);for(const k of i)if(k.has(M)||k.has(D9(M)))return!0;return!1}function d(I,M){if(!i.length||!I.valueDeclaration)return!0;if(!s)s=new Map;else{const ee=s.get(I);if(ee!==void 0)return ee}const k=X_(I.getName());if(T(k))return s.set(I,!0),!0;const U=I.valueDeclaration.getSourceFile(),j=C(U.fileName,M);if(typeof j=="undefined")return s.set(I,!0),!0;const H=_(j)||_(k);return s.set(I,H),H}function v(I,M){if(!i.length)return!0;if(!c)c=new Map;else{const j=c.get(I);if(j!==void 0)return j}const k=C(I.fileName,M);if(!k)return c.set(I,!0),!0;const U=_(k);return c.set(I,U),U}function g(I){return!i.length||T(I)||wf(I)||Fm(I)?!0:_(I)}function T(I){return!!(ld(e)&&c2.nodeCoreModules.has(I)&&(o===void 0&&(o=mB(e)),o))}function C(I,M){if(!bu(I,"node_modules"))return;const k=oE.getNodeModulesPackageName(r.getCompilationSettings(),e,I,M,t);if(k&&!wf(k)&&!Fm(k))return L(k)}function L(I){const M=md(oN(I)).slice(1);return xa(M[0],"@")?`${M[0]}/${M[1]}`:M[0]}}function dUe(e){try{return JSON.parse(e)}catch(t){return}}function mB(e){return Dt(e.imports,({text:t})=>c2.nodeCoreModules.has(t))}function Mbe(e){return Fr(md(e),"node_modules")}function UZ(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Pbe(e,t){const r=fd(e),i=fS(t,r,gl,U7);if(i>=0){const o=t[i];return R.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),lo(o,UZ)}}function Fbe(e,t){var r;let i=fS(t,e.start,c=>c.start,qs);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const o=[],s=cu(e);for(;;){const c=li(t[i],UZ);if(!c||c.start>s)break;nfe(e,c)&&o.push(c),i++}return o}function Tx({startPosition:e,endPosition:t}){return Ec(e,t===void 0?e:t)}function VZ(e,t){const r=la(e,t.start);return rr(r,o=>o.getStart(e)<t.start||o.getEnd()>cu(t)?"quit":yt(o)&&yL(t,fd(o,e)))}function Bbe(e,t,r=gl){return e?ja(e)?r(Pt(e,t)):t(e,0):void 0}function jZ(e){return ja(e)?ds(e):e}function Gbe(e,t){if(Ube(e)){const r=Vbe(e);if(r)return r;const i=Qu.moduleSymbolToValidIdentifier(WZ(e),t,!1),o=Qu.moduleSymbolToValidIdentifier(WZ(e),t,!0);return i===o?i:[i,o]}return e.name}function hB(e,t,r){return Ube(e)?Vbe(e)||Qu.moduleSymbolToValidIdentifier(WZ(e),t,!!r):e.name}function Ube(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function Vbe(e){return qt(e.declarations,t=>{var r,i;return Vl(t)?(r=li(Cu(t.expression),We))==null?void 0:r.text:(i=li(ka(t),We))==null?void 0:i.text})}function WZ(e){var t;return R.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${R.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=R.formatSyntaxKind(r.kind),o=_r(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${R.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function jbe(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 HZ(e){return e.charCodeAt(0)===95}function fUe(e){return!Wbe(e)}function Wbe(e){const t=e.getSourceFile();return!t.externalModuleIndicator&&!t.commonJsModuleIndicator?!1:_r(e)||!rr(e,r=>Xl(r)&&im(r))}function gB(e){return!!(Pz(e)&8192)}function yB(e,t){const r=qt(e.imports,i=>{if(c2.nodeCoreModules.has(i.text))return xa(i.text,"node:")});return r!=null?r:t.usesUriStyleNodeCoreModules}function nO(e){return e===`
`?1:0}function Sx(e){return ja(e)?Rh(Po(e[0]),e.slice(1)):Po(e)}function vB({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!cB(t);return so(Li({},e),{semicolons:i?"remove":"ignore"})}function zZ(e){return e===2||e===3}function $4(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function bB(e,t){const r=new Set,i=new Set,o=new Set;for(const _ of t)if(!A6(_)){const d=Hs(_.expression);if(ST(d))switch(d.kind){case 14:case 10:r.add(d.text);break;case 8:i.add(parseInt(d.text));break;case 9:const v=ame(oc(d.text,"n")?d.text.slice(0,-1):d.text);v&&o.add(Yb(v));break}else{const v=e.getSymbolAtLocation(_.expression);if(v&&v.valueDeclaration&&nE(v.valueDeclaration)){const g=e.getConstantValue(v.valueDeclaration);g!==void 0&&s(g)}}}return{addValue:s,hasValue:c};function s(_){switch(typeof _){case"string":r.add(_);break;case"number":i.add(_)}}function c(_){switch(typeof _){case"string":return r.has(_);case"number":return i.has(_);case"object":return o.has(Yb(_))}}}var ku,qZ,Hbe,EB,JZ,TB,zbe,SB,KZ,_Ue=b({"src/services/utilities.ts"(){"use strict";Zr(),ku=xy(99,!0),qZ=(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))(qZ||{}),Hbe=/^\/\/\/\s*</,EB=[131,129,160,134,95,138,141,144,104,148,149,146,152,153,110,114,155,156,157],JZ=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(JZ||{}),TB=nUe(),zbe=`
`,SB="anonymous function",KZ=Pm(FZ,wbe,Dbe,sB)}});function qbe(e){let t=1;const r=v_(),i=new Map,o=new Map;let s;const c={isUsableByFile:L=>L===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(L,I,M,k,U,j,H,ee)=>{L!==s&&(c.clear(),s=L);let X;if(U){const Ae=nK(U.fileName);if(Ae){const{topLevelNodeModulesIndex:te,topLevelPackageNameIndex:Ze,packageRootIndex:je}=Ae;if(X=R9(oN(U.fileName.substring(Ze+1,je))),xa(L,U.path.substring(0,te))){const Ue=o.get(X),Je=U.fileName.substring(0,Ze+1);if(Ue){const Fe=Ue.indexOf(Gy);te>Fe&&o.set(X,Je)}else o.set(X,Je)}}}const P=j===1&&xC(I)||I,ue=j===0||qN(P)?ia(M):Gbe(P,void 0),re=typeof ue=="string"?ue:ue[0],be=typeof ue=="string"?void 0:ue[1],ae=X_(k.name),z=t++,ce=mf(I,ee),he=I.flags&33554432?void 0:I,Ee=k.flags&33554432?void 0:k;(!he||!Ee)&&i.set(z,[I,k]),r.add(d(re,I,zc(ae)?void 0:ae,ee),{id:z,symbolTableKey:M,symbolName:re,capitalizedSymbolName:be,moduleName:ae,moduleFile:U,moduleFileName:U==null?void 0:U.fileName,packageName:X,exportKind:j,targetFlags:ce.flags,isFromPackageJson:H,symbol:he,moduleSymbol:Ee})},get:(L,I)=>{if(L!==s)return;const M=r.get(I);return M==null?void 0:M.map(_)},search:(L,I,M,k)=>{if(L===s)return ff(r,(U,j)=>{const{symbolName:H,ambientModuleName:ee}=v(j),X=I&&U[0].capitalizedSymbolName||H;if(M(X,U[0].targetFlags)){const P=U.map(_).filter((ue,re)=>C(ue,U[re].packageName));if(P.length){const ue=k(P,X,!!ee,j);if(ue!==void 0)return ue}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(L,I,M)=>g(L)&&g(I)?!1:s&&s!==I.path||M&&mB(L)!==mB(I)||!Zp(L.moduleAugmentations,I.moduleAugmentations)||!T(L,I)?(c.clear(),!0):(s=I.path,!1)};return R.isDebugging&&Object.defineProperty(c,"__cache",{get:()=>r}),c;function _(L){if(L.symbol&&L.moduleSymbol)return L;const{id:I,exportKind:M,targetFlags:k,isFromPackageJson:U,moduleFileName:j}=L,[H,ee]=i.get(I)||it;if(H&&ee)return{symbol:H,moduleSymbol:ee,moduleFileName:j,exportKind:M,targetFlags:k,isFromPackageJson:U};const X=(U?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),ne=L.moduleSymbol||ee||R.checkDefined(L.moduleFile?X.getMergedSymbol(L.moduleFile.symbol):X.tryFindAmbientModule(L.moduleName)),P=L.symbol||H||R.checkDefined(M===2?X.resolveExternalModuleSymbol(ne):X.tryGetMemberInModuleExportsAndProperties(ia(L.symbolTableKey),ne),`Could not find symbol '${L.symbolName}' by key '${L.symbolTableKey}' in module ${ne.name}`);return i.set(I,[P,ne]),{symbol:P,moduleSymbol:ne,moduleFileName:j,exportKind:M,targetFlags:k,isFromPackageJson:U}}function d(L,I,M,k){const U=M||"";return`${L}|${To(mf(I,k))}|${U}`}function v(L){const I=L.substring(0,L.indexOf("|")),M=L.substring(L.lastIndexOf("|")+1);return{symbolName:I,ambientModuleName:M===""?void 0:M}}function g(L){return!L.commonJsModuleIndicator&&!L.externalModuleIndicator&&!L.moduleAugmentations&&!L.ambientModuleNames}function T(L,I){if(!Zp(L.ambientModuleNames,I.ambientModuleNames))return!1;let M=-1,k=-1;for(const U of I.ambientModuleNames){const j=H=>Sq(H)&&H.name.text===U;if(M=ii(L.statements,j,M+1),k=ii(I.statements,j,k+1),L.statements[M]!==I.statements[k])return!1}return!0}function C(L,I){if(!I||!L.moduleFileName)return!0;const M=e.getGlobalTypingsCacheLocation();if(M&&xa(L.moduleFileName,M))return!0;const k=o.get(I);return!k||xa(L.moduleFileName,k)}}function XZ(e,t,r,i,o,s,c){var _;if(t===r)return!1;const d=c==null?void 0:c.get(t.path,r.path,i,{});if((d==null?void 0:d.isBlockedByPackageJsonDependencies)!==void 0)return!d.isBlockedByPackageJsonDependencies;const v=_1(s),g=(_=s.getGlobalTypingsCacheLocation)==null?void 0:_.call(s),T=!!oE.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,C=>{const L=e.getSourceFile(C);return(L===r||!L)&&pUe(t.fileName,C,v,g)});if(o){const C=T&&o.allowsImportingSourceFile(r,s);return c==null||c.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!C),C}return T}function pUe(e,t,r,i){const o=pg(t,c=>Eu(c)==="node_modules"?c:void 0),s=o&&vi(r(o));return s===void 0||xa(r(e),s)||!!i&&xa(r(i),s)}function YZ(e,t,r,i,o){var s,c;const _=DR(t),d=r.autoImportFileExcludePatterns&&ua(r.autoImportFileExcludePatterns,g=>{const T=WJ(g,"","exclude");return T?Xv(T,_):void 0});Jbe(e.getTypeChecker(),e.getSourceFiles(),d,(g,T)=>o(g,T,e,!1));const v=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(v){const g=ol(),T=e.getTypeChecker();Jbe(v.getTypeChecker(),v.getSourceFiles(),d,(C,L)=>{(L&&!e.getSourceFile(L.fileName)||!L&&!T.resolveName(C.name,void 0,1536,!1))&&o(C,L,v,!0)}),(c=t.log)==null||c.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${ol()-g}`)}}function Jbe(e,t,r,i){var o;const s=r&&(c=>r.some(_=>_.test(c)));for(const c of e.getAmbientModules())!bu(c.name,"*")&&!(r&&((o=c.declarations)!=null&&o.every(_=>s(_.getSourceFile().fileName))))&&i(c,void 0);for(const c of t)_f(c)&&!(s!=null&&s(c.fileName))&&i(e.getMergedSymbol(c.symbol),c)}function rO(e,t,r,i,o){var s,c,_,d,v;const g=ol();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);const T=((c=t.getCachedExportInfoMap)==null?void 0:c.call(t))||qbe({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var I;return(I=t.getPackageJsonAutoImportProvider)==null?void 0:I.call(t)},getGlobalTypingsCacheLocation:()=>{var I;return(I=t.getGlobalTypingsCacheLocation)==null?void 0:I.call(t)}});if(T.isUsableByFile(e.path))return(_=t.log)==null||_.call(t,"getExportInfoMap: cache hit"),T;(d=t.log)==null||d.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const C=r.getCompilerOptions();let L=0;try{YZ(r,t,i,!0,(I,M,k,U)=>{++L%100===0&&(o==null||o.throwIfCancellationRequested());const j=new Map,H=k.getTypeChecker(),ee=xB(I,H,C);ee&&Kbe(ee.symbol,H)&&T.add(e.path,ee.symbol,ee.exportKind===1?"default":"export=",I,M,ee.exportKind,U,H),H.forEachExportAndPropertyOfModule(I,(X,ne)=>{X!==(ee==null?void 0:ee.symbol)&&Kbe(X,H)&&Ip(j,ne)&&T.add(e.path,X,ne,I,M,0,U,H)})})}catch(I){throw T.clear(),I}return(v=t.log)==null||v.call(t,`getExportInfoMap: done in ${ol()-g} ms`),T}function xB(e,t,r){const i=mUe(e,t);if(!i)return;const{symbol:o,exportKind:s}=i,c=AB(o,t,r);return c&&Li({symbol:o,exportKind:s},c)}function Kbe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!xR(e)&&!Y_e(e)}function mUe(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 AB(e,t,r){const i=xC(e);if(i)return{resolvedSymbol:i,name:i.name};const o=hUe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){const s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return AB(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:hB(e,r.target)}}function hUe(e){return e.declarations&&qt(e.declarations,t=>{var r;if(Vl(t))return(r=li(Cu(t.expression),We))==null?void 0:r.text;if(yd(t))return R.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var $Z,QZ,gUe=b({"src/services/exportInfoMap.ts"(){"use strict";Zr(),$Z=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))($Z||{}),QZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(QZ||{})}});function Xbe(){const e=xy(99,!1);function t(i,o,s){return bUe(r(i,o,s),i)}function r(i,o,s){let c=0,_=0;const d=[],{prefix:v,pushTemplate:g}=SUe(o);i=v+i;const T=v.length;g&&d.push(15),e.setText(i);let C=0;const L=[];let I=0;do{c=e.scan(),vC(c)||(M(),_=c);const k=e.getTextPos();if(vUe(e.getTokenPos(),k,T,CUe(c),L),k>=i.length){const U=yUe(e,c,rl(d));U!==void 0&&(C=U)}}while(c!==1);function M(){switch(c){case 43:case 68:!tEe[_]&&e.reScanSlashToken()===13&&(c=13);break;case 29:_===79&&I++;break;case 31:I>0&&I--;break;case 131:case 152:case 148:case 134:case 153:I>0&&!s&&(c=79);break;case 15:d.push(c);break;case 18:d.length>0&&d.push(c);break;case 19:if(d.length>0){const k=rl(d);k===15?(c=e.reScanTemplateToken(!1),c===17?d.pop():R.assertEqual(c,16,"Should have been a template middle.")):(R.assertEqual(k,18,"Should have been an open brace"),d.pop())}break;default:if(!Dd(c))break;(_===24||Dd(_)&&Dd(c)&&!TUe(_,c))&&(c=79)}}return{endOfLineState:C,spans:L}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function yUe(e,t,r){switch(t){case 10:{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?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(Uv(t)){if(!e.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return R.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===15?6:void 0}}function vUe(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 bUe(e,t){const r=[],i=e.spans;let o=0;for(let c=0;c<i.length;c+=3){const _=i[c],d=i[c+1],v=i[c+2];if(o>=0){const g=_-o;g>0&&r.push({length:g,classification:4})}r.push({length:d,classification:EUe(v)}),o=_+d}const s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function EUe(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 TUe(e,t){if(!_Z(e))return!0;switch(t){case 137:case 151:case 135:case 124:case 127:return!0;default:return!1}}function SUe(e){switch(e){case 3:return{prefix:`"\\
`};case 2:return{prefix:`'\\
`};case 1:return{prefix:`/*
`};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return R.assertNever(e)}}function xUe(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}function AUe(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function CUe(e){if(Dd(e))return 3;if(xUe(e)||AUe(e))return 5;if(e>=18&&e<=78)return 10;switch(e){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return Uv(e)?6:2}}function Ybe(e,t,r,i,o){return Zbe(ZZ(e,t,r,i,o))}function $be(e,t){switch(t){case 264:case 260:case 261:case 259:case 228:case 215:case 216:e.throwIfCancellationRequested()}}function ZZ(e,t,r,i,o){const s=[];return r.forEachChild(function _(d){if(!(!d||!AM(o,d.pos,d.getFullWidth()))){if($be(t,d.kind),We(d)&&!kl(d)&&i.has(d.escapedText)){const v=e.getSymbolAtLocation(d),g=v&&Qbe(v,u2(d),e);g&&c(d.getStart(r),d.getEnd(),g)}d.forEachChild(_)}}),{spans:s,endOfLineState:0};function c(_,d,v){const g=d-_;R.assert(g>0,`Classification had non-positive length of ${g}`),s.push(_),s.push(g),s.push(v)}}function Qbe(e,t,r){const i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&LUe(e)?14:void 0:i&2097152?Qbe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function LUe(e){return Dt(e.declarations,t=>Xl(t)&&wg(t)===1)}function IUe(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 Zbe(e){R.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i<t.length;i+=3)r.push({textSpan:Mc(t[i],t[i+1]),classificationType:IUe(t[i+2])});return r}function eEe(e,t,r){return Zbe(eee(e,t,r))}function eee(e,t,r){const i=r.start,o=r.length,s=xy(99,!1,t.languageVariant,t.text),c=xy(99,!1,t.languageVariant,t.text),_=[];return ee(t),{spans:_,endOfLineState:0};function d(X,ne,P){_.push(X),_.push(ne),_.push(P)}function v(X){for(s.setTextPos(X.pos);;){const ne=s.getTextPos();if(!Ude(t.text,ne))return ne;const P=s.scan(),ue=s.getTextPos(),re=ue-ne;if(!vC(P))return ne;switch(P){case 4:case 5:continue;case 2:case 3:g(X,P,ne,re),s.setTextPos(ue);continue;case 7:const be=t.text,ae=be.charCodeAt(ne);if(ae===60||ae===62){d(ne,re,1);continue}R.assert(ae===124||ae===61),M(be,ne,ue);break;case 6:break;default:R.assertNever(P)}}}function g(X,ne,P,ue){if(ne===3){const re=oge(t.text,P,ue);if(re&&re.jsDoc){jo(re.jsDoc,X),C(re.jsDoc);return}}else if(ne===2&&L(P,ue))return;T(P,ue)}function T(X,ne){d(X,ne,1)}function C(X){var ne,P,ue,re,be,ae,z,ce;let he=X.pos;if(X.tags)for(const Ae of X.tags){Ae.pos!==he&&T(he,Ae.pos-he),d(Ae.pos,1,10),d(Ae.tagName.pos,Ae.tagName.end-Ae.tagName.pos,18),he=Ae.tagName.end;let te=Ae.tagName.end;switch(Ae.kind){case 344:const Ze=Ae;Ee(Ze),te=Ze.isNameFirst&&((ne=Ze.typeExpression)==null?void 0:ne.end)||Ze.name.end;break;case 351:const je=Ae;te=je.isNameFirst&&((P=je.typeExpression)==null?void 0:P.end)||je.name.end;break;case 348:I(Ae),he=Ae.end,te=Ae.typeParameters.end;break;case 349:const Ue=Ae;te=((ue=Ue.typeExpression)==null?void 0:ue.kind)===312&&((re=Ue.fullName)==null?void 0:re.end)||((be=Ue.typeExpression)==null?void 0:be.end)||te;break;case 341:te=Ae.typeExpression.end;break;case 347:ee(Ae.typeExpression),he=Ae.end,te=Ae.typeExpression.end;break;case 346:case 343:te=Ae.typeExpression.end;break;case 345:ee(Ae.typeExpression),he=Ae.end,te=((ae=Ae.typeExpression)==null?void 0:ae.end)||te;break;case 350:te=((z=Ae.name)==null?void 0:z.end)||te;break;case 331:case 332:te=Ae.class.end;break;case 352:ee(Ae.typeExpression),he=Ae.end,te=((ce=Ae.typeExpression)==null?void 0:ce.end)||te;break}typeof Ae.comment=="object"?T(Ae.comment.pos,Ae.comment.end-Ae.comment.pos):typeof Ae.comment=="string"&&T(te,Ae.end-te)}he!==X.end&&T(he,X.end-he);return;function Ee(Ae){Ae.isNameFirst&&(T(he,Ae.name.pos-he),d(Ae.name.pos,Ae.name.end-Ae.name.pos,17),he=Ae.name.end),Ae.typeExpression&&(T(he,Ae.typeExpression.pos-he),ee(Ae.typeExpression),he=Ae.typeExpression.end),Ae.isNameFirst||(T(he,Ae.name.pos-he),d(Ae.name.pos,Ae.name.end-Ae.name.pos,17),he=Ae.name.end)}}function L(X,ne){const P=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,ue=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,re=t.text.substr(X,ne),be=P.exec(re);if(!be||!be[3]||!(be[3]in dD))return!1;let ae=X;T(ae,be[1].length),ae+=be[1].length,d(ae,be[2].length,10),ae+=be[2].length,d(ae,be[3].length,21),ae+=be[3].length;const z=be[4];let ce=ae;for(;;){const Ee=ue.exec(z);if(!Ee)break;const Ae=ae+Ee.index+Ee[1].length;Ae>ce&&(T(ce,Ae-ce),ce=Ae),d(ce,Ee[2].length,22),ce+=Ee[2].length,Ee[3].length&&(T(ce,Ee[3].length),ce+=Ee[3].length),d(ce,Ee[4].length,5),ce+=Ee[4].length,Ee[5].length&&(T(ce,Ee[5].length),ce+=Ee[5].length),d(ce,Ee[6].length,24),ce+=Ee[6].length}ae+=be[4].length,ae>ce&&T(ce,ae-ce),be[5]&&(d(ae,be[5].length,10),ae+=be[5].length);const he=X+ne;return ae<he&&T(ae,he-ae),!0}function I(X){for(const ne of X.getChildren())ee(ne)}function M(X,ne,P){let ue;for(ue=ne;ue<P&&!Tu(X.charCodeAt(ue));ue++);for(d(ne,ue-ne,1),c.setTextPos(ue);c.getTextPos()<P;)k()}function k(){const X=c.getTextPos(),ne=c.scan(),P=c.getTextPos(),ue=H(ne);ue&&d(X,P-X,ue)}function U(X){if(eh(X)||kl(X))return!0;const ne=j(X);if(!SS(X)&&X.kind!==11&&ne===void 0)return!1;const P=X.kind===11?X.pos:v(X),ue=X.end-P;if(R.assert(ue>=0),ue>0){const re=ne||H(X.kind,X);re&&d(P,ue,re)}return!0}function j(X){switch(X.parent&&X.parent.kind){case 283:if(X.parent.tagName===X)return 19;break;case 284:if(X.parent.tagName===X)return 20;break;case 282:if(X.parent.tagName===X)return 21;break;case 288:if(X.parent.name===X)return 22;break}}function H(X,ne){if(Dd(X))return 3;if((X===29||X===31)&&ne&&rbe(ne.parent))return 10;if(abe(X)){if(ne){const P=ne.parent;if(X===63&&(P.kind===257||P.kind===169||P.kind===166||P.kind===288)||P.kind===223||P.kind===221||P.kind===222||P.kind===224)return 5}return 10}else{if(X===8)return 4;if(X===9)return 25;if(X===10)return ne&&ne.parent.kind===288?24:6;if(X===13)return 6;if(Uv(X))return 6;if(X===11)return 23;if(X===79){if(ne){switch(ne.parent.kind){case 260:return ne.parent.name===ne?11:void 0;case 165:return ne.parent.name===ne?15:void 0;case 261:return ne.parent.name===ne?13:void 0;case 263:return ne.parent.name===ne?12:void 0;case 264:return ne.parent.name===ne?14:void 0;case 166:return ne.parent.name===ne?GT(ne)?3:17:void 0}if(yg(ne.parent))return 3}return 2}}}function ee(X){if(X&&CM(i,o,X.pos,X.getFullWidth())){$be(e,X.kind);for(const ne of X.getChildren(t))U(ne)||ee(ne)}}}var tEe,kUe=b({"src/services/classifier.ts"(){"use strict";Zr(),tEe=Vue([79,10,8,9,13,108,45,46,21,23,19,110,95],e=>e,()=>!0)}}),CB,wUe=b({"src/services/documentHighlights.ts"(){"use strict";Zr(),(e=>{function t(ae,z,ce,he,Ee){const Ae=Bf(ce,he);if(Ae.parent&&(Gh(Ae.parent)&&Ae.parent.tagName===Ae||lx(Ae.parent))){const{openingElement:te,closingElement:Ze}=Ae.parent.parent,je=[te,Ze].map(({tagName:Ue})=>r(Ue,ce));return[{fileName:ce.fileName,highlightSpans:je}]}return i(he,Ae,ae,z,Ee)||o(Ae,ce)}e.getDocumentHighlights=t;function r(ae,z){return{fileName:z.fileName,textSpan:fd(ae,z),kind:"none"}}function i(ae,z,ce,he,Ee){const Ae=new Set(Ee.map(Ue=>Ue.fileName)),te=fl.getReferenceEntriesForNode(ae,z,ce,Ee,he,void 0,Ae);if(!te)return;const Ze=eD(te.map(fl.toHighlightSpan),Ue=>Ue.fileName,Ue=>Ue.span),je=lu(ce.useCaseSensitiveFileNames());return Oo(yy(Ze.entries(),([Ue,Je])=>{if(!Ae.has(Ue)){if(!ce.redirectTargetsMap.has(Js(Ue,ce.getCurrentDirectory(),je)))return;const Fe=ce.getSourceFile(Ue);Ue=$t(Ee,$e=>!!$e.redirectInfo&&$e.redirectInfo.redirectTarget===Fe).fileName,R.assert(Ae.has(Ue))}return{fileName:Ue,highlightSpans:Je}}))}function o(ae,z){const ce=s(ae,z);return ce&&[{fileName:z.fileName,highlightSpans:ce}]}function s(ae,z){switch(ae.kind){case 99:case 91:return JT(ae.parent)?ue(ae.parent,z):void 0;case 105:return he(ae.parent,kp,ee);case 109:return he(ae.parent,$K,H);case 111:case 83:case 96:const Ae=ae.kind===83?ae.parent.parent:ae.parent;return he(Ae,T6,j);case 107:return he(ae.parent,E6,U);case 82:case 88:return A6(ae.parent)||f4(ae.parent)?he(ae.parent.parent.parent,E6,U):void 0;case 81:case 86:return he(ae.parent,nk,k);case 97:case 115:case 90:return he(ae.parent,te=>Vv(te,!0),M);case 135:return ce(Kl,[135]);case 137:case 151:return ce(s1,[137,151]);case 133:return he(ae.parent,zC,X);case 132:return Ee(X(ae));case 125:return Ee(ne(ae));case 101:return;default:return Ly(ae.kind)&&(Au(ae.parent)||pc(ae.parent))?Ee(C(ae.kind,ae.parent)):void 0}function ce(Ae,te){return he(ae.parent,Ae,Ze=>{var je;return ua((je=li(Ze,Um))==null?void 0:je.symbol.declarations,Ue=>Ae(Ue)?$t(Ue.getChildren(z),Je=>Fr(te,Je.kind)):void 0)})}function he(Ae,te,Ze){return te(Ae)?Ee(Ze(Ae,z)):void 0}function Ee(Ae){return Ae&&Ae.map(te=>r(te,z))}}function c(ae){return $K(ae)?[ae]:T6(ae)?ba(ae.catchClause?c(ae.catchClause):ae.tryBlock&&c(ae.tryBlock),ae.finallyBlock&&c(ae.finallyBlock)):Ya(ae)?void 0:v(ae,c)}function _(ae){let z=ae;for(;z.parent;){const ce=z.parent;if(DT(ce)||ce.kind===308)return ce;if(T6(ce)&&ce.tryBlock===z&&ce.catchClause)return z;z=ce}}function d(ae){return nk(ae)?[ae]:Ya(ae)?void 0:v(ae,d)}function v(ae,z){const ce=[];return ae.forEachChild(he=>{const Ee=z(he);Ee!==void 0&&ce.push(...tD(Ee))}),ce}function g(ae,z){const ce=T(z);return!!ce&&ce===ae}function T(ae){return rr(ae,z=>{switch(z.kind){case 252:if(ae.kind===248)return!1;case 245:case 246:case 247:case 244:case 243:return!ae.label||be(z,ae.label.escapedText);default:return Ya(z)&&"quit"}})}function C(ae,z){return ua(L(z,VS(ae)),ce=>gL(ce,ae))}function L(ae,z){const ce=ae.parent;switch(ce.kind){case 265:case 308:case 238:case 292:case 293:return z&256&&Bc(ae)?[...ae.members,ae]:ce.statements;case 173:case 171:case 259:return[...ce.parameters,..._i(ce.parent)?ce.parent.members:[]];case 260:case 228:case 261:case 184:const he=ce.members;if(z&92){const Ee=$t(ce.members,Kl);if(Ee)return[...he,...Ee.parameters]}else if(z&256)return[...he,ce];return he;case 207:return;default:R.assertNever(ce,"Invalid container kind.")}}function I(ae,z,...ce){return z&&Fr(ce,z.kind)?(ae.push(z),!0):!1}function M(ae){const z=[];if(I(z,ae.getFirstToken(),97,115,90)&&ae.kind===243){const ce=ae.getChildren();for(let he=ce.length-1;he>=0&&!I(z,ce[he],115);he--);}return Ie(d(ae.statement),ce=>{g(ae,ce)&&I(z,ce.getFirstToken(),81,86)}),z}function k(ae){const z=T(ae);if(z)switch(z.kind){case 245:case 246:case 247:case 243:case 244:return M(z);case 252:return U(z)}}function U(ae){const z=[];return I(z,ae.getFirstToken(),107),Ie(ae.caseBlock.clauses,ce=>{I(z,ce.getFirstToken(),82,88),Ie(d(ce),he=>{g(ae,he)&&I(z,he.getFirstToken(),81)})}),z}function j(ae,z){const ce=[];if(I(ce,ae.getFirstToken(),111),ae.catchClause&&I(ce,ae.catchClause.getFirstToken(),83),ae.finallyBlock){const he=Es(ae,96,z);I(ce,he,96)}return ce}function H(ae,z){const ce=_(ae);if(!ce)return;const he=[];return Ie(c(ce),Ee=>{he.push(Es(Ee,109,z))}),DT(ce)&&wT(ce,Ee=>{he.push(Es(Ee,105,z))}),he}function ee(ae,z){const ce=Nf(ae);if(!ce)return;const he=[];return wT(lo(ce.body,fo),Ee=>{he.push(Es(Ee,105,z))}),Ie(c(ce.body),Ee=>{he.push(Es(Ee,109,z))}),he}function X(ae){const z=Nf(ae);if(!z)return;const ce=[];return z.modifiers&&z.modifiers.forEach(he=>{I(ce,he,132)}),Pa(z,he=>{P(he,Ee=>{zC(Ee)&&I(ce,Ee.getFirstToken(),133)})}),ce}function ne(ae){const z=Nf(ae);if(!z)return;const ce=[];return Pa(z,he=>{P(he,Ee=>{U5(Ee)&&I(ce,Ee.getFirstToken(),125)})}),ce}function P(ae,z){z(ae),!Ya(ae)&&!_i(ae)&&!dd(ae)&&!Xl(ae)&&!um(ae)&&!Bi(ae)&&Pa(ae,ce=>P(ce,z))}function ue(ae,z){const ce=re(ae,z),he=[];for(let Ee=0;Ee<ce.length;Ee++){if(ce[Ee].kind===91&&Ee<ce.length-1){const Ae=ce[Ee],te=ce[Ee+1];let Ze=!0;for(let je=te.getStart(z)-1;je>=Ae.end;je--)if(!Gm(z.text.charCodeAt(je))){Ze=!1;break}if(Ze){he.push({fileName:z.fileName,textSpan:Ec(Ae.getStart(),te.end),kind:"reference"}),Ee++;continue}}he.push(r(ce[Ee],z))}return he}function re(ae,z){const ce=[];for(;JT(ae.parent)&&ae.parent.elseStatement===ae;)ae=ae.parent;for(;;){const he=ae.getChildren(z);I(ce,he[0],99);for(let Ee=he.length-1;Ee>=0&&!I(ce,he[Ee],91);Ee--);if(!ae.elseStatement||!JT(ae.elseStatement))break;ae=ae.elseStatement}return ce}function be(ae,z){return!!rr(ae.parent,ce=>eE(ce)?ce.label.escapedText===z:"quit")}})(CB||(CB={}))}});function LB(e){return!!e.sourceFile}function tee(e,t){return nEe(e,t)}function nEe(e,t="",r){const i=new Map,o=lu(!!e);function s(){const k=Oo(i.keys()).filter(U=>U&&U.charAt(0)==="_").map(U=>{const j=i.get(U),H=[];return j.forEach((ee,X)=>{LB(ee)?H.push({name:X,scriptKind:ee.sourceFile.scriptKind,refCount:ee.languageServiceRefCount}):ee.forEach((ne,P)=>H.push({name:X,scriptKind:P,refCount:ne.languageServiceRefCount}))}),H.sort((ee,X)=>X.refCount-ee.refCount),{bucket:U,sourceFiles:H}});return JSON.stringify(k,void 0,2)}function c(k){return typeof k.getCompilationSettings=="function"?k.getCompilationSettings():k}function _(k,U,j,H,ee,X){const ne=Js(k,t,o),P=IB(c(U));return d(k,ne,U,P,j,H,ee,X)}function d(k,U,j,H,ee,X,ne,P){return C(k,U,j,H,ee,X,!0,ne,P)}function v(k,U,j,H,ee,X){const ne=Js(k,t,o),P=IB(c(U));return g(k,ne,U,P,j,H,ee,X)}function g(k,U,j,H,ee,X,ne,P){return C(k,U,c(j),H,ee,X,!1,ne,P)}function T(k,U){const j=LB(k)?k:k.get(R.checkDefined(U,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return R.assert(U===void 0||!j||j.sourceFile.scriptKind===U,`Script kind should match provided ScriptKind:${U} and sourceFile.scriptKind: ${j==null?void 0:j.sourceFile.scriptKind}, !entry: ${!j}`),j}function C(k,U,j,H,ee,X,ne,P,ue){var re,be,ae,z;P=HP(k,P);const ce=c(j),he=j===ce?void 0:j,Ee=P===6?100:ns(ce),Ae=typeof ue=="object"?ue:{languageVersion:Ee,impliedNodeFormat:he&&lF(U,(z=(ae=(be=(re=he.getCompilerHost)==null?void 0:re.call(he))==null?void 0:be.getModuleResolutionCache)==null?void 0:ae.call(be))==null?void 0:z.getPackageJsonInfoCache(),he,ce),setExternalModuleIndicator:UR(ce)};Ae.languageVersion=Ee;const te=i.size,Ze=rEe(H,Ae.impliedNodeFormat),je=Eb(i,Ze,()=>new Map);if(Ti){i.size>te&&Ti.instant(Ti.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:ce.configFilePath,key:Ze});const Be=!vd(U)&&ff(i,($e,ze)=>ze!==Ze&&$e.has(U)&&ze);Be&&Ti.instant(Ti.Phase.Session,"documentRegistryBucketOverlap",{path:U,key1:Be,key2:Ze})}const Ue=je.get(U);let Je=Ue&&T(Ue,P);if(!Je&&r){const Be=r.getDocument(Ze,U);Be&&(R.assert(ne),Je={sourceFile:Be,languageServiceRefCount:0},Fe())}if(Je)Je.sourceFile.version!==X&&(Je.sourceFile=Lee(Je.sourceFile,ee,X,ee.getChangeRange(Je.sourceFile.scriptSnapshot)),r&&r.setDocument(Ze,U,Je.sourceFile)),ne&&Je.languageServiceRefCount++;else{const Be=UB(k,ee,Ae,X,!1,P);r&&r.setDocument(Ze,U,Be),Je={sourceFile:Be,languageServiceRefCount:1},Fe()}return R.assert(Je.languageServiceRefCount!==0),Je.sourceFile;function Fe(){if(!Ue)je.set(U,Je);else if(LB(Ue)){const Be=new Map;Be.set(Ue.sourceFile.scriptKind,Ue),Be.set(P,Je),je.set(U,Be)}else Ue.set(P,Je)}}function L(k,U,j,H){const ee=Js(k,t,o),X=IB(U);return I(ee,X,j,H)}function I(k,U,j,H){const ee=R.checkDefined(i.get(rEe(U,H))),X=ee.get(k),ne=T(X,j);ne.languageServiceRefCount--,R.assert(ne.languageServiceRefCount>=0),ne.languageServiceRefCount===0&&(LB(X)?ee.delete(k):(X.delete(j),X.size===1&&ee.set(k,Xn(X.values(),gl))))}function M(k,U){return Oo(i.entries(),([j,H])=>{const ee=H.get(k),X=ee&&T(ee,U);return[j,X&&X.languageServiceRefCount]})}return{acquireDocument:_,acquireDocumentWithKey:d,updateDocument:v,updateDocumentWithKey:g,releaseDocument:L,releaseDocumentWithKey:I,getLanguageServiceRefCounts:M,reportStats:s,getKeyForCompilationSettings:IB}}function IB(e){return oY(e,m9)}function rEe(e,t){return t?`${e}|${t}`:e}var DUe=b({"src/services/documentRegistry.ts"(){"use strict";Zr()}});function iEe(e,t,r,i,o,s,c){const _=DR(i),d=lu(_),v=nee(t,r,d,c),g=nee(r,t,d,c);return vr.ChangeTracker.with({host:i,formatContext:o,preferences:s},T=>{NUe(e,T,v,t,r,i.getCurrentDirectory(),_),OUe(e,T,v,g,i,d)})}function nee(e,t,r,i){const o=r(e);return c=>{const _=i&&i.tryGetSourcePosition({fileName:c,pos:0}),d=s(_?_.fileName:c);return _?d===void 0?void 0:RUe(_.fileName,d,c,r):d};function s(c){if(r(c)===o)return t;const _=VJ(c,o,r);return _===void 0?void 0:t+"/"+_}}function RUe(e,t,r,i){const o=bD(e,t,i);return ree(vi(r),o)}function NUe(e,t,r,i,o,s,c){const{configFile:_}=e.getCompilerOptions();if(!_)return;const d=vi(_.fileName),v=pk(_);if(!v)return;iee(v,(L,I)=>{switch(I){case"files":case"include":case"exclude":{if(g(L)||I!=="include"||!Ju(L.initializer))return;const k=ua(L.initializer.elements,j=>Wo(j)?j.text:void 0);if(k.length===0)return;const U=Vk(d,[],k,c,s);Xv(R.checkDefined(U.includeFilePattern),c).test(i)&&!Xv(R.checkDefined(U.includeFilePattern),c).test(o)&&t.insertNodeAfter(_,Ko(L.initializer.elements),O.createStringLiteral(C(o)));return}case"compilerOptions":iee(L.initializer,(M,k)=>{const U=DX(k);R.assert((U==null?void 0:U.type)!=="listOrElement"),U&&(U.isFilePath||U.type==="list"&&U.element.isFilePath)?g(M):k==="paths"&&iee(M.initializer,j=>{if(Ju(j.initializer))for(const H of j.initializer.elements)T(H)})});return}});function g(L){const I=Ju(L.initializer)?L.initializer.elements:[L.initializer];let M=!1;for(const k of I)M=T(k)||M;return M}function T(L){if(!Wo(L))return!1;const I=ree(d,L.text),M=r(I);return M!==void 0?(t.replaceRangeWithText(_,oEe(L,_),C(M)),!0):!1}function C(L){return Bm(d,L,!c)}}function OUe(e,t,r,i,o,s){const c=e.getSourceFiles();for(const _ of c){const d=r(_.fileName),v=d!=null?d:_.fileName,g=vi(v),T=i(_.fileName),C=T||_.fileName,L=vi(C),I=d!==void 0||T!==void 0;FUe(_,t,M=>{if(!wf(M))return;const k=ree(L,M),U=r(k);return U===void 0?void 0:Db(Bm(g,U,s))},M=>{const k=e.getTypeChecker().getSymbolAtLocation(M);if(k!=null&&k.declarations&&k.declarations.some(j=>Hu(j)))return;const U=T!==void 0?aEe(M,S4(M.text,C,e.getCompilerOptions(),o),r,c):PUe(k,M,_,e,o,r);return U!==void 0&&(U.updated||I&&wf(M.text))?oE.updateModuleSpecifier(e.getCompilerOptions(),_,s(v),U.newFileName,Ex(e,o),M.text):void 0})}}function MUe(e,t){return Xo(Fi(e,t))}function ree(e,t){return Db(MUe(e,t))}function PUe(e,t,r,i,o,s){var c;if(e){const _=$t(e.declarations,Ki).fileName,d=s(_);return d===void 0?{newFileName:_,updated:!1}:{newFileName:d,updated:!0}}else{const _=Dp(r,t),d=o.resolveModuleNameLiterals||!o.resolveModuleNames?(c=r.resolvedModules)==null?void 0:c.get(t.text,_):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,_);return aEe(t,d,s,i.getSourceFiles())}}function aEe(e,t,r,i){if(!t)return;if(t.resolvedModule){const d=_(t.resolvedModule.resolvedFileName);if(d)return d}const o=Ie(t.failedLookupLocations,s)||wf(e.text)&&Ie(t.failedLookupLocations,c);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(d){const v=r(d);return v&&$t(i,g=>g.fileName===v)?c(d):void 0}function c(d){return oc(d,"/package.json")?void 0:_(d)}function _(d){const v=r(d);return v&&{newFileName:v,updated:!0}}}function FUe(e,t,r,i){for(const o of e.referencedFiles||it){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,oEe(o,e),s)}}function oEe(e,t){return S_(e.getStart(t)+1,e.end-1)}function iee(e,t){if(Is(e))for(const r of e.properties)$c(r)&&Wo(r.name)&&t(r,r.name.text)}var BUe=b({"src/services/getEditsForFileRename.ts"(){"use strict";Zr()}});function iO(e,t){return{kind:e,isCaseSensitive:t}}function sEe(e){const t=new Map,r=e.trim().split(".").map(i=>jUe(i.trim()));if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>GUe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>aee(i,Ko(r),t),patternContainsDots:r.length>1}}function GUe(e,t,r,i){if(!aee(t,Ko(r),i)||r.length-1>e.length)return;let s;for(let c=r.length-2,_=e.length-1;c>=0;c-=1,_-=1)s=uEe(s,aee(e[_],r[c],i));return s}function lEe(e,t){let r=t.get(e);return r||t.set(e,r=pEe(e)),r}function cEe(e,t,r){const i=WUe(e,t.textLowerCase);if(i===0)return iO(t.text.length===e.length?0:1,xa(e,t.text));if(t.isLowerCase){if(i===-1)return;const o=lEe(e,r);for(const s of o)if(oee(e,s,t.text,!0))return iO(2,oee(e,s,t.text,!1));if(t.text.length<e.length&&xx(e.charCodeAt(i)))return iO(2,!1)}else{if(e.indexOf(t.text)>0)return iO(2,!0);if(t.characterSpans.length>0){const o=lEe(e,r),s=dEe(e,o,t,!1)?!0:dEe(e,o,t,!0)?!1:void 0;if(s!==void 0)return iO(3,s)}}}function aee(e,t,r){if(kB(t.totalTextChunk.text,s=>s!==32&&s!==42)){const s=cEe(e,t.totalTextChunk,r);if(s)return s}const i=t.subWordTextChunks;let o;for(const s of i)o=uEe(o,cEe(e,s,r));return o}function uEe(e,t){return iH([e,t],UUe)}function UUe(e,t){return e===void 0?1:t===void 0?-1:qs(e.kind,t.kind)||Ab(!e.isCaseSensitive,!t.isCaseSensitive)}function oee(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&gEe(0,o.length,s=>VUe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function VUe(e,t,r){return r?see(e)===see(t):e===t}function dEe(e,t,r,i){const o=r.characterSpans;let s=0,c=0,_,d;for(;;){if(c===o.length)return!0;if(s===t.length)return!1;let v=t[s],g=!1;for(;c<o.length;c++){const T=o[c];if(g&&(!xx(r.text.charCodeAt(o[c-1].start))||!xx(r.text.charCodeAt(o[c].start)))||!oee(e,v,r.text,i,T))break;g=!0,_=_===void 0?s:_,d=d===void 0?!0:d,v=Mc(v.start+T.length,v.length-T.length)}!g&&d!==void 0&&(d=!1),s++}}function jUe(e){return{totalTextChunk:cee(e),subWordTextChunks:zUe(e)}}function xx(e){if(e>=65&&e<=90)return!0;if(e<127||!yM(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function fEe(e){if(e>=97&&e<=122)return!0;if(e<127||!yM(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function WUe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(kB(t,(o,s)=>see(e.charCodeAt(s+i))===o))return i;return-1}function see(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function lee(e){return e>=48&&e<=57}function HUe(e){return xx(e)||fEe(e)||lee(e)||e===95||e===36}function zUe(e){const t=[];let r=0,i=0;for(let o=0;o<e.length;o++){const s=e.charCodeAt(o);HUe(s)?(i===0&&(r=o),i++):i>0&&(t.push(cee(e.substr(r,i))),i=0)}return i>0&&t.push(cee(e.substr(r,i))),t}function cee(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:_Ee(e)}}function _Ee(e){return mEe(e,!1)}function pEe(e){return mEe(e,!0)}function mEe(e,t){const r=[];let i=0;for(let o=1;o<e.length;o++){const s=lee(e.charCodeAt(o-1)),c=lee(e.charCodeAt(o)),_=JUe(e,t,o),d=t&&qUe(e,o,i);(uee(e.charCodeAt(o-1))||uee(e.charCodeAt(o))||s!==c||_||d)&&(hEe(e,i,o)||r.push(Mc(i,o-i)),i=o)}return hEe(e,i,e.length)||r.push(Mc(i,e.length-i)),r}function uee(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 hEe(e,t,r){return kB(e,i=>uee(i)&&i!==95,t,r)}function qUe(e,t,r){return t!==r&&t+1<e.length&&xx(e.charCodeAt(t))&&fEe(e.charCodeAt(t+1))&&kB(e,xx,r,t)}function JUe(e,t,r){const i=xx(e.charCodeAt(r-1));return xx(e.charCodeAt(r))&&(!t||!i)}function gEe(e,t,r){for(let i=e;i<t;i++)if(!r(i))return!1;return!0}function kB(e,t,r=0,i=e.length){return gEe(r,i,o=>t(e.charCodeAt(o),o))}var wB,KUe=b({"src/services/patternMatcher.ts"(){"use strict";Zr(),wB=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(wB||{})}});function yEe(e,t=!0,r=!1){const i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[];let s,c,_,d=0,v=!1;function g(){return c=_,_=ku.scan(),_===18?d++:_===19&&d--,_}function T(){const X=ku.getTokenValue(),ne=ku.getTokenPos();return{fileName:X,pos:ne,end:ne+X.length}}function C(){s||(s=[]),s.push({ref:T(),depth:d})}function L(){o.push(T()),I()}function I(){d===0&&(v=!0)}function M(){let X=ku.getToken();return X===136?(X=g(),X===142&&(X=g(),X===10&&C()),!0):!1}function k(){if(c===24)return!1;let X=ku.getToken();if(X===100){if(X=g(),X===20){if(X=g(),X===10||X===14)return L(),!0}else{if(X===10)return L(),!0;if(X===154&&ku.lookAhead(()=>{const P=ku.scan();return P!==158&&(P===41||P===18||P===79||Dd(P))})&&(X=g()),X===79||Dd(X))if(X=g(),X===158){if(X=g(),X===10)return L(),!0}else if(X===63){if(j(!0))return!0}else if(X===27)X=g();else return!0;if(X===18){for(X=g();X!==19&&X!==1;)X=g();X===19&&(X=g(),X===158&&(X=g(),X===10&&L()))}else X===41&&(X=g(),X===128&&(X=g(),(X===79||Dd(X))&&(X=g(),X===158&&(X=g(),X===10&&L()))))}return!0}return!1}function U(){let X=ku.getToken();if(X===93){if(I(),X=g(),X===154&&ku.lookAhead(()=>{const P=ku.scan();return P===41||P===18})&&(X=g()),X===18){for(X=g();X!==19&&X!==1;)X=g();X===19&&(X=g(),X===158&&(X=g(),X===10&&L()))}else if(X===41)X=g(),X===158&&(X=g(),X===10&&L());else if(X===100&&(X=g(),X===154&&ku.lookAhead(()=>{const P=ku.scan();return P===79||Dd(P)})&&(X=g()),(X===79||Dd(X))&&(X=g(),X===63&&j(!0))))return!0;return!0}return!1}function j(X,ne=!1){let P=X?g():ku.getToken();return P===147?(P=g(),P===20&&(P=g(),(P===10||ne&&P===14)&&L()),!0):!1}function H(){let X=ku.getToken();if(X===79&&ku.getTokenValue()==="define"){if(X=g(),X!==20)return!0;if(X=g(),X===10||X===14)if(X=g(),X===27)X=g();else return!0;if(X!==22)return!0;for(X=g();X!==23&&X!==1;)(X===10||X===14)&&L(),X=g();return!0}return!1}function ee(){for(ku.setText(e),g();ku.getToken()!==1;){if(ku.getToken()===15){const X=[ku.getToken()];e:for(;ge(X);){const ne=ku.scan();switch(ne){case 1:break e;case 100:k();break;case 15:X.push(ne);break;case 18:ge(X)&&X.push(ne);break;case 19:ge(X)&&(rl(X)===15?ku.reScanTemplateToken(!1)===17&&X.pop():X.pop());break}}g()}M()||k()||U()||r&&(j(!1,!0)||H())||g()}ku.setText(void 0)}if(t&&ee(),AX(i,e),CX(i,co),v){if(s)for(const X of s)o.push(X.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let X;if(s)for(const ne of s)ne.depth===0?(X||(X=[]),X.push(ne.ref.fileName)):o.push(ne.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:X}}}var XUe=b({"src/services/preProcess.ts"(){"use strict";Zr()}});function vEe(e){const t=lu(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:_,tryGetGeneratedPosition:d,toLineColumnOffset:C,clearCache:L};function s(I){return Js(I,r,t)}function c(I,M){const k=s(I),U=o.get(k);if(U)return U;let j;if(e.getDocumentPositionMapper)j=e.getDocumentPositionMapper(I,M);else if(e.readFile){const H=T(I);j=H&&bEe({getSourceFileLike:T,getCanonicalFileName:t,log:ee=>e.log(ee)},I,sve(H.text,mg(H)),ee=>!e.fileExists||e.fileExists(ee)?e.readFile(ee):void 0)}return o.set(k,j||q9),j||q9}function _(I){if(!vd(I.fileName)||!v(I.fileName))return;const k=c(I.fileName).getSourcePosition(I);return!k||k===I?void 0:_(k)||k}function d(I){if(vd(I.fileName))return;const M=v(I.fileName);if(!M)return;const k=e.getProgram();if(k.isSourceOfProjectReferenceRedirect(M.fileName))return;const U=k.getCompilerOptions(),j=Ks(U),H=j?zd(j)+".d.ts":dJ(I.fileName,k.getCompilerOptions(),r,k.getCommonSourceDirectory(),t);if(H===void 0)return;const ee=c(H,I.fileName).getGeneratedPosition(I);return ee===I?void 0:ee}function v(I){const M=e.getProgram();if(!M)return;const k=s(I),U=M.getSourceFileByPath(k);return U&&U.resolvedPath===k?U:void 0}function g(I){const M=s(I),k=i.get(M);if(k!==void 0)return k||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(M)){i.set(M,!1);return}const U=e.readFile(M),j=U?YUe(U):!1;return i.set(M,j),j||void 0}function T(I){return e.getSourceFileLike?e.getSourceFileLike(I):v(I)||g(I)}function C(I,M){return T(I).getLineAndCharacterOfPosition(M)}function L(){i.clear(),o.clear()}}function bEe(e,t,r,i){let o=lve(r);if(o){const _=TEe.exec(o);if(_){if(_[1]){const d=_[1];return EEe(e,Cpe(nu,d),t)}o=void 0}}const s=[];o&&s.push(o),s.push(t+".map");const c=o&&Ma(o,vi(t));for(const _ of s){const d=Ma(_,vi(t)),v=i(d,c);if(za(v))return EEe(e,v,d);if(v!==void 0)return v||void 0}}function EEe(e,t,r){const i=OY(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(za)))return _ve(e,i,r)}function YUe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return AD(mg(this),r)}}}var TEe,$Ue=b({"src/services/sourcemaps.ts"(){"use strict";Zr(),Zr(),TEe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/}});function dee(e,t,r){t.getSemanticDiagnostics(e,r);const i=[],o=t.getTypeChecker();!(e.impliedNodeFormat===1||Ic(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(dbe(t)||vZ(t.getCompilerOptions()))&&QUe(e)&&i.push(Nr(nVe(e.commonJsModuleIndicator),m.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const c=ld(e);if(RB.clear(),_(e),jT(t.getCompilerOptions()))for(const d of e.imports){const v=fR(d),g=ZUe(v);if(!g)continue;const T=tC(e,d.text,Dp(e,d)),C=T&&t.getSourceFile(T.resolvedFileName);C&&C.externalModuleIndicator&&C.externalModuleIndicator!==!0&&Vl(C.externalModuleIndicator)&&C.externalModuleIndicator.isExportEquals&&i.push(Nr(g,m.Import_may_be_converted_to_a_default_import))}return xi(i,e.bindSuggestionDiagnostics),xi(i,t.getSuggestionDiagnostics(e,r)),i.sort((d,v)=>d.start-v.start);function _(d){if(c)iVe(d,o)&&i.push(Nr($i(d.parent)?d.parent.name:d,m.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(pc(d)&&d.parent===e&&d.declarationList.flags&2&&d.declarationList.declarations.length===1){const v=d.declarationList.declarations[0].initializer;v&&wd(v,!0)&&i.push(Nr(v,m.require_call_may_be_converted_to_an_import))}Qu.parameterShouldGetTypeFromJSDoc(d)&&i.push(Nr(d.name||d,m.JSDoc_types_may_be_moved_to_TypeScript_types))}pee(d)&&eVe(d,o,i),d.forEachChild(_)}}function QUe(e){return e.statements.some(t=>{switch(t.kind){case 240:return t.declarationList.declarations.some(r=>!!r.initializer&&wd(SEe(r.initializer),!0));case 241:{const{expression:r}=t;if(!Tr(r))return wd(r,!0);const i=wl(r);return i===1||i===2}default:return!1}})}function SEe(e){return Br(e)?SEe(e.expression):e}function ZUe(e){switch(e.kind){case 269:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===271&&Wo(r)?t.namedBindings.name:void 0;case 268:return e.name;default:return}}function eVe(e,t,r){tVe(e,t)&&!RB.has(LEe(e))&&r.push(Nr(!e.name&&$i(e.parent)&&We(e.parent.name)?e.parent.name:e,m.This_may_be_converted_to_an_async_function))}function tVe(e,t){return!bC(e)&&e.body&&fo(e.body)&&rVe(e.body,t)&&fee(e,t)}function fee(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function nVe(e){return Tr(e)?e.left:e}function rVe(e,t){return!!wT(e,r=>DB(r,t))}function DB(e,t){return kp(e)&&!!e.expression&&_ee(e.expression,t)}function _ee(e,t){if(!xEe(e)||!AEe(e)||!e.arguments.every(i=>CEe(i,t)))return!1;let r=e.expression.expression;for(;xEe(r)||Br(r);)if(io(r)){if(!AEe(r)||!r.arguments.every(i=>CEe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function xEe(e){return io(e)&&(PN(e,"then")||PN(e,"catch")||PN(e,"finally"))}function AEe(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||Dt(e.arguments,i=>i.kind===104||We(i)&&i.text==="undefined")}function CEe(e,t){switch(e.kind){case 259:case 215:if(Jc(e)&1)return!1;case 216:RB.set(LEe(e),!0);case 104:return!0;case 79:case 208:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||Dt(mf(i,t).declarations,o=>Ya(o)||Wv(o)&&!!o.initializer&&Ya(o.initializer)):!1}default:return!1}}function LEe(e){return`${e.pos.toString()}:${e.end.toString()}`}function iVe(e,t){var r,i,o,s;if(Us(e)){if($i(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;const c=t.getSymbolOfExpando(e,!1);return!!(c&&((i=c.exports)!=null&&i.size||(o=c.members)!=null&&o.size))}return Sc(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function pee(e){switch(e.kind){case 259:case 171:case 215:case 216:return!0;default:return!1}}var RB,aVe=b({"src/services/suggestionDiagnostics.ts"(){"use strict";Zr(),RB=new Map}});function IEe(e,t){const r=[],i=t.compilerOptions?mee(t.compilerOptions,r):{},o=GB();for(const C in o)Fs(o,C)&&i[C]===void 0&&(i[C]=o[C]);for(const C of ZX)i.verbatimModuleSyntax&&kEe.has(C.name)||(i[C.name]=C.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const s=m1(i),c={getSourceFile:C=>C===Xo(_)?d:void 0,writeFile:(C,L)=>{_c(C,".map")?(R.assertEqual(g,void 0,"Unexpected multiple source map outputs, file:",C),g=L):(R.assertEqual(v,void 0,"Unexpected multiple outputs, file:",C),v=L)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:C=>C,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:C=>C===_,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},_=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),d=F6(_,e,{languageVersion:ns(i),impliedNodeFormat:lF(Js(_,"",c.getCanonicalFileName),void 0,c,i),setExternalModuleIndicator:UR(i)});t.moduleName&&(d.moduleName=t.moduleName),t.renamedDependencies&&(d.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let v,g;const T=cF([_],i,c);return t.reportDiagnostics&&(xi(r,T.getSyntacticDiagnostics(d)),xi(r,T.getOptionsDiagnostics())),T.emit(void 0,void 0,void 0,void 0,t.transformers),v===void 0?R.fail("Output generation failed"):{outputText:v,diagnostics:r,sourceMapText:g}}function oVe(e,t,r,i,o){const s=IEe(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return xi(i,s.diagnostics),s.outputText}function mee(e,t){hee=hee||ur(kg,r=>typeof r.type=="object"&&!ff(r.type,i=>typeof i!="number")),e=obe(e);for(const r of hee){if(!Fs(e,r.name))continue;const i=e[r.name];za(i)?e[r.name]=s9(r,i,t):ff(r.type,o=>o===i)||t.push(IX(r))}return e}var kEe,hee,sVe=b({"src/services/transpile.ts"(){"use strict";Zr(),kEe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function wEe(e,t,r,i,o,s){const c=sEe(i);if(!c)return it;const _=[];for(const d of e)r.throwIfCancellationRequested(),!(s&&d.isDeclarationFile)&&d.getNamedDeclarations().forEach((v,g)=>{lVe(c,g,v,t,d.fileName,_)});return _.sort(fVe),(o===void 0?_:_.slice(0,o)).map(_Ve)}function lVe(e,t,r,i,o,s){const c=e.getMatchForLastSegmentOfPattern(t);if(c){for(const _ of r)if(cVe(_,i))if(e.patternContainsDots){const d=e.getFullMatch(dVe(_),t);d&&s.push({name:t,fileName:o,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:_})}else s.push({name:t,fileName:o,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:_})}}function cVe(e,t){switch(e.kind){case 270:case 273:case 268:const r=t.getSymbolAtLocation(e.name),i=t.getAliasedSymbol(r);return r.escapedName!==i.escapedName;default:return!0}}function uVe(e,t){const r=ka(e);return!!r&&(DEe(r,t)||r.kind===164&&gee(r.expression,t))}function gee(e,t){return DEe(e,t)||Br(e)&&(t.push(e.name.text),!0)&&gee(e.expression,t)}function DEe(e,t){return J_(e)&&(t.push(K_(e)),!0)}function dVe(e){const t=[],r=ka(e);if(r&&r.kind===164&&!gee(r.expression,t))return it;t.shift();let i=d2(e);for(;i;){if(!uVe(i,t))return it;i=d2(i)}return t.reverse()}function fVe(e,t){return qs(e.matchKind,t.matchKind)||nD(e.name,t.name)}function _Ve(e){const t=e.declaration,r=d2(t),i=r&&ka(r);return{name:e.name,kind:_E(t),kindModifiers:W4(t),matchKind:wB[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:fd(t),containerName:i?i.text:"",containerKind:i?_E(r):""}}var pVe=b({"src/services/navigateTo.ts"(){"use strict";Zr()}}),REe={};B(REe,{getNavigateToItems:()=>wEe});var NEe=b({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";pVe()}});function OEe(e,t){PB=t,Q4=e;try{return Pt(vVe(BEe(e)),bVe)}finally{PEe()}}function MEe(e,t){PB=t,Q4=e;try{return JEe(BEe(e))}finally{PEe()}}function PEe(){Q4=void 0,PB=void 0,Z4=[],Rg=void 0,FB=[]}function aO(e){return EL(e.getText(Q4))}function NB(e){return e.node.kind}function FEe(e,t){e.children?e.children.push(t):e.children=[t]}function BEe(e){R.assert(!Z4.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Rg=t;for(const r of e.statements)h2(r);return l0(),R.assert(!Rg&&!Z4.length),t}function A1(e,t){FEe(Rg,yee(e,t))}function yee(e,t){return{node:e,name:t||(Au(e)||yt(e)?ka(e):void 0),additionalNodes:void 0,parent:Rg,children:void 0,indent:Rg.indent+1}}function GEe(e){Ax||(Ax=new Map),Ax.set(e,!0)}function UEe(e){for(let t=0;t<e;t++)l0()}function VEe(e,t){const r=[];for(;!J_(t);){const i=sR(t),o=Sg(t);t=t.expression,!(o==="prototype"||Ri(i))&&r.push(i)}r.push(t);for(let i=r.length-1;i>0;i--){const o=r[i];C1(e,o)}return[r.length-1,r[0]]}function C1(e,t){const r=yee(e,t);FEe(Rg,r),Z4.push(Rg),Cee.push(Ax),Ax=void 0,Rg=r}function l0(){Rg.children&&(OB(Rg.children,Rg),Eee(Rg.children)),Rg=Z4.pop(),Ax=Cee.pop()}function c0(e,t,r){C1(e,r),h2(t),l0()}function jEe(e){e.initializer&&TVe(e.initializer)?(C1(e),Pa(e.initializer,h2),l0()):c0(e,e.initializer)}function vee(e){return!qv(e)||e.kind!==223&&Br(e.name.expression)&&We(e.name.expression.expression)&&Pr(e.name.expression.expression)==="Symbol"}function h2(e){if(PB.throwIfCancellationRequested(),!(!e||SS(e)))switch(e.kind){case 173:const t=e;c0(t,t.body);for(const c of t.parameters)cf(c,t)&&A1(c);break;case 171:case 174:case 175:case 170:vee(e)&&c0(e,e.body);break;case 169:vee(e)&&jEe(e);break;case 168:vee(e)&&A1(e);break;case 270:const r=e;r.name&&A1(r.name);const{namedBindings:i}=r;if(i)if(i.kind===271)A1(i);else for(const c of i.elements)A1(c);break;case 300:c0(e,e.name);break;case 301:const{expression:o}=e;We(o)?A1(e,o):A1(e);break;case 205:case 299:case 257:{const c=e;$a(c.name)?h2(c.name):jEe(c);break}case 259:const s=e.name;s&&We(s)&&GEe(s.text),c0(e,e.body);break;case 216:case 215:c0(e,e.body);break;case 263:C1(e);for(const c of e.members)EVe(c)||A1(c);l0();break;case 260:case 228:case 261:C1(e);for(const c of e.members)h2(c);l0();break;case 264:c0(e,XEe(e).body);break;case 274:{const c=e.expression,_=Is(c)||io(c)?c:Xs(c)||Us(c)?c.body:void 0;_?(C1(e),h2(_),l0()):A1(e);break}case 278:case 268:case 178:case 176:case 177:case 262:A1(e);break;case 210:case 223:{const c=wl(e);switch(c){case 1:case 2:c0(e,e.right);return;case 6:case 3:{const _=e,d=_.left,v=c===3?d.expression:d;let g=0,T;We(v.expression)?(GEe(v.expression.text),T=v.expression):[g,T]=VEe(_,v.expression),c===6?Is(_.right)&&_.right.properties.length>0&&(C1(_,T),Pa(_.right,h2),l0()):Us(_.right)||Xs(_.right)?c0(e,_.right,T):(C1(_,T),c0(e,_.right,d.name),l0()),UEe(g);return}case 7:case 9:{const _=e,d=c===7?_.arguments[0]:_.arguments[0].expression,v=_.arguments[1],[g,T]=VEe(e,d);C1(e,T),C1(e,ht(O.createIdentifier(v.text),v)),h2(e.arguments[2]),l0(),l0(),UEe(g);return}case 5:{const _=e,d=_.left,v=d.expression;if(We(v)&&Sg(d)!=="prototype"&&Ax&&Ax.has(v.text)){Us(_.right)||Xs(_.right)?c0(e,_.right,v):OT(d)&&(C1(_,v),c0(_.left,_.right,sR(d)),l0());return}break}case 4:case 0:case 8:break;default:R.assertNever(c)}}default:Df(e)&&Ie(e.jsDoc,c=>{Ie(c.tags,_=>{T_(_)&&A1(_)})}),Pa(e,h2)}}function OB(e,t){const r=new Map;Ws(e,(i,o)=>{const s=i.name||ka(i.node),c=s&&aO(s);if(!c)return!0;const _=r.get(c);if(!_)return r.set(c,i),!0;if(_ instanceof Array){for(const d of _)if(WEe(d,i,o,t))return!1;return _.push(i),!0}else{const d=_;return WEe(d,i,o,t)?!1:(r.set(c,[d,i]),!0)}})}function mVe(e,t,r,i){function o(_){return Us(_)||Sc(_)||$i(_)}const s=Tr(t.node)||io(t.node)?wl(t.node):0,c=Tr(e.node)||io(e.node)?wl(e.node):0;if(TL[s]&&TL[c]||o(e.node)&&TL[s]||o(t.node)&&TL[c]||Bc(e.node)&&bee(e.node)&&TL[s]||Bc(t.node)&&TL[c]||Bc(e.node)&&bee(e.node)&&o(t.node)||Bc(t.node)&&o(e.node)&&bee(e.node)){let _=e.additionalNodes&&rl(e.additionalNodes)||e.node;if(!Bc(e.node)&&!Bc(t.node)||o(e.node)||o(t.node)){const v=o(e.node)?e.node:o(t.node)?t.node:void 0;if(v!==void 0){const g=ht(O.createConstructorDeclaration(void 0,[],void 0),v),T=yee(g);T.indent=e.indent+1,T.children=e.node===v?e.children:t.children,e.children=e.node===v?ba([T],t.children||[t]):ba(e.children||[Li({},e)],[T])}else(e.children||t.children)&&(e.children=ba(e.children||[Li({},e)],t.children||[t]),e.children&&(OB(e.children,e),Eee(e.children)));_=e.node=ht(O.createClassDeclaration(void 0,e.name||O.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=ba(e.children,t.children),e.children&&OB(e.children,e);const d=t.node;return i.children[r-1].node.end===_.end?ht(_,{pos:_.pos,end:d.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(ht(O.createClassDeclaration(void 0,e.name||O.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function WEe(e,t,r,i){return mVe(e,t,r,i)?!0:hVe(e.node,t.node,i)?(gVe(e,t),!0):!1}function hVe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(HEe(e,r)&&HEe(t,r)))return!1;switch(e.kind){case 169:case 171:case 174:case 175:return Xa(e)===Xa(t);case 264:return zEe(e,t)&&xee(e)===xee(t);default:return!0}}function bee(e){return!!(e.flags&8)}function HEe(e,t){const r=dm(e.parent)?e.parent.parent:e.parent;return r===t.node||Fr(t.additionalNodes,r)}function zEe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==264||zEe(e.body,t.body))}function gVe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=ba(e.children,t.children),e.children&&(OB(e.children,e),Eee(e.children))}function Eee(e){e.sort(yVe)}function yVe(e,t){return nD(qEe(e.node),qEe(t.node))||qs(NB(e),NB(t))}function qEe(e){if(e.kind===264)return KEe(e);const t=ka(e);if(t&&bl(t)){const r=Hb(t);return r&&ia(r)}switch(e.kind){case 215:case 216:case 228:return $Ee(e);default:return}}function Tee(e,t){if(e.kind===264)return EL(KEe(e));if(t){const r=We(t)?t.text:dl(t)?`[${aO(t.argumentExpression)}]`:aO(t);if(r.length>0)return EL(r)}switch(e.kind){case 308:const r=e;return tc(r)?`"${FS(Eu(zd(Xo(r.fileName))))}"`:"<global>";case 274:return Vl(e)&&e.isExportEquals?"export=":"default";case 216:case 259:case 215:case 260:case 228:return Jv(e)&1024?"default":$Ee(e);case 173:return"constructor";case 177:return"new()";case 176:return"()";case 178:return"[]";default:return"<unknown>"}}function vVe(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(NB(o)){case 260:case 228:case 263:case 261:case 264:case 308:case 262:case 349:case 341:return!0;case 216:case 259:case 215:return s(o);default:return!1}function s(c){if(!c.node.body)return!1;switch(NB(c.parent)){case 265:case 308:case 171:case 173:return!0;default:return!1}}}}function JEe(e){return{text:Tee(e.node,e.name),kind:_E(e.node),kindModifiers:YEe(e.node),spans:See(e),nameSpan:e.name&&Aee(e.name),childItems:Pt(e.children,JEe)}}function bVe(e){return{text:Tee(e.node,e.name),kind:_E(e.node),kindModifiers:YEe(e.node),spans:See(e),childItems:Pt(e.children,t)||FB,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:Tee(r.node,r.name),kind:_E(r.node),kindModifiers:W4(r.node),spans:See(r),childItems:FB,indent:0,bolded:!1,grayed:!1}}}function See(e){const t=[Aee(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(Aee(r));return t}function KEe(e){return Hu(e)?kc(e.name):xee(e)}function xee(e){const t=[K_(e.name)];for(;e.body&&e.body.kind===264;)e=e.body,t.push(K_(e.name));return t.join(".")}function XEe(e){return e.body&&Xl(e.body)?XEe(e.body):e}function EVe(e){return!e.name||e.name.kind===164}function Aee(e){return e.kind===308?o0(e):fd(e,Q4)}function YEe(e){return e.parent&&e.parent.kind===257&&(e=e.parent),W4(e)}function $Ee(e){const{parent:t}=e;if(e.name&&HD(e.name)>0)return EL(Ds(e.name));if($i(t))return EL(Ds(t.name));if(Tr(t)&&t.operatorToken.kind===63)return aO(t.left).replace(ZEe,"");if($c(t))return aO(t.name);if(Jv(e)&1024)return"default";if(_i(e))return"<class>";if(io(t)){let r=QEe(t.expression);if(r!==void 0){if(r=EL(r),r.length>MB)return`${r} callback`;const i=EL(ua(t.arguments,o=>As(o)?o.getText(Q4):void 0).join(", "));return`${r}(${i}) callback`}}return"<function>"}function QEe(e){if(We(e))return e.text;if(Br(e)){const t=QEe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function TVe(e){switch(e.kind){case 216:case 215:case 228:return!0;default:return!1}}function EL(e){return e=e.length>MB?e.substring(0,MB)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var ZEe,MB,PB,Q4,Z4,Rg,Cee,Ax,FB,TL,SVe=b({"src/services/navigationBar.ts"(){"use strict";Zr(),ZEe=/\s+/g,MB=150,Z4=[],Cee=[],FB=[],TL={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),eTe={};B(eTe,{getNavigationBarItems:()=>OEe,getNavigationTree:()=>MEe});var tTe=b({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";SVe()}});function nTe(e,t,r,i){const o=OD(e)?new jB(e,t,r):e===79?new HB(79,t,r):e===80?new zB(80,t,r):new wee(e,t,r);return o.parent=i,o.flags=i.flags&50720768,o}function xVe(e,t){if(!OD(e.kind))return it;const r=[];if(lq(e))return e.forEachChild(c=>{r.push(c)}),r;ku.setText((t||e.getSourceFile()).text);let i=e.pos;const o=c=>{oO(r,i,c.pos,e),r.push(c),i=c.end},s=c=>{oO(r,i,c.pos,e),r.push(AVe(c,e)),i=c.end};return Ie(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),oO(r,i,e.end,e),ku.setText(void 0),r}function oO(e,t,r,i){for(ku.setTextPos(t);t<r;){const o=ku.scan(),s=ku.getTextPos();if(s<=r){if(o===79){if(fme(i))continue;R.fail(`Did not expect ${R.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`)}e.push(nTe(o,t,s,i))}if(t=s,o===1)break}}function AVe(e,t){const r=nTe(354,e.pos,e.end,t);r._children=[];let i=e.pos;for(const o of e)oO(r._children,i,o.pos,t),r._children.push(o),i=o.end;return oO(r._children,i,e.end,t),r}function rTe(e){return Nb(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function BB(e,t){if(!e)return it;let r=I1.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(rTe))){const i=new Set;for(const o of e){const s=iTe(t,o,c=>{var _;if(!i.has(c))return i.add(c),o.kind===174||o.kind===175?c.getContextualJsDocTags(o,t):((_=c.declarations)==null?void 0:_.length)===1?c.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function sO(e,t){if(!e)return it;let r=I1.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(rTe))){const i=new Set;for(const o of e){const s=iTe(t,o,c=>{if(!i.has(c))return i.add(c),o.kind===174||o.kind===175?c.getContextualDocumentationComment(o,t):c.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(vL(),r))}}return r}function iTe(e,t,r){var i;const o=((i=t.parent)==null?void 0:i.kind)===173?t.parent.parent:t.parent;if(!o)return;const s=Tc(t);return qt(bk(o),c=>{const _=e.getTypeAtLocation(c),d=s&&_.symbol?e.getTypeOfSymbol(_.symbol):_,v=e.getPropertyOfType(d,t.symbol.name);return v?r(v):void 0})}function CVe(){return{getNodeConstructor:()=>jB,getTokenConstructor:()=>wee,getIdentifierConstructor:()=>HB,getPrivateIdentifierConstructor:()=>zB,getSourceFileConstructor:()=>_Te,getSymbolConstructor:()=>uTe,getTypeConstructor:()=>dTe,getSignatureConstructor:()=>fTe,getSourceMapSourceConstructor:()=>pTe}}function lO(e){let t=!0;for(const i in e)if(Fs(e,i)&&!aTe(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(Fs(e,i)){const o=aTe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function aTe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function oTe(e){return e?Pt(e,t=>t.text).join(""):""}function GB(){return{target:1,jsx:1}}function sTe(){return Qu.getSupportedErrorCodes()}function lTe(e,t,r){e.version=r,e.scriptSnapshot=t}function UB(e,t,r,i,o,s){const c=F6(e,XF(t),r,o,s);return lTe(c,t,i),c}function Lee(e,t,r,i,o){if(i&&r!==e.version){let c;const _=i.span.start!==0?e.text.substr(0,i.span.start):"",d=cu(i.span)!==e.text.length?e.text.substr(cu(i.span)):"";if(i.newLength===0)c=_&&d?_+d:_||d;else{const g=t.getText(i.span.start,i.span.start+i.newLength);c=_&&d?_+g+d:_?_+g:g+d}const v=xX(e,c,i,o);return lTe(v,t,r),v.nameTable=void 0,e!==v&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),v}const s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return UB(e.fileName,t,s,r,!0,e.scriptKind)}function cTe(e,t=tee(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 mTe(e);let c,_,d=0;const v=e.getCancellationToken?new gTe(e.getCancellationToken()):hTe,g=e.getCurrentDirectory();Gpe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function T(at){e.log&&e.log(at)}const C=DR(e),L=lu(C),I=vEe({useCaseSensitiveFileNames:()=>C,getCurrentDirectory:()=>g,getProgram:U,fileExists:Vo(e,e.fileExists),readFile:Vo(e,e.readFile),getDocumentPositionMapper:Vo(e,e.getDocumentPositionMapper),getSourceFileLike:Vo(e,e.getSourceFileLike),log:T});function M(at){const fe=c.getSourceFile(at);if(!fe){const Te=new Error(`Could not find source file: '${at}'.`);throw Te.ProgramFiles=c.getSourceFiles().map(Y=>Y.fileName),Te}return fe}function k(){var at,fe,Te;if(R.assert(o!==2),e.getProjectVersion){const mi=e.getProjectVersion();if(mi){if(_===mi&&!((at=e.hasChangedAutomaticTypeDirectiveNames)!=null&&at.call(e)))return;_=mi}}const Y=e.getTypeRootsVersion?e.getTypeRootsVersion():0;d!==Y&&(T("TypeRoots version has changed; provide new program"),c=void 0,d=Y);const Ne=e.getScriptFileNames().slice(),J=e.getCompilationSettings()||GB(),wt=e.hasInvalidatedResolutions||Sb,Et=Vo(e,e.hasChangedAutomaticTypeDirectiveNames),ut=(fe=e.getProjectReferences)==null?void 0:fe.call(e);let nn,ir={getSourceFile:$r,getSourceFileByPath:ls,getCancellationToken:()=>v,getCanonicalFileName:L,useCaseSensitiveFileNames:()=>C,getNewLine:()=>m1(J),getDefaultLibFileName:mi=>e.getDefaultLibFileName(mi),writeFile:co,getCurrentDirectory:()=>g,fileExists:mi=>e.fileExists(mi),readFile:mi=>e.readFile&&e.readFile(mi),getSymlinkCache:Vo(e,e.getSymlinkCache),realpath:Vo(e,e.realpath),directoryExists:mi=>om(mi,e),getDirectories:mi=>e.getDirectories?e.getDirectories(mi):[],readDirectory:(mi,fa,wn,pa,nc)=>(R.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(mi,fa,wn,pa,nc)),onReleaseOldSourceFile:Hi,onReleaseParsedCommandLine:da,hasInvalidatedResolutions:wt,hasChangedAutomaticTypeDirectiveNames:Et,trace:Vo(e,e.trace),resolveModuleNames:Vo(e,e.resolveModuleNames),getModuleResolutionCache:Vo(e,e.getModuleResolutionCache),createHash:Vo(e,e.createHash),resolveTypeReferenceDirectives:Vo(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Vo(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Vo(e,e.resolveTypeReferenceDirectiveReferences),useSourceOfProjectReferenceRedirect:Vo(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:xo};const ai=ir.getSourceFile,{getSourceFileWithCache:gi}=EN(ir,mi=>Js(mi,g,L),(...mi)=>ai.call(ir,...mi));ir.getSourceFile=gi,(Te=e.setCompilerHost)==null||Te.call(e,ir);const ui={useCaseSensitiveFileNames:C,fileExists:mi=>ir.fileExists(mi),readFile:mi=>ir.readFile(mi),readDirectory:(...mi)=>ir.readDirectory(...mi),trace:ir.trace,getCurrentDirectory:ir.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:co},Wi=t.getKeyForCompilationSettings(J);if(S$(c,Ne,J,(mi,fa)=>e.getScriptVersion(fa),mi=>ir.fileExists(mi),wt,Et,xo,ut))return;c=cF({rootNames:Ne,options:J,host:ir,oldProgram:c,projectReferences:ut}),ir=void 0,nn=void 0,I.clearCache(),c.getTypeChecker();return;function xo(mi){const fa=Js(mi,g,L),wn=nn==null?void 0:nn.get(fa);if(wn!==void 0)return wn||void 0;const pa=e.getParsedCommandLine?e.getParsedCommandLine(mi):oo(mi);return(nn||(nn=new Map)).set(fa,pa||!1),pa}function oo(mi){const fa=$r(mi,100);if(fa)return fa.path=Js(mi,g,L),fa.resolvedPath=fa.path,fa.originalFileName=fa.fileName,W6(fa,ui,Ma(vi(mi),g),void 0,Ma(mi,g))}function da(mi,fa,wn){var pa;e.getParsedCommandLine?(pa=e.onReleaseParsedCommandLine)==null||pa.call(e,mi,fa,wn):fa&&Hi(fa.sourceFile,wn)}function Hi(mi,fa){const wn=t.getKeyForCompilationSettings(fa);t.releaseDocumentWithKey(mi.resolvedPath,wn,mi.scriptKind,mi.impliedNodeFormat)}function $r(mi,fa,wn,pa){return ls(mi,Js(mi,g,L),fa,wn,pa)}function ls(mi,fa,wn,pa,nc){R.assert(ir,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const al=e.getScriptSnapshot(mi);if(!al)return;const jl=kZ(mi,e),$l=e.getScriptVersion(mi);if(!nc){const Wl=c&&c.getSourceFileByPath(fa);if(Wl){if(jl===Wl.scriptKind)return t.updateDocumentWithKey(mi,fa,e,Wi,al,$l,jl,wn);t.releaseDocumentWithKey(Wl.resolvedPath,t.getKeyForCompilationSettings(c.getCompilerOptions()),Wl.scriptKind,Wl.impliedNodeFormat)}}return t.acquireDocumentWithKey(mi,fa,e,Wi,al,$l,jl,wn)}}function U(){if(o===2){R.assert(c===void 0);return}return k(),c}function j(){var at;return(at=e.getPackageJsonAutoImportProvider)==null?void 0:at.call(e)}function H(at,fe){const Te=c.getTypeChecker(),Y=Ne();if(!Y)return!1;for(const wt of at)for(const Et of wt.references){const ut=J(Et);if(R.assertIsDefined(ut),fe.has(Et)||fl.isDeclarationOfSymbol(ut,Y)){fe.add(Et),Et.isDefinition=!0;const nn=xZ(Et,I,Vo(e,e.fileExists));nn&&fe.add(nn)}else Et.isDefinition=!1}return!0;function Ne(){for(const wt of at)for(const Et of wt.references){if(fe.has(Et)){const nn=J(Et);return R.assertIsDefined(nn),Te.getSymbolAtLocation(nn)}const ut=xZ(Et,I,Vo(e,e.fileExists));if(ut&&fe.has(ut)){const nn=J(ut);if(nn)return Te.getSymbolAtLocation(nn)}}}function J(wt){const Et=c.getSourceFile(wt.fileName);if(!Et)return;const ut=Bf(Et,wt.textSpan.start);return fl.Core.getAdjustedNode(ut,{use:fl.FindReferencesUse.References})}}function ee(){c=void 0}function X(){if(c){const at=t.getKeyForCompilationSettings(c.getCompilerOptions());Ie(c.getSourceFiles(),fe=>t.releaseDocumentWithKey(fe.resolvedPath,at,fe.scriptKind,fe.impliedNodeFormat)),c=void 0}e=void 0}function ne(at){return k(),c.getSyntacticDiagnostics(M(at),v).slice()}function P(at){k();const fe=M(at),Te=c.getSemanticDiagnostics(fe,v);if(!Q_(c.getCompilerOptions()))return Te.slice();const Y=c.getDeclarationDiagnostics(fe,v);return[...Te,...Y]}function ue(at){return k(),dee(M(at),c,v)}function re(){return k(),[...c.getOptionsDiagnostics(v),...c.getGlobalDiagnostics(v)]}function be(at,fe,Te=mm,Y){const Ne=so(Li({},Te),{includeCompletionsForModuleExports:Te.includeCompletionsForModuleExports||Te.includeExternalModuleExports,includeCompletionsWithInsertText:Te.includeCompletionsWithInsertText||Te.includeInsertTextCompletions});return k(),Nx.getCompletionsAtPosition(e,c,T,M(at),fe,Ne,Te.triggerCharacter,Te.triggerKind,v,Y&&Rc.getFormatContext(Y,e),Te.includeSymbol)}function ae(at,fe,Te,Y,Ne,J=mm,wt){return k(),Nx.getCompletionEntryDetails(c,T,M(at),fe,{name:Te,source:Ne,data:wt},e,Y&&Rc.getFormatContext(Y,e),J,v)}function z(at,fe,Te,Y,Ne=mm){return k(),Nx.getCompletionEntrySymbol(c,T,M(at),fe,{name:Te,source:Y},e,Ne)}function ce(at,fe){k();const Te=M(at),Y=Bf(Te,fe);if(Y===Te)return;const Ne=c.getTypeChecker(),J=he(Y),wt=wVe(J,Ne);if(!wt||Ne.isUnknownSymbol(wt)){const ai=Ee(Te,J,fe)?Ne.getTypeAtLocation(J):void 0;return ai&&{kind:"",kindModifiers:"",textSpan:fd(J,Te),displayParts:Ne.runWithCancellationToken(v,gi=>QN(gi,ai,d2(J))),documentation:ai.symbol?ai.symbol.getDocumentationComment(Ne):void 0,tags:ai.symbol?ai.symbol.getJsDocTags(Ne):void 0}}const{symbolKind:Et,displayParts:ut,documentation:nn,tags:ir}=Ne.runWithCancellationToken(v,ai=>qy.getSymbolDisplayPartsDocumentationAndSymbolKind(ai,wt,Te,d2(J),J));return{kind:Et,kindModifiers:qy.getSymbolModifiers(Ne,wt),textSpan:fd(J,Te),displayParts:ut,documentation:nn,tags:ir}}function he(at){return Zb(at.parent)&&at.pos===at.parent.pos?at.parent.expression:o4(at.parent)&&at.pos===at.parent.pos||oC(at.parent)&&at.parent.name===at?at.parent:at}function Ee(at,fe,Te){switch(fe.kind){case 79:return!$Q(fe)&&!QQ(fe)&&!yg(fe.parent);case 208:case 163:return!jy(at,Te);case 108:case 194:case 106:case 199:return!0;case 233:return oC(fe);default:return!1}}function Ae(at,fe,Te,Y){return k(),u8.getDefinitionAtPosition(c,M(at),fe,Te,Y)}function te(at,fe){return k(),u8.getDefinitionAndBoundSpan(c,M(at),fe)}function Ze(at,fe){return k(),u8.getTypeDefinitionAtPosition(c.getTypeChecker(),M(at),fe)}function je(at,fe){return k(),fl.getImplementationsAtPosition(c,v,c.getSourceFiles(),M(at),fe)}function Ue(at,fe){return ji(Je(at,fe,[at]),Te=>Te.highlightSpans.map(Y=>Li(Li({fileName:Te.fileName,textSpan:Y.textSpan,isWriteAccess:Y.kind==="writtenReference"},Y.isInString&&{isInString:!0}),Y.contextSpan&&{contextSpan:Y.contextSpan})))}function Je(at,fe,Te){const Y=Xo(at);R.assert(Te.some(wt=>Xo(wt)===Y)),k();const Ne=ua(Te,wt=>c.getSourceFile(wt)),J=M(at);return CB.getDocumentHighlights(c,v,J,fe,Ne)}function Fe(at,fe,Te,Y,Ne){k();const J=M(at),wt=VF(Bf(J,fe));if(oV.nodeIsEligibleForRename(wt))if(We(wt)&&(Gh(wt.parent)||lx(wt.parent))&&xk(wt.escapedText)){const{openingElement:Et,closingElement:ut}=wt.parent.parent;return[Et,ut].map(nn=>{const ir=fd(nn.tagName,J);return Li({fileName:J.fileName,textSpan:ir},fl.toContextSpan(ir,J,nn.parent))})}else return $e(wt,fe,{findInStrings:Te,findInComments:Y,providePrefixAndSuffixTextForRename:Ne,use:fl.FindReferencesUse.Rename},(Et,ut,nn)=>fl.toRenameLocation(Et,ut,nn,Ne||!1))}function Be(at,fe){return k(),$e(Bf(M(at),fe),fe,{use:fl.FindReferencesUse.References},fl.toReferenceEntry)}function $e(at,fe,Te,Y){k();const Ne=Te&&Te.use===fl.FindReferencesUse.Rename?c.getSourceFiles().filter(J=>!c.isSourceFileDefaultLibrary(J)):c.getSourceFiles();return fl.findReferenceOrRenameEntries(c,v,Ne,at,fe,Te,Y)}function ze(at,fe){return k(),fl.findReferencedSymbols(c,v,c.getSourceFiles(),M(at),fe)}function Ge(at){return k(),fl.Core.getReferencesForFileName(at,c,c.getSourceFiles()).map(fl.toReferenceEntry)}function lt(at,fe,Te,Y=!1){k();const Ne=Te?[M(Te)]:c.getSourceFiles();return wEe(Ne,c.getTypeChecker(),v,at,fe,Y)}function Ct(at,fe,Te){k();const Y=M(at),Ne=e.getCustomTransformers&&e.getCustomTransformers();return b0e(c,Y,!!fe,v,Ne,Te)}function bt(at,fe,{triggerReason:Te}=mm){k();const Y=M(at);return qO.getSignatureHelpItems(c,Y,fe,Te,v)}function zt(at){return s.getCurrentSourceFile(at)}function nt(at,fe,Te){const Y=s.getCurrentSourceFile(at),Ne=Bf(Y,fe);if(Ne===Y)return;switch(Ne.kind){case 208:case 163:case 10:case 95:case 110:case 104:case 106:case 108:case 194:case 79:break;default:return}let J=Ne;for(;;)if(pL(J)||j1e(J))J=J.parent;else if(eZ(J))if(J.parent.parent.kind===264&&J.parent.parent.body===J.parent)J=J.parent.parent.name;else break;else break;return Ec(J.getStart(),Ne.getEnd())}function ot(at,fe){const Te=s.getCurrentSourceFile(at);return Bee.spanInSourceFileAtLocation(Te,fe)}function sn(at){return OEe(s.getCurrentSourceFile(at),v)}function pn(at){return MEe(s.getCurrentSourceFile(at),v)}function gn(at,fe,Te){return k(),(Te||"original")==="2020"?YB.v2020.getSemanticClassifications(c,v,M(at),fe):Ybe(c.getTypeChecker(),v,M(at),c.getClassifiableNames(),fe)}function jn(at,fe,Te){return k(),(Te||"original")==="original"?ZZ(c.getTypeChecker(),v,M(at),c.getClassifiableNames(),fe):YB.v2020.getEncodedSemanticClassifications(c,v,M(at),fe)}function Ln(at,fe){return eEe(v,s.getCurrentSourceFile(at),fe)}function Zt(at,fe){return eee(v,s.getCurrentSourceFile(at),fe)}function pr(at){const fe=s.getCurrentSourceFile(at);return Fre.collectElements(fe,v)}const Ii=new Map(Object.entries({18:19,20:21,22:23,31:29}));Ii.forEach((at,fe)=>Ii.set(at.toString(),Number(fe)));function ea(at,fe){const Te=s.getCurrentSourceFile(at),Y=j4(Te,fe),Ne=Y.getStart(Te)===fe?Ii.get(Y.kind.toString()):void 0,J=Ne&&Es(Y.parent,Ne,Te);return J?[fd(Y,Te),fd(J,Te)].sort((wt,Et)=>wt.start-Et.start):it}function ta(at,fe,Te){let Y=ol();const Ne=lO(Te),J=s.getCurrentSourceFile(at);T("getIndentationAtPosition: getCurrentSourceFile: "+(ol()-Y)),Y=ol();const wt=Rc.SmartIndenter.getIndentation(fe,J,Ne);return T("getIndentationAtPosition: computeIndentation : "+(ol()-Y)),wt}function Or(at,fe,Te,Y){const Ne=s.getCurrentSourceFile(at);return Rc.formatSelection(fe,Te,Ne,Rc.getFormatContext(lO(Y),e))}function Lt(at,fe){return Rc.formatDocument(s.getCurrentSourceFile(at),Rc.getFormatContext(lO(fe),e))}function yn(at,fe,Te,Y){const Ne=s.getCurrentSourceFile(at),J=Rc.getFormatContext(lO(Y),e);if(!jy(Ne,fe))switch(Te){case"{":return Rc.formatOnOpeningCurly(fe,Ne,J);case"}":return Rc.formatOnClosingCurly(fe,Ne,J);case";":return Rc.formatOnSemicolon(fe,Ne,J);case`
`:return Rc.formatOnEnter(fe,Ne,J)}return[]}function Wt(at,fe,Te,Y,Ne,J=mm){k();const wt=M(at),Et=Ec(fe,Te),ut=Rc.getFormatContext(Ne,e);return ji(BA(Y,r1,qs),nn=>(v.throwIfCancellationRequested(),Qu.getFixes({errorCode:nn,sourceFile:wt,span:Et,program:c,host:e,cancellationToken:v,formatContext:ut,preferences:J})))}function In(at,fe,Te,Y=mm){k(),R.assert(at.type==="file");const Ne=M(at.fileName),J=Rc.getFormatContext(Te,e);return Qu.getAllFixes({fixId:fe,sourceFile:Ne,program:c,host:e,cancellationToken:v,formatContext:J,preferences:Y})}function Bn(at,fe,Te=mm){var Y;k(),R.assert(at.type==="file");const Ne=M(at.fileName),J=Rc.getFormatContext(fe,e),wt=(Y=at.mode)!=null?Y:at.skipDestructiveCodeActions?"SortAndCombine":"All";return ap.organizeImports(Ne,J,e,c,Te,wt)}function lr(at,fe,Te,Y=mm){return iEe(U(),at,fe,e,Rc.getFormatContext(Te,e),Y,I)}function Oi(at,fe){const Te=typeof at=="string"?fe:at;return ja(Te)?Promise.all(Te.map(Y=>bi(Y))):bi(Te)}function bi(at){const fe=Te=>Js(Te,g,L);return R.assertEqual(at.type,"install package"),e.installPackage?e.installPackage({fileName:fe(at.file),packageName:at.packageName}):Promise.reject("Host does not implement `installPackage`")}function Rn(at,fe,Te,Y){const Ne=Y?Rc.getFormatContext(Y,e).options:void 0;return I1.getDocCommentTemplateAtPosition(x1(e,Ne),s.getCurrentSourceFile(at),fe,Te)}function an(at,fe,Te){if(Te===60)return!1;const Y=s.getCurrentSourceFile(at);if(_2(Y,fe))return!1;if(Z1e(Y,fe))return Te===123;if(lZ(Y,fe))return!1;switch(Te){case 39:case 34:case 96:return!jy(Y,fe)}return!0}function On(at,fe){const Te=s.getCurrentSourceFile(at),Y=Dc(fe,Te);if(!Y)return;const Ne=Y.kind===31&&Gh(Y.parent)?Y.parent.parent:YS(Y)&&By(Y.parent)?Y.parent:void 0;if(Ne&&Le(Ne))return{newText:`</${Ne.openingElement.tagName.getText(Te)}>`};const J=Y.kind===31&&ux(Y.parent)?Y.parent.parent:YS(Y)&&cx(Y.parent)?Y.parent:void 0;if(J&&pt(J))return{newText:"</>"}}function Ir(at,fe){return{lineStarts:at.getLineStarts(),firstLine:at.getLineAndCharacterOfPosition(fe.pos).line,lastLine:at.getLineAndCharacterOfPosition(fe.end).line}}function Hr(at,fe,Te){const Y=s.getCurrentSourceFile(at),Ne=[],{lineStarts:J,firstLine:wt,lastLine:Et}=Ir(Y,fe);let ut=Te||!1,nn=Number.MAX_VALUE;const ir=new Map,ai=new RegExp(/\S/),gi=WF(Y,J[wt]),ui=gi?"{/*":"//";for(let Wi=wt;Wi<=Et;Wi++){const go=Y.text.substring(J[Wi],Y.getLineEndOfPosition(J[Wi])),xo=ai.exec(go);xo&&(nn=Math.min(nn,xo.index),ir.set(Wi.toString(),xo.index),go.substr(xo.index,ui.length)!==ui&&(ut=Te===void 0||Te))}for(let Wi=wt;Wi<=Et;Wi++){if(wt!==Et&&J[Wi]===fe.end)continue;const go=ir.get(Wi.toString());go!==void 0&&(gi?Ne.push.apply(Ne,Oe(at,{pos:J[Wi]+nn,end:Y.getLineEndOfPosition(J[Wi])},ut,gi)):ut?Ne.push({newText:ui,span:{length:0,start:J[Wi]+nn}}):Y.text.substr(J[Wi]+go,ui.length)===ui&&Ne.push({newText:"",span:{length:ui.length,start:J[Wi]+go}}))}return Ne}function Oe(at,fe,Te,Y){var Ne;const J=s.getCurrentSourceFile(at),wt=[],{text:Et}=J;let ut=!1,nn=Te||!1;const ir=[];let{pos:ai}=fe;const gi=Y!==void 0?Y:WF(J,ai),ui=gi?"{/*":"/*",Wi=gi?"*/}":"*/",go=gi?"\\{\\/\\*":"\\/\\*",xo=gi?"\\*\\/\\}":"\\*\\/";for(;ai<=fe.end;){const oo=Et.substr(ai,ui.length)===ui?ui.length:0,da=jy(J,ai+oo);if(da)gi&&(da.pos--,da.end++),ir.push(da.pos),da.kind===3&&ir.push(da.end),ut=!0,ai=da.end+1;else{const Hi=Et.substring(ai,fe.end).search(`(${go})|(${xo})`);nn=Te!==void 0?Te:nn||!pbe(Et,ai,Hi===-1?fe.end:ai+Hi),ai=Hi===-1?fe.end+1:ai+Hi+Wi.length}}if(nn||!ut){((Ne=jy(J,fe.pos))==null?void 0:Ne.kind)!==2&&Dv(ir,fe.pos,qs),Dv(ir,fe.end,qs);const oo=ir[0];Et.substr(oo,ui.length)!==ui&&wt.push({newText:ui,span:{length:0,start:oo}});for(let da=1;da<ir.length-1;da++)Et.substr(ir[da]-Wi.length,Wi.length)!==Wi&&wt.push({newText:Wi,span:{length:0,start:ir[da]}}),Et.substr(ir[da],ui.length)!==ui&&wt.push({newText:ui,span:{length:0,start:ir[da]}});wt.length%2!==0&&wt.push({newText:Wi,span:{length:0,start:ir[ir.length-1]}})}else for(const oo of ir){const da=oo-Wi.length>0?oo-Wi.length:0,Hi=Et.substr(da,Wi.length)===Wi?Wi.length:0;wt.push({newText:"",span:{length:ui.length,start:oo-Hi}})}return wt}function gt(at,fe){const Te=s.getCurrentSourceFile(at),{firstLine:Y,lastLine:Ne}=Ir(Te,fe);return Y===Ne&&fe.pos!==fe.end?Oe(at,fe,!0):Hr(at,fe,!0)}function Ot(at,fe){const Te=s.getCurrentSourceFile(at),Y=[],{pos:Ne}=fe;let{end:J}=fe;Ne===J&&(J+=WF(Te,Ne)?2:1);for(let wt=Ne;wt<=J;wt++){const Et=jy(Te,wt);if(Et){switch(Et.kind){case 2:Y.push.apply(Y,Hr(at,{end:Et.end,pos:Et.pos+1},!1));break;case 3:Y.push.apply(Y,Oe(at,{end:Et.end,pos:Et.pos+1},!1))}wt=Et.end+1}}return Y}function Le({openingElement:at,closingElement:fe,parent:Te}){return!T1(at.tagName,fe.tagName)||By(Te)&&T1(at.tagName,Te.openingElement.tagName)&&Le(Te)}function pt({closingFragment:at,parent:fe}){return!!(at.flags&131072)||cx(fe)&&pt(fe)}function me(at,fe,Te){const Y=s.getCurrentSourceFile(at),Ne=Rc.getRangeOfEnclosingComment(Y,fe);return Ne&&(!Te||Ne.kind===3)?o0(Ne):void 0}function ie(at,fe){k();const Te=M(at);v.throwIfCancellationRequested();const Y=Te.text,Ne=[];if(fe.length>0&&!ut(Te.fileName)){const nn=wt();let ir;for(;ir=nn.exec(Y);){v.throwIfCancellationRequested();const ai=3;R.assert(ir.length===fe.length+ai);const gi=ir[1],ui=ir.index+gi.length;if(!jy(Te,ui))continue;let Wi;for(let xo=0;xo<fe.length;xo++)ir[xo+ai]&&(Wi=fe[xo]);if(Wi===void 0)return R.fail();if(Et(Y.charCodeAt(ui+Wi.text.length)))continue;const go=ir[2];Ne.push({descriptor:Wi,message:go,position:ui})}}return Ne;function J(nn){return nn.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function wt(){const nn=/(?:\/\/+\s*)/.source,ir=/(?:\/\*+\s*)/.source,gi="("+/(?:^(?:\s|\*)*)/.source+"|"+nn+"|"+ir+")",ui="(?:"+Pt(fe,da=>"("+J(da.text)+")").join("|")+")",Wi=/(?:$|\*\/)/.source,go=/(?:.*?)/.source,xo="("+ui+go+")",oo=gi+xo+Wi;return new RegExp(oo,"gim")}function Et(nn){return nn>=97&&nn<=122||nn>=65&&nn<=90||nn>=48&&nn<=57}function ut(nn){return bu(nn,"/node_modules/")}}function ye(at,fe,Te){return k(),oV.getRenameInfo(c,M(at),fe,Te||{})}function W(at,fe,Te,Y,Ne,J){const[wt,Et]=typeof fe=="number"?[fe,void 0]:[fe.pos,fe.end];return{file:at,startPosition:wt,endPosition:Et,program:U(),host:e,formatContext:Rc.getFormatContext(Y,e),cancellationToken:v,preferences:Te,triggerReason:Ne,kind:J}}function He(at,fe,Te){return{file:at,program:U(),host:e,span:fe,preferences:Te,cancellationToken:v}}function et(at,fe){return pie.getSmartSelectionRange(fe,s.getCurrentSourceFile(at))}function Ye(at,fe,Te=mm,Y,Ne){k();const J=M(at);return v8.getApplicableRefactors(W(J,fe,Te,mm,Y,Ne))}function jt(at,fe,Te,Y,Ne,J=mm){k();const wt=M(at);return v8.getEditsForRefactor(W(wt,Te,J,fe),Y,Ne)}function cn(at,fe){return fe===0?{line:0,character:0}:I.toLineColumnOffset(at,fe)}function Sn(at,fe){k();const Te=Lx.resolveCallHierarchyDeclaration(c,Bf(M(at),fe));return Te&&Bbe(Te,Y=>Lx.createCallHierarchyItem(c,Y))}function Er(at,fe){k();const Te=M(at),Y=jZ(Lx.resolveCallHierarchyDeclaration(c,fe===0?Te:Bf(Te,fe)));return Y?Lx.getIncomingCalls(c,Y,v):[]}function de(at,fe){k();const Te=M(at),Y=jZ(Lx.resolveCallHierarchyDeclaration(c,fe===0?Te:Bf(Te,fe)));return Y?Lx.getOutgoingCalls(c,Y):[]}function mt(at,fe,Te=mm){k();const Y=M(at);return Cre.provideInlayHints(He(Y,fe,Te))}const Jt={dispose:X,cleanupSemanticCache:ee,getSyntacticDiagnostics:ne,getSemanticDiagnostics:P,getSuggestionDiagnostics:ue,getCompilerOptionsDiagnostics:re,getSyntacticClassifications:Ln,getSemanticClassifications:gn,getEncodedSyntacticClassifications:Zt,getEncodedSemanticClassifications:jn,getCompletionsAtPosition:be,getCompletionEntryDetails:ae,getCompletionEntrySymbol:z,getSignatureHelpItems:bt,getQuickInfoAtPosition:ce,getDefinitionAtPosition:Ae,getDefinitionAndBoundSpan:te,getImplementationAtPosition:je,getTypeDefinitionAtPosition:Ze,getReferencesAtPosition:Be,findReferences:ze,getFileReferences:Ge,getOccurrencesAtPosition:Ue,getDocumentHighlights:Je,getNameOrDottedNameSpan:nt,getBreakpointStatementAtPosition:ot,getNavigateToItems:lt,getRenameInfo:ye,getSmartSelectionRange:et,findRenameLocations:Fe,getNavigationBarItems:sn,getNavigationTree:pn,getOutliningSpans:pr,getTodoComments:ie,getBraceMatchingAtPosition:ea,getIndentationAtPosition:ta,getFormattingEditsForRange:Or,getFormattingEditsForDocument:Lt,getFormattingEditsAfterKeystroke:yn,getDocCommentTemplateAtPosition:Rn,isValidBraceCompletionAtPosition:an,getJsxClosingTagAtPosition:On,getSpanOfEnclosingComment:me,getCodeFixesAtPosition:Wt,getCombinedCodeFix:In,applyCodeActionCommand:Oi,organizeImports:Bn,getEditsForFileRename:lr,getEmitOutput:Ct,getNonBoundSourceFile:zt,getProgram:U,getCurrentProgram:()=>c,getAutoImportProvider:j,updateIsDefinitionOfReferencedSymbols:H,getApplicableRefactors:Ye,getEditsForRefactor:jt,toLineColumnOffset:cn,getSourceMapper:()=>I,clearSourceMapperCache:()=>I.clearCache(),prepareCallHierarchy:Sn,provideCallHierarchyIncomingCalls:Er,provideCallHierarchyOutgoingCalls:de,toggleLineComment:Hr,toggleMultilineComment:Oe,commentSelection:gt,uncommentSelection:Ot,provideInlayHints:mt,getSupportedCodeFixes:sTe};switch(o){case 0:break;case 1:Ree.forEach(at=>Jt[at]=()=>{throw new Error(`LanguageService Operation: ${at} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:yTe.forEach(at=>Jt[at]=()=>{throw new Error(`LanguageService Operation: ${at} not allowed in LanguageServiceMode.Syntactic`)});break;default:R.assertNever(o)}return Jt}function Iee(e){return e.nameTable||LVe(e),e.nameTable}function LVe(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(We(i)&&!QQ(i)&&i.escapedText||n_(i)&&IVe(i)){const o=Tk(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Ri(i)){const o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Pa(i,r),Df(i))for(const o of i.jsDoc)Pa(o,r)})}function IVe(e){return xg(e)||e.parent.kind===280||DVe(e)||bR(e)}function cO(e){const t=kVe(e);return t&&(Is(t.parent)||tE(t.parent))?t:void 0}function kVe(e){switch(e.kind){case 10:case 14:case 8:if(e.parent.kind===164)return cq(e.parent.parent)?e.parent.parent:void 0;case 79:return cq(e.parent)&&(e.parent.parent.kind===207||e.parent.parent.kind===289)&&e.parent.name===e?e.parent:void 0}}function wVe(e,t){const r=cO(e);if(r){const i=t.getContextualType(r.parent),o=i&&VB(r,t,i,!1);if(o&&o.length===1)return ds(o)}return t.getSymbolAtLocation(e)}function VB(e,t,r,i){const o=KN(e.name);if(!o)return it;if(!r.isUnion()){const c=r.getProperty(o);return c?[c]:it}const s=ua(r.types,c=>(Is(e.parent)||tE(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(c,e.parent)?void 0:c.getProperty(o));if(i&&(s.length===0||s.length===r.types.length)){const c=r.getProperty(o);if(c)return[c]}return s.length===0?ua(r.types,c=>c.getProperty(o)):s}function DVe(e){return e&&e.parent&&e.parent.kind===209&&e.parent.argumentExpression===e}function RVe(e){if(nu)return Fi(vi(Xo(nu.getExecutingFilePath())),SM(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var kee,jB,WB,uTe,wee,HB,zB,dTe,fTe,_Te,pTe,mTe,hTe,gTe,Dee,Ree,yTe,NVe=b({"src/services/services.ts"(){"use strict";Zr(),Zr(),NEe(),tTe(),kee="0.8",jB=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){R.assert(!lm(this.pos)&&!lm(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Zn(this)}getStart(e,t){return this.assertHasRealPosition(),IT(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=xVe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=$t(t,i=>i.kind<312||i.kind>353);return r.kind<163?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=rl(t);if(r)return r.kind<163?r:r.getLastToken(e)}forEachChild(e,t){return Pa(this,e,t)}},WB=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 Zn(this)}getStart(e,t){return IT(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||it}getFirstToken(){}getLastToken(){}forEachChild(){}},uTe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Gl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=it,!this.declarations&&jm(this)&&this.links.target&&jm(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=sO([t],e)}else this.documentationComment=sO(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(jv(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=sO(ur(this.declarations,jv),t)),ge(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(ky(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=sO(ur(this.declarations,ky),t)),ge(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=BB(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(jv(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=BB(ur(this.declarations,jv),t)),ge(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(ky(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=BB(ur(this.declarations,ky),t)),ge(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},wee=class extends WB{constructor(e,t,r){super(t,r),this.kind=e}},HB=class extends WB{constructor(e,t,r){super(t,r),this.kind=79}get text(){return Pr(this)}},HB.prototype.kind=79,zB=class extends WB{constructor(e,t,r){super(t,r),this.kind=80}get text(){return Pr(this)}},zB.prototype.kind=80,dTe=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!!(ni(this)&3)}isClass(){return!!(ni(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(ni(this)&4)return this.checker.getTypeArguments(this)}},fTe=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()&&Xk(t.type)){const r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=sO(hT(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=BB(hT(this.declaration),this.checker))}},_Te=class extends jB{constructor(e,t,r){super(e,t,r),this.kind=308}update(e,t){return xX(this,e,t)}getLineAndCharacterOfPosition(e){return ll(this,e)}getLineStarts(){return mg(this)}getPositionOfLineAndCharacter(e,t,r){return kz(mg(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]===`
`&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=v_();return this.forEachChild(o),e;function t(s){const c=i(s);c&&e.add(c,s)}function r(s){let c=e.get(s);return c||e.set(s,c=[]),c}function i(s){const c=Fz(s);return c&&(Cs(c)&&Br(c.expression)?c.expression.name.text:bl(c)?KN(c):void 0)}function o(s){switch(s.kind){case 259:case 215:case 171:case 170:const c=s,_=i(c);if(_){const g=r(_),T=rl(g);T&&c.parent===T.parent&&c.symbol===T.symbol?c.body&&!T.body&&(g[g.length-1]=c):g.push(c)}Pa(s,o);break;case 260:case 228:case 261:case 262:case 263:case 264:case 268:case 278:case 273:case 270:case 271:case 174:case 175:case 184:t(s),Pa(s,o);break;case 166:if(!Qr(s,16476))break;case 257:case 205:{const g=s;if($a(g.name)){Pa(g.name,o);break}g.initializer&&o(g.initializer)}case 302:case 169:case 168:t(s);break;case 275:const d=s;d.exportClause&&(tp(d.exportClause)?Ie(d.exportClause.elements,o):o(d.exportClause.name));break;case 269:const v=s.importClause;v&&(v.name&&t(v.name),v.namedBindings&&(v.namedBindings.kind===271?t(v.namedBindings):Ie(v.namedBindings.elements,o)));break;case 223:wl(s)!==0&&t(s);default:Pa(s,o)}}}},pTe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return ll(this,e)}},mTe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,c,_,d;const v=this.host.getScriptSnapshot(e);if(!v)throw new Error("Could not find file: '"+e+"'.");const g=kZ(e,this.host),T=this.host.getScriptVersion(e);let C;if(this.currentFileName!==e){const L={languageVersion:99,impliedNodeFormat:lF(Js(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||_1(this.host)),(d=(_=(c=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:c.getModuleResolutionCache)==null?void 0:_.call(c))==null?void 0:d.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:UR(this.host.getCompilationSettings())};C=UB(e,v,L,T,!0,g)}else if(this.currentFileVersion!==T){const L=v.getChangeRange(this.currentFileScriptSnapshot);C=Lee(this.currentSourceFile,v,T,L)}return C&&(this.currentFileVersion=T,this.currentFileName=e,this.currentFileScriptSnapshot=v,this.currentSourceFile=C),this.currentSourceFile}},hTe={isCancellationRequested:Sb,throwIfCancellationRequested:co},gTe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Ti)==null||e.instant(Ti.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new VI}},Dee=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=ol();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Ti)==null||e.instant(Ti.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new VI}},Ree=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],yTe=[...Ree,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],Fpe(CVe())}});function OVe(e,t,r){const i=[];r=mee(r,i);const o=ja(e)?e:[e],s=hN(void 0,void 0,O,r,o,t,!0);return s.diagnostics=ba(s.diagnostics,i),s}var MVe=b({"src/services/transform.ts"(){"use strict";Zr()}});function qB(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function PVe(e,t,r,i){let o;i&&(e.log(t),o=ol());const s=r();if(i){const c=ol();if(e.log(`${t} completed in ${c-o} msec`),za(s)){let _=s;_.length>128&&(_=_.substring(0,128)+"..."),e.log(` result.length=${_.length}, result='${JSON.stringify(_)}'`)}}return s}function Nee(e,t,r,i){return vTe(e,t,!0,r,i)}function vTe(e,t,r,i,o){try{const s=PVe(e,t,i,o);return r?JSON.stringify({result:s}):s}catch(s){return s instanceof VI?JSON.stringify({canceled:!0}):(qB(e,s),s.description=t,JSON.stringify({error:s}))}}function Oee(e,t){return e.map(r=>FVe(r,t))}function FVe(e,t){return{message:i0(e.messageText,t),start:e.start,length:e.length,category:eM(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function Mee(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var JB,bTe,Pee,Fee,KB,ETe,TTe,STe,xTe,BVe=b({"src/services/shims.ts"(){"use strict";Zr(),JB=function(){return this}(),bTe=class{constructor(e){this.scriptSnapshotShim=e}getText(e,t){return this.scriptSnapshotShim.getText(e,t)}getLength(){return this.scriptSnapshotShim.getLength()}getChangeRange(e){const t=e,r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(r===null)return null;const i=JSON.parse(r);return wD(Mc(i.span.start,i.span.length),i.newLength)}dispose(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()}},Pee=class{constructor(e){this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(t,r)=>{const i=JSON.parse(this.shimHost.getModuleResolutionsForFile(r));return Pt(t,o=>{const s=Qw(i,o);return s?{resolvedFileName:s,extension:XR(s),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=t=>this.shimHost.directoryExists(t)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(t,r)=>{const i=JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return Pt(t,o=>Qw(i,za(o)?o:V_(o.fileName)))})}log(e){this.loggingEnabled&&this.shimHost.log(e)}trace(e){this.tracingEnabled&&this.shimHost.trace(e)}error(e){this.shimHost.error(e)}getProjectVersion(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()}getTypeRootsVersion(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0}useCaseSensitiveFileNames(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1}getCompilationSettings(){const e=this.shimHost.getCompilationSettings();if(e===null||e==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");const t=JSON.parse(e);return t.allowNonTsExtensions=!0,t}getScriptFileNames(){const e=this.shimHost.getScriptFileNames();return JSON.parse(e)}getScriptSnapshot(e){const t=this.shimHost.getScriptSnapshot(e);return t&&new bTe(t)}getScriptKind(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0}getScriptVersion(e){return this.shimHost.getScriptVersion(e)}getLocalizedDiagnosticMessages(){const e=this.shimHost.getLocalizedDiagnosticMessages();if(e===null||e==="")return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}}getCancellationToken(){const e=this.shimHost.getCancellationToken();return new Dee(e)}getCurrentDirectory(){return this.shimHost.getCurrentDirectory()}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}getDefaultLibFileName(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))}readDirectory(e,t,r,i,o){const s=Vk(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(s.basePaths),s.excludePattern,s.includeFilePattern,s.includeDirectoryPattern,o))}readFile(e,t){return this.shimHost.readFile(e,t)}fileExists(e){return this.shimHost.fileExists(e)}},Fee=class{constructor(e){this.shimHost=e,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=t=>this.shimHost.directoryExists(t):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=t=>this.shimHost.realpath(t):this.realpath=void 0}readDirectory(e,t,r,i,o){const s=Vk(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(s.basePaths),s.excludePattern,s.includeFilePattern,s.includeDirectoryPattern,o))}fileExists(e){return this.shimHost.fileExists(e)}readFile(e){return this.shimHost.readFile(e)}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}},KB=class{constructor(e){this.factory=e,e.registerShim(this)}dispose(e){this.factory.unregisterShim(this)}},ETe=class extends KB{constructor(e,t,r){super(e),this.host=t,this.languageService=r,this.logPerformance=!1,this.logger=this.host}forwardJSONCall(e,t){return Nee(this.logger,e,t,this.logPerformance)}dispose(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,JB&&JB.CollectGarbage&&(JB.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,super.dispose(e)}refresh(e){this.forwardJSONCall(`refresh(${e})`,()=>null)}cleanupSemanticCache(){this.forwardJSONCall("cleanupSemanticCache()",()=>(this.languageService.cleanupSemanticCache(),null))}realizeDiagnostics(e){const t=x1(this.host,void 0);return Oee(e,t)}getSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getSyntacticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSyntacticClassifications(e,Mc(t,r)))}getSemanticClassifications(e,t,r){return this.forwardJSONCall(`getSemanticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSemanticClassifications(e,Mc(t,r)))}getEncodedSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSyntacticClassifications('${e}', ${t}, ${r})`,()=>Mee(this.languageService.getEncodedSyntacticClassifications(e,Mc(t,r))))}getEncodedSemanticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSemanticClassifications('${e}', ${t}, ${r})`,()=>Mee(this.languageService.getEncodedSemanticClassifications(e,Mc(t,r))))}getSyntacticDiagnostics(e){return this.forwardJSONCall(`getSyntacticDiagnostics('${e}')`,()=>{const t=this.languageService.getSyntacticDiagnostics(e);return this.realizeDiagnostics(t)})}getSemanticDiagnostics(e){return this.forwardJSONCall(`getSemanticDiagnostics('${e}')`,()=>{const t=this.languageService.getSemanticDiagnostics(e);return this.realizeDiagnostics(t)})}getSuggestionDiagnostics(e){return this.forwardJSONCall(`getSuggestionDiagnostics('${e}')`,()=>this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(e)))}getCompilerOptionsDiagnostics(){return this.forwardJSONCall("getCompilerOptionsDiagnostics()",()=>{const e=this.languageService.getCompilerOptionsDiagnostics();return this.realizeDiagnostics(e)})}getQuickInfoAtPosition(e,t){return this.forwardJSONCall(`getQuickInfoAtPosition('${e}', ${t})`,()=>this.languageService.getQuickInfoAtPosition(e,t))}getNameOrDottedNameSpan(e,t,r){return this.forwardJSONCall(`getNameOrDottedNameSpan('${e}', ${t}, ${r})`,()=>this.languageService.getNameOrDottedNameSpan(e,t,r))}getBreakpointStatementAtPosition(e,t){return this.forwardJSONCall(`getBreakpointStatementAtPosition('${e}', ${t})`,()=>this.languageService.getBreakpointStatementAtPosition(e,t))}getSignatureHelpItems(e,t,r){return this.forwardJSONCall(`getSignatureHelpItems('${e}', ${t})`,()=>this.languageService.getSignatureHelpItems(e,t,r))}getDefinitionAtPosition(e,t){return this.forwardJSONCall(`getDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getDefinitionAtPosition(e,t))}getDefinitionAndBoundSpan(e,t){return this.forwardJSONCall(`getDefinitionAndBoundSpan('${e}', ${t})`,()=>this.languageService.getDefinitionAndBoundSpan(e,t))}getTypeDefinitionAtPosition(e,t){return this.forwardJSONCall(`getTypeDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getTypeDefinitionAtPosition(e,t))}getImplementationAtPosition(e,t){return this.forwardJSONCall(`getImplementationAtPosition('${e}', ${t})`,()=>this.languageService.getImplementationAtPosition(e,t))}getRenameInfo(e,t,r){return this.forwardJSONCall(`getRenameInfo('${e}', ${t})`,()=>this.languageService.getRenameInfo(e,t,r))}getSmartSelectionRange(e,t){return this.forwardJSONCall(`getSmartSelectionRange('${e}', ${t})`,()=>this.languageService.getSmartSelectionRange(e,t))}findRenameLocations(e,t,r,i,o){return this.forwardJSONCall(`findRenameLocations('${e}', ${t}, ${r}, ${i}, ${o})`,()=>this.languageService.findRenameLocations(e,t,r,i,o))}getBraceMatchingAtPosition(e,t){return this.forwardJSONCall(`getBraceMatchingAtPosition('${e}', ${t})`,()=>this.languageService.getBraceMatchingAtPosition(e,t))}isValidBraceCompletionAtPosition(e,t,r){return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${e}', ${t}, ${r})`,()=>this.languageService.isValidBraceCompletionAtPosition(e,t,r))}getSpanOfEnclosingComment(e,t,r){return this.forwardJSONCall(`getSpanOfEnclosingComment('${e}', ${t})`,()=>this.languageService.getSpanOfEnclosingComment(e,t,r))}getIndentationAtPosition(e,t,r){return this.forwardJSONCall(`getIndentationAtPosition('${e}', ${t})`,()=>{const i=JSON.parse(r);return this.languageService.getIndentationAtPosition(e,t,i)})}getReferencesAtPosition(e,t){return this.forwardJSONCall(`getReferencesAtPosition('${e}', ${t})`,()=>this.languageService.getReferencesAtPosition(e,t))}findReferences(e,t){return this.forwardJSONCall(`findReferences('${e}', ${t})`,()=>this.languageService.findReferences(e,t))}getFileReferences(e){return this.forwardJSONCall(`getFileReferences('${e})`,()=>this.languageService.getFileReferences(e))}getOccurrencesAtPosition(e,t){return this.forwardJSONCall(`getOccurrencesAtPosition('${e}', ${t})`,()=>this.languageService.getOccurrencesAtPosition(e,t))}getDocumentHighlights(e,t,r){return this.forwardJSONCall(`getDocumentHighlights('${e}', ${t})`,()=>{const i=this.languageService.getDocumentHighlights(e,t,JSON.parse(r)),o=V_(ru(e));return ur(i,s=>V_(ru(s.fileName))===o)})}getCompletionsAtPosition(e,t,r,i){return this.forwardJSONCall(`getCompletionsAtPosition('${e}', ${t}, ${r}, ${i})`,()=>this.languageService.getCompletionsAtPosition(e,t,r,i))}getCompletionEntryDetails(e,t,r,i,o,s,c){return this.forwardJSONCall(`getCompletionEntryDetails('${e}', ${t}, '${r}')`,()=>{const _=i===void 0?void 0:JSON.parse(i);return this.languageService.getCompletionEntryDetails(e,t,r,_,o,s,c)})}getFormattingEditsForRange(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsForRange('${e}', ${t}, ${r})`,()=>{const o=JSON.parse(i);return this.languageService.getFormattingEditsForRange(e,t,r,o)})}getFormattingEditsForDocument(e,t){return this.forwardJSONCall(`getFormattingEditsForDocument('${e}')`,()=>{const r=JSON.parse(t);return this.languageService.getFormattingEditsForDocument(e,r)})}getFormattingEditsAfterKeystroke(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${e}', ${t}, '${r}')`,()=>{const o=JSON.parse(i);return this.languageService.getFormattingEditsAfterKeystroke(e,t,r,o)})}getDocCommentTemplateAtPosition(e,t,r,i){return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${e}', ${t})`,()=>this.languageService.getDocCommentTemplateAtPosition(e,t,r,i))}getNavigateToItems(e,t,r){return this.forwardJSONCall(`getNavigateToItems('${e}', ${t}, ${r})`,()=>this.languageService.getNavigateToItems(e,t,r))}getNavigationBarItems(e){return this.forwardJSONCall(`getNavigationBarItems('${e}')`,()=>this.languageService.getNavigationBarItems(e))}getNavigationTree(e){return this.forwardJSONCall(`getNavigationTree('${e}')`,()=>this.languageService.getNavigationTree(e))}getOutliningSpans(e){return this.forwardJSONCall(`getOutliningSpans('${e}')`,()=>this.languageService.getOutliningSpans(e))}getTodoComments(e,t){return this.forwardJSONCall(`getTodoComments('${e}')`,()=>this.languageService.getTodoComments(e,JSON.parse(t)))}prepareCallHierarchy(e,t){return this.forwardJSONCall(`prepareCallHierarchy('${e}', ${t})`,()=>this.languageService.prepareCallHierarchy(e,t))}provideCallHierarchyIncomingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyIncomingCalls(e,t))}provideCallHierarchyOutgoingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyOutgoingCalls(e,t))}provideInlayHints(e,t,r){return this.forwardJSONCall(`provideInlayHints('${e}', '${JSON.stringify(t)}', ${JSON.stringify(r)})`,()=>this.languageService.provideInlayHints(e,t,r))}getEmitOutput(e){return this.forwardJSONCall(`getEmitOutput('${e}')`,()=>{const i=this.languageService.getEmitOutput(e),{diagnostics:t}=i,r=nW(i,["diagnostics"]);return so(Li({},r),{diagnostics:this.realizeDiagnostics(t)})})}getEmitOutputObject(e){return vTe(this.logger,`getEmitOutput('${e}')`,!1,()=>this.languageService.getEmitOutput(e),this.logPerformance)}toggleLineComment(e,t){return this.forwardJSONCall(`toggleLineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleLineComment(e,t))}toggleMultilineComment(e,t){return this.forwardJSONCall(`toggleMultilineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleMultilineComment(e,t))}commentSelection(e,t){return this.forwardJSONCall(`commentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.commentSelection(e,t))}uncommentSelection(e,t){return this.forwardJSONCall(`uncommentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.uncommentSelection(e,t))}},TTe=class extends KB{constructor(e,t){super(e),this.logger=t,this.logPerformance=!1,this.classifier=Xbe()}getEncodedLexicalClassifications(e,t,r=!1){return Nee(this.logger,"getEncodedLexicalClassifications",()=>Mee(this.classifier.getEncodedLexicalClassifications(e,t,r)),this.logPerformance)}getClassificationsForLine(e,t,r=!1){const i=this.classifier.getClassificationsForLine(e,t,r);let o="";for(const s of i.entries)o+=s.length+`
`,o+=s.classification+`
`;return o+=i.finalLexState,o}},STe=class extends KB{constructor(e,t,r){super(e),this.logger=t,this.host=r,this.logPerformance=!1}forwardJSONCall(e,t){return Nee(this.logger,e,t,this.logPerformance)}resolveModuleName(e,t,r){return this.forwardJSONCall(`resolveModuleName('${e}')`,()=>{const i=JSON.parse(r),o=S4(t,ru(e),i,this.host);let s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&o.resolvedModule.extension!==".ts"&&o.resolvedModule.extension!==".tsx"&&o.resolvedModule.extension!==".d.ts"&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations,affectingLocations:o.affectingLocations}})}resolveTypeReferenceDirective(e,t,r){return this.forwardJSONCall(`resolveTypeReferenceDirective(${e})`,()=>{const i=JSON.parse(r),o=rY(t,ru(e),i,this.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:o.failedLookupLocations}})}getPreProcessedFileInfo(e,t){return this.forwardJSONCall(`getPreProcessedFileInfo('${e}')`,()=>{const r=yEe(XF(t),!0,!0);return{referencedFiles:this.convertFileReferences(r.referencedFiles),importedFiles:this.convertFileReferences(r.importedFiles),ambientExternalModules:r.ambientExternalModules,isLibFile:r.isLibFile,typeReferenceDirectives:this.convertFileReferences(r.typeReferenceDirectives),libReferenceDirectives:this.convertFileReferences(r.libReferenceDirectives)}})}getAutomaticTypeDirectiveNames(e){return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${e}')`,()=>{const t=JSON.parse(e);return S9(t,this.host)})}convertFileReferences(e){if(!e)return;const t=[];for(const r of e)t.push({path:ru(r.fileName),position:r.pos,length:r.end-r.pos});return t}getTSConfigFileInfo(e,t){return this.forwardJSONCall(`getTSConfigFileInfo('${e}')`,()=>{const r=B6(e,XF(t)),i=ru(e),o=W6(r,this.host,vi(i),{},i);return{options:o.options,typeAcquisition:o.typeAcquisition,files:o.fileNames,raw:o.raw,errors:Oee([...r.parseDiagnostics,...o.errors],`\r
`)}})}getDefaultCompilationSettings(){return this.forwardJSONCall("getDefaultCompilationSettings()",()=>GB())}discoverTypings(e){const t=lu(!1);return this.forwardJSONCall("discoverTypings()",()=>{const r=JSON.parse(e);return this.safeList===void 0&&(this.safeList=c2.loadSafeList(this.host,Js(r.safeListPath,r.safeListPath,t))),c2.discoverTypings(this.host,i=>this.logger.log(i),r.fileNames,Js(r.projectRootPath,r.projectRootPath,t),this.safeList,r.packageNameToTypingLocation,r.typeAcquisition,r.unresolvedImports,r.typesRegistry,mm)})}},xTe=class{constructor(){this._shims=[]}getServicesVersion(){return kee}createLanguageServiceShim(e){try{this.documentRegistry===void 0&&(this.documentRegistry=tee(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));const t=new Pee(e),r=cTe(t,this.documentRegistry,!1);return new ETe(this,e,r)}catch(t){throw qB(e,t),t}}createClassifierShim(e){try{return new TTe(this,e)}catch(t){throw qB(e,t),t}}createCoreServicesShim(e){try{const t=new Fee(e);return new STe(this,e,t)}catch(t){throw qB(e,t),t}}close(){Ta(this._shims),this.documentRegistry=void 0}registerShim(e){this._shims.push(e)}unregisterShim(e){for(let t=0;t<this._shims.length;t++)if(this._shims[t]===e){delete this._shims[t];return}throw new Error("Invalid operation")}}}});function GVe(e,t){if(e.isDeclarationFile)return;let r=la(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const T=Dc(r.pos,e);if(!T||e.getLineAndCharacterOfPosition(T.getEnd()).line!==i)return;r=T}if(r.flags&16777216)return;return g(r);function o(T,C){const L=_x(T)?yi(T.modifiers,qu):void 0,I=L?Yo(e.text,L.end):T.getStart(e);return Ec(I,(C||T).getEnd())}function s(T,C){return o(T,f2(C,C.parent,e))}function c(T,C){return T&&i===e.getLineAndCharacterOfPosition(T.getStart(e)).line?g(T):g(C)}function _(T,C,L){if(T){const I=T.indexOf(C);if(I>=0){let M=I,k=I+1;for(;M>0&&L(T[M-1]);)M--;for(;k<T.length&&L(T[k]);)k++;return Ec(Yo(e.text,T[M].pos),T[k-1].end)}}return o(C)}function d(T){return g(Dc(T.pos,e))}function v(T){return g(f2(T,T.parent,e))}function g(T){if(T){const{parent:te}=T;switch(T.kind){case 240:return L(T.declarationList.declarations[0]);case 257:case 169:case 168:return L(T);case 166:return M(T);case 259:case 171:case 170:case 174:case 175:case 173:case 215:case 216:return U(T);case 238:if(DT(T))return j(T);case 265:return H(T);case 295:return H(T.block);case 241:return o(T.expression);case 250:return o(T.getChildAt(0),T.expression);case 244:return s(T,T.expression);case 243:return g(T.statement);case 256:return o(T.getChildAt(0));case 242:return s(T,T.expression);case 253:return g(T.statement);case 249:case 248:return o(T.getChildAt(0),T.label);case 245:return X(T);case 246:return s(T,T.expression);case 247:return ee(T);case 252:return s(T,T.expression);case 292:case 293:return g(T.statements[0]);case 255:return H(T.tryBlock);case 254:return o(T,T.expression);case 274:return o(T,T.expression);case 268:return o(T,T.moduleReference);case 269:return o(T,T.moduleSpecifier);case 275:return o(T,T.moduleSpecifier);case 264:if(wg(T)!==1)return;case 260:case 263:case 302:case 205:return o(T);case 251:return g(T.statement);case 167:return _(te.modifiers,T,qu);case 203:case 204:return ne(T);case 261:case 262:return;case 26:case 1:return c(Dc(T.pos,e));case 27:return d(T);case 18:return ue(T);case 19:return re(T);case 23:return be(T);case 20:return ae(T);case 21:return z(T);case 58:return ce(T);case 31:case 29:return he(T);case 115:return Ee(T);case 91:case 83:case 96:return v(T);case 162:return Ae(T);default:if(Wy(T))return P(T);if((T.kind===79||T.kind===227||T.kind===299||T.kind===300)&&Wy(te))return o(T);if(T.kind===223){const{left:Ze,operatorToken:je}=T;if(Wy(Ze))return P(Ze);if(je.kind===63&&Wy(T.parent))return o(T);if(je.kind===27)return g(Ze)}if(Tg(T))switch(te.kind){case 243:return d(T);case 167:return g(T.parent);case 245:case 247:return o(T);case 223:if(T.parent.operatorToken.kind===27)return o(T);break;case 216:if(T.parent.body===T)return o(T);break}switch(T.parent.kind){case 299:if(T.parent.name===T&&!Wy(T.parent.parent))return g(T.parent.initializer);break;case 213:if(T.parent.type===T)return v(T.parent.type);break;case 257:case 166:{const{initializer:Ze,type:je}=T.parent;if(Ze===T||je===T||Dy(T.kind))return d(T);break}case 223:{const{left:Ze}=T.parent;if(Wy(Ze)&&T!==Ze)return d(T);break}default:if(Ya(T.parent)&&T.parent.type===T)return d(T)}return g(T.parent)}}function C(te){return Xu(te.parent)&&te.parent.declarations[0]===te?o(Dc(te.pos,e,te.parent),te):o(te)}function L(te){if(te.parent.parent.kind===246)return g(te.parent.parent);const Ze=te.parent;if($a(te.name))return ne(te.name);if(CT(te)&&te.initializer||Qr(te,1)||Ze.parent.kind===247)return C(te);if(Xu(te.parent)&&te.parent.declarations[0]!==te)return g(Dc(te.pos,e,te.parent))}function I(te){return!!te.initializer||te.dotDotDotToken!==void 0||Qr(te,12)}function M(te){if($a(te.name))return ne(te.name);if(I(te))return o(te);{const Ze=te.parent,je=Ze.parameters.indexOf(te);return R.assert(je!==-1),je!==0?M(Ze.parameters[je-1]):g(Ze.body)}}function k(te){return Qr(te,1)||te.parent.kind===260&&te.kind!==173}function U(te){if(te.body)return k(te)?o(te):g(te.body)}function j(te){const Ze=te.statements.length?te.statements[0]:te.getLastToken();return k(te.parent)?c(te.parent,Ze):g(Ze)}function H(te){switch(te.parent.kind){case 264:if(wg(te.parent)!==1)return;case 244:case 242:case 246:return c(te.parent,te.statements[0]);case 245:case 247:return c(Dc(te.pos,e,te.parent),te.statements[0])}return g(te.statements[0])}function ee(te){if(te.initializer.kind===258){const Ze=te.initializer;if(Ze.declarations.length>0)return g(Ze.declarations[0])}else return g(te.initializer)}function X(te){if(te.initializer)return ee(te);if(te.condition)return o(te.condition);if(te.incrementor)return o(te.incrementor)}function ne(te){const Ze=Ie(te.elements,je=>je.kind!==229?je:void 0);return Ze?g(Ze):te.parent.kind===205?o(te.parent):C(te.parent)}function P(te){R.assert(te.kind!==204&&te.kind!==203);const Ze=te.kind===206?te.elements:te.properties,je=Ie(Ze,Ue=>Ue.kind!==229?Ue:void 0);return je?g(je):o(te.parent.kind===223?te.parent:te)}function ue(te){switch(te.parent.kind){case 263:const Ze=te.parent;return c(Dc(te.pos,e,te.parent),Ze.members.length?Ze.members[0]:Ze.getLastToken(e));case 260:const je=te.parent;return c(Dc(te.pos,e,te.parent),je.members.length?je.members[0]:je.getLastToken(e));case 266:return c(te.parent.parent,te.parent.clauses[0])}return g(te.parent)}function re(te){switch(te.parent.kind){case 265:if(wg(te.parent.parent)!==1)return;case 263:case 260:return o(te);case 238:if(DT(te.parent))return o(te);case 295:return g(rl(te.parent.statements));case 266:const Ze=te.parent,je=rl(Ze.clauses);return je?g(rl(je.statements)):void 0;case 203:const Ue=te.parent;return g(rl(Ue.elements)||Ue);default:if(Wy(te.parent)){const Je=te.parent;return o(rl(Je.properties)||Je)}return g(te.parent)}}function be(te){switch(te.parent.kind){case 204:const Ze=te.parent;return o(rl(Ze.elements)||Ze);default:if(Wy(te.parent)){const je=te.parent;return o(rl(je.elements)||je)}return g(te.parent)}}function ae(te){return te.parent.kind===243||te.parent.kind===210||te.parent.kind===211?d(te):te.parent.kind===214?v(te):g(te.parent)}function z(te){switch(te.parent.kind){case 215:case 259:case 216:case 171:case 170:case 174:case 175:case 173:case 244:case 243:case 245:case 247:case 210:case 211:case 214:return d(te);default:return g(te.parent)}}function ce(te){return Ya(te.parent)||te.parent.kind===299||te.parent.kind===166?d(te):g(te.parent)}function he(te){return te.parent.kind===213?v(te):g(te.parent)}function Ee(te){return te.parent.kind===243?s(te,te.parent.expression):g(te.parent)}function Ae(te){return te.parent.kind===247?v(te):g(te.parent)}}}var UVe=b({"src/services/breakpoints.ts"(){"use strict";Zr()}}),Bee={};B(Bee,{spanInSourceFileAtLocation:()=>GVe});var VVe=b({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";UVe()}});function jVe(e){return(Us(e)||Ku(e))&&Su(e)}function e8(e){return(Us(e)||Xs(e)||Ku(e))&&$i(e.parent)&&e===e.parent.initializer&&We(e.parent.name)&&!!(Ap(e.parent)&2)}function ATe(e){return Ki(e)||Xl(e)||Sc(e)||Us(e)||Bc(e)||Ku(e)||Rl(e)||sc(e)||Mh(e)||Z_(e)||s_(e)}function Cx(e){return Ki(e)||Xl(e)&&We(e.name)||Sc(e)||Bc(e)||Rl(e)||sc(e)||Mh(e)||Z_(e)||s_(e)||jVe(e)||e8(e)}function CTe(e){return Ki(e)?e:Su(e)?e.name:e8(e)?e.parent.name:R.checkDefined(e.modifiers&&$t(e.modifiers,LTe))}function LTe(e){return e.kind===88}function ITe(e,t){const r=CTe(t);return r&&e.getSymbolAtLocation(r)}function WVe(e,t){if(Ki(t))return{text:t.fileName,pos:0,end:0};if((Sc(t)||Bc(t))&&!Su(t)){const o=t.modifiers&&$t(t.modifiers,LTe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Rl(t)){const o=t.getSourceFile(),s=Yo(o.text,sm(t).pos),c=s+6,_=e.getTypeChecker(),d=_.getSymbolAtLocation(t.parent);return{text:`${d?`${_.symbolToString(d,t.parent)} `:""}static {}`,pos:s,end:c}}const r=e8(t)?t.parent.name:R.checkDefined(ka(t),"Expected call hierarchy item to have a name");let i=We(r)?Pr(r):n_(r)?r.text:Cs(r)&&n_(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=vN();i=ck(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function HVe(e){var t,r;if(e8(e))return dm(e.parent.parent.parent.parent)&&We(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 174:case 175:case 171:return e.parent.kind===207?(t=Bz(e.parent))==null?void 0:t.getText():(r=ka(e.parent))==null?void 0:r.getText();case 259:case 260:case 264:if(dm(e.parent)&&We(e.parent.parent.name))return e.parent.parent.name.getText()}}function kTe(e,t){if(t.body)return t;if(Kl(t))return Dh(t.parent);if(Sc(t)||sc(t)){const r=ITe(e,t);return r&&r.valueDeclaration&&el(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function wTe(e,t){const r=ITe(e,t);let i;if(r&&r.declarations){const o=Xw(r.declarations),s=Pt(r.declarations,d=>({file:d.getSourceFile().fileName,pos:d.pos}));o.sort((d,v)=>ju(s[d].file,s[v].file)||s[d].pos-s[v].pos);const c=Pt(o,d=>r.declarations[d]);let _;for(const d of c)Cx(d)&&((!_||_.parent!==d.parent||_.end!==d.pos)&&(i=Pn(i,d)),_=d)}return i}function XB(e,t){var r,i,o;return Rl(t)?t:el(t)?(i=(r=kTe(e,t))!=null?r:wTe(e,t))!=null?i:t:(o=wTe(e,t))!=null?o:t}function DTe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(Cx(t))return XB(r,t);if(ATe(t)){const o=rr(t,Cx);return o&&XB(r,o)}if(xg(t)){if(Cx(t.parent))return XB(r,t.parent);if(ATe(t.parent)){const o=rr(t.parent,Cx);return o&&XB(r,o)}return $i(t.parent)&&t.parent.initializer&&e8(t.parent.initializer)?t.parent.initializer:void 0}if(Kl(t))return Cx(t.parent)?t.parent:void 0;if(t.kind===124&&Rl(t.parent)){t=t.parent;continue}if($i(t)&&t.initializer&&e8(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 Gee(e,t){const r=t.getSourceFile(),i=WVe(e,t),o=HVe(t),s=_E(t),c=W4(t),_=Ec(Yo(r.text,t.getFullStart(),!1,!0),t.getEnd()),d=Ec(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:c,name:i.text,containerName:o,span:_,selectionSpan:d}}function zVe(e){return e!==void 0}function qVe(e){if(e.kind===fl.EntryKind.Node){const{node:t}=e;if(XQ(t,!0,!0)||B1e(t,!0,!0)||G1e(t,!0,!0)||U1e(t,!0,!0)||pL(t)||ZQ(t)){const r=t.getSourceFile();return{declaration:rr(t,Cx)||r,range:hZ(t,r)}}}}function RTe(e){return hs(e.declaration)}function JVe(e,t){return{from:e,fromSpans:t}}function KVe(e,t){return JVe(Gee(e,t[0].declaration),Pt(t,r=>o0(r.range)))}function XVe(e,t,r){if(Ki(t)||Xl(t)||Rl(t))return[];const i=CTe(t),o=ur(fl.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:fl.FindReferencesUse.References},qVe),zVe);return o?PI(o,RTe,s=>KVe(e,s)):[]}function YVe(e,t){function r(o){const s=qT(o)?o.tag:sd(o)?o.tagName:ul(o)||Rl(o)?o:o.expression,c=DTe(e,s);if(c){const _=hZ(s,o.getSourceFile());if(ja(c))for(const d of c)t.push({declaration:d,range:_});else t.push({declaration:c,range:_})}}function i(o){if(o&&!(o.flags&16777216)){if(Cx(o)){if(_i(o))for(const s of o.members)s.name&&Cs(s.name)&&i(s.name.expression);return}switch(o.kind){case 79:case 268:case 269:case 275:case 261:case 262:return;case 172:r(o);return;case 213:case 231:i(o.expression);return;case 257:case 166:i(o.name),i(o.initializer);return;case 210:r(o),i(o.expression),Ie(o.arguments,i);return;case 211:r(o),i(o.expression),Ie(o.arguments,i);return;case 212:r(o),i(o.tag),i(o.template);return;case 283:case 282:r(o),i(o.tagName),i(o.attributes);return;case 167:r(o),i(o.expression);return;case 208:case 209:r(o),Pa(o,i);break;case 235:i(o.expression);return}Ih(o)||Pa(o,i)}}return i}function $Ve(e,t){Ie(e.statements,t)}function QVe(e,t){!Qr(e,2)&&e.body&&dm(e.body)&&Ie(e.body.statements,t)}function ZVe(e,t,r){const i=kTe(e,t);i&&(Ie(i.parameters,r),r(i.body))}function eje(e,t){t(e.body)}function tje(e,t){Ie(e.modifiers,t);const r=Wb(e);r&&t(r.expression);for(const i of e.members)np(i)&&Ie(i.modifiers,t),ro(i)?t(i.initializer):Kl(i)&&i.body?(Ie(i.parameters,t),t(i.body)):Rl(i)&&t(i)}function nje(e,t){const r=[],i=YVe(e,r);switch(t.kind){case 308:$Ve(t,i);break;case 264:QVe(t,i);break;case 259:case 215:case 216:case 171:case 174:case 175:ZVe(e.getTypeChecker(),t,i);break;case 260:case 228:tje(t,i);break;case 172:eje(t,i);break;default:R.assertNever(t)}return r}function rje(e,t){return{to:e,fromSpans:t}}function ije(e,t){return rje(Gee(e,t[0].declaration),Pt(t,r=>o0(r.range)))}function aje(e,t){return t.flags&16777216||Mh(t)?[]:PI(nje(e,t),RTe,r=>ije(e,r))}var oje=b({"src/services/callHierarchy.ts"(){"use strict";Zr()}}),Lx={};B(Lx,{createCallHierarchyItem:()=>Gee,getIncomingCalls:()=>XVe,getOutgoingCalls:()=>aje,resolveCallHierarchyDeclaration:()=>DTe});var sje=b({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";oje()}});function lje(e,t,r,i){const o=NTe(e,t,r,i);R.assert(o.spans.length%3===0);const s=o.spans,c=[];for(let _=0;_<s.length;_+=3)c.push({textSpan:Mc(s[_],s[_+1]),classificationType:s[_+2]});return c}function NTe(e,t,r,i){return{spans:cje(e,r,i,t),endOfLineState:0}}function cje(e,t,r,i){const o=[];return e&&t&&uje(e,t,r,(c,_,d)=>{o.push(c.getStart(t),c.getWidth(t),(_+1<<8)+d)},i),o}function uje(e,t,r,i,o){const s=e.getTypeChecker();let c=!1;function _(d){switch(d.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 216:o.throwIfCancellationRequested()}if(!d||!AM(r,d.pos,d.getFullWidth())||d.getFullWidth()===0)return;const v=c;if((By(d)||sx(d))&&(c=!0),d4(d)&&(c=!1),We(d)&&!c&&!pje(d)&&!Kk(d.escapedText)){let g=s.getSymbolAtLocation(d);if(g){g.flags&2097152&&(g=s.getAliasedSymbol(g));let T=dje(g,u2(d));if(T!==void 0){let C=0;d.parent&&(ms(d.parent)||Wee.get(d.parent.kind)===T)&&d.parent.name===d&&(C=1),T===6&&MTe(d)&&(T=9),T=fje(s,d,T);const L=g.valueDeclaration;if(L){const I=Cy(L),M=Ap(L);I&32&&(C|=2),I&512&&(C|=4),T!==0&&T!==2&&(I&64||M&2||g.getFlags()&8)&&(C|=8),(T===7||T===10)&&_je(L,t)&&(C|=32),e.isSourceFileDefaultLibrary(L.getSourceFile())&&(C|=16)}else g.declarations&&g.declarations.some(I=>e.isSourceFileDefaultLibrary(I.getSourceFile()))&&(C|=16);i(d,T,C)}}}Pa(d,_),c=v}_(t)}function dje(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&&ms(i)&&(i=OTe(i)),i&&Wee.get(i.kind)}function fje(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)||mje(t))return r===9?11:10}}return r}function _je(e,t){return ms(e)&&(e=OTe(e)),$i(e)?(!Ki(e.parent.parent.parent)||JC(e.parent))&&e.getSourceFile()===t:Sc(e)?!Ki(e.parent)&&e.getSourceFile()===t:!1}function OTe(e){for(;;)if(ms(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function pje(e){const t=e.parent;return t&&(Qm(t)||Nd(t)||Zv(t))}function mje(e){for(;MTe(e);)e=e.parent;return io(e.parent)&&e.parent.expression===e}function MTe(e){return Rd(e.parent)&&e.parent.right===e||Br(e.parent)&&e.parent.name===e}var Uee,Vee,jee,Wee,hje=b({"src/services/classifier2020.ts"(){"use strict";Zr(),Uee=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(Uee||{}),Vee=(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))(Vee||{}),jee=(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))(jee||{}),Wee=new Map([[257,7],[166,6],[169,9],[264,3],[263,1],[302,8],[260,0],[171,11],[259,10],[215,10],[170,11],[174,9],[175,9],[168,9],[261,2],[262,5],[165,4],[299,9],[300,9]])}}),PTe={};B(PTe,{TokenEncodingConsts:()=>Uee,TokenModifier:()=>jee,TokenType:()=>Vee,getEncodedSemanticClassifications:()=>NTe,getSemanticClassifications:()=>lje});var gje=b({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";hje()}}),YB={};B(YB,{v2020:()=>PTe});var yje=b({"src/services/_namespaces/ts.classifier.ts"(){"use strict";gje()}});function Op(e,t,r){return zee(e,Sx(r),t,void 0,void 0)}function ao(e,t,r,i,o,s){return zee(e,Sx(r),t,i,Sx(o),s)}function Hee(e,t,r,i,o,s){return zee(e,Sx(r),t,i,o&&Sx(o),s)}function zee(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function ho(e){for(const t of e.errorCodes)$B.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)R.assert(!QB.has(t)),QB.set(t,e)}function vje(){return Oo($B.keys())}function bje(e,t){const{errorCodes:r}=e;let i=0;for(const s of t)if(Fr(r,s.code)&&i++,i>1)break;const o=i<2;return d=>{var v=d,{fixId:s,fixAllDescription:c}=v,_=nW(v,["fixId","fixAllDescription"]);return o?_:so(Li({},_),{fixId:s,fixAllDescription:c})}}function Eje(e){const t=BTe(e),r=$B.get(String(e.errorCode));return ji(r,i=>Pt(i.getCodeActions(e),bje(i,t)))}function Tje(e){return QB.get(lo(e.fixId,za)).getAllCodeActions(e)}function Ix(e,t){return{changes:e,commands:t}}function FTe(e,t){return{fileName:e,textChanges:t}}function Ls(e,t,r){const i=[],o=vr.ChangeTracker.with(e,s=>kx(e,t,c=>r(s,c,i)));return Ix(o,i.length===0?void 0:i)}function kx(e,t,r){for(const i of BTe(e))Fr(t,i.code)&&r(i)}function BTe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...dee(t,e,r)]}var $B,QB,Sje=b({"src/services/codeFixProvider.ts"(){"use strict";Zr(),$B=v_(),QB=new Map}});function GTe(e,t,r){const i=v6(r)?O.createAsExpression(r.expression,O.createKeywordTypeNode(157)):O.createTypeAssertion(O.createKeywordTypeNode(157),r.expression);e.replaceNode(t,r.expression,i)}function UTe(e,t){if(!_r(e))return rr(la(e,t),r=>v6(r)||she(r))}var ZB,qee,xje=b({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";Zr(),So(),ZB="addConvertToUnknownForNonOverlappingTypes",qee=[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],ho({errorCodes:qee,getCodeActions:function(t){const r=UTe(t.sourceFile,t.span.start);if(r===void 0)return;const i=vr.ChangeTracker.with(t,o=>GTe(o,t.sourceFile,r));return[ao(ZB,i,m.Add_unknown_conversion_for_non_overlapping_types,ZB,m.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[ZB],getAllCodeActions:e=>Ls(e,qee,(t,r)=>{const i=UTe(r.file,r.start);i&&GTe(t,r.file,i)})})}}),Aje=b({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";Zr(),So(),ho({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.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=vr.ChangeTracker.with(t,o=>{const s=O.createExportDeclaration(void 0,!1,O.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[Op("addEmptyExportDeclaration",i,m.Add_export_to_make_this_file_into_a_module)]}})}});function VTe(e,t,r,i){const o=r(s=>Cje(s,e.sourceFile,t,i));return ao(eG,o,m.Add_async_modifier_to_containing_function,eG,m.Add_all_missing_async_modifiers)}function Cje(e,t,r,i){if(i&&i.has(hs(r)))return;i==null||i.add(hs(r));const o=O.updateModifiers(Ol(r,!0),O.createNodeArray(O.createModifiersFromModifierFlags(Jv(r)|512)));e.replaceNode(t,r,o)}function jTe(e,t){if(!t)return;const r=la(e,t.start);return rr(r,o=>o.getStart(e)<t.start||o.getEnd()>cu(t)?"quit":(Xs(o)||sc(o)||Us(o)||Sc(o))&&yL(t,fd(o,e)))}function Lje(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Ey(r)&&Ey(i)&&yL({start:r,length:i},e)&&s===t&&!!o&&Dt(o,c=>c.code===m.Did_you_mean_to_mark_this_function_as_async.code)}var eG,Jee,Ije=b({"src/services/codefixes/addMissingAsync.ts"(){"use strict";Zr(),So(),eG="addMissingAsync",Jee=[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],ho({fixIds:[eG],errorCodes:Jee,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:c}=t,_=$t(s.getTypeChecker().getDiagnostics(r,o),Lje(c,i)),d=_&&_.relatedInformation&&$t(_.relatedInformation,T=>T.code===m.Did_you_mean_to_mark_this_function_as_async.code),v=jTe(r,d);return v?[VTe(t,v,T=>vr.ChangeTracker.with(t,T))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return Ls(e,Jee,(i,o)=>{const s=o.relatedInformation&&$t(o.relatedInformation,d=>d.code===m.Did_you_mean_to_mark_this_function_as_async.code),c=jTe(t,s);return c?VTe(e,c,d=>(d(i),[]),r):void 0})}})}});function WTe(e,t,r,i,o){const s=VZ(e,r);return s&&kje(e,t,r,i,o)&&qTe(s)?s:void 0}function HTe(e,t,r,i,o,s){const{sourceFile:c,program:_,cancellationToken:d}=e,v=wje(t,c,d,_,i);if(v){const g=o(T=>{Ie(v.initializers,({expression:C})=>Kee(T,r,c,i,C,s)),s&&v.needsSecondPassForFixAll&&Kee(T,r,c,i,t,s)});return Op("addMissingAwaitToInitializer",g,v.initializers.length===1?[m.Add_await_to_initializer_for_0,v.initializers[0].declarationSymbol.name]:m.Add_await_to_initializers)}}function zTe(e,t,r,i,o,s){const c=o(_=>Kee(_,r,e.sourceFile,i,t,s));return ao(tG,c,m.Add_await,tG,m.Fix_all_expressions_possibly_missing_await)}function kje(e,t,r,i,o){const c=o.getTypeChecker().getDiagnostics(e,i);return Dt(c,({start:_,length:d,relatedInformation:v,code:g})=>Ey(_)&&Ey(d)&&yL({start:_,length:d},r)&&g===t&&!!v&&Dt(v,T=>T.code===m.Did_you_forget_to_use_await.code))}function wje(e,t,r,i,o){const s=Dje(e,o);if(!s)return;let c=s.isCompleteFix,_;for(const d of s.identifiers){const v=o.getSymbolAtLocation(d);if(!v)continue;const g=li(v.valueDeclaration,$i),T=g&&li(g.name,We),C=f1(g,240);if(!g||!C||g.type||!g.initializer||C.getSourceFile()!==t||Qr(C,1)||!T||!qTe(g.initializer)){c=!1;continue}const L=i.getSemanticDiagnostics(t,r);if(fl.Core.eachSymbolReferenceInFile(T,o,t,M=>d!==M&&!Rje(M,L,t,o))){c=!1;continue}(_||(_=[])).push({expression:g.initializer,declarationSymbol:v})}return _&&{initializers:_,needsSecondPassForFixAll:!c}}function Dje(e,t){if(Br(e.parent)&&We(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(We(e))return{identifiers:[e],isCompleteFix:!0};if(Tr(e)){let r,i=!0;for(const o of[e.left,e.right]){const s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!We(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function Rje(e,t,r,i){const o=Br(e.parent)?e.parent.name:Tr(e.parent)?e.parent:e,s=$t(t,c=>c.start===o.getStart(r)&&c.start+c.length===o.getEnd());return s&&Fr(nG,s.code)||i.getTypeAtLocation(o).flags&1}function qTe(e){return e.kind&32768||!!rr(e,t=>t.parent&&Xs(t.parent)&&t.parent.body===t||fo(t)&&(t.parent.kind===259||t.parent.kind===215||t.parent.kind===216||t.parent.kind===171))}function Kee(e,t,r,i,o,s){if(b6(o.parent)&&!o.parent.awaitModifier){const c=i.getTypeAtLocation(o),_=i.getAsyncIterableType();if(_&&i.isTypeAssignableTo(c,_)){const d=o.parent;e.replaceNode(r,d,O.updateForOfStatement(d,O.createToken(133),d.initializer,d.expression,d.statement));return}}if(Tr(o))for(const c of[o.left,o.right]){if(s&&We(c)){const v=i.getSymbolAtLocation(c);if(v&&s.has(To(v)))continue}const _=i.getTypeAtLocation(c),d=i.getPromisedTypeOfPromise(_)?O.createAwaitExpression(c):c;e.replaceNode(r,c,d)}else if(t===Xee&&Br(o.parent)){if(s&&We(o.parent.expression)){const c=i.getSymbolAtLocation(o.parent.expression);if(c&&s.has(To(c)))return}e.replaceNode(r,o.parent.expression,O.createParenthesizedExpression(O.createAwaitExpression(o.parent.expression))),JTe(e,o.parent.expression,r)}else if(Fr(Yee,t)&&vg(o.parent)){if(s&&We(o)){const c=i.getSymbolAtLocation(o);if(c&&s.has(To(c)))return}e.replaceNode(r,o,O.createParenthesizedExpression(O.createAwaitExpression(o))),JTe(e,o,r)}else{if(s&&$i(o.parent)&&We(o.parent.name)){const c=i.getSymbolAtLocation(o.parent.name);if(c&&!wv(s,To(c)))return}e.replaceNode(r,o,O.createAwaitExpression(o))}}function JTe(e,t,r){const i=Dc(t.pos,r);i&&lB(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var tG,Xee,Yee,nG,Nje=b({"src/services/codefixes/addMissingAwait.ts"(){"use strict";Zr(),So(),tG="addMissingAwait",Xee=m.Property_0_does_not_exist_on_type_1.code,Yee=[m.This_expression_is_not_callable.code,m.This_expression_is_not_constructable.code],nG=[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,Xee,...Yee],ho({fixIds:[tG],errorCodes:nG,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:c}=t,_=WTe(r,i,o,s,c);if(!_)return;const d=t.program.getTypeChecker(),v=g=>vr.ChangeTracker.with(t,g);return $w([HTe(t,_,i,d,v),zTe(t,_,i,d,v)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return Ls(e,nG,(c,_)=>{const d=WTe(t,_.code,_,i,r);if(!d)return;const v=g=>(g(c),[]);return HTe(e,d,_.code,o,v,s)||zTe(e,d,_.code,o,v,s)})}})}});function KTe(e,t,r,i,o){const s=la(t,r),c=rr(s,v=>QA(v.parent)?v.parent.initializer===v:Oje(v)?!1:"quit");if(c)return rG(e,c,t,o);const _=s.parent;if(Tr(_)&&_.operatorToken.kind===63&&du(_.parent))return rG(e,s,t,o);if(Ju(_)){const v=i.getTypeChecker();return Qn(_.elements,g=>Mje(g,v))?rG(e,_,t,o):void 0}const d=rr(s,v=>du(v.parent)?!0:Pje(v)?!1:"quit");if(d){const v=i.getTypeChecker();return XTe(d,v)?rG(e,d,t,o):void 0}}function rG(e,t,r,i){(!i||wv(i,t))&&e.insertModifierBefore(r,85,t)}function Oje(e){switch(e.kind){case 79:case 206:case 207:case 299:case 300:return!0;default:return!1}}function Mje(e,t){const r=We(e)?e:cd(e,!0)&&We(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function Pje(e){switch(e.kind){case 79:case 223:case 27:return!0;default:return!1}}function XTe(e,t){return Tr(e)?e.operatorToken.kind===27?Qn([e.left,e.right],r=>XTe(r,t)):e.operatorToken.kind===63&&We(e.left)&&!t.getSymbolAtLocation(e.left):!1}var iG,$ee,Fje=b({"src/services/codefixes/addMissingConst.ts"(){"use strict";Zr(),So(),iG="addMissingConst",$ee=[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],ho({errorCodes:$ee,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>KTe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[ao(iG,r,m.Add_const_to_unresolved_variable,iG,m.Add_const_to_all_unresolved_variables)]},fixIds:[iG],getAllCodeActions:e=>{const t=new Set;return Ls(e,$ee,(r,i)=>KTe(r,i.file,i.start,e.program,t))}})}});function YTe(e,t,r,i){const o=la(t,r);if(!We(o))return;const s=o.parent;s.kind===169&&(!i||wv(i,s))&&e.insertModifierBefore(t,136,s)}var aG,Qee,Bje=b({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";Zr(),So(),aG="addMissingDeclareProperty",Qee=[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],ho({errorCodes:Qee,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>YTe(i,t.sourceFile,t.span.start));if(r.length>0)return[ao(aG,r,m.Prefix_with_declare,aG,m.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[aG],getAllCodeActions:e=>{const t=new Set;return Ls(e,Qee,(r,i)=>YTe(r,i.file,i.start,t))}})}});function $Te(e,t,r){const i=la(t,r),o=rr(i,qu);R.assert(!!o,"Expected position to be owned by a decorator.");const s=O.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var oG,Zee,Gje=b({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";Zr(),So(),oG="addMissingInvocationForDecorator",Zee=[m._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],ho({errorCodes:Zee,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>$Te(i,t.sourceFile,t.span.start));return[ao(oG,r,m.Call_decorator_expression,oG,m.Add_to_all_uncalled_decorators)]},fixIds:[oG],getAllCodeActions:e=>Ls(e,Zee,(t,r)=>$Te(t,r.file,r.start))})}});function QTe(e,t,r){const i=la(t,r),o=i.parent;if(!Ba(o))return R.fail("Tried to add a parameter name to a non-parameter: "+R.formatSyntaxKind(i.kind));const s=o.parent.parameters.indexOf(o);R.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),R.assert(s>-1,"Parameter not found in parent parameter list.");const c=O.createTypeReferenceNode(o.name,void 0),_=O.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken?O.createArrayTypeNode(c):c,o.initializer);e.replaceNode(t,o,_)}var sG,ete,Uje=b({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";Zr(),So(),sG="addNameToNamelessParameter",ete=[m.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],ho({errorCodes:ete,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>QTe(i,t.sourceFile,t.span.start));return[ao(sG,r,m.Add_parameter_name,sG,m.Add_names_to_all_parameters_without_names)]},fixIds:[sG],getAllCodeActions:e=>Ls(e,ete,(t,r)=>QTe(t,r.file,r.start))})}});function Vje(e,t,r){var i,o;const s=ZTe(VZ(e,t),r);if(!s)return it;const{source:c,target:_}=s,d=jje(c,_,r)?r.getTypeAtLocation(_.expression):r.getTypeAtLocation(_);return(o=(i=d.symbol)==null?void 0:i.declarations)!=null&&o.some(v=>Zn(v).fileName.match(/\.d\.ts$/))?it:r.getExactOptionalProperties(d)}function jje(e,t,r){return Br(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function ZTe(e,t){var r;if(e){if(Tr(e.parent)&&e.parent.operatorToken.kind===63)return{source:e.parent.right,target:e.parent.left};if($i(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(io(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!CS(i.valueDeclaration.kind)||!yt(e))return;const o=e.parent.arguments.indexOf(e);if(o===-1)return;const s=i.valueDeclaration.parameters[o].name;if(We(s))return{source:e,target:s}}else if($c(e.parent)&&We(e.parent.name)||l_(e.parent)){const i=ZTe(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:$c(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function Wje(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(Mf(i)||ro(i))&&i.type){const o=O.createUnionTypeNode([...i.type.kind===189?i.type.types:[i.type],O.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var tte,e2e,Hje=b({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";Zr(),So(),tte="addOptionalPropertyUndefined",e2e=[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],ho({errorCodes:e2e,getCodeActions(e){const t=e.program.getTypeChecker(),r=Vje(e.sourceFile,e.span,t);if(!r.length)return;const i=vr.ChangeTracker.with(e,o=>Wje(o,r));return[Op(tte,i,m.Add_undefined_to_optional_property_type)]},fixIds:[tte]})}});function t2e(e,t){const r=la(e,t);return li(Ba(r.parent)?r.parent.parent:r.parent,n2e)}function n2e(e){return zje(e)&&r2e(e)}function r2e(e){return el(e)?e.parameters.some(r2e)||!e.type&&!!RD(e):!e.type&&!!Bv(e)}function i2e(e,t,r){if(el(r)&&(RD(r)||r.parameters.some(i=>!!Bv(i)))){if(!r.typeParameters){const o=kP(r);o.length&&e.insertTypeParameters(t,r,o)}const i=Xs(r)&&!Es(r,20,t);i&&e.insertNodeBefore(t,ds(r.parameters),O.createToken(20));for(const o of r.parameters)if(!o.type){const s=Bv(o);s&&e.tryInsertTypeAnnotation(t,o,ct(s,L1,Bi))}if(i&&e.insertNodeAfter(t,Ko(r.parameters),O.createToken(21)),!r.type){const o=RD(r);o&&e.tryInsertTypeAnnotation(t,r,ct(o,L1,Bi))}}else{const i=R.checkDefined(Bv(r),"A JSDocType for this declaration should exist");R.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,ct(i,L1,Bi))}}function zje(e){return el(e)||e.kind===257||e.kind===168||e.kind===169}function L1(e){switch(e.kind){case 315:case 316:return O.createTypeReferenceNode("any",it);case 319:return Jje(e);case 318:return L1(e.type);case 317:return Kje(e);case 321:return Xje(e);case 320:return Yje(e);case 180:return Qje(e);case 325:return qje(e);default:const t=Fn(e,L1,Dg);return sr(t,1),t}}function qje(e){const t=O.createTypeLiteralNode(Pt(e.jsDocPropertyTags,r=>O.createPropertySignature(void 0,We(r.name)?r.name:r.name.right,QR(r)?O.createToken(57):void 0,r.typeExpression&&ct(r.typeExpression.type,L1,Bi)||O.createKeywordTypeNode(131))));return sr(t,1),t}function Jje(e){return O.createUnionTypeNode([ct(e.type,L1,Bi),O.createTypeReferenceNode("undefined",it)])}function Kje(e){return O.createUnionTypeNode([ct(e.type,L1,Bi),O.createTypeReferenceNode("null",it)])}function Xje(e){return O.createArrayTypeNode(ct(e.type,L1,Bi))}function Yje(e){var t;return O.createFunctionTypeNode(it,e.parameters.map($je),(t=e.type)!=null?t:O.createKeywordTypeNode(131))}function $je(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===321&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?O.createToken(25):e.dotDotDotToken;return O.createParameterDeclaration(e.modifiers,o,i,e.questionToken,ct(e.type,L1,Bi),e.initializer)}function Qje(e){let t=e.typeName,r=e.typeArguments;if(We(e.typeName)){if(pP(e))return Zje(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=O.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=O.createNodeArray([O.createTypeReferenceNode("any",it)]):r=Jn(e.typeArguments,L1,Bi)}return O.createTypeReferenceNode(t,r)}function Zje(e){const t=O.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===148?"n":"s",void 0,O.createTypeReferenceNode(e.typeArguments[0].kind===148?"number":"string",[]),void 0),r=O.createTypeLiteralNode([O.createIndexSignature(void 0,[t],e.typeArguments[1])]);return sr(r,1),r}var lG,nte,eWe=b({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";Zr(),So(),lG="annotateWithTypeFromJSDoc",nte=[m.JSDoc_types_may_be_moved_to_TypeScript_types.code],ho({errorCodes:nte,getCodeActions(e){const t=t2e(e.sourceFile,e.span.start);if(!t)return;const r=vr.ChangeTracker.with(e,i=>i2e(i,e.sourceFile,t));return[ao(lG,r,m.Annotate_with_type_from_JSDoc,lG,m.Annotate_everything_with_types_from_JSDoc)]},fixIds:[lG],getAllCodeActions:e=>Ls(e,nte,(t,r)=>{const i=t2e(r.file,r.start);i&&i2e(t,r.file,i)})})}});function a2e(e,t,r,i,o,s){const c=i.getSymbolAtLocation(la(t,r));if(!c||!c.valueDeclaration||!(c.flags&19))return;const _=c.valueDeclaration;if(Sc(_)||Us(_))e.replaceNode(t,_,g(_));else if($i(_)){const T=v(_);if(!T)return;const C=_.parent.parent;Xu(_.parent)&&_.parent.declarations.length>1?(e.delete(t,_),e.insertNodeAfter(t,C,T)):e.replaceNode(t,C,T)}function d(T){const C=[];return T.exports&&T.exports.forEach(M=>{if(M.name==="prototype"&&M.declarations){const k=M.declarations[0];if(M.declarations.length===1&&Br(k)&&Tr(k.parent)&&k.parent.operatorToken.kind===63&&Is(k.parent.right)){const U=k.parent.right;I(U.symbol,void 0,C)}}else I(M,[O.createToken(124)],C)}),T.members&&T.members.forEach((M,k)=>{var U,j,H,ee;if(k==="constructor"&&M.valueDeclaration){const X=(ee=(H=(j=(U=T.exports)==null?void 0:U.get("prototype"))==null?void 0:j.declarations)==null?void 0:H[0])==null?void 0:ee.parent;X&&Tr(X)&&Is(X.right)&&Dt(X.right.properties,uG)||e.delete(t,M.valueDeclaration.parent);return}I(M,void 0,C)}),C;function L(M,k){return ul(M)?Br(M)&&uG(M)?!0:Ya(k):Qn(M.properties,U=>!!(sc(U)||kM(U)||$c(U)&&Us(U.initializer)&&U.name||uG(U)))}function I(M,k,U){if(!(M.flags&8192)&&!(M.flags&4096))return;const j=M.valueDeclaration,H=j.parent,ee=H.right;if(!L(j,ee)||Dt(U,re=>{const be=ka(re);return!!(be&&We(be)&&Pr(be)===Gl(M))}))return;const X=H.parent&&H.parent.kind===241?H.parent:H;if(e.delete(t,X),!ee){U.push(O.createPropertyDeclaration(k,M.name,void 0,void 0,void 0));return}if(ul(j)&&(Us(ee)||Xs(ee))){const re=Np(t,o),be=tWe(j,s,re);be&&ne(U,ee,be);return}else if(Is(ee)){Ie(ee.properties,re=>{(sc(re)||kM(re))&&U.push(re),$c(re)&&Us(re.initializer)&&ne(U,re.initializer,re.name),uG(re)});return}else{if(ld(t)||!Br(j))return;const re=O.createPropertyDeclaration(k,j.name,void 0,void 0,ee);bL(H.parent,re,t),U.push(re);return}function ne(re,be,ae){return Us(be)?P(re,be,ae):ue(re,be,ae)}function P(re,be,ae){const z=ba(k,cG(be,132)),ce=O.createMethodDeclaration(z,void 0,ae,void 0,void 0,be.parameters,void 0,be.body);bL(H,ce,t),re.push(ce)}function ue(re,be,ae){const z=be.body;let ce;z.kind===238?ce=z:ce=O.createBlock([O.createReturnStatement(z)]);const he=ba(k,cG(be,132)),Ee=O.createMethodDeclaration(he,void 0,ae,void 0,void 0,be.parameters,void 0,ce);bL(H,Ee,t),re.push(Ee)}}}function v(T){const C=T.initializer;if(!C||!Us(C)||!We(T.name))return;const L=d(T.symbol);C.body&&L.unshift(O.createConstructorDeclaration(void 0,C.parameters,C.body));const I=cG(T.parent.parent,93);return O.createClassDeclaration(I,T.name,void 0,void 0,L)}function g(T){const C=d(c);T.body&&C.unshift(O.createConstructorDeclaration(void 0,T.parameters,T.body));const L=cG(T,93);return O.createClassDeclaration(L,T.name,void 0,void 0,C)}}function cG(e,t){return np(e)?ur(e.modifiers,r=>r.kind===t):void 0}function uG(e){return e.name?!!(We(e.name)&&e.name.text==="constructor"):!1}function tWe(e,t,r){if(Br(e))return e.name;const i=e.argumentExpression;if(C_(i))return i;if(As(i))return W_(i.text,ns(t))?O.createIdentifier(i.text):$S(i)?O.createStringLiteral(i.text,r===0):i}var dG,rte,nWe=b({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";Zr(),So(),dG="convertFunctionToEs6Class",rte=[m.This_constructor_function_may_be_converted_to_a_class_declaration.code],ho({errorCodes:rte,getCodeActions(e){const t=vr.ChangeTracker.with(e,r=>a2e(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[ao(dG,t,m.Convert_function_to_an_ES2015_class,dG,m.Convert_all_constructor_functions_to_classes)]},fixIds:[dG],getAllCodeActions:e=>Ls(e,rte,(t,r)=>a2e(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function o2e(e,t,r,i){const o=la(t,r);let s;if(We(o)&&$i(o.parent)&&o.parent.initializer&&el(o.parent.initializer)?s=o.parent.initializer:s=li(Nf(la(t,r)),pee),!s)return;const c=new Map,_=_r(s),d=iWe(s,i),v=aWe(s,i,c);if(!fee(v,i))return;const g=v.body&&fo(v.body)?rWe(v.body,i):it,T={checker:i,synthNamesMap:c,setOfExpressionsToReturn:d,isInJSFile:_};if(!g.length)return;const C=Yo(t.text,sm(s).pos);e.insertModifierAt(t,C,132,{suffix:" "});for(const L of g)if(Pa(L,function I(M){if(io(M)){const k=wx(M,M,T,!1);if(g2())return!0;e.replaceNodeWithNodes(t,L,k)}else if(!Ya(M)&&(Pa(M,I),g2()))return!0}),g2())return}function rWe(e,t){const r=[];return wT(e,i=>{DB(i,t)&&r.push(i)}),r}function iWe(e,t){if(!e.body)return new Set;const r=new Set;return Pa(e.body,function i(o){t8(o,t,"then")?(r.add(hs(o)),Ie(o.arguments,i)):t8(o,t,"catch")||t8(o,t,"finally")?(r.add(hs(o)),Pa(o,i)):l2e(o,t)?r.add(hs(o)):Pa(o,i)}),r}function t8(e,t,r){if(!io(e))return!1;const o=PN(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function s2e(e,t){return(ni(e)&4)!==0&&e.target===t}function fG(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(s2e(i,r.getPromiseType())||s2e(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Ty(e.arguments,0))return Ty(e.typeArguments,0);if(t===Ty(e.arguments,1))return Ty(e.typeArguments,1)}else return Ty(e.typeArguments,0)}function l2e(e,t){return yt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function aWe(e,t,r){const i=new Map,o=v_();return Pa(e,function s(c){if(!We(c)){Pa(c,s);return}const _=t.getSymbolAtLocation(c);if(_){const d=t.getTypeAtLocation(c),v=p2e(d,t),g=To(_).toString();if(v&&!Ba(c.parent)&&!el(c.parent)&&!r.has(g)){const T=tu(v.parameters),C=(T==null?void 0:T.valueDeclaration)&&Ba(T.valueDeclaration)&&li(T.valueDeclaration.name,We)||O.createUniqueName("result",16),L=c2e(C,o);r.set(g,L),o.add(C.text,_)}else if(c.parent&&(Ba(c.parent)||$i(c.parent)||ms(c.parent))){const T=c.text,C=o.get(T);if(C&&C.some(L=>L!==_)){const L=c2e(c,o);i.set(g,L.identifier),r.set(g,L),o.add(T,_)}else{const L=Ol(c);r.set(g,SL(L)),o.add(T,_)}}}}),ZN(e,!0,s=>{if(ms(s)&&We(s.name)&&$m(s.parent)){const c=t.getSymbolAtLocation(s.name),_=c&&i.get(String(To(c)));if(_&&_.text!==(s.name||s.propertyName).getText())return O.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,_,s.initializer)}else if(We(s)){const c=t.getSymbolAtLocation(s),_=c&&i.get(String(To(c)));if(_)return O.createIdentifier(_.text)}})}function c2e(e,t){const r=(t.get(e.text)||it).length,i=r===0?e:O.createIdentifier(e.text+"_"+r);return SL(i)}function g2(){return!dO}function u0(){return dO=!1,it}function wx(e,t,r,i,o){if(t8(t,r.checker,"then"))return lWe(t,Ty(t.arguments,0),Ty(t.arguments,1),r,i,o);if(t8(t,r.checker,"catch"))return f2e(t,Ty(t.arguments,0),r,i,o);if(t8(t,r.checker,"finally"))return sWe(t,Ty(t.arguments,0),r,i,o);if(Br(t))return wx(e,t.expression,r,i,o);const s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(R.assertNode(Cl(t).parent,Br),cWe(e,t,r,i,o)):u0()}function _G({checker:e},t){if(t.kind===104)return!0;if(We(t)&&!Ll(t)&&Pr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function oWe(e){const t=O.createUniqueName(e.identifier.text,16);return SL(t)}function u2e(e,t,r){let i;return r&&!r8(e,t)&&(n8(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){const c=oWe(r);t.synthNamesMap.set(s,c)}})):i=SL(O.createUniqueName("result",16),r.types),ste(i)),i}function d2e(e,t,r,i,o){const s=[];let c;if(i&&!r8(e,t)){c=Ol(ste(i));const _=i.types,d=t.checker.getUnionType(_,2),v=t.isInJSFile?void 0:t.checker.typeToTypeNode(d,void 0,void 0),g=[O.createVariableDeclaration(c,void 0,v)],T=O.createVariableStatement(void 0,O.createVariableDeclarationList(g,1));s.push(T)}return s.push(r),o&&c&&fWe(o)&&s.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(Ol(y2e(o)),void 0,void 0,c)],2))),s}function sWe(e,t,r,i,o){if(!t||_G(r,t))return wx(e,e.expression.expression,r,i,o);const s=u2e(e,r,o),c=wx(e,e.expression.expression,r,!0,s);if(g2())return u0();const _=ate(t,i,void 0,void 0,e,r);if(g2())return u0();const d=O.createBlock(c),v=O.createBlock(_),g=O.createTryStatement(d,void 0,v);return d2e(e,r,g,s,o)}function f2e(e,t,r,i,o){if(!t||_G(r,t))return wx(e,e.expression.expression,r,i,o);const s=h2e(t,r),c=u2e(e,r,o),_=wx(e,e.expression.expression,r,!0,c);if(g2())return u0();const d=ate(t,i,c,s,e,r);if(g2())return u0();const v=O.createBlock(_),g=O.createCatchClause(s&&Ol(uO(s)),O.createBlock(d)),T=O.createTryStatement(v,g,void 0);return d2e(e,r,T,c,o)}function lWe(e,t,r,i,o,s){if(!t||_G(i,t))return f2e(e,r,i,o,s);if(r&&!_G(i,r))return u0();const c=h2e(t,i),_=wx(e.expression.expression,e.expression.expression,i,!0,c);if(g2())return u0();const d=ate(t,o,s,c,e,i);return g2()?u0():ba(_,d)}function cWe(e,t,r,i,o){if(r8(e,r)){let s=Ol(t);return i&&(s=O.createAwaitExpression(s)),[O.createReturnStatement(s)]}return pG(o,O.createAwaitExpression(t),void 0)}function pG(e,t,r){return!e||g2e(e)?[O.createExpressionStatement(t)]:n8(e)&&e.hasBeenDeclared?[O.createExpressionStatement(O.createAssignment(Ol(ote(e)),t))]:[O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(Ol(uO(e)),void 0,r,t)],2))]}function ite(e,t){if(t&&e){const r=O.createUniqueName("result",16);return[...pG(SL(r),e,t),O.createReturnStatement(r)]}return[O.createReturnStatement(e)]}function ate(e,t,r,i,o,s){var c;switch(e.kind){case 104:break;case 208:case 79:if(!i)break;const _=O.createCallExpression(Ol(e),void 0,n8(i)?[ote(i)]:[]);if(r8(o,s))return ite(_,fG(o,e,s.checker));const d=s.checker.getTypeAtLocation(e),v=s.checker.getSignaturesOfType(d,0);if(!v.length)return u0();const g=v[0].getReturnType(),T=pG(r,O.createAwaitExpression(_),fG(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(g)||g),T;case 215:case 216:{const C=e.body,L=(c=p2e(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:c.getReturnType();if(fo(C)){let I=[],M=!1;for(const k of C.statements)if(kp(k))if(M=!0,DB(k,s.checker))I=I.concat(m2e(s,k,t,r));else{const U=L&&k.expression?_2e(s.checker,L,k.expression):k.expression;I.push(...ite(U,fG(o,e,s.checker)))}else{if(t&&wT(k,xb))return u0();I.push(k)}return r8(o,s)?I.map(k=>Ol(k)):uWe(I,r,s,M)}else{const I=_ee(C,s.checker)?m2e(s,O.createReturnStatement(C),t,r):it;if(I.length>0)return I;if(L){const M=_2e(s.checker,L,C);if(r8(o,s))return ite(M,fG(o,e,s.checker));{const k=pG(r,M,void 0);return r&&r.types.push(s.checker.getAwaitedType(L)||L),k}}else return u0()}}default:return u0()}return it}function _2e(e,t,r){const i=Ol(r);return e.getPromisedTypeOfPromise(t)?O.createAwaitExpression(i):i}function p2e(e,t){const r=t.getSignaturesOfType(e,0);return rl(r)}function uWe(e,t,r,i){const o=[];for(const s of e)if(kp(s)){if(s.expression){const c=l2e(s.expression,r.checker)?O.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(O.createExpressionStatement(c)):n8(t)&&t.hasBeenDeclared?o.push(O.createExpressionStatement(O.createAssignment(ote(t),c))):o.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(uO(t),void 0,void 0,c)],2)))}}else o.push(Ol(s));return!i&&t!==void 0&&o.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(uO(t),void 0,void 0,O.createIdentifier("undefined"))],2))),o}function m2e(e,t,r,i){let o=[];return Pa(t,function s(c){if(io(c)){const _=wx(c,c,e,r,i);if(o=o.concat(_),o.length>0)return}else Ya(c)||Pa(c,s)}),o}function h2e(e,t){const r=[];let i;if(el(e)){if(e.parameters.length>0){const d=e.parameters[0].name;i=o(d)}}else We(e)?i=s(e):Br(e)&&We(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(d){if(We(d))return s(d);const v=ji(d.elements,g=>Fc(g)?[]:[o(g.name)]);return dWe(d,v)}function s(d){const v=_(d),g=c(v);return g&&t.synthNamesMap.get(To(g).toString())||SL(d,r)}function c(d){var v,g;return(g=(v=li(d,Um))==null?void 0:v.symbol)!=null?g:t.checker.getSymbolAtLocation(d)}function _(d){return d.original?d.original:d}}function g2e(e){return e?n8(e)?!e.identifier.text:Qn(e.elements,g2e):!0}function SL(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function dWe(e,t=it,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function ote(e){return e.hasBeenReferenced=!0,e.identifier}function uO(e){return n8(e)?ste(e):y2e(e)}function y2e(e){for(const t of e.elements)uO(t);return e.bindingPattern}function ste(e){return e.hasBeenDeclared=!0,e.identifier}function n8(e){return e.kind===0}function fWe(e){return e.kind===1}function r8(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(hs(e.original))}var mG,lte,dO,_We=b({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";Zr(),So(),mG="convertToAsyncFunction",lte=[m.This_may_be_converted_to_an_async_function.code],dO=!0,ho({errorCodes:lte,getCodeActions(e){dO=!0;const t=vr.ChangeTracker.with(e,r=>o2e(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return dO?[ao(mG,t,m.Convert_to_async_function,mG,m.Convert_all_to_async_functions)]:[]},fixIds:[mG],getAllCodeActions:e=>Ls(e,lte,(t,r)=>o2e(t,r.file,r.start,e.program.getTypeChecker()))})}});function pWe(e,t,r,i){for(const o of e.imports){const s=tC(e,o.text,Dp(e,o));if(!s||s.resolvedFileName!==t.fileName)continue;const c=fR(o);switch(c.kind){case 268:r.replaceNode(e,c,Hy(c.name,void 0,o,i));break;case 210:wd(c,!1)&&r.replaceNode(e,c,O.createPropertyAccessExpression(Ol(c),"default"));break}}}function mWe(e,t,r,i,o){const s={original:IWe(e),additional:new Set},c=hWe(e,t,s);gWe(e,c,r);let _=!1,d;for(const v of ur(e.statements,pc)){const g=b2e(e,v,r,t,s,i,o);g&&WD(g,d!=null?d:d=new Map)}for(const v of ur(e.statements,g=>!pc(g))){const g=yWe(e,v,t,r,s,i,c,d,o);_=_||g}return d==null||d.forEach((v,g)=>{r.replaceNode(e,g,v)}),_}function hWe(e,t,r){const i=new Map;return v2e(e,o=>{const{text:s}=o.name;!i.has(s)&&(TP(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,hG(`_${s}`,r))}),i}function gWe(e,t,r){v2e(e,(i,o)=>{if(o)return;const{text:s}=i.name;r.replaceNode(e,i,O.createIdentifier(t.get(s)||s))})}function v2e(e,t){e.forEachChild(function r(i){if(Br(i)&&aE(e,i.expression)&&We(i.name)){const{parent:o}=i;t(i,Tr(o)&&o.left===i&&o.operatorToken.kind===63)}i.forEachChild(r)})}function yWe(e,t,r,i,o,s,c,_,d){switch(t.kind){case 240:return b2e(e,t,i,r,o,s,d),!1;case 241:{const{expression:v}=t;switch(v.kind){case 210:return wd(v,!0)&&i.replaceNode(e,t,Hy(void 0,void 0,v.arguments[0],d)),!1;case 223:{const{operatorToken:g}=v;return g.kind===63&&bWe(e,r,v,i,c,_)}}}default:return!1}}function b2e(e,t,r,i,o,s,c){const{declarationList:_}=t;let d=!1;const v=Pt(_.declarations,g=>{const{name:T,initializer:C}=g;if(C){if(aE(e,C))return d=!0,xL([]);if(wd(C,!0))return d=!0,CWe(T,C.arguments[0],i,o,s,c);if(Br(C)&&wd(C.expression,!0))return d=!0,vWe(T,C.name.text,C.expression.arguments[0],o,c)}return xL([O.createVariableStatement(void 0,O.createVariableDeclarationList([g],_.flags))])});if(d){r.replaceNodeWithNodes(e,t,ji(v,T=>T.newImports));let g;return Ie(v,T=>{T.useSitesToUnqualify&&WD(T.useSitesToUnqualify,g!=null?g:g=new Map)}),g}}function vWe(e,t,r,i,o){switch(e.kind){case 203:case 204:{const s=hG(t,i);return xL([x2e(s,t,r,o),gG(void 0,e,O.createIdentifier(s))])}case 79:return xL([x2e(e.text,t,r,o)]);default:return R.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function bWe(e,t,r,i,o,s){const{left:c,right:_}=r;if(!Br(c))return!1;if(aE(e,c))if(aE(e,_))i.delete(e,r.parent);else{const d=Is(_)?EWe(_,s):wd(_,!0)?SWe(_.arguments[0],t):void 0;return d?(i.replaceNodeWithNodes(e,r.parent,d[0]),d[1]):(i.replaceRangeWithText(e,S_(c.getStart(e),_.pos),"export default"),!0)}else aE(e,c.expression)&&TWe(e,r,i,o);return!1}function EWe(e,t){const r=bb(e.properties,i=>{switch(i.kind){case 174:case 175:case 300:case 301:return;case 299:return We(i.name)?AWe(i.name.text,i.initializer,t):void 0;case 171:return We(i.name)?S2e(i.name.text,[O.createToken(93)],i,t):void 0;default:R.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function TWe(e,t,r,i){const{text:o}=t.left.name,s=i.get(o);if(s!==void 0){const c=[gG(void 0,s,t.right),dte([O.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,c)}else xWe(t,e,r)}function SWe(e,t){const r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:K7;return o.has("export=")?[[cte(r)],!0]:o.has("default")?o.size>1?[[E2e(r),cte(r)],!0]:[[cte(r)],!0]:[[E2e(r)],!1]}function E2e(e){return dte(void 0,e)}function cte(e){return dte([O.createExportSpecifier(!1,void 0,"default")],e)}function xWe({left:e,right:t,parent:r},i,o){const s=e.name.text;if((Us(t)||Xs(t)||Ku(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},O.createToken(93),{suffix:" "}),t.name||o.insertName(i,t,s);const c=Es(r,26,i);c&&o.delete(i,c)}else o.replaceNodeRangeWithNodes(i,e.expression,Es(e,24,i),[O.createToken(93),O.createToken(85)],{joiner:" ",suffix:" "})}function AWe(e,t,r){const i=[O.createToken(93)];switch(t.kind){case 215:{const{name:s}=t;if(s&&s.text!==e)return o()}case 216:return S2e(e,i,t,r);case 228:return wWe(e,i,t,r);default:return o()}function o(){return gG(i,O.createIdentifier(e),ute(t,r))}}function ute(e,t){if(!t||!Dt(Oo(t.keys()),i=>gf(e,i)))return e;return ja(e)?DZ(e,!0,r):ZN(e,!0,r);function r(i){if(i.kind===208){const o=t.get(i);return t.delete(i),o}}}function CWe(e,t,r,i,o,s){switch(e.kind){case 203:{const c=bb(e.elements,_=>_.dotDotDotToken||_.initializer||_.propertyName&&!We(_.propertyName)||!We(_.name)?void 0:A2e(_.propertyName&&_.propertyName.text,_.name.text));if(c)return xL([Hy(void 0,c,t,s)])}case 204:{const c=hG(Tte(t.text,o),i);return xL([Hy(O.createIdentifier(c),void 0,t,s),gG(void 0,Ol(e),O.createIdentifier(c))])}case 79:return LWe(e,t,r,i,s);default:return R.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function LWe(e,t,r,i,o){const s=r.getSymbolAtLocation(e),c=new Map;let _=!1,d;for(const g of i.original.get(e.text)){if(r.getSymbolAtLocation(g)!==s||g===e)continue;const{parent:T}=g;if(Br(T)){const{name:{text:C}}=T;if(C==="default"){_=!0;const L=g.getText();(d!=null?d:d=new Map).set(T,O.createIdentifier(L))}else{R.assert(T.expression===g,"Didn't expect expression === use");let L=c.get(C);L===void 0&&(L=hG(C,i),c.set(C,L)),(d!=null?d:d=new Map).set(T,O.createIdentifier(L))}}else _=!0}const v=c.size===0?void 0:Oo(Ua(c.entries(),([g,T])=>O.createImportSpecifier(!1,g===T?void 0:O.createIdentifier(g),O.createIdentifier(T))));return v||(_=!0),xL([Hy(_?Ol(e):void 0,v,t,o)],d)}function hG(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function IWe(e){const t=v_();return T2e(e,r=>t.add(r.text,r)),t}function T2e(e,t){We(e)&&kWe(e)&&t(e),e.forEachChild(r=>T2e(r,t))}function kWe(e){const{parent:t}=e;switch(t.kind){case 208:return t.name!==e;case 205:return t.propertyName!==e;case 273:return t.propertyName!==e;default:return!0}}function S2e(e,t,r,i){return O.createFunctionDeclaration(ba(t,pE(r.modifiers)),Ol(r.asteriskToken),e,pE(r.typeParameters),pE(r.parameters),Ol(r.type),O.converters.convertToFunctionBlock(ute(r.body,i)))}function wWe(e,t,r,i){return O.createClassDeclaration(ba(t,pE(r.modifiers)),e,pE(r.typeParameters),pE(r.heritageClauses),ute(r.members,i))}function x2e(e,t,r,i){return t==="default"?Hy(O.createIdentifier(e),void 0,r,i):Hy(void 0,[A2e(t,e)],r,i)}function A2e(e,t){return O.createImportSpecifier(!1,e!==void 0&&e!==t?O.createIdentifier(e):void 0,O.createIdentifier(t))}function gG(e,t,r){return O.createVariableStatement(e,O.createVariableDeclarationList([O.createVariableDeclaration(t,void 0,void 0,r)],2))}function dte(e,t){return O.createExportDeclaration(void 0,!1,e&&O.createNamedExports(e),t===void 0?void 0:O.createStringLiteral(t))}function xL(e,t){return{newImports:e,useSitesToUnqualify:t}}var DWe=b({"src/services/codefixes/convertToEsModule.ts"(){"use strict";Zr(),So(),ho({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=vr.ChangeTracker.with(e,s=>{if(mWe(t,r.getTypeChecker(),s,ns(r.getCompilerOptions()),Np(t,i)))for(const _ of r.getSourceFiles())pWe(_,t,s,Np(_,i))});return[Op("convertToEsModule",o,m.Convert_to_ES_module)]}})}});function C2e(e,t){const r=rr(la(e,t),Rd);return R.assert(!!r,"Expected position to be owned by a qualified name."),We(r.left)?r:void 0}function L2e(e,t,r){const i=r.right.text,o=O.createIndexedAccessTypeNode(O.createTypeReferenceNode(r.left,void 0),O.createLiteralTypeNode(O.createStringLiteral(i)));e.replaceNode(t,r,o)}var yG,fte,RWe=b({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";Zr(),So(),yG="correctQualifiedNameToIndexedAccessType",fte=[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],ho({errorCodes:fte,getCodeActions(e){const t=C2e(e.sourceFile,e.span.start);if(!t)return;const r=vr.ChangeTracker.with(e,o=>L2e(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[ao(yG,r,[m.Rewrite_as_the_indexed_access_type_0,i],yG,m.Rewrite_all_as_indexed_access_types)]},fixIds:[yG],getAllCodeActions:e=>Ls(e,fte,(t,r)=>{const i=C2e(r.file,r.start);i&&L2e(t,r.file,i)})})}});function I2e(e,t){return li(la(t,e.start).parent,yd)}function k2e(e,t,r){if(!t)return;const i=t.parent,o=i.parent,s=NWe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,154,i);else{const c=O.updateExportDeclaration(o,o.modifiers,!1,O.updateNamedExports(i,ur(i.elements,d=>!Fr(s,d))),o.moduleSpecifier,void 0),_=O.createExportDeclaration(void 0,!0,O.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,c,{leadingTriviaOption:vr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:vr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,_)}}function NWe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=Fbe(fd(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return ur(r.elements,o=>{var s;return o===e||((s=Pbe(o,i))==null?void 0:s.code)===vG[0]})}var vG,bG,OWe=b({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";Zr(),So(),vG=[m.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],bG="convertToTypeOnlyExport",ho({errorCodes:vG,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>k2e(i,I2e(t.span,t.sourceFile),t));if(r.length)return[ao(bG,r,m.Convert_to_type_only_export,bG,m.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[bG],getAllCodeActions:function(t){const r=new Map;return Ls(t,vG,(i,o)=>{const s=I2e(o,t.sourceFile);s&&Ip(r,hs(s.parent.parent))&&k2e(i,s,t)})}})}});function w2e(e,t){const{parent:r}=la(e,t);return Nd(r)||Yc(r)&&r.importClause?r:void 0}function D2e(e,t,r){if(Nd(r))e.replaceNode(t,r,O.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const i=r.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,r,[O.createImportDeclaration(pE(r.modifiers,!0),O.createImportClause(!0,Ol(i.name,!0),void 0),Ol(r.moduleSpecifier,!0),Ol(r.assertClause,!0)),O.createImportDeclaration(pE(r.modifiers,!0),O.createImportClause(!0,void 0,Ol(i.namedBindings,!0)),Ol(r.moduleSpecifier,!0),Ol(r.assertClause,!0))]);else{const o=O.updateImportDeclaration(r,r.modifiers,O.updateImportClause(i,!0,i.name,i.namedBindings),r.moduleSpecifier,r.assertClause);e.replaceNode(t,r,o)}}}var _te,EG,MWe=b({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";Zr(),So(),_te=[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],EG="convertToTypeOnlyImport",ho({errorCodes:_te,getCodeActions:function(t){const r=w2e(t.sourceFile,t.span.start);if(r){const i=vr.ChangeTracker.with(t,o=>D2e(o,t.sourceFile,r));return[ao(EG,i,m.Convert_to_type_only_import,EG,m.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]}},fixIds:[EG],getAllCodeActions:function(t){return Ls(t,_te,(r,i)=>{const o=w2e(i.file,i.start);o&&D2e(r,i.file,o)})}})}});function R2e(e,t){const r=la(e,t);if(We(r)){const i=lo(r.parent.parent,Mf),o=r.getText(e);return{container:lo(i.parent,hf),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function N2e(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,O.createMappedTypeNode(void 0,O.createTypeParameterDeclaration(void 0,s,O.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var TG,pte,PWe=b({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";Zr(),So(),TG="convertLiteralTypeToMappedType",pte=[m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],ho({errorCodes:pte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=R2e(r,i.start);if(!o)return;const{name:s,constraint:c}=o,_=vr.ChangeTracker.with(t,d=>N2e(d,r,o));return[ao(TG,_,[m.Convert_0_to_1_in_0,c,s],TG,m.Convert_all_type_literals_to_mapped_type)]},fixIds:[TG],getAllCodeActions:e=>Ls(e,pte,(t,r)=>{const i=R2e(r.file,r.start);i&&N2e(t,r.file,i)})})}});function O2e(e,t){return R.checkDefined(wc(la(e,t)),"There should be a containing class")}function M2e(e){return!e.valueDeclaration||!(zu(e.valueDeclaration)&8)}function P2e(e,t,r,i,o,s){const c=e.program.getTypeChecker(),_=FWe(i,c),d=c.getTypeAtLocation(t),g=c.getPropertiesOfType(d).filter(z7(M2e,k=>!_.has(k.escapedName))),T=c.getTypeAtLocation(i),C=$t(i.members,k=>Kl(k));T.getNumberIndexType()||I(d,1),T.getStringIndexType()||I(d,0);const L=y2(r,e.program,s,e.host);bne(i,g,r,e,s,L,k=>M(r,i,k)),L.writeFixes(o);function I(k,U){const j=c.getIndexInfoOfType(k,U);j&&M(r,i,c.indexInfoToIndexSignatureDeclaration(j,i,void 0,Dx(e)))}function M(k,U,j){C?o.insertNodeAfter(k,C,j):o.insertMemberAtStart(k,U,j)}}function FWe(e,t){const r=am(e);if(!r)return uo();const i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return uo(o.filter(M2e))}var mte,SG,BWe=b({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";Zr(),So(),mte=[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],SG="fixClassIncorrectlyImplementsInterface",ho({errorCodes:mte,getCodeActions(e){const{sourceFile:t,span:r}=e,i=O2e(t,r.start);return ua(yC(i),o=>{const s=vr.ChangeTracker.with(e,c=>P2e(e,o,t,i,c,e.preferences));return s.length===0?void 0:ao(SG,s,[m.Implement_interface_0,o.getText(t)],SG,m.Implement_all_unimplemented_interfaces)})},fixIds:[SG],getAllCodeActions(e){const t=new Map;return Ls(e,mte,(r,i)=>{const o=O2e(i.file,i.start);if(Ip(t,hs(o)))for(const s of yC(o))P2e(e,s,i.file,o,r,e.preferences)})}})}});function y2(e,t,r,i,o){return F2e(e,t,!1,r,i,o)}function F2e(e,t,r,i,o,s){const c=t.getCompilerOptions(),_=[],d=[],v=new Map,g=new Map;return{addImportFromDiagnostic:T,addImportFromExportedSymbol:C,writeFixes:I,hasFixes:M};function T(k,U){const j=W2e(U,k.code,k.start,r);!j||!j.length||L(ds(j))}function C(k,U){const j=R.checkDefined(k.parent),H=hB(k,ns(c)),ee=t.getTypeChecker(),X=ee.getMergedSymbol(mf(k,ee)),ne=U2e(e,X,H,j,!1,t,o,i,s),P=AG(e,t),ue=B2e(e,R.checkDefined(ne),t,void 0,!!U,P,o,i);ue&&L({fix:ue,symbolName:H,errorIdentifierText:void 0})}function L(k){var U,j;const{fix:H,symbolName:ee}=k;switch(H.kind){case 0:_.push(H);break;case 1:d.push(H);break;case 2:{const{importClauseOrBindingPattern:ue,importKind:re,addAsTypeOnly:be}=H,ae=String(hs(ue));let z=v.get(ae);if(z||v.set(ae,z={importClauseOrBindingPattern:ue,defaultImport:void 0,namedImports:new Map}),re===0){const ce=z==null?void 0:z.namedImports.get(ee);z.namedImports.set(ee,X(ce,be))}else R.assert(z.defaultImport===void 0||z.defaultImport.name===ee,"(Add to Existing) Default import should be missing or match symbolName"),z.defaultImport={name:ee,addAsTypeOnly:X((U=z.defaultImport)==null?void 0:U.addAsTypeOnly,be)};break}case 3:{const{moduleSpecifier:ue,importKind:re,useRequire:be,addAsTypeOnly:ae}=H,z=ne(ue,re,be,ae);switch(R.assert(z.useRequire===be,"(Add new) Tried to add an `import` and a `require` for the same module"),re){case 1:R.assert(z.defaultImport===void 0||z.defaultImport.name===ee,"(Add new) Default import should be missing or match symbolName"),z.defaultImport={name:ee,addAsTypeOnly:X((j=z.defaultImport)==null?void 0:j.addAsTypeOnly,ae)};break;case 0:const ce=(z.namedImports||(z.namedImports=new Map)).get(ee);z.namedImports.set(ee,X(ce,ae));break;case 3:case 2:R.assert(z.namespaceLikeImport===void 0||z.namespaceLikeImport.name===ee,"Namespacelike import shoudl be missing or match symbolName"),z.namespaceLikeImport={importKind:re,name:ee,addAsTypeOnly:ae};break}break}case 4:break;default:R.assertNever(H,`fix wasn't never - got kind ${H.kind}`)}function X(ue,re){return Math.max(ue!=null?ue:0,re)}function ne(ue,re,be,ae){const z=P(ue,!0),ce=P(ue,!1),he=g.get(z),Ee=g.get(ce),Ae={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:be};return re===1&&ae===2?he||(g.set(z,Ae),Ae):ae===1&&(he||Ee)?he||Ee:Ee||(g.set(ce,Ae),Ae)}function P(ue,re){return`${re?1:0}|${ue}`}}function I(k){const U=Np(e,i);for(const H of _)bte(k,e,H);for(const H of d)Y2e(k,e,H,U);v.forEach(({importClauseOrBindingPattern:H,defaultImport:ee,namedImports:X})=>{X2e(k,e,H,ee,Oo(X.entries(),([ne,P])=>({addAsTypeOnly:P,name:ne})),c,i)});let j;g.forEach(({useRequire:H,defaultImport:ee,namedImports:X,namespaceLikeImport:ne},P)=>{const ue=P.slice(2),be=(H?Z2e:Q2e)(ue,U,ee,X&&Oo(X.entries(),([ae,z])=>({addAsTypeOnly:z,name:ae})),ne,c);j=GA(j,be)}),j&&nB(k,e,j,!0,i)}function M(){return _.length>0||d.length>0||v.size>0||g.size>0}}function GWe(e,t,r,i){const o=Y4(e,i,r),s=V2e(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:c};function c(_,d,v,g){const{fixes:T,computedWithoutCacheCount:C}=xG(_,d,v,!1,t,e,r,i,s,g),L=H2e(T,e,t,o,r);return L&&so(Li({},L),{computedWithoutCacheCount:C})}}function UWe(e,t,r,i,o,s,c,_,d,v,g,T){const C=_.getCompilerOptions();let L;r?(L=rO(i,c,_,g,T).get(i.path,r),R.assertIsDefined(L,"Some exportInfo should match the specified exportMapKey")):(L=Tz(X_(t.name))?[jWe(e,o,t,_,c)]:U2e(i,e,o,t,s,_,c,g,T),R.assertIsDefined(L,"Some exportInfo should match the specified symbol / moduleSymbol"));const I=AG(i,_),M=qS(la(i,v)),k=R.checkDefined(B2e(i,L,_,v,M,I,c,g));return{moduleSpecifier:k.moduleSpecifier,codeAction:G2e(vte({host:c,formatContext:d,preferences:g},i,o,k,!1,C,g))}}function VWe(e,t,r,i,o,s){const c=r.getCompilerOptions(),_=ZW(yte(e,r.getTypeChecker(),t,c)),d=J2e(e,t,_,r),v=_!==t.text;return d&&G2e(vte({host:i,formatContext:o,preferences:s},e,_,d,v,c,s))}function B2e(e,t,r,i,o,s,c,_){const d=Y4(e,_,c);return H2e(xG(t,i,o,s,r,e,c,_).fixes,e,r,d,c)}function G2e({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function U2e(e,t,r,i,o,s,c,_,d){const v=j2e(s,c);return rO(e,c,s,_,d).search(e.path,o,g=>g===r,g=>{if(mf(g[0].symbol,v(g[0].isFromPackageJson))===t&&g.some(T=>T.moduleSymbol===i||T.symbol.parent===i))return g})}function jWe(e,t,r,i,o){var s,c;const _=i.getCompilerOptions(),d=g(i.getTypeChecker(),!1);if(d)return d;const v=(c=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:c.getTypeChecker();return R.checkDefined(v&&g(v,!0),"Could not find symbol in specified module for code actions");function g(T,C){const L=xB(r,T,_);if(L&&mf(L.symbol,T)===e)return{symbol:L.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:L.exportKind,targetFlags:mf(e,T).flags,isFromPackageJson:C};const I=T.tryGetMemberInModuleExportsAndProperties(t,r);if(I&&mf(I,T)===e)return{symbol:I,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:mf(e,T).flags,isFromPackageJson:C}}}function xG(e,t,r,i,o,s,c,_,d=V2e(o.getTypeChecker(),s,o.getCompilerOptions()),v){const g=o.getTypeChecker(),T=ji(e,d.getImportsForExportInfo),C=t!==void 0&&WWe(T,t),L=zWe(T,r,g,o.getCompilerOptions());if(L)return{computedWithoutCacheCount:0,fixes:[...C?[C]:it,L]};const{fixes:I,computedWithoutCacheCount:M=0}=JWe(e,T,o,s,t,r,i,c,_,v);return{computedWithoutCacheCount:M,fixes:[...C?[C]:it,...I]}}function WWe(e,t){return qt(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;const s=HWe(r),c=s&&((o=dR(r))==null?void 0:o.text);if(c)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:c}})}function HWe(e){var t,r,i;switch(e.kind){case 257:return(t=li(e.name,We))==null?void 0:t.text;case 268:return e.name.text;case 269:return(i=li((r=e.importClause)==null?void 0:r.namedBindings,Zv))==null?void 0:i.name.text;default:return R.assertNever(e)}}function hte(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||BP(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function zWe(e,t,r,i){return qt(e,({declaration:o,importKind:s,symbol:c,targetFlags:_})=>{if(s===3||s===2||o.kind===268)return;if(o.kind===257)return(s===0||s===1)&&o.name.kind===203?{kind:2,importClauseOrBindingPattern:o.name,importKind:s,moduleSpecifier:o.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:d}=o;if(!d||!As(o.moduleSpecifier))return;const{name:v,namedBindings:g}=d;if(d.isTypeOnly&&!(s===0&&g))return;const T=hte(t,!1,c,_,r,i);if(!(s===1&&(v||T===2&&g))&&!(s===0&&(g==null?void 0:g.kind)===271))return{kind:2,importClauseOrBindingPattern:d,importKind:s,moduleSpecifier:o.moduleSpecifier.text,addAsTypeOnly:T}})}function V2e(e,t,r){let i;for(const o of t.imports){const s=fR(o);if(Wq(s.parent)){const c=e.resolveExternalModuleName(o);c&&(i||(i=v_())).add(To(c),s.parent)}else if(s.kind===269||s.kind===268){const c=e.getSymbolAtLocation(o);c&&(i||(i=v_())).add(To(c),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:c,symbol:_})=>{if(!(c&111551)&&ld(t))return it;const d=i==null?void 0:i.get(To(o));if(!d)return it;const v=gte(t,s,r);return d.map(g=>({declaration:g,importKind:v,symbol:_,targetFlags:c}))}}}function AG(e,t){if(!ld(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 uu(r)<5;for(const i of t.getSourceFiles())if(!(i===e||!ld(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function j2e(e,t){return Mm(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function qWe(e,t,r,i,o,s,c,_,d){const v=ld(t),g=e.getCompilerOptions(),T=Ex(e,c),C=j2e(e,c),L=El(g),I=YF(L),M=d?j=>({moduleSpecifiers:oE.tryGetModuleSpecifiersFromCache(j,t,T,_),computedWithoutCache:!1}):(j,H)=>oE.getModuleSpecifiersWithCacheInfo(j,H,g,t,T,_);let k=0;const U=ji(s,(j,H)=>{const ee=C(j.isFromPackageJson),{computedWithoutCache:X,moduleSpecifiers:ne}=M(j.moduleSymbol,ee),P=!!(j.targetFlags&111551),ue=hte(i,!0,j.symbol,j.targetFlags,ee,g);return k+=X?1:0,ua(ne,re=>{var be;if(I&&hx(re))return;if(!P&&v&&r!==void 0)return{kind:1,moduleSpecifier:re,usagePosition:r,exportInfo:j,isReExport:H>0};const ae=gte(t,j.exportKind,g);let z;if(r!==void 0&&ae===3&&j.exportKind===0){const ce=ee.resolveExternalModuleSymbol(j.moduleSymbol);let he;ce!==j.moduleSymbol&&(he=(be=AB(ce,ee,g))==null?void 0:be.name),he||(he=Ete(j.moduleSymbol,ns(g),!1)),z={namespacePrefix:he,usagePosition:r}}return{kind:3,moduleSpecifier:re,importKind:ae,useRequire:o,addAsTypeOnly:ue,exportInfo:j,isReExport:H>0,qualification:z}})});return{computedWithoutCacheCount:k,fixes:U}}function JWe(e,t,r,i,o,s,c,_,d,v){const g=qt(t,T=>KWe(T,s,c,r.getTypeChecker(),r.getCompilerOptions()));return g?{fixes:[g]}:qWe(r,i,o,s,c,e,_,d,v)}function KWe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,c,_){var d;const v=(d=dR(e))==null?void 0:d.text;if(v){const g=s?4:hte(o,!0,r,i,c,_);return{kind:3,moduleSpecifier:v,importKind:t,addAsTypeOnly:g,useRequire:s}}}function W2e(e,t,r,i){const o=la(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=QWe(e,o);else if(We(o))if(t===m._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const _=ZW(yte(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),d=J2e(e.sourceFile,o,_,e.program);return d&&[{fix:d,symbolName:_,errorIdentifierText:o.text}]}else s=tHe(e,o,i);else return;const c=Y4(e.sourceFile,e.preferences,e.host);return s&&XWe(s,e.sourceFile,e.program,c,e.host)}function XWe(e,t,r,i,o){const s=c=>Js(c,o.getCurrentDirectory(),_1(o));return MI(e,(c,_)=>Ab(!!c.isJsxNamespaceFix,!!_.isJsxNamespaceFix)||qs(c.fix.kind,_.fix.kind)||z2e(c.fix,_.fix,t,r,i.allowsImportingSpecifier,s))}function H2e(e,t,r,i,o){if(Dt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,c)=>z2e(c,s,t,r,i.allowsImportingSpecifier,_=>Js(_,o.getCurrentDirectory(),_1(o)))===-1?c:s)}function z2e(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?Ab(o(t.moduleSpecifier),o(e.moduleSpecifier))||$We(e.moduleSpecifier,t.moduleSpecifier,r,i)||Ab(q2e(e,r,i.getCompilerOptions(),s),q2e(t,r,i.getCompilerOptions(),s))||qR(e.moduleSpecifier,t.moduleSpecifier):0}function q2e(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&El(r)===2&&YWe(e.exportInfo.moduleFileName)){const s=i(vi(e.exportInfo.moduleFileName));return xa(t.path,s)}return!1}function YWe(e){return Eu(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function $We(e,t,r,i){return xa(e,"node:")&&!xa(t,"node:")?yB(r,i)?-1:1:xa(t,"node:")&&!xa(e,"node:")?yB(r,i)?1:-1:0}function QWe({sourceFile:e,program:t,host:r,preferences:i},o){const s=t.getTypeChecker(),c=ZWe(o,s);if(!c)return;const _=s.getAliasedSymbol(c),d=c.name,v=[{symbol:c,moduleSymbol:_,moduleFileName:void 0,exportKind:3,targetFlags:_.flags,isFromPackageJson:!1}],g=AG(e,t);return xG(v,void 0,!1,g,t,e,r,i).fixes.map(C=>{var L;return{fix:C,symbolName:d,errorIdentifierText:(L=li(o,We))==null?void 0:L.text}})}function ZWe(e,t){const r=We(e)?t.getSymbolAtLocation(e):void 0;if(OP(r))return r;const{parent:i}=e;if(sd(i)&&i.tagName===e||ux(i)){const o=t.resolveName(t.getJsxNamespace(i),sd(i)?e:i,111551,!1);if(OP(o))return o}}function gte(e,t,r,i){if(r.verbatimModuleSyntax&&(uu(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return iHe(e,r,!!i);case 3:return eHe(e,r,!!i);default:return R.assertNever(t)}}function eHe(e,t,r){if(jT(t))return 1;const i=uu(t);switch(i){case 2:case 1:case 3:return _r(e)&&(tc(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return R.assertNever(i,`Unexpected moduleKind ${i}`)}}function tHe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,c){const _=t.getTypeChecker(),d=t.getCompilerOptions();return ji(yte(e,_,s,d),v=>{if(v==="default")return;const g=qS(s),T=AG(e,t),C=rHe(v,hk(s),u2(s),r,e,t,c,i,o);return Oo(xp(C.values(),L=>xG(L,s.getStart(e),g,T,t,e,i,o).fixes),L=>({fix:L,symbolName:v,errorIdentifierText:s.text,isJsxNamespaceFix:v!==s.text}))})}function J2e(e,t,r,i){const o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;const c=o.getTypeOnlyAliasDeclaration(s);if(!(!c||Zn(c)!==e))return{kind:4,typeOnlyAliasDeclaration:c}}function yte(e,t,r,i){const o=r.parent;if((sd(o)||lx(o))&&o.tagName===r&&zZ(i.jsx)){const s=t.getJsxNamespace(e);if(nHe(s,r,t))return!xk(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function nHe(e,t,r){if(xk(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||Dt(i.declarations,Mb)&&!(i.flags&111551)}function rHe(e,t,r,i,o,s,c,_,d){var v;const g=v_(),T=Y4(o,d,_),C=(v=_.getModuleSpecifierCache)==null?void 0:v.call(_),L=Mm(M=>Ex(M?_.getPackageJsonAutoImportProvider():s,_));function I(M,k,U,j,H,ee){const X=L(ee);if(k&&XZ(H,o,k,d,T,X,C)||!k&&T.allowsImportingAmbientModule(M,X)){const ne=H.getTypeChecker();g.add(Abe(U,ne).toString(),{symbol:U,moduleSymbol:M,moduleFileName:k==null?void 0:k.fileName,exportKind:j,targetFlags:mf(U,ne).flags,isFromPackageJson:ee})}}return YZ(s,_,d,c,(M,k,U,j)=>{const H=U.getTypeChecker();i.throwIfCancellationRequested();const ee=U.getCompilerOptions(),X=xB(M,H,ee);X&&(X.name===e||Ete(M,ns(ee),t)===e)&&tSe(X.resolvedSymbol,r)&&I(M,k,X.symbol,X.exportKind,U,j);const ne=H.tryGetMemberInModuleExportsAndProperties(e,M);ne&&tSe(ne,r)&&I(M,k,ne,0,U,j)}),g}function iHe(e,t,r){const i=jT(t),o=_r(e);if(!o&&uu(t)>=5)return i?1:2;if(o)return tc(e)||r?i?1:2:3;for(const s of e.statements)if(fu(s)&&!kl(s.moduleReference))return 3;return i?1:3}function vte(e,t,r,i,o,s,c){let _;const d=vr.ChangeTracker.with(e,v=>{_=aHe(v,t,r,i,o,s,c)});return ao(Ste,d,_,xte,m.Add_all_missing_imports)}function aHe(e,t,r,i,o,s,c){const _=Np(t,c);switch(i.kind){case 0:return bte(e,t,i),[m.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return Y2e(e,t,i,_),[m.Change_0_to_1,r,$2e(i.moduleSpecifier,_)+r];case 2:{const{importClauseOrBindingPattern:d,importKind:v,addAsTypeOnly:g,moduleSpecifier:T}=i;X2e(e,t,d,v===1?{name:r,addAsTypeOnly:g}:void 0,v===0?[{name:r,addAsTypeOnly:g}]:it,s,c);const C=X_(T);return o?[m.Import_0_from_1,r,C]:[m.Update_import_from_0,C]}case 3:{const{importKind:d,moduleSpecifier:v,addAsTypeOnly:g,useRequire:T,qualification:C}=i,L=T?Z2e:Q2e,I=d===1?{name:r,addAsTypeOnly:g}:void 0,M=d===0?[{name:r,addAsTypeOnly:g}]:void 0,k=d===2||d===3?{importKind:d,name:(C==null?void 0:C.namespacePrefix)||r,addAsTypeOnly:g}:void 0;return nB(e,t,L(v,_,I,M,k,s),!0,c),C&&bte(e,t,C),o?[m.Import_0_from_1,r,v]:[m.Add_import_from_0,v]}case 4:{const{typeOnlyAliasDeclaration:d}=i,v=oHe(e,d,s,t,c);return v.kind===273?[m.Remove_type_from_import_of_0_from_1,r,K2e(v.parent.parent)]:[m.Remove_type_from_import_declaration_from_0,K2e(v)]}default:return R.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function K2e(e){var t,r;return e.kind===268?((r=li((t=li(e.moduleReference,Zm))==null?void 0:t.expression,As))==null?void 0:r.text)||e.moduleReference.getText():lo(e.parent.moduleSpecifier,Wo).text}function oHe(e,t,r,i,o){const s=BP(r);switch(t.kind){case 273:if(t.isTypeOnly){const _=ap.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&_){e.delete(i,t);const d=O.updateImportSpecifier(t,!1,t.propertyName,t.name),v=ap.getOrganizeImportsComparer(o,_===2),g=ap.getImportSpecifierInsertionIndex(t.parent.elements,d,v);e.insertImportSpecifierAtIndex(i,d,t.parent,g)}else e.deleteRange(i,t.getFirstToken());return t}else return R.assert(t.parent.parent.isTypeOnly),c(t.parent.parent),t.parent.parent;case 270:return c(t),t;case 271:return c(t.parent),t.parent;case 268:return e.deleteRange(i,t.getChildAt(1)),t;default:R.failBadSyntaxKind(t)}function c(_){if(e.delete(i,TZ(_,i)),s){const d=li(_.namedBindings,Fy);if(d&&d.elements.length>1){ap.detectImportSpecifierSorting(d.elements,o)&&t.kind===273&&d.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,d,0));for(const v of d.elements)v!==t&&!v.isTypeOnly&&e.insertModifierBefore(i,154,v)}}}}function X2e(e,t,r,i,o,s,c){var _;if(r.kind===203){i&&T(r,i.name,"default");for(const C of o)T(r,C.name,void 0);return}const d=r.isTypeOnly&&Dt([i,...o],C=>(C==null?void 0:C.addAsTypeOnly)===4),v=r.namedBindings&&((_=li(r.namedBindings,Fy))==null?void 0:_.elements),g=d&&BP(s);if(i&&(R.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),O.createIdentifier(i.name),{suffix:", "})),o.length){let C;if(typeof c.organizeImportsIgnoreCase=="boolean")C=c.organizeImportsIgnoreCase;else if(v){const k=ap.detectImportSpecifierSorting(v,c);k!==3&&(C=k===2)}C===void 0&&(C=ap.detectSorting(t,c)===2);const L=ap.getOrganizeImportsComparer(c,C),I=by(o.map(k=>O.createImportSpecifier((!r.isTypeOnly||d)&&fO(k),void 0,O.createIdentifier(k.name))),(k,U)=>ap.compareImportOrExportSpecifiers(k,U,L)),M=(v==null?void 0:v.length)&&ap.detectImportSpecifierSorting(v,c);if(M&&!(C&&M===1))for(const k of I){const U=g&&!k.isTypeOnly?0:ap.getImportSpecifierInsertionIndex(v,k,L);e.insertImportSpecifierAtIndex(t,k,r.namedBindings,U)}else if(v!=null&&v.length)for(const k of I)e.insertNodeInListAfter(t,Ko(v),k,v);else if(I.length){const k=O.createNamedImports(I);r.namedBindings?e.replaceNode(t,r.namedBindings,k):e.insertNodeAfter(t,R.checkDefined(r.name,"Import clause must have either named imports or a default import"),k)}}if(d&&(e.delete(t,TZ(r,t)),g&&v))for(const C of v)e.insertModifierBefore(t,154,C);function T(C,L,I){const M=O.createBindingElement(void 0,I,L);C.elements.length?e.insertNodeInListAfter(t,Ko(C.elements),M):e.replaceNode(t,C,O.createObjectBindingPattern([M]))}}function bte(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function Y2e(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,$2e(r,o))}function $2e(e,t){const r=_be(t);return`import(${r}${e}${r}).`}function fO({addAsTypeOnly:e}){return e===2}function Q2e(e,t,r,i,o,s){const c=$F(e,t);let _;if(r!==void 0||i!=null&&i.length){const d=(!r||fO(r))&&Qn(i,fO)||s.verbatimModuleSyntax&&(r==null?void 0:r.addAsTypeOnly)!==4&&!Dt(i,v=>v.addAsTypeOnly===4);_=GA(_,Hy(r&&O.createIdentifier(r.name),i==null?void 0:i.map(({addAsTypeOnly:v,name:g})=>O.createImportSpecifier(!d&&v===2,void 0,O.createIdentifier(g))),e,t,d))}if(o){const d=o.importKind===3?O.createImportEqualsDeclaration(void 0,fO(o),O.createIdentifier(o.name),O.createExternalModuleReference(c)):O.createImportDeclaration(void 0,O.createImportClause(fO(o),void 0,O.createNamespaceImport(O.createIdentifier(o.name))),c,void 0);_=GA(_,d)}return R.checkDefined(_)}function Z2e(e,t,r,i,o){const s=$F(e,t);let c;if(r||i!=null&&i.length){const _=(i==null?void 0:i.map(({name:v})=>O.createBindingElement(void 0,void 0,v)))||[];r&&_.unshift(O.createBindingElement(void 0,"default",r.name));const d=eSe(O.createObjectBindingPattern(_),s);c=GA(c,d)}if(o){const _=eSe(o.name,s);c=GA(c,_)}return R.checkDefined(c)}function eSe(e,t){return O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(typeof e=="string"?O.createIdentifier(e):e,void 0,void 0,O.createCallExpression(O.createIdentifier("require"),void 0,[t]))],2))}function tSe({declarations:e},t){return Dt(e,r=>!!(MN(r)&t))}function Ete(e,t,r){return Tte(zd(X_(e.name)),t,r)}function Tte(e,t,r){const i=Eu(UA(e,"/index"));let o="",s=!0;const c=i.charCodeAt(0);Ah(c,t)?(o+=String.fromCharCode(c),r&&(o=o.toUpperCase())):s=!1;for(let _=1;_<i.length;_++){const d=i.charCodeAt(_),v=a1(d,t);if(v){let g=String.fromCharCode(d);s||(g=g.toUpperCase()),o+=g}s=v}return PS(o)?`_${o}`:o||"_"}var Ste,xte,Ate,sHe=b({"src/services/codefixes/importFixes.ts"(){"use strict";Zr(),So(),Ste="import",xte="fixMissingImport",Ate=[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],ho({errorCodes:Ate,getCodeActions(e){const{errorCode:t,preferences:r,sourceFile:i,span:o,program:s}=e,c=W2e(e,t,o.start,!0);if(c)return c.map(({fix:_,symbolName:d,errorIdentifierText:v})=>vte(e,i,d,_,d!==v,s.getCompilerOptions(),r))},fixIds:[xte],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,c=F2e(t,r,!0,i,o,s);return kx(e,Ate,_=>c.addImportFromDiagnostic(_,e)),Ix(vr.ChangeTracker.with(e,c.writeFixes))}})}});function nSe(e,t,r){const i=$t(e.getSemanticDiagnostics(t),c=>c.start===r.start&&c.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=$t(i.relatedInformation,c=>c.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=Lne(o.file,Mc(o.start,o.length));if(s!==void 0&&(We(s)&&Ul(s.parent)&&(s=s.parent),Ul(s))){if(s4(s.parent))return;const c=la(t,r.start),_=e.getTypeChecker();return{constraint:cHe(_,c)||lHe(o.messageText),declaration:s,token:c}}}function rSe(e,t,r,i,o,s){const{declaration:c,constraint:_}=s,d=t.getTypeChecker();if(za(_))e.insertText(o,c.name.end,` extends ${_}`);else{const v=ns(t.getCompilerOptions()),g=Dx({program:t,host:i}),T=y2(o,t,r,i),C=lU(d,T,_,void 0,v,void 0,g);C&&(e.replaceNode(o,c,O.updateTypeParameterDeclaration(c,void 0,c.name,C,c.default)),T.writeFixes(e))}}function lHe(e){const[t,r]=i0(e,`
`,0).match(/`extends (.*)`/)||[];return r}function cHe(e,t){return Bi(t.parent)?e.getTypeArgumentConstraint(t.parent):(yt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var CG,Cte,uHe=b({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";Zr(),So(),CG="addMissingConstraint",Cte=[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],ho({errorCodes:Cte,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,c=nSe(i,t,r);if(c===void 0)return;const _=vr.ChangeTracker.with(e,d=>rSe(d,i,o,s,t,c));return[ao(CG,_,m.Add_extends_constraint,CG,m.Add_extends_constraint_to_all_type_parameters)]},fixIds:[CG],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,o=new Map;return Ix(vr.ChangeTracker.with(e,s=>{kx(e,Cte,c=>{const _=nSe(t,c.file,Mc(c.start,c.length));if(_&&Ip(o,hs(_.declaration)))return rSe(s,t,r,i,c.file,_)})}))}})}});function iSe(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 dHe(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 fHe(e,t.sourceFile,i);default:R.fail("Unexpected error code: "+r)}}function dHe(e,t,r){const i=oSe(t,r);if(ld(t)){e.addJSDocTags(t,i,[O.createJSDocOverrideTag(O.createIdentifier("override"))]);return}const o=i.modifiers||it,s=$t(o,QS),c=$t(o,nhe),_=$t(o,T=>_Z(T.kind)),d=yi(o,qu),v=c?c.end:s?s.end:_?_.end:d?Yo(t.text,d.end):i.getStart(t),g=_||s||c?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,v,161,g)}function fHe(e,t,r){const i=oSe(t,r);if(ld(t)){e.filterJSDocTags(t,i,q7(z5));return}const o=$t(i.modifiers,rhe);R.assertIsDefined(o),e.deleteModifier(t,o)}function aSe(e){switch(e.kind){case 173:case 169:case 171:case 174:case 175:return!0;case 166:return cf(e,e.parent);default:return!1}}function oSe(e,t){const r=la(e,t),i=rr(r,o=>_i(o)?"quit":aSe(o));return R.assert(i&&aSe(i)),i}var Lte,AL,i8,Ite,kte,_He=b({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";Zr(),So(),Lte="fixOverrideModifier",AL="fixAddOverrideModifier",i8="fixRemoveOverrideModifier",Ite=[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],kte={[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:AL,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:AL,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:i8,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:i8,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:AL,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:AL,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:AL,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:i8,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:i8,fixAllDescriptions:m.Remove_all_unnecessary_override_modifiers}},ho({errorCodes:Ite,getCodeActions:function(t){const{errorCode:r,span:i}=t,o=kte[r];if(!o)return it;const{descriptions:s,fixId:c,fixAllDescriptions:_}=o,d=vr.ChangeTracker.with(t,v=>iSe(v,t,r,i.start));return[Hee(Lte,d,s,c,_)]},fixIds:[Lte,AL,i8],getAllCodeActions:e=>Ls(e,Ite,(t,r)=>{const{code:i,start:o}=r,s=kte[i];!s||s.fixId!==e.fixId||iSe(t,e,i,o)})})}});function sSe(e,t,r,i){const o=Np(t,i),s=O.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,wM(r)?O.createElementAccessChain(r.expression,r.questionDotToken,s):O.createElementAccessExpression(r.expression,s))}function lSe(e,t){return lo(la(e,t).parent,Br)}var LG,wte,pHe=b({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";Zr(),So(),LG="fixNoPropertyAccessFromIndexSignature",wte=[m.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],ho({errorCodes:wte,fixIds:[LG],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,o=lSe(t,r.start),s=vr.ChangeTracker.with(e,c=>sSe(c,e.sourceFile,o,i));return[ao(LG,s,[m.Use_element_access_for_0,o.name.text],LG,m.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Ls(e,wte,(t,r)=>sSe(t,r.file,lSe(r.file,r.start),e.preferences))})}});function cSe(e,t,r,i){const o=la(t,r);if(!mL(o))return;const s=kd(o,!1,!1);if(!(!Sc(s)&&!Us(s))&&!Ki(kd(s,!1,!1))){const c=R.checkDefined(Es(s,98,t)),{name:_}=s,d=R.checkDefined(s.body);return Us(s)?_&&fl.Core.isSymbolReferencedInFile(_,i,t,d)?void 0:(e.delete(t,c),_&&e.delete(t,_),e.insertText(t,d.pos," =>"),[m.Convert_function_expression_0_to_arrow_function,_?_.text:SB]):(e.replaceNode(t,c,O.createToken(85)),e.insertText(t,_.end," = "),e.insertText(t,d.pos," =>"),[m.Convert_function_declaration_0_to_arrow_function,_.text])}}var IG,Dte,mHe=b({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";Zr(),So(),IG="fixImplicitThis",Dte=[m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],ho({errorCodes:Dte,getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t;let s;const c=vr.ChangeTracker.with(t,_=>{s=cSe(_,r,o.start,i.getTypeChecker())});return s?[ao(IG,c,s,IG,m.Fix_all_implicit_this_errors)]:it},fixIds:[IG],getAllCodeActions:e=>Ls(e,Dte,(t,r)=>{cSe(t,r.file,r.start,e.program.getTypeChecker())})})}});function uSe(e,t,r){var i;const o=la(e,t);if(We(o)){const s=rr(o,Yc);if(s===void 0)return;const c=Wo(s.moduleSpecifier)?s.moduleSpecifier.text:void 0;if(c===void 0)return;const _=tC(e,c,void 0);if(_===void 0)return;const d=r.getSourceFile(_.resolvedFileName);if(d===void 0||$4(r,d))return;const v=d.symbol,g=(i=li(v.valueDeclaration,Vm))==null?void 0:i.locals;if(g===void 0)return;const T=g.get(o.escapedText);if(T===void 0)return;const C=gHe(T);return C===void 0?void 0:{exportName:{node:o,isTypeOnly:RC(C)},node:C,moduleSourceFile:d,moduleSpecifier:c}}}function hHe(e,t,{exportName:r,node:i,moduleSourceFile:o}){const s=kG(o,r.isTypeOnly);s?dSe(e,t,o,s,[r]):$R(i)?e.insertExportModifier(o,i):fSe(e,t,o,[r])}function Rte(e,t,r,i,o){ge(i)&&(o?dSe(e,t,r,o,i):fSe(e,t,r,i))}function kG(e,t){const r=i=>au(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return yi(e.statements,r)}function dSe(e,t,r,i,o){const s=i.exportClause&&tp(i.exportClause)?i.exportClause.elements:O.createNodeArray([]),c=!i.isTypeOnly&&!!(Y_(t.getCompilerOptions())||$t(s,_=>_.isTypeOnly));e.replaceNode(r,i,O.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,O.createNamedExports(O.createNodeArray([...s,..._Se(o,c)],s.hasTrailingComma)),i.moduleSpecifier,i.assertClause))}function fSe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,O.createExportDeclaration(void 0,!1,O.createNamedExports(_Se(i,Y_(t.getCompilerOptions()))),void 0,void 0))}function _Se(e,t){return O.createNodeArray(Pt(e,r=>O.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function gHe(e){if(e.valueDeclaration===void 0)return tu(e.declarations);const t=e.valueDeclaration,r=$i(t)?li(t.parent.parent,pc):void 0;return r&&ge(r.declarationList.declarations)===1?r:t}var wG,Nte,yHe=b({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";Zr(),So(),wG="fixImportNonExportedMember",Nte=[m.Module_0_declares_1_locally_but_it_is_not_exported.code],ho({errorCodes:Nte,fixIds:[wG],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=uSe(t,r.start,i);if(o===void 0)return;const s=vr.ChangeTracker.with(e,c=>hHe(c,i,o));return[ao(wG,s,[m.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],wG,m.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return Ix(vr.ChangeTracker.with(e,r=>{const i=new Map;kx(e,Nte,o=>{const s=uSe(o.file,o.start,t);if(s===void 0)return;const{exportName:c,node:_,moduleSourceFile:d}=s;if(kG(d,c.isTypeOnly)===void 0&&$R(_))r.insertExportModifier(d,_);else{const v=i.get(d)||{typeOnlyExports:[],exports:[]};c.isTypeOnly?v.typeOnlyExports.push(c):v.exports.push(c),i.set(d,v)}}),i.forEach((o,s)=>{const c=kG(s,!0);c&&c.isTypeOnly?(Rte(r,t,s,o.typeOnlyExports,c),Rte(r,t,s,o.exports,kG(s,!1))):Rte(r,t,s,[...o.exports,...o.typeOnlyExports],c)})}))}})}});function vHe(e,t){const r=la(e,t);return rr(r,i=>i.kind===199)}function bHe(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===187||i.kind===188||i.kind===193;)i.kind===187?o=!0:i.kind===188&&(s=!0),i=i.type;const c=O.updateNamedTupleMember(r,r.dotDotDotToken||(s?O.createToken(25):void 0),r.name,r.questionToken||(o?O.createToken(57):void 0),i);c!==r&&e.replaceNode(t,r,c)}var DG,pSe,EHe=b({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";Zr(),So(),DG="fixIncorrectNamedTupleSyntax",pSe=[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],ho({errorCodes:pSe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=vHe(r,i.start),s=vr.ChangeTracker.with(t,c=>bHe(c,r,o));return[ao(DG,s,m.Move_labeled_tuple_element_modifiers_to_labels,DG,m.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[DG]})}});function mSe(e,t,r,i){const o=la(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)&&!fm(s))return;const c=r.program.getTypeChecker();let _;if(Br(s)&&s.name===o){R.assert(gg(o),"Expected an identifier for spelling (property access)");let d=c.getTypeAtLocation(s.expression);s.flags&32&&(d=c.getNonNullableType(d)),_=c.getSuggestedSymbolForNonexistentProperty(o,d)}else if(Tr(s)&&s.operatorToken.kind===101&&s.left===o&&Ri(o)){const d=c.getTypeAtLocation(s.right);_=c.getSuggestedSymbolForNonexistentProperty(o,d)}else if(Rd(s)&&s.right===o){const d=c.getSymbolAtLocation(s.left);d&&d.flags&1536&&(_=c.getSuggestedSymbolForNonexistentModule(s.right,d))}else if(Nd(s)&&s.name===o){R.assertNode(o,We,"Expected an identifier for spelling (import)");const d=rr(o,Yc),v=SHe(e,r,d);v&&v.symbol&&(_=c.getSuggestedSymbolForNonexistentModule(o,v.symbol))}else if(fm(s)&&s.name===o){R.assertNode(o,We,"Expected an identifier for JSX attribute");const d=rr(o,sd),v=c.getContextualTypeForArgumentAtIndex(d,0);_=c.getSuggestedSymbolForNonexistentJSXAttribute(o,v)}else if(Qr(s,16384)&&qc(s)&&s.name===o){const d=rr(o,_i),v=d?am(d):void 0,g=v?c.getTypeAtLocation(v):void 0;g&&(_=c.getSuggestedSymbolForNonexistentClassMember(kc(o),g))}else{const d=u2(o),v=kc(o);R.assert(v!==void 0,"name should be defined"),_=c.getSuggestedSymbolForNonexistentSymbol(o,v,THe(d))}return _===void 0?void 0:{node:o,suggestedSymbol:_}}function hSe(e,t,r,i,o){const s=Gl(i);if(!W_(s,o)&&Br(r.parent)){const c=i.valueDeclaration;c&&Su(c)&&Ri(c.name)?e.replaceNode(t,r,O.createIdentifier(s)):e.replaceNode(t,r.parent,O.createElementAccessExpression(r.parent.expression,O.createStringLiteral(s)))}else e.replaceNode(t,r,O.createIdentifier(s))}function THe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function SHe(e,t,r){if(!r||!As(r.moduleSpecifier))return;const i=tC(e,r.moduleSpecifier.text,Dp(e,r.moduleSpecifier));if(i)return t.program.getSourceFile(i.resolvedFileName)}var Ote,Mte,xHe=b({"src/services/codefixes/fixSpelling.ts"(){"use strict";Zr(),So(),Ote="fixSpelling",Mte=[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],ho({errorCodes:Mte,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=mSe(t,e.span.start,e,r);if(!i)return;const{node:o,suggestedSymbol:s}=i,c=ns(e.host.getCompilationSettings()),_=vr.ChangeTracker.with(e,d=>hSe(d,t,o,s,c));return[ao("spelling",_,[m.Change_spelling_to_0,Gl(s)],Ote,m.Fix_all_detected_spelling_errors)]},fixIds:[Ote],getAllCodeActions:e=>Ls(e,Mte,(t,r)=>{const i=mSe(r.file,r.start,e,r.code),o=ns(e.host.getCompilationSettings());i&&hSe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function gSe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const o=uo([i]);return e.createAnonymousType(void 0,o,[],[],[])}function Pte(e,t,r,i){if(!t.body||!fo(t.body)||ge(t.body.statements)!==1)return;const o=ds(t.body.statements);if(du(o)&&Fte(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(eE(o)&&du(o.statement)){const s=O.createObjectLiteralExpression([O.createPropertyAssignment(o.label,o.statement.expression)]),c=gSe(e,o.label,o.statement.expression);if(Fte(e,t,c,r,i))return Xs(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(fo(o)&&ge(o.statements)===1){const s=ds(o.statements);if(eE(s)&&du(s.statement)){const c=O.createObjectLiteralExpression([O.createPropertyAssignment(s.label,s.statement.expression)]),_=gSe(e,s.label,s.statement.expression);if(Fte(e,t,_,r,i))return{declaration:t,kind:0,expression:c,statement:o,commentSource:s}}}}function Fte(e,t,r,i,o){if(o){const s=e.getSignatureFromDeclaration(t);if(s){Qr(t,512)&&(r=e.createPromiseType(r));const c=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,uo(),[c],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function ySe(e,t,r,i){const o=la(t,r);if(!o.parent)return;const s=rr(o.parent,el);switch(i){case m.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!gf(s.type,o)?void 0:Pte(e,s,e.getTypeFromTypeNode(s.type),!1);case m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!io(s.parent)||!s.body)return;const c=s.parent.arguments.indexOf(s),_=e.getContextualTypeForArgumentAtIndex(s.parent,c);return _?Pte(e,s,_,!0):void 0;case m.Type_0_is_not_assignable_to_type_1.code:if(!xg(o)||!sC(o.parent)&&!fm(o.parent))return;const d=AHe(o.parent);return!d||!el(d)||!d.body?void 0:Pte(e,d,e.getTypeAtLocation(o.parent),!0)}}function AHe(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:return e.initializer;case 288:return e.initializer&&(d4(e.initializer)?e.initializer.expression:void 0);case 300:case 168:case 302:case 351:case 344:return}}function vSe(e,t,r,i){Yd(r);const o=cB(t);e.replaceNode(t,i,O.createReturnStatement(r),{leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function bSe(e,t,r,i,o,s){const c=s||OZ(i)?O.createParenthesizedExpression(i):i;Yd(o),p2(o,c),e.replaceNode(t,r.body,c)}function ESe(e,t,r,i){e.replaceNode(t,r.body,O.createParenthesizedExpression(i))}function CHe(e,t,r){const i=vr.ChangeTracker.with(e,o=>vSe(o,e.sourceFile,t,r));return ao(RG,i,m.Add_a_return_statement,NG,m.Add_all_missing_return_statement)}function LHe(e,t,r,i){const o=vr.ChangeTracker.with(e,s=>bSe(s,e.sourceFile,t,r,i,!1));return ao(RG,o,m.Remove_braces_from_arrow_function_body,OG,m.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function IHe(e,t,r){const i=vr.ChangeTracker.with(e,o=>ESe(o,e.sourceFile,t,r));return ao(RG,i,m.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,MG,m.Wrap_all_object_literal_with_parentheses)}var RG,NG,OG,MG,Bte,kHe=b({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";Zr(),So(),RG="returnValueCorrect",NG="fixAddReturnStatement",OG="fixRemoveBracesFromArrowFunctionBody",MG="fixWrapTheBlockWithParen",Bte=[m.A_function_whose_declared_type_is_neither_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],ho({errorCodes:Bte,fixIds:[NG,OG,MG],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,c=ySe(r.getTypeChecker(),i,o,s);if(c)return c.kind===0?Pn([CHe(t,c.expression,c.statement)],Xs(c.declaration)?LHe(t,c.declaration,c.expression,c.commentSource):void 0):[IHe(t,c.declaration,c.expression)]},getAllCodeActions:e=>Ls(e,Bte,(t,r)=>{const i=ySe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case NG:vSe(t,r.file,i.expression,i.statement);break;case OG:if(!Xs(i.declaration))return;bSe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case MG:if(!Xs(i.declaration))return;ESe(t,r.file,i.declaration,i.expression);break;default:R.fail(JSON.stringify(e.fixId))}})})}});function TSe(e,t,r,i,o){var s;const c=la(e,t),_=c.parent;if(r===m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(c.kind===18&&Is(_)&&io(_.parent)))return;const L=ii(_.parent.arguments,U=>U===_);if(L<0)return;const I=i.getResolvedSignature(_.parent);if(!(I&&I.declaration&&I.parameters[L]))return;const M=I.parameters[L].valueDeclaration;if(!(M&&Ba(M)&&We(M.name)))return;const k=Oo(i.getUnmatchedProperties(i.getTypeAtLocation(_),i.getParameterType(I,L),!1,!1));return ge(k)?{kind:3,token:M.name,properties:k,parentDeclaration:_}:void 0}if(!gg(c))return;if(We(c)&&Wv(_)&&_.initializer&&Is(_.initializer)){const L=Oo(i.getUnmatchedProperties(i.getTypeAtLocation(_.initializer),i.getTypeAtLocation(c),!1,!1));return ge(L)?{kind:3,token:c,properties:L,parentDeclaration:_.initializer}:void 0}if(We(c)&&sd(c.parent)){const L=ns(o.getCompilerOptions()),I=PHe(i,L,c.parent);return ge(I)?{kind:4,token:c,attributes:I,parentDeclaration:c.parent}:void 0}if(We(c)){const L=(s=i.getContextualType(c))==null?void 0:s.getNonNullableType();if(L&&ni(L)&16){const I=tu(i.getSignaturesOfType(L,0));return I===void 0?void 0:{kind:5,token:c,signature:I,sourceFile:e,parentDeclaration:NSe(c)}}if(io(_)&&_.expression===c)return{kind:2,token:c,call:_,sourceFile:e,modifierFlags:0,parentDeclaration:NSe(c)}}if(!Br(_))return;const d=yZ(i.getTypeAtLocation(_.expression)),v=d.symbol;if(!v||!v.declarations)return;if(We(c)&&io(_.parent)){const L=$t(v.declarations,Xl),I=L==null?void 0:L.getSourceFile();if(L&&I&&!$4(o,I))return{kind:2,token:c,call:_.parent,sourceFile:e,modifierFlags:1,parentDeclaration:L};const M=$t(v.declarations,Ki);if(e.commonJsModuleIndicator)return;if(M&&!$4(o,M))return{kind:2,token:c,call:_.parent,sourceFile:M,modifierFlags:1,parentDeclaration:M}}const g=$t(v.declarations,_i);if(!g&&Ri(c))return;const T=g||$t(v.declarations,L=>dd(L)||hf(L));if(T&&!$4(o,T.getSourceFile())){const L=!hf(T)&&(d.target||d)!==i.getDeclaredTypeOfSymbol(v);if(L&&(Ri(c)||dd(T)))return;const I=T.getSourceFile(),M=hf(T)?0:(L?32:0)|(HZ(c.text)?8:0),k=ld(I),U=li(_.parent,io);return{kind:0,token:c,call:U,modifierFlags:M,parentDeclaration:T,declSourceFile:I,isJSFile:k}}const C=$t(v.declarations,b1);if(C&&!(d.flags&1056)&&!Ri(c)&&!$4(o,C.getSourceFile()))return{kind:1,token:c,parentDeclaration:C}}function wHe(e,t){return t.isJSFile?hT(DHe(e,t)):RHe(e,t)}function DHe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(dd(t)||hf(t))return;const s=vr.ChangeTracker.with(e,_=>SSe(_,r,t,o,!!(i&32)));if(s.length===0)return;const c=i&32?m.Initialize_static_property_0:Ri(o)?m.Declare_a_private_field_named_0:m.Initialize_property_0_in_the_constructor;return ao(zy,s,[c,o.text],zy,m.Add_all_missing_members)}function SSe(e,t,r,i,o){const s=i.text;if(o){if(r.kind===228)return;const c=r.name.getText(),_=xSe(O.createIdentifier(c),s);e.insertNodeAfter(t,r,_)}else if(Ri(i)){const c=O.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),_=LSe(r);_?e.insertNodeAfter(t,_,c):e.insertMemberAtStart(t,r,c)}else{const c=Dh(r);if(!c)return;const _=xSe(O.createThis(),s);e.insertNodeAtConstructorEnd(t,c,_)}}function xSe(e,t){return O.createExpressionStatement(O.createAssignment(O.createPropertyAccessExpression(e,t),v2()))}function RHe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){const s=o.text,c=i&32,_=ASe(e.program.getTypeChecker(),t,o),d=g=>vr.ChangeTracker.with(e,T=>CSe(T,r,t,s,_,g)),v=[ao(zy,d(i&32),[c?m.Declare_static_property_0:m.Declare_property_0,s],zy,m.Add_all_missing_members)];return c||Ri(o)||(i&8&&v.unshift(Op(zy,d(8),[m.Declare_private_property_0,s])),v.push(NHe(e,r,t,o.text,_))),v}function ASe(e,t,r){let i;if(r.parent.parent.kind===223){const o=r.parent.parent,s=r.parent===o.left?o.right:o.left,c=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(c,t,1)}else{const o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||O.createKeywordTypeNode(131)}function CSe(e,t,r,i,o,s){const c=s?O.createNodeArray(O.createModifiersFromModifierFlags(s)):void 0,_=_i(r)?O.createPropertyDeclaration(c,i,void 0,o,void 0):O.createPropertySignature(void 0,i,void 0,o),d=LSe(r);d?e.insertNodeAfter(t,d,_):e.insertMemberAtStart(t,r,_)}function LSe(e){let t;for(const r of e.members){if(!ro(r))break;t=r}return t}function NHe(e,t,r,i,o){const s=O.createKeywordTypeNode(152),c=O.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),_=O.createIndexSignature(void 0,[c],o),d=vr.ChangeTracker.with(e,v=>v.insertMemberAtStart(t,r,_));return Op(zy,d,[m.Add_index_signature_for_property_0,i])}function OHe(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:c}=t;if(c===void 0||Ri(s))return;const _=s.text,d=g=>vr.ChangeTracker.with(e,T=>ISe(e,T,c,s,g,r,i)),v=[ao(zy,d(o&32),[o&32?m.Declare_static_method_0:m.Declare_method_0,_],zy,m.Add_all_missing_members)];return o&8&&v.unshift(Op(zy,d(8),[m.Declare_private_method_0,_])),v}function ISe(e,t,r,i,o,s,c){const _=y2(c,e.program,e.preferences,e.host),d=_i(s)?171:170,v=Ene(d,e,_,r,i,o,s),g=FHe(s,r);g?t.insertNodeAfter(c,g,v):t.insertMemberAtStart(c,s,v),_.writeFixes(t)}function kSe(e,t,{token:r,parentDeclaration:i}){const o=Dt(i.members,c=>{const _=t.getTypeAtLocation(c);return!!(_&&_.flags&402653316)}),s=O.createEnumMember(r,o?O.createStringLiteral(r.text):void 0);e.replaceNode(i.getSourceFile(),i,O.updateEnumDeclaration(i,i.modifiers,i.name,ba(i.members,hT(s))),{leadingTriviaOption:vr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:vr.TrailingTriviaOption.Exclude})}function wSe(e,t,r){const i=Np(t.sourceFile,t.preferences),o=y2(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?Ene(259,t,o,r.call,Pr(r.token),r.modifierFlags,r.parentDeclaration):sU(259,t,i,r.signature,vO(m.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&R.fail("fixMissingFunctionDeclaration codefix got unexpected error."),kp(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function DSe(e,t,r){const i=y2(t.sourceFile,t.program,t.preferences,t.host),o=Np(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),c=r.parentDeclaration.attributes,_=Dt(c.properties,XT),d=Pt(r.attributes,T=>{const C=PG(t,s,i,o,s.getTypeOfSymbol(T),r.parentDeclaration),L=O.createIdentifier(T.name),I=O.createJsxAttribute(L,O.createJsxExpression(void 0,C));return jo(L,I),I}),v=O.createJsxAttributes(_?[...d,...c.properties]:[...c.properties,...d]),g={prefix:c.pos===c.end?" ":void 0};e.replaceNode(t.sourceFile,c,v,g),i.writeFixes(e)}function RSe(e,t,r){const i=y2(t.sourceFile,t.program,t.preferences,t.host),o=Np(t.sourceFile,t.preferences),s=ns(t.program.getCompilerOptions()),c=t.program.getTypeChecker(),_=Pt(r.properties,v=>{const g=PG(t,c,i,o,c.getTypeOfSymbol(v),r.parentDeclaration);return O.createPropertyAssignment(BHe(v,s,o,c),g)}),d={leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,O.createObjectLiteralExpression([...r.parentDeclaration.properties,..._],!0),d),i.writeFixes(e)}function PG(e,t,r,i,o,s){if(o.flags&3)return v2();if(o.flags&134217732)return O.createStringLiteral("",i===0);if(o.flags&8)return O.createNumericLiteral(0);if(o.flags&64)return O.createBigIntLiteral("0n");if(o.flags&16)return O.createFalse();if(o.flags&1056){const c=o.symbol.exports?B7(o.symbol.exports.values()):o.symbol,_=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,void 0);return c===void 0||_===void 0?O.createNumericLiteral(0):O.createPropertyAccessExpression(_,t.symbolToString(c))}if(o.flags&256)return O.createNumericLiteral(o.value);if(o.flags&2048)return O.createBigIntLiteral(o.value);if(o.flags&128)return O.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?O.createFalse():O.createTrue();if(o.flags&65536)return O.createNull();if(o.flags&1048576){const c=qt(o.types,_=>PG(e,t,r,i,_,s));return c!=null?c:v2()}if(t.isArrayLikeType(o))return O.createArrayLiteralExpression();if(MHe(o)){const c=Pt(t.getPropertiesOfType(o),_=>{const d=PG(e,t,r,i,t.getTypeOfSymbol(_),s);return O.createPropertyAssignment(_.name,d)});return O.createObjectLiteralExpression(c,!0)}if(ni(o)&16){if($t(o.symbol.declarations||it,Pm(Ph,Mh,sc))===void 0)return v2();const _=t.getSignaturesOfType(o,0);if(_===void 0)return v2();const d=sU(215,e,i,_[0],vO(m.Function_not_implemented.message,i),void 0,void 0,void 0,s,r);return d!=null?d:v2()}if(ni(o)&1){const c=Cg(o.symbol);if(c===void 0||Jb(c))return v2();const _=Dh(c);return _&&ge(_.parameters)?v2():O.createNewExpression(O.createIdentifier(o.symbol.name),void 0,void 0)}return v2()}function v2(){return O.createIdentifier("undefined")}function MHe(e){return e.flags&524288&&(ni(e)&128||e.symbol&&li(Nm(e.symbol.declarations),hf))}function PHe(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return it;const o=i.getProperties();if(!ge(o))return it;const s=new Set;for(const c of r.attributes.properties)if(fm(c)&&s.add(c.name.escapedText),XT(c)){const _=e.getTypeAtLocation(c.expression);for(const d of _.getProperties())s.add(d.escapedName)}return ur(o,c=>W_(c.name,t,1)&&!(c.flags&16777216||Dl(c)&48||s.has(c.escapedName)))}function FHe(e,t){if(hf(e))return;const r=rr(t,i=>sc(i)||Kl(i));return r&&r.parent===e?r:void 0}function BHe(e,t,r,i){if(jm(e)){const o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&Cs(o))return o}return XP(e.name,t,r===0)}function NSe(e){if(rr(e,d4)){const t=rr(e.parent,kp);if(t)return t}return Zn(e)}var zy,_O,pO,mO,Gte,GHe=b({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";Zr(),So(),zy="fixMissingMember",_O="fixMissingProperties",pO="fixMissingAttributes",mO="fixMissingFunctionDeclaration",Gte=[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],ho({errorCodes:Gte,getCodeActions(e){const t=e.program.getTypeChecker(),r=TSe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){const i=vr.ChangeTracker.with(e,o=>RSe(o,e,r));return[ao(_O,i,m.Add_missing_properties,_O,m.Add_all_missing_properties)]}if(r.kind===4){const i=vr.ChangeTracker.with(e,o=>DSe(o,e,r));return[ao(pO,i,m.Add_missing_attributes,pO,m.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=vr.ChangeTracker.with(e,o=>wSe(o,e,r));return[ao(mO,i,[m.Add_missing_function_declaration_0,r.token.text],mO,m.Add_all_missing_function_declarations)]}if(r.kind===1){const i=vr.ChangeTracker.with(e,o=>kSe(o,e.program.getTypeChecker(),r));return[ao(zy,i,[m.Add_missing_enum_member_0,r.token.text],zy,m.Add_all_missing_members)]}return ba(OHe(e,r),wHe(e,r))}},fixIds:[zy,mO,_O,pO],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return Ix(vr.ChangeTracker.with(e,c=>{kx(e,Gte,_=>{const d=TSe(_.file,_.start,_.code,i,e.program);if(!(!d||!Ip(o,hs(d.parentDeclaration)+"#"+d.token.text))){if(r===mO&&(d.kind===2||d.kind===5))wSe(c,e,d);else if(r===_O&&d.kind===3)RSe(c,e,d);else if(r===pO&&d.kind===4)DSe(c,e,d);else if(d.kind===1&&kSe(c,i,d),d.kind===0){const{parentDeclaration:v,token:g}=d,T=Eb(s,v,()=>[]);T.some(C=>C.token.text===g.text)||T.push(d)}}}),s.forEach((_,d)=>{const v=hf(d)?void 0:kne(d,i);for(const g of _){if(v!=null&&v.some(U=>{const j=s.get(U);return!!j&&j.some(({token:H})=>H.text===g.token.text)}))continue;const{parentDeclaration:T,declSourceFile:C,modifierFlags:L,token:I,call:M,isJSFile:k}=g;if(M&&!Ri(I))ISe(e,c,M,I,L&32,T,C);else if(k&&!dd(T)&&!hf(T))SSe(c,C,T,I,!!(L&32));else{const U=ASe(i,T,I);CSe(c,C,T,I.text,U,L&32)}}})}))}})}});function OSe(e,t,r){const i=lo(UHe(t,r),io),o=O.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function UHe(e,t){let r=la(e,t.start);const i=cu(t);for(;r.end<i;)r=r.parent;return r}var FG,Ute,VHe=b({"src/services/codefixes/fixAddMissingNewOperator.ts"(){"use strict";Zr(),So(),FG="addMissingNewOperator",Ute=[m.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],ho({errorCodes:Ute,getCodeActions(e){const{sourceFile:t,span:r}=e,i=vr.ChangeTracker.with(e,o=>OSe(o,t,r));return[ao(FG,i,m.Add_missing_new_operator_to_call,FG,m.Add_missing_new_operator_to_all_calls)]},fixIds:[FG],getAllCodeActions:e=>Ls(e,Ute,(t,r)=>OSe(t,e.sourceFile,r))})}});function MSe(e,t){return{type:"install package",file:e,packageName:t}}function PSe(e,t){const r=li(la(e,t),Wo);if(!r)return;const i=r.text,{packageName:o}=_Y(i);return zc(o)?void 0:o}function FSe(e,t,r){var i;return r===Vte?c2.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?D9(e):void 0}var BSe,BG,Vte,jte,jHe=b({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";Zr(),So(),BSe="fixCannotFindModule",BG="installTypesPackage",Vte=m.Cannot_find_module_0_or_its_corresponding_type_declarations.code,jte=[Vte,m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],ho({errorCodes:jte,getCodeActions:function(t){const{host:r,sourceFile:i,span:{start:o}}=t,s=PSe(i,o);if(s===void 0)return;const c=FSe(s,r,t.errorCode);return c===void 0?[]:[ao(BSe,[],[m.Install_0,c],BG,m.Install_all_missing_types_packages,MSe(i.fileName,c))]},fixIds:[BG],getAllCodeActions:e=>Ls(e,jte,(t,r,i)=>{const o=PSe(r.file,r.start);if(o!==void 0)switch(e.fixId){case BG:{const s=FSe(o,e.host,r.code);s&&i.push(MSe(r.file.fileName,s));break}default:R.fail(`Bad fixId: ${e.fixId}`)}})})}});function GSe(e,t){const r=la(e,t);return lo(r.parent,_i)}function USe(e,t,r,i,o){const s=am(e),c=r.program.getTypeChecker(),_=c.getTypeAtLocation(s),d=c.getPropertiesOfType(_).filter(WHe),v=y2(t,r.program,o,r.host);bne(e,d,t,r,o,v,g=>i.insertMemberAtStart(t,e,g)),v.writeFixes(i)}function WHe(e){const t=Jv(ds(e.getDeclarations()));return!(t&8)&&!!(t&256)}var Wte,GG,HHe=b({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";Zr(),So(),Wte=[m.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,m.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],GG="fixClassDoesntImplementInheritedAbstractMember",ho({errorCodes:Wte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=vr.ChangeTracker.with(t,s=>USe(GSe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[ao(GG,o,m.Implement_inherited_abstract_class,GG,m.Implement_all_inherited_abstract_classes)]},fixIds:[GG],getAllCodeActions:function(t){const r=new Map;return Ls(t,Wte,(i,o)=>{const s=GSe(o.file,o.start);Ip(r,hs(s))&&USe(s,t.sourceFile,t,i,t.preferences)})}})}});function VSe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function jSe(e,t){const r=la(e,t);if(r.kind!==108)return;const i=Nf(r),o=WSe(i.body);return o&&!o.expression.arguments.some(s=>Br(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function WSe(e){return du(e)&&aC(e.expression)?e:Ya(e)?void 0:Pa(e,WSe)}var UG,Hte,zHe=b({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";Zr(),So(),UG="classSuperMustPrecedeThisAccess",Hte=[m.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],ho({errorCodes:Hte,getCodeActions(e){const{sourceFile:t,span:r}=e,i=jSe(t,r.start);if(!i)return;const{constructor:o,superCall:s}=i,c=vr.ChangeTracker.with(e,_=>VSe(_,t,o,s));return[ao(UG,c,m.Make_super_call_the_first_statement_in_the_constructor,UG,m.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[UG],getAllCodeActions(e){const{sourceFile:t}=e,r=new Map;return Ls(e,Hte,(i,o)=>{const s=jSe(o.file,o.start);if(!s)return;const{constructor:c,superCall:_}=s;Ip(r,hs(c.parent))&&VSe(i,t,c,_)})}})}});function HSe(e,t){const r=la(e,t);return R.assert(Kl(r.parent),"token should be at the constructor declaration"),r.parent}function zSe(e,t,r){const i=O.createExpressionStatement(O.createCallExpression(O.createSuper(),void 0,it));e.insertNodeAtConstructorStart(t,r,i)}var VG,zte,qHe=b({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";Zr(),So(),VG="constructorForDerivedNeedSuperCall",zte=[m.Constructors_for_derived_classes_must_contain_a_super_call.code],ho({errorCodes:zte,getCodeActions(e){const{sourceFile:t,span:r}=e,i=HSe(t,r.start),o=vr.ChangeTracker.with(e,s=>zSe(s,t,i));return[ao(VG,o,m.Add_missing_super_call,VG,m.Add_all_missing_super_calls)]},fixIds:[VG],getAllCodeActions:e=>Ls(e,zte,(t,r)=>zSe(t,e.sourceFile,HSe(r.file,r.start)))})}});function qSe(e,t){Ane(e,t,"jsx",O.createStringLiteral("react"))}var qte,Jte,JHe=b({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";Zr(),So(),qte="fixEnableJsxFlag",Jte=[m.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],ho({errorCodes:Jte,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=vr.ChangeTracker.with(t,o=>qSe(o,r));return[Op(qte,i,m.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[qte],getAllCodeActions:e=>Ls(e,Jte,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&qSe(t,r)})})}});function JSe(e,t,r){const i=$t(e.getSemanticDiagnostics(t),c=>c.start===r.start&&c.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=$t(i.relatedInformation,c=>c.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=Lne(o.file,Mc(o.start,o.length));if(s!==void 0&&yt(s)&&Tr(s.parent))return{suggestion:KHe(o.messageText),expression:s.parent,arg:s}}function KSe(e,t,r,i){const o=O.createCallExpression(O.createPropertyAccessExpression(O.createIdentifier("Number"),O.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===37||s===35?O.createPrefixUnaryExpression(53,o):o)}function KHe(e){const[t,r]=i0(e,`
`,0).match(/\'(.*)\'/)||[];return r}var jG,Kte,XHe=b({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";Zr(),So(),jG="fixNaNEquality",Kte=[m.This_condition_will_always_return_0.code],ho({errorCodes:Kte,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=JSe(i,t,r);if(o===void 0)return;const{suggestion:s,expression:c,arg:_}=o,d=vr.ChangeTracker.with(e,v=>KSe(v,t,_,c));return[ao(jG,d,[m.Use_0,s],jG,m.Use_Number_isNaN_in_all_conditions)]},fixIds:[jG],getAllCodeActions:e=>Ls(e,Kte,(t,r)=>{const i=JSe(e.program,r.file,Mc(r.start,r.length));i&&KSe(t,r.file,i.arg,i.expression)})})}}),YHe=b({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";Zr(),So(),ho({errorCodes:[m.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_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_or_nodenext_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=uu(r);if(s>=5&&s<99){const v=vr.ChangeTracker.with(t,g=>{Ane(g,i,"module",O.createStringLiteral("esnext"))});o.push(Op("fixModuleOption",v,[m.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const _=ns(r);if(_<4||_>99){const v=vr.ChangeTracker.with(t,g=>{if(!pk(i))return;const C=[["target",O.createStringLiteral("es2017")]];s===1&&C.push(["module",O.createStringLiteral("commonjs")]),xne(g,i,C)});o.push(Op("fixTargetOption",v,[m.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function XSe(e,t,r){e.replaceNode(t,r,O.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function YSe(e,t){return lo(la(e,t).parent,l_)}var WG,Xte,$He=b({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";Zr(),So(),WG="fixPropertyAssignment",Xte=[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],ho({errorCodes:Xte,fixIds:[WG],getCodeActions(e){const{sourceFile:t,span:r}=e,i=YSe(t,r.start),o=vr.ChangeTracker.with(e,s=>XSe(s,e.sourceFile,i));return[ao(WG,o,[m.Change_0_to_1,"=",":"],WG,[m.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Ls(e,Xte,(t,r)=>XSe(t,r.file,YSe(r.file,r.start)))})}});function $Se(e,t){const r=la(e,t),i=wc(r).heritageClauses,o=i[0].getFirstToken();return o.kind===94?{extendsToken:o,heritageClauses:i}:void 0}function QSe(e,t,r,i){if(e.replaceNode(t,r,O.createToken(117)),i.length===2&&i[0].token===94&&i[1].token===117){const o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},O.createToken(27));const c=t.text;let _=o.end;for(;_<c.length&&Gm(c.charCodeAt(_));)_++;e.deleteRange(t,{pos:o.getStart(),end:_})}}var HG,Yte,QHe=b({"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"(){"use strict";Zr(),So(),HG="extendsInterfaceBecomesImplements",Yte=[m.Cannot_extend_an_interface_0_Did_you_mean_implements.code],ho({errorCodes:Yte,getCodeActions(e){const{sourceFile:t}=e,r=$Se(t,e.span.start);if(!r)return;const{extendsToken:i,heritageClauses:o}=r,s=vr.ChangeTracker.with(e,c=>QSe(c,t,i,o));return[ao(HG,s,m.Change_extends_to_implements,HG,m.Change_all_extended_interfaces_to_implements)]},fixIds:[HG],getAllCodeActions:e=>Ls(e,Yte,(t,r)=>{const i=$Se(r.file,r.start);i&&QSe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function ZSe(e,t,r){const i=la(e,t);if(We(i)||Ri(i))return{node:i,className:r===$te?wc(i).name.text:void 0}}function exe(e,t,{node:r,className:i}){Yd(r),e.replaceNode(t,r,O.createPropertyAccessExpression(i?O.createIdentifier(i):O.createThis(),r))}var zG,$te,Qte,ZHe=b({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";Zr(),So(),zG="forgottenThisPropertyAccess",$te=m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Qte=[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,$te],ho({errorCodes:Qte,getCodeActions(e){const{sourceFile:t}=e,r=ZSe(t,e.span.start,e.errorCode);if(!r)return;const i=vr.ChangeTracker.with(e,o=>exe(o,t,r));return[ao(zG,i,[m.Add_0_to_unresolved_variable,r.className||"this"],zG,m.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[zG],getAllCodeActions:e=>Ls(e,Qte,(t,r)=>{const i=ZSe(r.file,r.start,r.code);i&&exe(t,e.sourceFile,i)})})}});function eze(e){return Fs(tne,e)}function Zte(e,t,r,i,o){const s=r.getText()[i];if(!eze(s))return;const c=o?tne[s]:`{${K4(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},c)}var qG,hO,ene,tne,tze=b({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";Zr(),So(),qG="fixInvalidJsxCharacters_expression",hO="fixInvalidJsxCharacters_htmlEntity",ene=[m.Unexpected_token_Did_you_mean_or_gt.code,m.Unexpected_token_Did_you_mean_or_rbrace.code],ho({errorCodes:ene,fixIds:[qG,hO],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,o=vr.ChangeTracker.with(e,c=>Zte(c,r,t,i.start,!1)),s=vr.ChangeTracker.with(e,c=>Zte(c,r,t,i.start,!0));return[ao(qG,o,m.Wrap_invalid_character_in_an_expression_container,qG,m.Wrap_all_invalid_characters_in_an_expression_container),ao(hO,s,m.Convert_invalid_character_to_its_html_entity_code,hO,m.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Ls(e,ene,(t,r)=>Zte(t,e.preferences,r.file,r.start,e.fixId===hO))}}),tne={">":"&gt;","}":"&rbrace;"}}});function nze(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const o=vr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,c=>c!==i));return ao(gO,o,[m.Delete_unused_param_tag_0,t.getText(e.sourceFile)],gO,m.Delete_all_unused_param_tags)}function rze(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!ge(i.parameters))return;const s=e.sourceFile,c=Nb(i),_=new Set;for(const T of c)_m(T)&&We(T.name)&&_.add(T.name.escapedText);const d=qt(i.parameters,T=>We(T.name)&&!_.has(T.name.escapedText)?T.name.getText(s):void 0);if(d===void 0)return;const v=O.updateJSDocParameterTag(o,o.tagName,O.createIdentifier(d),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),g=vr.ChangeTracker.with(e,T=>T.replaceJSDocComment(s,r,Pt(c,C=>C===o?v:C)));return Op(nne,g,[m.Rename_param_tag_name_0_to_1,t.getText(s),d])}function txe(e,t){const r=la(e,t);if(r.parent&&_m(r.parent)&&We(r.parent.name)){const i=r.parent,o=MS(i),s=d1(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var gO,nne,rne,ize=b({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";Zr(),So(),gO="deleteUnmatchedParameter",nne="renameUnmatchedParameter",rne=[m.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],ho({fixIds:[gO,nne],errorCodes:rne,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=[],s=txe(r,i.start);if(s)return Pn(o,nze(t,s)),Pn(o,rze(t,s)),o},getAllCodeActions:function(t){const r=new Map;return Ix(vr.ChangeTracker.with(t,i=>{kx(t,rne,({file:o,start:s})=>{const c=txe(o,s);c&&r.set(c.signature,Pn(r.get(c.signature),c.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===gO){const c=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,_=>!c.has(_))}})}))}})}});function aze(e,t,r){const i=li(la(e,r),We);if(!i||i.parent.kind!==180)return;const s=t.getTypeChecker().getSymbolAtLocation(i);return $t((s==null?void 0:s.declarations)||it,Pm(Qm,Nd,fu))}function oze(e,t,r,i){if(r.kind===268){e.insertModifierBefore(t,154,r.name);return}const o=r.kind===270?r:r.parent.parent;if(o.name&&o.namedBindings)return;const s=i.getTypeChecker();vP(o,_=>{if(mf(_.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,154,o)}function sze(e,t,r,i){v8.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var JG,nxe,lze=b({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";Zr(),So(),JG="fixUnreferenceableDecoratorMetadata",nxe=[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],ho({errorCodes:nxe,getCodeActions:e=>{const t=aze(e.sourceFile,e.program,e.span.start);if(!t)return;const r=vr.ChangeTracker.with(e,s=>t.kind===273&&sze(s,e.sourceFile,t,e.program)),i=vr.ChangeTracker.with(e,s=>oze(s,e.sourceFile,t,e.program));let o;return r.length&&(o=Pn(o,Op(JG,r,m.Convert_named_imports_to_namespace_import))),i.length&&(o=Pn(o,Op(JG,i,m.Convert_to_type_only_import))),o},fixIds:[JG]})}});function rxe(e,t,r){e.replaceNode(t,r.parent,O.createKeywordTypeNode(157))}function a8(e,t){return ao(o8,e,t,YG,m.Delete_all_unused_declarations)}function ixe(e,t,r){e.delete(t,R.checkDefined(lo(r.parent,wq).typeParameters,"The type parameter to delete should exist"))}function ine(e){return e.kind===100||e.kind===79&&(e.parent.kind===273||e.parent.kind===270)}function axe(e){return e.kind===100?li(e.parent,Yc):void 0}function oxe(e,t){return Xu(t.parent)&&ds(t.parent.getChildren(e))===t}function sxe(e,t,r){e.delete(t,r.parent.kind===240?r.parent:r)}function cze(e,t,r){Ie(r.elements,i=>e.delete(t,i))}function lxe(e,t,r,i){t!==m.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===138&&(i=lo(i.parent,jC).typeParameter.name),We(i)&&uze(i)&&(e.replaceNode(r,i,O.createIdentifier(`_${i.text}`)),Ba(i.parent)&&QI(i.parent).forEach(o=>{We(o.name)&&e.replaceNode(r,o.name,O.createIdentifier(`_${o.name.text}`))})))}function uze(e){switch(e.parent.kind){case 166:case 165:return!0;case 257:switch(e.parent.parent.parent.kind){case 247:case 246:return!0}}return!1}function KG(e,t,r,i,o,s,c,_){dze(t,r,e,i,o,s,c,_),We(t)&&fl.Core.eachSymbolReferenceInFile(t,i,e,d=>{Br(d.parent)&&d.parent.name===d&&(d=d.parent),!_&&mze(d)&&r.delete(e,d.parent.parent)})}function dze(e,t,r,i,o,s,c,_){const{parent:d}=e;if(Ba(d))fze(t,r,d,i,o,s,c,_);else if(!(_&&We(e)&&fl.Core.isSymbolReferencedInFile(e,i,r))){const v=Qm(d)?e:Cs(d)?d.parent:d;R.assert(v!==r,"should not delete whole source file"),t.delete(r,v)}}function fze(e,t,r,i,o,s,c,_=!1){if(_ze(i,t,r,o,s,c,_))if(r.modifiers&&r.modifiers.length>0&&(!We(r.name)||fl.Core.isSymbolReferencedInFile(r.name,i,t)))for(const d of r.modifiers)po(d)&&e.deleteModifier(t,d);else!r.initializer&&cxe(r,i,o)&&e.delete(t,r)}function cxe(e,t,r){const i=e.parent.parameters.indexOf(e);return!fl.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function _ze(e,t,r,i,o,s,c){const{parent:_}=r;switch(_.kind){case 171:case 173:const d=_.parameters.indexOf(r),v=sc(_)?_.name:_,g=fl.Core.getReferencedSymbolsForNode(_.pos,v,o,i,s);if(g){for(const T of g)for(const C of T.references)if(C.kind===fl.EntryKind.Node){const L=n4(C.node)&&io(C.node.parent)&&C.node.parent.arguments.length>d,I=Br(C.node.parent)&&n4(C.node.parent.expression)&&io(C.node.parent.parent)&&C.node.parent.parent.arguments.length>d,M=(sc(C.node.parent)||Mh(C.node.parent))&&C.node.parent!==r.parent&&C.node.parent.parameters.length>d;if(L||I||M)return!1}}return!0;case 259:return _.name&&pze(e,t,_.name)?uxe(_,r,c):!0;case 215:case 216:return uxe(_,r,c);case 175:return!1;case 174:return!0;default:return R.failBadSyntaxKind(_)}}function pze(e,t,r){return!!fl.Core.eachSymbolReferenceInFile(r,e,t,i=>We(i)&&io(i.parent)&&i.parent.arguments.indexOf(i)>=0)}function uxe(e,t,r){const i=e.parameters,o=i.indexOf(t);return R.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>We(s.name)&&!s.symbol.isReferenced):o===i.length-1}function mze(e){return(Tr(e.parent)&&e.parent.left===e||(KK(e.parent)||Qv(e.parent))&&e.parent.operand===e)&&du(e.parent.parent)}var o8,XG,YG,yO,$G,ane,hze=b({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";Zr(),So(),o8="unusedIdentifier",XG="unusedIdentifier_prefix",YG="unusedIdentifier_delete",yO="unusedIdentifier_deleteImports",$G="unusedIdentifier_infer",ane=[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],ho({errorCodes:ane,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),c=i.getSourceFiles(),_=la(r,e.span.start);if(wp(_))return[a8(vr.ChangeTracker.with(e,T=>T.delete(r,_)),m.Remove_template_tag)];if(_.kind===29){const T=vr.ChangeTracker.with(e,C=>ixe(C,r,_));return[a8(T,m.Remove_type_parameters)]}const d=axe(_);if(d){const T=vr.ChangeTracker.with(e,C=>C.delete(r,d));return[ao(o8,T,[m.Remove_import_from_0,Npe(d)],yO,m.Delete_all_unused_imports)]}else if(ine(_)){const T=vr.ChangeTracker.with(e,C=>KG(r,_,C,s,c,i,o,!1));if(T.length)return[ao(o8,T,[m.Remove_unused_declaration_for_Colon_0,_.getText(r)],yO,m.Delete_all_unused_imports)]}if($m(_.parent)||WC(_.parent)){if(Ba(_.parent.parent)){const T=_.parent.elements,C=[T.length>1?m.Remove_unused_declarations_for_Colon_0:m.Remove_unused_declaration_for_Colon_0,Pt(T,L=>L.getText(r)).join(", ")];return[a8(vr.ChangeTracker.with(e,L=>cze(L,r,_.parent)),C)]}return[a8(vr.ChangeTracker.with(e,T=>T.delete(r,_.parent.parent)),m.Remove_unused_destructuring_declaration)]}if(oxe(r,_))return[a8(vr.ChangeTracker.with(e,T=>sxe(T,r,_.parent)),m.Remove_variable_statement)];const v=[];if(_.kind===138){const T=vr.ChangeTracker.with(e,L=>rxe(L,r,_)),C=lo(_.parent,jC).typeParameter.name.text;v.push(ao(o8,T,[m.Replace_infer_0_with_unknown,C],$G,m.Replace_all_unused_infer_with_unknown))}else{const T=vr.ChangeTracker.with(e,C=>KG(r,_,C,s,c,i,o,!1));if(T.length){const C=Cs(_.parent)?_.parent:_;v.push(a8(T,[m.Remove_unused_declaration_for_Colon_0,C.getText(r)]))}}const g=vr.ChangeTracker.with(e,T=>lxe(T,t,r,_));return g.length&&v.push(ao(o8,g,[m.Prefix_0_with_an_underscore,_.getText(r)],XG,m.Prefix_all_unused_declarations_with_where_possible)),v},fixIds:[XG,YG,yO,$G],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return Ls(e,ane,(c,_)=>{const d=la(t,_.start);switch(e.fixId){case XG:lxe(c,_.code,t,d);break;case yO:{const v=axe(d);v?c.delete(t,v):ine(d)&&KG(t,d,c,o,s,r,i,!0);break}case YG:{if(d.kind===138||ine(d))break;if(wp(d))c.delete(t,d);else if(d.kind===29)ixe(c,t,d);else if($m(d.parent)){if(d.parent.parent.initializer)break;(!Ba(d.parent.parent)||cxe(d.parent.parent,o,s))&&c.delete(t,d.parent.parent)}else{if(WC(d.parent.parent)&&d.parent.parent.parent.initializer)break;oxe(t,d)?sxe(c,t,d.parent):KG(t,d,c,o,s,r,i,!0)}break}case $G:d.kind===138&&rxe(c,t,d);break;default:R.fail(JSON.stringify(e.fixId))}})}})}});function dxe(e,t,r,i,o){const s=la(t,r),c=rr(s,wa);if(c.getStart(t)!==s.getStart(t)){const d=JSON.stringify({statementKind:R.formatSyntaxKind(c.kind),tokenKind:R.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});R.fail("Token and statement should start at the same point. "+d)}const _=(fo(c.parent)?c.parent:c).parent;if(!fo(c.parent)||c===ds(c.parent.statements))switch(_.kind){case 242:if(_.elseStatement){if(fo(c.parent))break;e.replaceNode(t,c,O.createBlock(it));return}case 244:case 245:e.delete(t,_);return}if(fo(c.parent)){const d=r+i,v=R.checkDefined(gze(XJ(c.parent.statements,c),g=>g.pos<d),"Some statement should be last");e.deleteNodeRange(t,c,v)}else e.delete(t,c)}function gze(e,t){let r;for(const i of e){if(!t(i))break;r=i}return r}var QG,one,yze=b({"src/services/codefixes/fixUnreachableCode.ts"(){"use strict";Zr(),So(),QG="fixUnreachableCode",one=[m.Unreachable_code_detected.code],ho({errorCodes:one,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const r=vr.ChangeTracker.with(e,i=>dxe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[ao(QG,r,m.Remove_unreachable_code,QG,m.Remove_all_unreachable_code)]},fixIds:[QG],getAllCodeActions:e=>Ls(e,one,(t,r)=>dxe(t,r.file,r.start,r.length,r.code))})}});function fxe(e,t,r){const i=la(t,r),o=lo(i.parent,eE),s=i.getStart(t),c=o.statement.getStart(t),_=x_(s,c,t)?c:Yo(t.text,Es(o,58,t).end,!0);e.deleteRange(t,{pos:s,end:_})}var ZG,sne,vze=b({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";Zr(),So(),ZG="fixUnusedLabel",sne=[m.Unused_label.code],ho({errorCodes:sne,getCodeActions(e){const t=vr.ChangeTracker.with(e,r=>fxe(r,e.sourceFile,e.span.start));return[ao(ZG,t,m.Remove_unused_label,ZG,m.Remove_all_unused_labels)]},fixIds:[ZG],getAllCodeActions:e=>Ls(e,sne,(t,r)=>fxe(t,r.file,r.start))})}});function _xe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function pxe(e,t,r){const i=rr(la(e,t),bze),o=i&&i.type;return o&&{typeNode:o,type:Eze(r,o)}}function bze(e){switch(e.kind){case 231:case 176:case 177:case 259:case 174:case 178:case 197:case 171:case 170:case 166:case 169:case 168:case 175:case 262:case 213:case 257:return!0;default:return!1}}function Eze(e,t){if(KC(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Pn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var lne,eU,cne,Tze=b({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";Zr(),So(),lne="fixJSDocTypes_plain",eU="fixJSDocTypes_nullable",cne=[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],ho({errorCodes:cne,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=pxe(t,e.span.start,r);if(!i)return;const{typeNode:o,type:s}=i,c=o.getText(t),_=[d(s,lne,m.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===317&&_.push(d(s,eU,m.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),_;function d(v,g,T){const C=vr.ChangeTracker.with(e,L=>_xe(L,t,o,v,r));return ao("jdocTypes",C,[m.Change_0_to_1,c,r.typeToString(v)],g,T)}},fixIds:[lne,eU],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return Ls(e,cne,(s,c)=>{const _=pxe(c.file,c.start,o);if(!_)return;const{typeNode:d,type:v}=_,g=d.kind===317&&t===eU?o.getNullableType(v,32768):v;_xe(s,i,d,g,o)})}})}});function mxe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function hxe(e,t){const r=la(e,t);if(Br(r.parent)){let i=r.parent;for(;Br(i.parent);)i=i.parent;return i.name}if(We(r))return r}var tU,une,Sze=b({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";Zr(),So(),tU="fixMissingCallParentheses",une=[m.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],ho({errorCodes:une,fixIds:[tU],getCodeActions(e){const{sourceFile:t,span:r}=e,i=hxe(t,r.start);if(!i)return;const o=vr.ChangeTracker.with(e,s=>mxe(s,e.sourceFile,i));return[ao(tU,o,m.Add_missing_call_parentheses,tU,m.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Ls(e,une,(t,r)=>{const i=hxe(r.file,r.start);i&&mxe(t,r.file,i)})})}});function xze(e){if(e.type)return e.type;if($i(e.parent)&&e.parent.type&&Ph(e.parent.type))return e.parent.type.type}function gxe(e,t){const r=la(e,t),i=Nf(r);if(!i)return;let o;switch(i.kind){case 171:o=i.name;break;case 259:case 215:o=Es(i,98,e);break;case 216:const s=i.typeParameters?29:20;o=Es(i,s,e)||ds(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:xze(i)}}function yxe(e,t,{insertBefore:r,returnType:i}){if(i){const o=ZD(i);(!o||o.kind!==79||o.text!=="Promise")&&e.replaceNode(t,i,O.createTypeReferenceNode("Promise",O.createNodeArray([i])))}e.insertModifierBefore(t,132,r)}var nU,dne,Aze=b({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";Zr(),So(),nU="fixAwaitInSyncFunction",dne=[m.await_expressions_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],ho({errorCodes:dne,getCodeActions(e){const{sourceFile:t,span:r}=e,i=gxe(t,r.start);if(!i)return;const o=vr.ChangeTracker.with(e,s=>yxe(s,t,i));return[ao(nU,o,m.Add_async_modifier_to_containing_function,nU,m.Add_all_missing_async_modifiers)]},fixIds:[nU],getAllCodeActions:function(t){const r=new Map;return Ls(t,dne,(i,o)=>{const s=gxe(o.file,o.start);!s||!Ip(r,hs(s.insertBefore))||yxe(i,t.sourceFile,s)})}})}});function vxe(e,t,r,i,o){let s,c;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,c=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 _=o.program.getTypeChecker(),d=la(e,t).parent;R.assert(s1(d),"error span of fixPropertyOverrideAccessor should only be on an accessor");const v=d.parent;R.assert(_i(v),"erroneous accessors should only be inside classes");const g=Nm(kne(v,_));if(!g)return[];const T=ia(rC(d.name)),C=_.getPropertyOfType(_.getTypeAtLocation(g),T);if(!C||!C.valueDeclaration)return[];s=C.valueDeclaration.pos,c=C.valueDeclaration.end,e=Zn(C.valueDeclaration)}else R.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return Oxe(e,o.program,s,c,o,m.Generate_get_and_set_accessors.message)}var fne,rU,Cze=b({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";Zr(),So(),fne=[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],rU="fixPropertyOverrideAccessor",ho({errorCodes:fne,getCodeActions(e){const t=vxe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[ao(rU,t,m.Generate_get_and_set_accessors,rU,m.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[rU],getAllCodeActions:e=>Ls(e,fne,(t,r)=>{const i=vxe(r.file,r.start,r.length,r.code,e);if(i)for(const o of i)t.pushRaw(e.sourceFile,o)})})}});function Lze(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 s_(Nf(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 Ize(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 bxe(e,t,r,i,o,s,c,_,d){if(!ik(r.kind)&&r.kind!==79&&r.kind!==25&&r.kind!==108)return;const{parent:v}=r,g=y2(t,o,d,_);switch(i=Ize(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($i(v)&&c(v)||ro(v)||Mf(v))return Exe(e,g,t,v,o,_,s),g.writeFixes(e),v;if(Br(v)){const L=s8(v.name,o,s),I=X4(L,v,o,_);if(I){const M=O.createJSDocTypeTag(void 0,O.createJSDocTypeExpression(I),void 0);e.addJSDocTags(t,lo(v.parent.parent,du),[M])}return g.writeFixes(e),v}return;case m.Variable_0_implicitly_has_an_1_type.code:{const L=o.getTypeChecker().getSymbolAtLocation(r);return L&&L.valueDeclaration&&$i(L.valueDeclaration)&&c(L.valueDeclaration)?(Exe(e,g,Zn(L.valueDeclaration),L.valueDeclaration,o,_,s),g.writeFixes(e),L.valueDeclaration):void 0}}const T=Nf(r);if(T===void 0)return;let C;switch(i){case m.Parameter_0_implicitly_has_an_1_type.code:if(s_(T)){Txe(e,g,t,T,o,_,s),C=T;break}case m.Rest_parameter_0_implicitly_has_an_any_type.code:if(c(T)){const L=lo(v,Ba);kze(e,g,t,L,T,o,_,s),C=L}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:Z_(T)&&We(T.name)&&(iU(e,g,t,T,s8(T.name,o,s),o,_),C=T);break;case m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:s_(T)&&(Txe(e,g,t,T,o,_,s),C=T);break;case m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:vr.isThisTypeAnnotatable(T)&&c(T)&&(wze(e,t,T,o,_,s),C=T);break;default:return R.fail(String(i))}return g.writeFixes(e),C}function Exe(e,t,r,i,o,s,c){We(i.name)&&iU(e,t,r,i,s8(i.name,o,c),o,s)}function kze(e,t,r,i,o,s,c,_){if(!We(i.name))return;const d=Nze(o,r,s,_);if(R.assert(o.parameters.length===d.length,"Parameter count and inference count should match"),_r(o))Sxe(e,r,d,s,c);else{const v=Xs(o)&&!Es(o,20,r);v&&e.insertNodeBefore(r,ds(o.parameters),O.createToken(20));for(const{declaration:g,type:T}of d)g&&!g.type&&!g.initializer&&iU(e,t,r,g,T,s,c);v&&e.insertNodeAfter(r,Ko(o.parameters),O.createToken(21))}}function wze(e,t,r,i,o,s){const c=xxe(r,t,i,s);if(!c||!c.length)return;const _=pne(i,c,s).thisParameter(),d=X4(_,r,i,o);d&&(_r(r)?Dze(e,t,r,d):e.tryInsertThisTypeAnnotation(t,r,d))}function Dze(e,t,r,i){e.addJSDocTags(t,r,[O.createJSDocThisTag(void 0,O.createJSDocTypeExpression(i))])}function Txe(e,t,r,i,o,s,c){const _=tu(i.parameters);if(_&&We(i.name)&&We(_.name)){let d=s8(i.name,o,c);d===o.getTypeChecker().getAnyType()&&(d=s8(_.name,o,c)),_r(i)?Sxe(e,r,[{declaration:_,type:d}],o,s):iU(e,t,r,_,d,o,s)}}function iU(e,t,r,i,o,s,c){const _=X4(o,i,s,c);if(_)if(_r(r)&&i.kind!==168){const d=$i(i)?li(i.parent.parent,pc):i;if(!d)return;const v=O.createJSDocTypeExpression(_),g=Z_(i)?O.createJSDocReturnTag(void 0,v,void 0):O.createJSDocTypeTag(void 0,v,void 0);e.addJSDocTags(r,d,[g])}else Rze(_,i,r,e,t,ns(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,_)}function Rze(e,t,r,i,o,s){const c=b2(e,s);return c&&i.tryInsertTypeAnnotation(r,t,c.typeNode)?(Ie(c.symbols,_=>o.addImportFromExportedSymbol(_,!0)),!0):!1}function Sxe(e,t,r,i,o){const s=r.length&&r[0].declaration.parent;if(!s)return;const c=ua(r,_=>{const d=_.declaration;if(d.initializer||Bv(d)||!We(d.name))return;const v=_.type&&X4(_.type,d,i,o);if(v){const g=O.cloneNode(d.name);return sr(g,7168),{name:O.cloneNode(d.name),param:d,isOptional:!!_.isOptional,typeNode:v}}});if(c.length)if(Xs(s)||Us(s)){const _=Xs(s)&&!Es(s,20,t);_&&e.insertNodeBefore(t,ds(s.parameters),O.createToken(20)),Ie(c,({typeNode:d,param:v})=>{const g=O.createJSDocTypeTag(void 0,O.createJSDocTypeExpression(d)),T=O.createJSDocComment(void 0,[g]);e.insertNodeAt(t,v.getStart(t),T,{suffix:" "})}),_&&e.insertNodeAfter(t,Ko(s.parameters),O.createToken(21))}else{const _=Pt(c,({name:d,typeNode:v,isOptional:g})=>O.createJSDocParameterTag(void 0,d,!!g,O.createJSDocTypeExpression(v),!1,void 0));e.addJSDocTags(t,s,_)}}function _ne(e,t,r){return ua(fl.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==fl.EntryKind.Span?li(i.node,We):void 0)}function s8(e,t,r){const i=_ne(e,t,r);return pne(t,i,r).single()}function Nze(e,t,r,i){const o=xxe(e,t,r,i);return o&&pne(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:We(s.name)?s8(s.name,r,i):r.getTypeChecker().getAnyType()}))}function xxe(e,t,r,i){let o;switch(e.kind){case 173:o=Es(e,135,t);break;case 216:case 215:const s=e.parent;o=($i(s)||ro(s))&&We(s.name)?s.name:e.name;break;case 259:case 171:case 170:o=e.name;break}if(o)return _ne(o,r,i)}function pne(e,t,r){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Fe=>i.createArrayType(Fe),Promise:Fe=>i.createPromiseType(Fe)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:d,parameters:v,thisParameter:g};function c(){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 _(Fe){const Be=new Map;for(const ze of Fe)ze.properties&&ze.properties.forEach((Ge,lt)=>{Be.has(lt)||Be.set(lt,[]),Be.get(lt).push(Ge)});const $e=new Map;return Be.forEach((ze,Ge)=>{$e.set(Ge,_(ze))}),{isNumber:Fe.some(ze=>ze.isNumber),isString:Fe.some(ze=>ze.isString),isNumberOrString:Fe.some(ze=>ze.isNumberOrString),candidateTypes:ji(Fe,ze=>ze.candidateTypes),properties:$e,calls:ji(Fe,ze=>ze.calls),constructs:ji(Fe,ze=>ze.constructs),numberIndex:Ie(Fe,ze=>ze.numberIndex),stringIndex:Ie(Fe,ze=>ze.stringIndex),candidateThisTypes:ji(Fe,ze=>ze.candidateThisTypes),inferredTypes:void 0}}function d(){return re(T(t))}function v(Fe){if(t.length===0||!Fe.parameters)return;const Be=c();for(const ze of t)r.throwIfCancellationRequested(),C(ze,Be);const $e=[...Be.constructs||[],...Be.calls||[]];return Fe.parameters.map((ze,Ge)=>{const lt=[],Ct=Lh(ze);let bt=!1;for(const nt of $e)if(nt.argumentTypes.length<=Ge)bt=_r(Fe),lt.push(i.getUndefinedType());else if(Ct)for(let ot=Ge;ot<nt.argumentTypes.length;ot++)lt.push(i.getBaseTypeOfLiteralType(nt.argumentTypes[ot]));else lt.push(i.getBaseTypeOfLiteralType(nt.argumentTypes[Ge]));if(We(ze.name)){const nt=T(_ne(ze.name,e,r));lt.push(...Ct?ua(nt,i.getElementTypeOfArrayType):nt)}const zt=re(lt);return{type:Ct?i.createArrayType(zt):zt,isOptional:bt&&!Ct,declaration:ze}})}function g(){const Fe=c();for(const Be of t)r.throwIfCancellationRequested(),C(Be,Fe);return re(Fe.candidateThisTypes||it)}function T(Fe){const Be=c();for(const $e of Fe)r.throwIfCancellationRequested(),C($e,Be);return ae(Be)}function C(Fe,Be){for(;Dk(Fe);)Fe=Fe.parent;switch(Fe.parent.kind){case 241:I(Fe,Be);break;case 222:Be.isNumber=!0;break;case 221:M(Fe.parent,Be);break;case 223:k(Fe,Fe.parent,Be);break;case 292:case 293:U(Fe.parent,Be);break;case 210:case 211:Fe.parent.expression===Fe?j(Fe.parent,Be):L(Fe,Be);break;case 208:H(Fe.parent,Be);break;case 209:ee(Fe.parent,Fe,Be);break;case 299:case 300:X(Fe.parent,Be);break;case 169:ne(Fe.parent,Be);break;case 257:{const{name:$e,initializer:ze}=Fe.parent;if(Fe===$e){ze&&Ue(Be,i.getTypeAtLocation(ze));break}}default:return L(Fe,Be)}}function L(Fe,Be){Tg(Fe)&&Ue(Be,i.getContextualType(Fe))}function I(Fe,Be){Ue(Be,io(Fe)?i.getVoidType():i.getAnyType())}function M(Fe,Be){switch(Fe.operator){case 45:case 46:case 40:case 54:Be.isNumber=!0;break;case 39:Be.isNumberOrString=!0;break}}function k(Fe,Be,$e){switch(Be.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:const ze=i.getTypeAtLocation(Be.left===Fe?Be.right:Be.left);ze.flags&1056?Ue($e,ze):$e.isNumber=!0;break;case 64:case 39:const Ge=i.getTypeAtLocation(Be.left===Fe?Be.right:Be.left);Ge.flags&1056?Ue($e,Ge):Ge.flags&296?$e.isNumber=!0:Ge.flags&402653316?$e.isString=!0:Ge.flags&1||($e.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:Ue($e,i.getTypeAtLocation(Be.left===Fe?Be.right:Be.left));break;case 101:Fe===Be.left&&($e.isString=!0);break;case 56:case 60:Fe===Be.left&&(Fe.parent.parent.kind===257||cd(Fe.parent.parent,!0))&&Ue($e,i.getTypeAtLocation(Be.right));break;case 55:case 27:case 102:break}}function U(Fe,Be){Ue(Be,i.getTypeAtLocation(Fe.parent.parent.expression))}function j(Fe,Be){const $e={argumentTypes:[],return_:c()};if(Fe.arguments)for(const ze of Fe.arguments)$e.argumentTypes.push(i.getTypeAtLocation(ze));C(Fe,$e.return_),Fe.kind===210?(Be.calls||(Be.calls=[])).push($e):(Be.constructs||(Be.constructs=[])).push($e)}function H(Fe,Be){const $e=cl(Fe.name.text);Be.properties||(Be.properties=new Map);const ze=Be.properties.get($e)||c();C(Fe,ze),Be.properties.set($e,ze)}function ee(Fe,Be,$e){if(Be===Fe.argumentExpression){$e.isNumberOrString=!0;return}else{const ze=i.getTypeAtLocation(Fe.argumentExpression),Ge=c();C(Fe,Ge),ze.flags&296?$e.numberIndex=Ge:$e.stringIndex=Ge}}function X(Fe,Be){const $e=$i(Fe.parent.parent)?Fe.parent.parent:Fe.parent;Je(Be,i.getTypeAtLocation($e))}function ne(Fe,Be){Je(Be,i.getTypeAtLocation(Fe.parent))}function P(Fe,Be){const $e=[];for(const ze of Fe)for(const{high:Ge,low:lt}of Be)Ge(ze)&&(R.assert(!lt(ze),"Priority can't have both low and high"),$e.push(lt));return Fe.filter(ze=>$e.every(Ge=>!Ge(ze)))}function ue(Fe){return re(ae(Fe))}function re(Fe){if(!Fe.length)return i.getAnyType();const Be=i.getUnionType([i.getStringType(),i.getNumberType()]);let ze=P(Fe,[{high:lt=>lt===i.getStringType()||lt===i.getNumberType(),low:lt=>lt===Be},{high:lt=>!(lt.flags&16385),low:lt=>!!(lt.flags&16385)},{high:lt=>!(lt.flags&114689)&&!(ni(lt)&16),low:lt=>!!(ni(lt)&16)}]);const Ge=ze.filter(lt=>ni(lt)&16);return Ge.length&&(ze=ze.filter(lt=>!(ni(lt)&16)),ze.push(be(Ge))),i.getWidenedType(i.getUnionType(ze.map(i.getBaseTypeOfLiteralType),2))}function be(Fe){if(Fe.length===1)return Fe[0];const Be=[],$e=[],ze=[],Ge=[];let lt=!1,Ct=!1;const bt=v_();for(const ot of Fe){for(const gn of i.getPropertiesOfType(ot))bt.add(gn.name,gn.valueDeclaration?i.getTypeOfSymbolAtLocation(gn,gn.valueDeclaration):i.getAnyType());Be.push(...i.getSignaturesOfType(ot,0)),$e.push(...i.getSignaturesOfType(ot,1));const sn=i.getIndexInfoOfType(ot,0);sn&&(ze.push(sn.type),lt=lt||sn.isReadonly);const pn=i.getIndexInfoOfType(ot,1);pn&&(Ge.push(pn.type),Ct=Ct||pn.isReadonly)}const zt=Oue(bt,(ot,sn)=>{const pn=sn.length<Fe.length?16777216:0,gn=i.createSymbol(4|pn,ot);return gn.links.type=i.getUnionType(sn),[ot,gn]}),nt=[];return ze.length&&nt.push(i.createIndexInfo(i.getStringType(),i.getUnionType(ze),lt)),Ge.length&&nt.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(Ge),Ct)),i.createAnonymousType(Fe[0].symbol,zt,Be,$e,nt)}function ae(Fe){var Be,$e,ze;const Ge=[];Fe.isNumber&&Ge.push(i.getNumberType()),Fe.isString&&Ge.push(i.getStringType()),Fe.isNumberOrString&&Ge.push(i.getUnionType([i.getStringType(),i.getNumberType()])),Fe.numberIndex&&Ge.push(i.createArrayType(ue(Fe.numberIndex))),((Be=Fe.properties)!=null&&Be.size||($e=Fe.constructs)!=null&&$e.length||Fe.stringIndex)&&Ge.push(z(Fe));const lt=(Fe.candidateTypes||[]).map(bt=>i.getBaseTypeOfLiteralType(bt)),Ct=(ze=Fe.calls)!=null&&ze.length?z(Fe):void 0;return Ct&&lt?Ge.push(i.getUnionType([Ct,...lt],2)):(Ct&&Ge.push(Ct),ge(lt)&&Ge.push(...lt)),Ge.push(...ce(Fe)),Ge}function z(Fe){const Be=new Map;Fe.properties&&Fe.properties.forEach((lt,Ct)=>{const bt=i.createSymbol(4,Ct);bt.links.type=ue(lt),Be.set(Ct,bt)});const $e=Fe.calls?[je(Fe.calls)]:[],ze=Fe.constructs?[je(Fe.constructs)]:[],Ge=Fe.stringIndex?[i.createIndexInfo(i.getStringType(),ue(Fe.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Be,$e,ze,Ge)}function ce(Fe){if(!Fe.properties||!Fe.properties.size)return[];const Be=s.filter($e=>he($e,Fe));return 0<Be.length&&Be.length<3?Be.map($e=>Ee($e,Fe)):[]}function he(Fe,Be){return Be.properties?!ff(Be.properties,($e,ze)=>{const Ge=i.getTypeOfPropertyOfType(Fe,ze);return Ge?$e.calls?!i.getSignaturesOfType(Ge,0).length||!i.isTypeAssignableTo(Ge,Ze($e.calls)):!i.isTypeAssignableTo(Ge,ue($e)):!0}):!1}function Ee(Fe,Be){if(!(ni(Fe)&4)||!Be.properties)return Fe;const $e=Fe.target,ze=Nm($e.typeParameters);if(!ze)return Fe;const Ge=[];return Be.properties.forEach((lt,Ct)=>{const bt=i.getTypeOfPropertyOfType($e,Ct);R.assert(!!bt,"generic should have all the properties of its reference."),Ge.push(...Ae(bt,ue(lt),ze))}),o[Fe.symbol.escapedName](re(Ge))}function Ae(Fe,Be,$e){if(Fe===$e)return[Be];if(Fe.flags&3145728)return ji(Fe.types,lt=>Ae(lt,Be,$e));if(ni(Fe)&4&&ni(Be)&4){const lt=i.getTypeArguments(Fe),Ct=i.getTypeArguments(Be),bt=[];if(lt&&Ct)for(let zt=0;zt<lt.length;zt++)Ct[zt]&&bt.push(...Ae(lt[zt],Ct[zt],$e));return bt}const ze=i.getSignaturesOfType(Fe,0),Ge=i.getSignaturesOfType(Be,0);return ze.length===1&&Ge.length===1?te(ze[0],Ge[0],$e):[]}function te(Fe,Be,$e){var ze;const Ge=[];for(let bt=0;bt<Fe.parameters.length;bt++){const zt=Fe.parameters[bt],nt=Be.parameters[bt],ot=Fe.declaration&&Lh(Fe.declaration.parameters[bt]);if(!nt)break;let sn=zt.valueDeclaration?i.getTypeOfSymbolAtLocation(zt,zt.valueDeclaration):i.getAnyType();const pn=ot&&i.getElementTypeOfArrayType(sn);pn&&(sn=pn);const gn=((ze=li(nt,jm))==null?void 0:ze.links.type)||(nt.valueDeclaration?i.getTypeOfSymbolAtLocation(nt,nt.valueDeclaration):i.getAnyType());Ge.push(...Ae(sn,gn,$e))}const lt=i.getReturnTypeOfSignature(Fe),Ct=i.getReturnTypeOfSignature(Be);return Ge.push(...Ae(lt,Ct,$e)),Ge}function Ze(Fe){return i.createAnonymousType(void 0,uo(),[je(Fe)],it,it)}function je(Fe){const Be=[],$e=Math.max(...Fe.map(Ge=>Ge.argumentTypes.length));for(let Ge=0;Ge<$e;Ge++){const lt=i.createSymbol(1,cl(`arg${Ge}`));lt.links.type=re(Fe.map(Ct=>Ct.argumentTypes[Ge]||i.getUndefinedType())),Fe.some(Ct=>Ct.argumentTypes[Ge]===void 0)&&(lt.flags|=16777216),Be.push(lt)}const ze=ue(_(Fe.map(Ge=>Ge.return_)));return i.createSignature(void 0,void 0,void 0,Be,ze,void 0,$e,0)}function Ue(Fe,Be){Be&&!(Be.flags&1)&&!(Be.flags&131072)&&(Fe.candidateTypes||(Fe.candidateTypes=[])).push(Be)}function Je(Fe,Be){Be&&!(Be.flags&1)&&!(Be.flags&131072)&&(Fe.candidateThisTypes||(Fe.candidateThisTypes=[])).push(Be)}}var aU,mne,Oze=b({"src/services/codefixes/inferFromUsage.ts"(){"use strict";Zr(),So(),aU="inferFromUsage",mne=[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],ho({errorCodes:mne,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:c,preferences:_}=e,d=la(t,i);let v;const g=vr.ChangeTracker.with(e,C=>{v=bxe(C,t,d,o,r,s,xb,c,_)}),T=v&&ka(v);return!T||g.length===0?void 0:[ao(aU,g,[Lze(o,d),kc(T)],aU,m.Infer_all_types_from_usage)]},fixIds:[aU],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,c=hL();return Ls(e,mne,(_,d)=>{bxe(_,t,la(d.file,d.start),d.code,r,i,c,o,s)})}})}});function Axe(e,t,r){if(_r(e))return;const i=la(e,r),o=rr(i,el),s=o==null?void 0:o.type;if(!s)return;const c=t.getTypeFromTypeNode(s),_=t.getAwaitedType(c)||t.getVoidType(),d=t.typeToTypeNode(_,s,void 0);if(d)return{returnTypeNode:s,returnType:c,promisedTypeNode:d,promisedType:_}}function Cxe(e,t,r,i){e.replaceNode(t,r,O.createTypeReferenceNode("Promise",[i]))}var oU,hne,Mze=b({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";Zr(),So(),oU="fixReturnTypeInAsyncFunction",hne=[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],ho({errorCodes:hne,fixIds:[oU],getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),c=Axe(r,i.getTypeChecker(),o.start);if(!c)return;const{returnTypeNode:_,returnType:d,promisedTypeNode:v,promisedType:g}=c,T=vr.ChangeTracker.with(t,C=>Cxe(C,r,_,v));return[ao(oU,T,[m.Replace_0_with_Promise_1,s.typeToString(d),s.typeToString(g)],oU,m.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Ls(e,hne,(t,r)=>{const i=Axe(r.file,e.program.getTypeChecker(),r.start);i&&Cxe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function Lxe(e,t,r,i){const{line:o}=ll(t,r);(!i||wv(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var gne,yne,vne,Pze=b({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";Zr(),So(),gne="disableJsDiagnostics",yne="disableJsDiagnostics",vne=ua(Object.keys(m),e=>{const t=m[e];return t.category===1?t.code:void 0}),ho({errorCodes:vne,getCodeActions:function(t){const{sourceFile:r,program:i,span:o,host:s,formatContext:c}=t;if(!_r(r)||!YR(r,i.getCompilerOptions()))return;const _=r.checkJsDirective?"":x1(s,c.options),d=[Op(gne,[FTe(r.fileName,[zN(r.checkJsDirective?Ec(r.checkJsDirective.pos,r.checkJsDirective.end):Mc(0,0),`// @ts-nocheck${_}`)])],m.Disable_checking_for_this_file)];return vr.isValidLocationToAddComment(r,o.start)&&d.unshift(ao(gne,vr.ChangeTracker.with(t,v=>Lxe(v,r,o.start)),m.Ignore_this_error_message,yne,m.Add_ts_ignore_to_all_error_messages)),d},fixIds:[yne],getAllCodeActions:e=>{const t=new Set;return Ls(e,vne,(r,i)=>{vr.isValidLocationToAddComment(i.file,i.start)&&Lxe(r,i.file,i.start,t)})}})}});function bne(e,t,r,i,o,s,c){const _=e.symbol.members;for(const d of t)_.has(d.escapedName)||Ixe(d,e,r,i,o,s,c,void 0)}function Dx(e){return{trackSymbol:()=>!1,moduleResolverHost:bZ(e.program,e.host)}}function Ixe(e,t,r,i,o,s,c,_,d=3,v=!1){var g;const T=e.getDeclarations(),C=T==null?void 0:T[0],L=i.program.getTypeChecker(),I=ns(i.program.getCompilerOptions()),M=(g=C==null?void 0:C.kind)!=null?g:168,k=Ol(ka(C),!1),U=C?zu(C):0;let j=U&4?4:U&16?16:0;C&&df(C)&&(j|=128);const H=re(),ee=L.getWidenedType(L.getTypeOfSymbolAtLocation(e,t)),X=!!(e.flags&16777216),ne=!!(t.flags&16777216)||v,P=Np(r,o);switch(M){case 168:case 169:const he=P===0?268435456:void 0;let Ee=L.typeToTypeNode(ee,t,he,Dx(i));if(s){const te=b2(Ee,I);te&&(Ee=te.typeNode,Rx(s,te.symbols))}c(O.createPropertyDeclaration(H,C?ae(k):e.getName(),X&&d&2?O.createToken(57):void 0,Ee,void 0));break;case 174:case 175:{R.assertIsDefined(T);let te=L.typeToTypeNode(ee,t,void 0,Dx(i));const Ze=UT(T,C),je=Ze.secondAccessor?[Ze.firstAccessor,Ze.secondAccessor]:[Ze.firstAccessor];if(s){const Ue=b2(te,I);Ue&&(te=Ue.typeNode,Rx(s,Ue.symbols))}for(const Ue of je)if(Z_(Ue))c(O.createGetAccessorDeclaration(H,ae(k),it,ce(te),z(_,P,ne)));else{R.assertNode(Ue,s_,"The counterpart to a getter should be a setter");const Je=Lk(Ue),Fe=Je&&We(Je.name)?Pr(Je.name):void 0;c(O.createSetAccessorDeclaration(H,ae(k),Tne(1,[Fe],[ce(te)],1,!1),z(_,P,ne)))}break}case 170:case 171:R.assertIsDefined(T);const Ae=ee.isUnion()?ji(ee.types,te=>te.getCallSignatures()):ee.getCallSignatures();if(!Dt(Ae))break;if(T.length===1){R.assert(Ae.length===1,"One declaration implies one signature");const te=Ae[0];ue(P,te,H,ae(k),z(_,P,ne));break}for(const te of Ae)ue(P,te,H,ae(k));if(!ne)if(T.length>Ae.length){const te=L.getSignatureFromDeclaration(T[T.length-1]);ue(P,te,H,ae(k),z(_,P))}else R.assert(T.length===Ae.length,"Declarations and signatures should match count"),c(Gze(L,i,t,Ae,ae(k),X&&!!(d&1),H,P,_));break}function ue(he,Ee,Ae,te,Ze){const je=sU(171,i,he,Ee,Ze,te,Ae,X&&!!(d&1),t,s);je&&c(je)}function re(){let he;return j&&(he=GA(he,O.createModifiersFromModifierFlags(j))),be()&&(he=Pn(he,O.createToken(161))),he&&O.createNodeArray(he)}function be(){return!!(i.program.getCompilerOptions().noImplicitOverride&&C&&Jb(C))}function ae(he){return We(he)&&he.escapedText==="constructor"?O.createComputedPropertyName(O.createStringLiteral(Pr(he),P===0)):Ol(he,!1)}function z(he,Ee,Ae){return Ae?void 0:Ol(he,!1)||Sne(Ee)}function ce(he){return Ol(he,!1)}}function sU(e,t,r,i,o,s,c,_,d,v){const g=t.program,T=g.getTypeChecker(),C=ns(g.getCompilerOptions()),L=_r(d),I=524545|(r===0?268435456:0),M=T.signatureToSignatureDeclaration(i,e,d,I,Dx(t));if(!M)return;let k=L?void 0:M.typeParameters,U=M.parameters,j=L?void 0:M.type;if(v){if(k){const ne=Ui(k,P=>{let ue=P.constraint,re=P.default;if(ue){const be=b2(ue,C);be&&(ue=be.typeNode,Rx(v,be.symbols))}if(re){const be=b2(re,C);be&&(re=be.typeNode,Rx(v,be.symbols))}return O.updateTypeParameterDeclaration(P,P.modifiers,P.name,ue,re)});k!==ne&&(k=ht(O.createNodeArray(ne,k.hasTrailingComma),k))}const X=Ui(U,ne=>{let P=L?void 0:ne.type;if(P){const ue=b2(P,C);ue&&(P=ue.typeNode,Rx(v,ue.symbols))}return O.updateParameterDeclaration(ne,ne.modifiers,ne.dotDotDotToken,ne.name,L?void 0:ne.questionToken,P,ne.initializer)});if(U!==X&&(U=ht(O.createNodeArray(X,U.hasTrailingComma),U)),j){const ne=b2(j,C);ne&&(j=ne.typeNode,Rx(v,ne.symbols))}}const H=_?O.createToken(57):void 0,ee=M.asteriskToken;if(Us(M))return O.updateFunctionExpression(M,c,M.asteriskToken,li(s,We),k,U,j,o!=null?o:M.body);if(Xs(M))return O.updateArrowFunction(M,c,k,U,j,M.equalsGreaterThanToken,o!=null?o:M.body);if(sc(M))return O.updateMethodDeclaration(M,c,ee,s!=null?s:O.createIdentifier(""),H,k,U,j,o);if(Sc(M))return O.updateFunctionDeclaration(M,c,M.asteriskToken,li(s,We),k,U,j,o!=null?o:M.body)}function Ene(e,t,r,i,o,s,c){const _=Np(t.sourceFile,t.preferences),d=ns(t.program.getCompilerOptions()),v=Dx(t),g=t.program.getTypeChecker(),T=_r(c),{typeArguments:C,arguments:L,parent:I}=i,M=T?void 0:g.getContextualType(i),k=Pt(L,re=>We(re)?re.text:Br(re)&&We(re.name)?re.name.text:void 0),U=T?[]:Pt(L,re=>g.getTypeAtLocation(re)),{argumentTypeNodes:j,argumentTypeParameters:H}=Dxe(g,r,U,c,d,void 0,v),ee=s?O.createNodeArray(O.createModifiersFromModifierFlags(s)):void 0,X=U5(I)?O.createToken(41):void 0,ne=T?void 0:Fze(g,H,C),P=Tne(L.length,k,j,void 0,T),ue=T||M===void 0?void 0:g.typeToTypeNode(M,c,void 0,v);switch(e){case 171:return O.createMethodDeclaration(ee,X,o,void 0,ne,P,ue,Sne(_));case 170:return O.createMethodSignature(ee,o,void 0,ne,P,ue===void 0?O.createKeywordTypeNode(157):ue);case 259:return O.createFunctionDeclaration(ee,X,o,ne,P,ue,vO(m.Function_not_implemented.message,_));default:R.fail("Unexpected kind")}}function Fze(e,t,r){const i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){const s=r.filter(_=>!t.some(d=>{var v;return e.getTypeAtLocation(_)===((v=d[1])==null?void 0:v.argumentType)})),c=i.size+s.length;for(let _=0;i.size<c;_+=1)i.add(kxe(_))}return Oo(i.values(),s=>{var c;return O.createTypeParameterDeclaration(void 0,s,(c=o.get(s))==null?void 0:c.constraint)})}function kxe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function lU(e,t,r,i,o,s,c){let _=e.typeToTypeNode(r,i,s,c);if(_&&Ig(_)){const d=b2(_,o);d&&(Rx(t,d.symbols),_=d.typeNode)}return Ol(_)}function wxe(e){return e.isUnionOrIntersection()?e.types.some(wxe):e.flags&262144}function Dxe(e,t,r,i,o,s,c){const _=[],d=new Map;for(let v=0;v<r.length;v+=1){const g=r[v];if(g.isUnionOrIntersection()&&g.types.some(wxe)){const M=kxe(v);_.push(O.createTypeReferenceNode(M)),d.set(M,void 0);continue}const T=e.getBaseTypeOfLiteralType(g),C=lU(e,t,T,i,o,s,c);if(!C)continue;_.push(C);const L=Rxe(g),I=g.isTypeParameter()&&g.constraint&&!Bze(g.constraint)?lU(e,t,g.constraint,i,o,s,c):void 0;L&&d.set(L,{argumentType:g,constraint:I})}return{argumentTypeNodes:_,argumentTypeParameters:Oo(d.entries())}}function Bze(e){return e.flags&524288&&e.objectFlags===16}function Rxe(e){var t;if(e.flags&3145728)for(const r of e.types){const i=Rxe(r);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function Tne(e,t,r,i,o){const s=[],c=new Map;for(let _=0;_<e;_++){const d=(t==null?void 0:t[_])||`arg${_}`,v=c.get(d);c.set(d,(v||0)+1);const g=O.createParameterDeclaration(void 0,void 0,d+(v||""),i!==void 0&&_>=i?O.createToken(57):void 0,o?void 0:(r==null?void 0:r[_])||O.createKeywordTypeNode(157),void 0);s.push(g)}return s}function Gze(e,t,r,i,o,s,c,_,d){let v=i[0],g=i[0].minArgumentCount,T=!1;for(const M of i)g=Math.min(M.minArgumentCount,g),Lu(M)&&(T=!0),M.parameters.length>=v.parameters.length&&(!Lu(M)||Lu(v))&&(v=M);const C=v.parameters.length-(Lu(v)?1:0),L=v.parameters.map(M=>M.name),I=Tne(C,L,void 0,g,!1);if(T){const M=O.createParameterDeclaration(void 0,O.createToken(25),L[C]||"rest",C>=g?O.createToken(57):void 0,O.createArrayTypeNode(O.createKeywordTypeNode(157)),void 0);I.push(M)}return Vze(c,o,s,void 0,I,Uze(i,e,t,r),_,d)}function Uze(e,t,r,i){if(ge(e)){const o=t.getUnionType(Pt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,Dx(r))}}function Vze(e,t,r,i,o,s,c,_){return O.createMethodDeclaration(e,void 0,t,r?O.createToken(57):void 0,i,o,s,_||Sne(c))}function Sne(e){return vO(m.Method_not_implemented.message,e)}function vO(e,t){return O.createBlock([O.createThrowStatement(O.createNewExpression(O.createIdentifier("Error"),void 0,[O.createStringLiteral(e,t===0)]))],!0)}function xne(e,t,r){const i=pk(t);if(!i)return;const o=Cne(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,cU("compilerOptions",O.createObjectLiteralExpression(r.map(([c,_])=>cU(c,_)),!0)));return}const s=o.initializer;if(Is(s))for(const[c,_]of r){const d=Cne(s,c);d===void 0?e.insertNodeAtObjectStart(t,s,cU(c,_)):e.replaceNode(t,d.initializer,_)}}function Ane(e,t,r,i){xne(e,t,[[r,i]])}function cU(e,t){return O.createPropertyAssignment(O.createStringLiteral(e),t)}function Cne(e,t){return $t(e.properties,r=>$c(r)&&!!r.name&&Wo(r.name)&&r.name.text===t)}function b2(e,t){let r;const i=ct(e,o,Bi);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(l1(s)&&s.qualifier){const c=Of(s.qualifier),_=hB(c.symbol,t),d=_!==c.text?Nxe(s.qualifier,O.createIdentifier(_)):s.qualifier;r=Pn(r,c.symbol);const v=Jn(s.typeArguments,o,Bi);return O.createTypeReferenceNode(d,v)}return Fn(s,o,Dg)}}function Nxe(e,t){return e.kind===79?t:O.createQualifiedName(Nxe(e.left,t),e.right)}function Rx(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function Lne(e,t){const r=cu(t);let i=la(e,t.start);for(;i.end<r;)i=i.parent;return i}var Ine,jze=b({"src/services/codefixes/helpers.ts"(){"use strict";Zr(),Ine=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Ine||{})}});function Oxe(e,t,r,i,o,s){const c=Fxe(e,t,r,i);if(!c||v8.isRefactorErrorInfo(c))return;const _=vr.ChangeTracker.fromContext(o),{isStatic:d,isReadonly:v,fieldName:g,accessorName:T,originalName:C,type:L,container:I,declaration:M}=c;Yd(g),Yd(T),Yd(M),Yd(I);let k,U;if(_i(I)){const H=zu(M);if(ld(e)){const ee=O.createModifiersFromModifierFlags(H);k=ee,U=ee}else k=O.createModifiersFromModifierFlags(zze(H)),U=O.createModifiersFromModifierFlags(qze(H));_x(M)&&(U=ba(Fv(M),U))}$ze(_,e,M,L,g,U);const j=Jze(g,T,L,k,d,I);if(Yd(j),Bxe(_,e,j,M,I),v){const H=Dh(I);H&&Qze(_,e,H,g.text,C)}else{const H=Kze(g,T,L,k,d,I);Yd(H),Bxe(_,e,H,M,I)}return _.getChanges()}function Wze(e){return We(e)||Wo(e)}function Hze(e){return cf(e,e.parent)||ro(e)||$c(e)}function Mxe(e,t){return We(t)?O.createIdentifier(e):O.createStringLiteral(e)}function Pxe(e,t,r){const i=t?r.name:O.createThis();return We(e)?O.createPropertyAccessExpression(i,e):O.createElementAccessExpression(i,O.createStringLiteralFromNode(e))}function zze(e){return e&=-65,e&=-9,e&16||(e|=4),e}function qze(e){return e&=-5,e&=-17,e|=8,e}function Fxe(e,t,r,i,o=!0){const s=la(e,r),c=r===i&&o,_=rr(s.parent,Hze),d=124;if(!_||!(rZ(_.name,e,r,i)||c))return{error:Po(m.Could_not_find_property_for_which_to_generate_accessor)};if(!Wze(_.name))return{error:Po(m.Name_is_not_valid)};if((zu(_)&126975|d)!==d)return{error:Po(m.Can_only_convert_property_with_modifier)};const v=_.name.text,g=HZ(v),T=Mxe(g?v:m2(`_${v}`,e),_.name),C=Mxe(g?m2(v.substring(1),e):v,_.name);return{isStatic:Tc(_),isReadonly:Ik(_),type:Zze(_,t),container:_.kind===166?_.parent.parent:_.parent,originalName:_.name.text,declaration:_,fieldName:T,accessorName:C,renameAccessor:g}}function Jze(e,t,r,i,o,s){return O.createGetAccessorDeclaration(i,t,[],r,O.createBlock([O.createReturnStatement(Pxe(e,o,s))],!0))}function Kze(e,t,r,i,o,s){return O.createSetAccessorDeclaration(i,t,[O.createParameterDeclaration(void 0,void 0,O.createIdentifier("value"),void 0,r)],O.createBlock([O.createExpressionStatement(O.createAssignment(Pxe(e,o,s),O.createIdentifier("value")))],!0))}function Xze(e,t,r,i,o,s){const c=O.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,c)}function Yze(e,t,r,i){let o=O.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=O.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function $ze(e,t,r,i,o,s){ro(r)?Xze(e,t,r,i,o,s):$c(r)?Yze(e,t,r,o):e.replaceNode(t,r,O.updateParameterDeclaration(r,s,r.dotDotDotToken,lo(o,We),r.questionToken,r.type,r.initializer))}function Bxe(e,t,r,i,o){cf(i,i.parent)?e.insertMemberAtStart(t,o,r):$c(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function Qze(e,t,r,i,o){r.body&&r.body.forEachChild(function s(c){dl(c)&&c.expression.kind===108&&Wo(c.argumentExpression)&&c.argumentExpression.text===o&&Pk(c)&&e.replaceNode(t,c.argumentExpression,O.createStringLiteral(i)),Br(c)&&c.expression.kind===108&&c.name.text===o&&Pk(c)&&e.replaceNode(t,c.name,O.createIdentifier(i)),!Ya(c)&&!_i(c)&&c.forEachChild(s)})}function Zze(e,t){const r=ope(e);if(ro(e)&&r&&e.questionToken){const i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){const s=ex(r)?r.types:[r];return O.createUnionTypeNode([...s,O.createKeywordTypeNode(155)])}}return r}function kne(e,t){const r=[];for(;e;){const i=Wb(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;const s=o.flags&2097152?t.getAliasedSymbol(o):o,c=s.declarations&&$t(s.declarations,_i);if(!c)break;r.push(c),e=c}return r}var eqe=b({"src/services/codefixes/generateAccessors.ts"(){"use strict";Zr()}});function tqe(e,t){const r=Zn(t),i=_C(t),o=e.program.getCompilerOptions(),s=[];return s.push(Gxe(e,r,t,Hy(i.name,void 0,t.moduleSpecifier,Np(r,e.preferences)))),uu(o)===1&&s.push(Gxe(e,r,t,O.createImportEqualsDeclaration(void 0,!1,i.name,O.createExternalModuleReference(t.moduleSpecifier)))),s}function Gxe(e,t,r,i){const o=vr.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return Op(wne,o,[m.Replace_import_with_0,o[0].textChanges[0].newText])}function nqe(e){const t=e.sourceFile,r=m.This_expression_is_not_callable.code===e.errorCode?210:211,i=rr(la(t,e.span.start),s=>s.kind===r);if(!i)return[];const o=i.expression;return Uxe(e,o)}function rqe(e){const t=e.sourceFile,r=rr(la(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?Uxe(e,r):[]}function Uxe(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&jm(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],o=r.symbol.links.originatingImport;if(pf(o)||xi(i,tqe(e,o)),yt(t)&&!(Su(t.parent)&&t.parent.name===t)){const s=e.sourceFile,c=vr.ChangeTracker.with(e,_=>_.replaceNode(s,t,O.createPropertyAccessExpression(t,"default"),{}));i.push(Op(wne,c,m.Use_synthetic_default_member))}return i}var wne,iqe=b({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";Zr(),So(),wne="invalidImportSyntax",ho({errorCodes:[m.This_expression_is_not_callable.code,m.This_expression_is_not_constructable.code],getCodeActions:nqe}),ho({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:rqe})}});function Vxe(e,t){const r=la(e,t);if(We(r)&&ro(r.parent)){const i=iu(r.parent);if(i)return{type:i,prop:r.parent,isJs:_r(r.parent)}}}function aqe(e,t){if(t.isJs)return;const r=vr.ChangeTracker.with(e,i=>jxe(i,e.sourceFile,t.prop));return ao(uU,r,[m.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],dU,m.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function jxe(e,t,r){Yd(r);const i=O.updatePropertyDeclaration(r,r.modifiers,r.name,O.createToken(53),r.type,r.initializer);e.replaceNode(t,r,i)}function oqe(e,t){const r=vr.ChangeTracker.with(e,i=>Wxe(i,e.sourceFile,t));return ao(uU,r,[m.Add_undefined_type_to_property_0,t.prop.name.getText()],fU,m.Add_undefined_type_to_all_uninitialized_properties)}function Wxe(e,t,r){const i=O.createKeywordTypeNode(155),o=ex(r.type)?r.type.types.concat(i):[r.type,i],s=O.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[O.createJSDocTypeTag(void 0,O.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function sqe(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=zxe(r,t.prop);if(!i)return;const o=vr.ChangeTracker.with(e,s=>Hxe(s,e.sourceFile,t.prop,i));return ao(uU,o,[m.Add_initializer_to_property_0,t.prop.name.getText()],_U,m.Add_initializers_to_all_uninitialized_properties)}function Hxe(e,t,r,i){Yd(r);const o=O.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function zxe(e,t){return qxe(e,e.getTypeFromTypeNode(t.type))}function qxe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?O.createFalse():O.createTrue();if(t.isStringLiteral())return O.createStringLiteral(t.value);if(t.isNumberLiteral())return O.createNumericLiteral(t.value);if(t.flags&2048)return O.createBigIntLiteral(t.value);if(t.isUnion())return qt(t.types,r=>qxe(e,r));if(t.isClass()){const r=Cg(t.symbol);if(!r||Qr(r,256))return;const i=Dh(r);return i&&i.parameters.length?void 0:O.createNewExpression(O.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return O.createArrayLiteralExpression()}var uU,dU,fU,_U,Dne,lqe=b({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";Zr(),So(),uU="strictClassInitialization",dU="addMissingPropertyDefiniteAssignmentAssertions",fU="addMissingPropertyUndefinedType",_U="addMissingPropertyInitializer",Dne=[m.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],ho({errorCodes:Dne,getCodeActions:function(t){const r=Vxe(t.sourceFile,t.span.start);if(!r)return;const i=[];return Pn(i,oqe(t,r)),Pn(i,aqe(t,r)),Pn(i,sqe(t,r)),i},fixIds:[dU,fU,_U],getAllCodeActions:e=>Ls(e,Dne,(t,r)=>{const i=Vxe(r.file,r.start);if(i)switch(e.fixId){case dU:jxe(t,r.file,i.prop);break;case fU:Wxe(t,r.file,i);break;case _U:const o=e.program.getTypeChecker(),s=zxe(o,i.prop);if(!s)return;Hxe(t,r.file,i.prop,s);break;default:R.fail(JSON.stringify(e.fixId))}})})}});function Jxe(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:c,required:_}=r;e.replaceNode(t,c,o&&!i?O.createImportEqualsDeclaration(void 0,!1,o,O.createExternalModuleReference(_)):O.createImportDeclaration(void 0,O.createImportClause(!1,o,s),_,void 0))}function Kxe(e,t,r){const{parent:i}=la(e,r);if(!wd(i,!0))throw R.failBadSyntaxKind(i);const o=lo(i.parent,$i),s=li(o.name,We),c=$m(o.name)?cqe(o.name):void 0;if(s||c)return{allowSyntheticDefaults:jT(t.getCompilerOptions()),defaultImportName:s,namedImports:c,statement:lo(o.parent.parent,pc),required:ds(i.arguments)}}function cqe(e){const t=[];for(const r of e.elements){if(!We(r.name)||r.initializer)return;t.push(O.createImportSpecifier(!1,li(r.propertyName,We),r.name))}if(t.length)return O.createNamedImports(t)}var pU,Rne,uqe=b({"src/services/codefixes/requireInTs.ts"(){"use strict";Zr(),So(),pU="requireInTs",Rne=[m.require_call_may_be_converted_to_an_import.code],ho({errorCodes:Rne,getCodeActions(e){const t=Kxe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=vr.ChangeTracker.with(e,i=>Jxe(i,e.sourceFile,t));return[ao(pU,r,m.Convert_require_to_import,pU,m.Convert_all_require_to_import)]},fixIds:[pU],getAllCodeActions:e=>Ls(e,Rne,(t,r)=>{const i=Kxe(r.file,e.program,r.start);i&&Jxe(t,e.sourceFile,i)})})}});function Xxe(e,t){const r=la(e,t);if(!We(r))return;const{parent:i}=r;if(fu(i)&&Zm(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Zv(i)){const o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function Yxe(e,t,r,i){e.replaceNode(t,r.importNode,Hy(r.name,void 0,r.moduleSpecifier,Np(t,i)))}var mU,Nne,dqe=b({"src/services/codefixes/useDefaultImport.ts"(){"use strict";Zr(),So(),mU="useDefaultImport",Nne=[m.Import_may_be_converted_to_a_default_import.code],ho({errorCodes:Nne,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=Xxe(t,r);if(!i)return;const o=vr.ChangeTracker.with(e,s=>Yxe(s,t,i,e.preferences));return[ao(mU,o,m.Convert_to_default_import,mU,m.Convert_all_to_default_imports)]},fixIds:[mU],getAllCodeActions:e=>Ls(e,Nne,(t,r)=>{const i=Xxe(r.file,r.start);i&&Yxe(t,r.file,i,e.preferences)})})}});function $xe(e,t,r){const i=li(la(t,r.start),C_);if(!i)return;const o=i.getText(t)+"n";e.replaceNode(t,i,O.createBigIntLiteral(o))}var hU,One,fqe=b({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";Zr(),So(),hU="useBigintLiteral",One=[m.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],ho({errorCodes:One,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>$xe(i,t.sourceFile,t.span));if(r.length>0)return[ao(hU,r,m.Convert_to_a_bigint_numeric_literal,hU,m.Convert_all_to_bigint_numeric_literals)]},fixIds:[hU],getAllCodeActions:e=>Ls(e,One,(t,r)=>$xe(t,r.file,r))})}});function Qxe(e,t){const r=la(e,t);return R.assert(r.kind===100,"This token should be an ImportKeyword"),R.assert(r.parent.kind===202,"Token parent should be an ImportType"),r.parent}function Zxe(e,t,r){const i=O.updateImportTypeNode(r,r.argument,r.assertions,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var eAe,gU,Mne,_qe=b({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";Zr(),So(),eAe="fixAddModuleReferTypeMissingTypeof",gU=eAe,Mne=[m.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],ho({errorCodes:Mne,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=Qxe(r,i.start),s=vr.ChangeTracker.with(t,c=>Zxe(c,r,o));return[ao(gU,s,m.Add_missing_typeof,gU,m.Add_missing_typeof)]},fixIds:[gU],getAllCodeActions:e=>Ls(e,Mne,(t,r)=>Zxe(t,e.sourceFile,Qxe(r.file,r.start)))})}});function tAe(e,t){let o=la(e,t).parent.parent;if(!(!Tr(o)&&(o=o.parent,!Tr(o)))&&kl(o.operatorToken))return o}function nAe(e,t,r){const i=pqe(r);i&&e.replaceNode(t,r,O.createJsxFragment(O.createJsxOpeningFragment(),i,O.createJsxJsxClosingFragment()))}function pqe(e){const t=[];let r=e;for(;;)if(Tr(r)&&kl(r.operatorToken)&&r.operatorToken.kind===27){if(t.push(r.left),jD(r.right))return t.push(r.right),t;if(Tr(r.right)){r=r.right;continue}else return}else return}var yU,Pne,mqe=b({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";Zr(),So(),yU="wrapJsxInFragment",Pne=[m.JSX_expressions_must_have_one_parent_element.code],ho({errorCodes:Pne,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=tAe(r,i.start);if(!o)return;const s=vr.ChangeTracker.with(t,c=>nAe(c,r,o));return[ao(yU,s,m.Wrap_in_JSX_fragment,yU,m.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[yU],getAllCodeActions:e=>Ls(e,Pne,(t,r)=>{const i=tAe(e.sourceFile,r.start);i&&nAe(t,e.sourceFile,i)})})}});function rAe(e,t){const r=la(e,t),i=li(r.parent.parent,ZS);if(!i)return;const o=dd(i.parent)?i.parent:li(i.parent.parent,um);if(o)return{indexSignature:i,container:o}}function hqe(e,t){return O.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function iAe(e,t,{indexSignature:r,container:i}){const s=(dd(i)?i.members:i.type.members).filter(g=>!ZS(g)),c=ds(r.parameters),_=O.createTypeParameterDeclaration(void 0,lo(c.name,We),c.type),d=O.createMappedTypeNode(Ik(r)?O.createModifier(146):void 0,_,void 0,r.questionToken,r.type,void 0),v=O.createIntersectionTypeNode([...bk(i),d,...s.length?[O.createTypeLiteralNode(s)]:it]);e.replaceNode(t,i,hqe(i,v))}var vU,Fne,gqe=b({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";Zr(),So(),vU="fixConvertToMappedObjectType",Fne=[m.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],ho({errorCodes:Fne,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=rAe(r,i.start);if(!o)return;const s=vr.ChangeTracker.with(t,_=>iAe(_,r,o)),c=Pr(o.container.name);return[ao(vU,s,[m.Convert_0_to_mapped_object_type,c],vU,[m.Convert_0_to_mapped_object_type,c])]},fixIds:[vU],getAllCodeActions:e=>Ls(e,Fne,(t,r)=>{const i=rAe(r.file,r.start);i&&iAe(t,r.file,i)})})}}),Bne,aAe,yqe=b({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";Zr(),So(),Bne="removeAccidentalCallParentheses",aAe=[m.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],ho({errorCodes:aAe,getCodeActions(e){const t=rr(la(e.sourceFile,e.span.start),io);if(!t)return;const r=vr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Op(Bne,r,m.Remove_parentheses)]},fixIds:[Bne]})}});function oAe(e,t,r){const i=li(la(t,r.start),_=>_.kind===133),o=i&&li(i.parent,zC);if(!o)return;let s=o;if(qd(o.parent)){const _=Bk(o.expression,!1);if(We(_)){const d=Dc(o.parent.pos,t);d&&d.kind!==103&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var bU,Gne,vqe=b({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";Zr(),So(),bU="removeUnnecessaryAwait",Gne=[m.await_has_no_effect_on_the_type_of_this_expression.code],ho({errorCodes:Gne,getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>oAe(i,t.sourceFile,t.span));if(r.length>0)return[ao(bU,r,m.Remove_unnecessary_await,bU,m.Remove_all_unnecessary_uses_of_await)]},fixIds:[bU],getAllCodeActions:e=>Ls(e,Gne,(t,r)=>oAe(t,r.file,r))})}});function sAe(e,t){return rr(la(e,t.start),Yc)}function lAe(e,t,r){if(!t)return;const i=R.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,O.updateImportDeclaration(t,t.modifiers,O.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.assertClause)),e.insertNodeAfter(r.sourceFile,t,O.createImportDeclaration(void 0,O.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.assertClause))}var Une,EU,bqe=b({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";Zr(),So(),Une=[m.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],EU="splitTypeOnlyImport",ho({errorCodes:Une,fixIds:[EU],getCodeActions:function(t){const r=vr.ChangeTracker.with(t,i=>lAe(i,sAe(t.sourceFile,t.span),t));if(r.length)return[ao(EU,r,m.Split_into_two_separate_import_declarations,EU,m.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Ls(e,Une,(t,r)=>{lAe(t,sAe(e.sourceFile,r),e)})})}});function cAe(e,t,r){var i;const s=r.getTypeChecker().getSymbolAtLocation(la(e,t));if(s===void 0)return;const c=li((i=s==null?void 0:s.valueDeclaration)==null?void 0:i.parent,Xu);if(c===void 0)return;const _=Es(c,85,e);if(_!==void 0)return{symbol:s,token:_}}function uAe(e,t,r){e.replaceNode(t,r,O.createToken(119))}var TU,Vne,Eqe=b({"src/services/codefixes/convertConstToLet.ts"(){"use strict";Zr(),So(),TU="fixConvertConstToLet",Vne=[m.Cannot_assign_to_0_because_it_is_a_constant.code],ho({errorCodes:Vne,getCodeActions:function(t){const{sourceFile:r,span:i,program:o}=t,s=cAe(r,i.start,o);if(s===void 0)return;const c=vr.ChangeTracker.with(t,_=>uAe(_,r,s.token));return[Hee(TU,c,m.Convert_const_to_let,TU,m.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Map;return Ix(vr.ChangeTracker.with(e,i=>{kx(e,Vne,o=>{const s=cAe(o.file,o.start,t);if(s&&Ip(r,To(s.symbol)))return uAe(i,o.file,s.token)})}))},fixIds:[TU]})}});function dAe(e,t,r){const i=la(e,t);return i.kind===26&&i.parent&&(Is(i.parent)||Ju(i.parent))?{node:i}:void 0}function fAe(e,t,{node:r}){const i=O.createToken(27);e.replaceNode(t,r,i)}var SU,_Ae,jne,Tqe=b({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";Zr(),So(),SU="fixExpectedComma",_Ae=m._0_expected.code,jne=[_Ae],ho({errorCodes:jne,getCodeActions(e){const{sourceFile:t}=e,r=dAe(t,e.span.start,e.errorCode);if(!r)return;const i=vr.ChangeTracker.with(e,o=>fAe(o,t,r));return[ao(SU,i,[m.Change_0_to_1,";",","],SU,[m.Change_0_to_1,";",","])]},fixIds:[SU],getAllCodeActions:e=>Ls(e,jne,(t,r)=>{const i=dAe(r.file,r.start,r.code);i&&fAe(t,e.sourceFile,i)})})}});function pAe(e,t,r,i,o){const s=la(t,r.start);if(!We(s)||!io(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;const c=i.getTypeChecker(),_=c.getSymbolAtLocation(s),d=_==null?void 0:_.valueDeclaration;if(!d||!Ba(d)||!Zb(d.parent.parent)||o!=null&&o.has(d))return;o==null||o.add(d);const v=Sqe(d.parent.parent);if(Dt(v)){const g=v[0],T=!ex(g)&&!tx(g)&&tx(O.createUnionTypeNode([g,O.createKeywordTypeNode(114)]).types[0]);T&&e.insertText(t,g.pos,"("),e.insertText(t,g.end,T?") | void":" | void")}else{const g=c.getResolvedSignature(s.parent),T=g==null?void 0:g.parameters[0],C=T&&c.getTypeOfSymbolAtLocation(T,d.parent.parent);_r(d)?(!C||C.flags&3)&&(e.insertText(t,d.parent.parent.end,")"),e.insertText(t,Yo(t.text,d.parent.parent.pos),"/** @type {Promise<void>} */(")):(!C||C.flags&2)&&e.insertText(t,d.parent.parent.expression.end,"<void>")}}function Sqe(e){var t;if(_r(e)){if(qd(e.parent)){const r=(t=Rb(e.parent))==null?void 0:t.typeExpression.type;if(r&&ep(r)&&We(r.typeName)&&Pr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var mAe,Wne,Hne,xqe=b({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";Zr(),So(),mAe="addVoidToPromise",Wne="addVoidToPromise",Hne=[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],ho({errorCodes:Hne,fixIds:[Wne],getCodeActions(e){const t=vr.ChangeTracker.with(e,r=>pAe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[ao(mAe,t,m.Add_void_to_Promise_resolved_without_a_value,Wne,m.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Ls(e,Hne,(t,r)=>pAe(t,r.file,r,e.program,new Set))}})}}),Qu={};B(Qu,{PreserveOptionalFlags:()=>Ine,addNewNodeForMemberSymbol:()=>Ixe,codeFixAll:()=>Ls,createCodeFixAction:()=>ao,createCodeFixActionMaybeFixAll:()=>Hee,createCodeFixActionWithoutFixAll:()=>Op,createCombinedCodeActions:()=>Ix,createFileTextChanges:()=>FTe,createImportAdder:()=>y2,createImportSpecifierResolver:()=>GWe,createJsonPropertyAssignment:()=>cU,createMissingMemberNodes:()=>bne,createSignatureDeclarationFromCallExpression:()=>Ene,createSignatureDeclarationFromSignature:()=>sU,createStubbedBody:()=>vO,eachDiagnostic:()=>kx,findAncestorMatchingSpan:()=>Lne,findJsonProperty:()=>Cne,generateAccessorFromProperty:()=>Oxe,getAccessorConvertiblePropertyAtPosition:()=>Fxe,getAllFixes:()=>Tje,getAllSupers:()=>kne,getArgumentTypesAndTypeParameters:()=>Dxe,getFixes:()=>Eje,getImportCompletionAction:()=>UWe,getImportKind:()=>gte,getNoopSymbolTrackerWithResolver:()=>Dx,getPromoteTypeOnlyCompletionAction:()=>VWe,getSupportedErrorCodes:()=>vje,importFixName:()=>Ste,importSymbols:()=>Rx,moduleSpecifierToValidIdentifier:()=>Tte,moduleSymbolToValidIdentifier:()=>Ete,parameterShouldGetTypeFromJSDoc:()=>n2e,registerCodeFix:()=>ho,setJsonCompilerOptionValue:()=>Ane,setJsonCompilerOptionValues:()=>xne,tryGetAutoImportableReferenceFromTypeNode:()=>b2,typeToAutoImportableTypeNode:()=>lU});var So=b({"src/services/_namespaces/ts.codefix.ts"(){"use strict";Sje(),xje(),Aje(),Ije(),Nje(),Fje(),Bje(),Gje(),Uje(),Hje(),eWe(),nWe(),_We(),DWe(),RWe(),OWe(),MWe(),PWe(),BWe(),sHe(),uHe(),_He(),pHe(),mHe(),yHe(),EHe(),xHe(),kHe(),GHe(),VHe(),jHe(),HHe(),zHe(),qHe(),JHe(),XHe(),YHe(),$He(),QHe(),ZHe(),tze(),ize(),lze(),hze(),yze(),vze(),Tze(),Sze(),Aze(),Cze(),Oze(),Mze(),Pze(),jze(),eqe(),iqe(),lqe(),uqe(),dqe(),fqe(),_qe(),mqe(),gqe(),yqe(),vqe(),bqe(),Eqe(),Tqe(),xqe()}});function Aqe(e){return!!(e.kind&1)}function Cqe(e){return!!(e.kind&2)}function bO(e){return!!(e&&e.kind&4)}function CL(e){return!!(e&&e.kind===32)}function Lqe(e){return bO(e)||CL(e)||zne(e)}function Iqe(e){return(bO(e)||CL(e))&&!!e.isFromPackageJson}function kqe(e){return!!(e.kind&8)}function wqe(e){return!!(e.kind&16)}function hAe(e){return!!(e&&e.kind&64)}function gAe(e){return!!(e&&e.kind&128)}function Dqe(e){return!!(e&&e.kind&256)}function zne(e){return!!(e&&e.kind&512)}function yAe(e,t,r,i,o,s,c,_,d){var v,g,T;const C=ol(),L=c||HS(El(i.getCompilerOptions()));let I=!1,M=0,k=0,U=0,j=0;const H=d({tryResolve:X,skippedAny:()=>I,resolvedAny:()=>k>0,resolvedBeyondLimit:()=>k>RU}),ee=j?` (${(U/j*100).toFixed(1)}% hit rate)`:"";return(v=t.log)==null||v.call(t,`${e}: resolved ${k} module specifiers, plus ${M} ambient and ${U} from cache${ee}`),(g=t.log)==null||g.call(t,`${e}: response is ${I?"incomplete":"complete"}`),(T=t.log)==null||T.call(t,`${e}: ${ol()-C}`),H;function X(ne,P){if(P){const ae=r.getModuleSpecifierForBestExportInfo(ne,o,_);return ae&&M++,ae||"failed"}const ue=L||s.allowIncompleteCompletions&&k<RU,re=!ue&&s.allowIncompleteCompletions&&j<nre,be=ue||re?r.getModuleSpecifierForBestExportInfo(ne,o,_,re):void 0;return(!ue&&!re||re&&!be)&&(I=!0),k+=(be==null?void 0:be.computedWithoutCacheCount)||0,U+=ne.length-((be==null?void 0:be.computedWithoutCacheCount)||0),re&&j++,be||(L?"failed":"skipped")}}function Rqe(e,t,r,i,o,s,c,_,d,v,g=!1){var T;const{previousToken:C}=CU(o,i);if(c&&!_2(i,o,C)&&!fJe(i,c,C,o))return;if(c===" ")return s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const L=t.getCompilerOptions(),I=s.allowIncompleteCompletions?(T=e.getIncompleteCompletionsCache)==null?void 0:T.call(e):void 0;if(I&&_===3&&C&&We(C)){const U=Nqe(I,i,C,t,e,s,d,o);if(U)return U}else I==null||I.clear();const M=NU.getStringLiteralCompletions(i,o,C,L,e,t,r,s,g);if(M)return M;if(C&&nk(C.parent)&&(C.kind===81||C.kind===86||C.kind===79))return $qe(C.parent);const k=IAe(t,r,i,L,o,s,void 0,e,v,d);if(k)switch(k.kind){case 0:const U=Fqe(i,e,t,L,r,k,s,v,o,g);return U!=null&&U.isIncomplete&&(I==null||I.set(U)),U;case 1:return qne(I1.getJSDocTagNameCompletions());case 2:return qne(I1.getJSDocTagCompletions());case 3:return qne(I1.getJSDocParameterNameCompletions(k.tag));case 4:return Mqe(k.keywordCompletions,k.isNewIdentifierLocation);default:return R.assertNever(k)}}function EO(e,t){var r,i;let o=nD(e.sortText,t.sortText);return o===0&&(o=nD(e.name,t.name)),o===0&&((r=e.data)!=null&&r.moduleSpecifier)&&((i=t.data)!=null&&i.moduleSpecifier)&&(o=qR(e.data.moduleSpecifier,t.data.moduleSpecifier)),o===0?-1:o}function vAe(e){return!!(e!=null&&e.moduleSpecifier)}function Nqe(e,t,r,i,o,s,c,_){const d=e.get();if(!d)return;const v=Bf(t,_),g=r.text.toLowerCase(),T=rO(t,o,i,s,c),C=yAe("continuePreviousIncompleteResponse",o,Qu.createImportSpecifierResolver(t,i,o,s),i,r.getStart(),s,!1,qS(r),L=>{const I=ua(d.entries,M=>{var k;if(!M.hasAction||!M.source||!M.data||vAe(M.data))return M;if(!VAe(M.name,g))return;const{origin:U}=R.checkDefined(kAe(M.name,M.data,i,o)),j=T.get(t.path,M.data.exportMapKey),H=j&&L.tryResolve(j,!zc(X_(U.moduleSymbol.name)));if(H==="skipped")return M;if(!H||H==="failed"){(k=o.log)==null||k.call(o,`Unexpected failure resolving auto import for '${M.name}' from '${M.source}'`);return}const ee=so(Li({},U),{kind:32,moduleSpecifier:H.moduleSpecifier});return M.data=AAe(ee),M.source=Xne(ee),M.sourceDisplay=[Gf(ee.moduleSpecifier)],M});return L.skippedAny()||(d.isIncomplete=void 0),I});return d.entries=C,d.flags=(d.flags||0)|4,d.optionalReplacementSpan=EAe(v),d}function qne(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function Oqe(e){return{name:bo(e),kind:"keyword",kindModifiers:"",sortText:_u.GlobalsOrKeywords}}function Mqe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function bAe(e,t,r){return{kind:4,keywordCompletions:wAe(e,t),isNewIdentifierLocation:r}}function Pqe(e){switch(e){case 154:return 8;default:R.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function EAe(e){return(e==null?void 0:e.kind)===79?fd(e):void 0}function Fqe(e,t,r,i,o,s,c,_,d,v){const{symbols:g,contextToken:T,completionKind:C,isInSnippetScope:L,isNewIdentifierLocation:I,location:M,propertyAccessToConvert:k,keywordFilters:U,symbolToOriginInfoMap:j,recommendedCompletion:H,isJsxInitializer:ee,isTypeOnlyLocation:X,isJsxIdentifierExpected:ne,isRightOfOpenTag:P,isRightOfDotOrQuestionDot:ue,importStatementCompletion:re,insideJsDocTagTypeExpression:be,symbolToSortTextMap:ae,hasUnresolvedAutoImports:z}=s;let ce=s.literals;const he=r.getTypeChecker();if(GR(e.scriptKind)===1){const Ue=Gqe(M,e);if(Ue)return Ue}const Ee=rr(T,f4);if(Ee&&(ahe(T)||PT(T,Ee.expression))){const Ue=bB(he,Ee.parent.clauses);ce=ce.filter(Je=>!Ue.hasValue(Je)),g.forEach((Je,Fe)=>{if(Je.valueDeclaration&&nE(Je.valueDeclaration)){const Be=he.getConstantValue(Je.valueDeclaration);Be!==void 0&&Ue.hasValue(Be)&&(j[Fe]={kind:256})}})}const Ae=YW(),te=TAe(e,i);if(te&&!I&&(!g||g.length===0)&&U===0)return;const Ze=Yne(g,Ae,void 0,T,M,d,e,t,r,ns(i),o,C,c,i,_,X,k,ne,ee,re,H,j,ae,ne,P,v);if(U!==0)for(const Ue of wAe(U,!be&&ld(e)))(X&&H4(bT(Ue.name))||!Ze.has(Ue.name))&&(Ze.add(Ue.name),Dv(Ae,Ue,EO,!0));for(const Ue of sJe(T,d))Ze.has(Ue.name)||(Ze.add(Ue.name),Dv(Ae,Ue,EO,!0));for(const Ue of ce){const Je=Vqe(e,c,Ue);Ze.add(Je.name),Dv(Ae,Je,EO,!0)}te||Uqe(e,M.pos,Ze,ns(i),Ae);let je;if(c.includeCompletionsWithInsertText&&T&&!P&&!ue&&(je=rr(T,S6))){const Ue=SAe(je,e,c,i,t,r,_);Ue&&Ae.push(Ue.entry)}return{flags:s.flags,isGlobalCompletion:L,isIncomplete:c.allowIncompleteCompletions&&z?!0:void 0,isMemberCompletion:Bqe(C),isNewIdentifierLocation:I,optionalReplacementSpan:EAe(M),entries:Ae}}function TAe(e,t){return!ld(e)||!!YR(e,t)}function SAe(e,t,r,i,o,s,c){const _=e.clauses,d=s.getTypeChecker(),v=d.getTypeAtLocation(e.parent.expression);if(v&&v.isUnion()&&Qn(v.types,g=>g.isLiteral())){const g=bB(d,_),T=ns(i),C=Np(t,r),L=Qu.createImportAdder(t,s,r,o),I=[];for(const X of v.types)if(X.flags&1024){R.assert(X.symbol,"An enum member type should have a symbol"),R.assert(X.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const ne=X.symbol.valueDeclaration&&d.getConstantValue(X.symbol.valueDeclaration);if(ne!==void 0){if(g.hasValue(ne))continue;g.addValue(ne)}const P=Qu.typeToAutoImportableTypeNode(d,L,X,e,T);if(!P)return;const ue=xU(P,T,C);if(!ue)return;I.push(ue)}else if(!g.hasValue(X.value))switch(typeof X.value){case"object":I.push(X.value.negative?O.createPrefixUnaryExpression(40,O.createBigIntLiteral({negative:!1,base10Value:X.value.base10Value})):O.createBigIntLiteral(X.value));break;case"number":I.push(X.value<0?O.createPrefixUnaryExpression(40,O.createNumericLiteral(-X.value)):O.createNumericLiteral(X.value));break;case"string":I.push(O.createStringLiteral(X.value,C===0));break}if(I.length===0)return;const M=Pt(I,X=>O.createCaseClause(X,[])),k=x1(o,c==null?void 0:c.options),U=Kne({removeComments:!0,module:i.module,target:i.target,newLine:nO(k)}),j=c?X=>U.printAndFormatNode(4,X,t,c):X=>U.printNode(4,X,t),H=Pt(M,(X,ne)=>r.includeCompletionsWithSnippetText?`${j(X)}$${ne+1}`:`${j(X)}`).join(k);return{entry:{name:`${U.printNode(4,M[0],t)} ...`,kind:"",sortText:_u.GlobalsOrKeywords,insertText:H,hasAction:L.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:L}}}function xU(e,t,r){switch(e.kind){case 180:const i=e.typeName;return AU(i,t,r);case 196:const o=xU(e.objectType,t,r),s=xU(e.indexType,t,r);return o&&s&&O.createElementAccessExpression(o,s);case 198:const c=e.literal;switch(c.kind){case 10:return O.createStringLiteral(c.text,r===0);case 8:return O.createNumericLiteral(c.text,c.numericLiteralFlags)}return;case 193:const _=xU(e.type,t,r);return _&&(We(_)?_:O.createParenthesizedExpression(_));case 183:return AU(e.exprName,t,r);case 202:R.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function AU(e,t,r){if(We(e))return e;const i=ia(e.right.escapedText);return rK(i,t)?O.createPropertyAccessExpression(AU(e.left,t,r),i):O.createElementAccessExpression(AU(e.left,t,r),O.createStringLiteral(i,r===0))}function Bqe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Gqe(e,t){const r=rr(e,i=>{switch(i.kind){case 284:return!0;case 43:case 31:case 79:case 208:return!1;default:return"quit"}});if(r){const i=!!Es(r,31,t),c=r.parent.openingElement.tagName.getText(t)+(i?"":">"),_=fd(r.tagName),d={name:c,kind:"class",kindModifiers:void 0,sortText:_u.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:_,entries:[d]}}}function Uqe(e,t,r,i,o){Iee(e).forEach((s,c)=>{if(s===t)return;const _=ia(c);!r.has(_)&&W_(_,i)&&(r.add(_),Dv(o,{name:_,kind:"warning",kindModifiers:"",sortText:_u.JavascriptIdentifiers,isFromUncheckedFile:!0},EO))})}function Jne(e,t,r){return typeof r=="object"?Yb(r)+"n":za(r)?K4(e,t,r):JSON.stringify(r)}function Vqe(e,t,r){return{name:Jne(e,t,r),kind:"string",kindModifiers:"",sortText:_u.LocationPriority}}function jqe(e,t,r,i,o,s,c,_,d,v,g,T,C,L,I,M,k,U,j,H,ee,X,ne,P){let ue,re=pZ(r),be,ae,z=Xne(T),ce,he,Ee;const Ae=d.getTypeChecker(),te=T&&wqe(T),Ze=T&&Cqe(T)||g;if(T&&Aqe(T))ue=g?`this${te?"?.":""}[${CAe(c,j,v)}]`:`this${te?"?.":"."}${v}`;else if((Ze||te)&&L){ue=Ze?g?`[${CAe(c,j,v)}]`:`[${v}]`:v,(te||L.questionDotToken)&&(ue=`?.${ue}`);const je=Es(L,24,c)||Es(L,28,c);if(!je)return;const Ue=xa(v,L.name.text)?L.name.end:je.end;re=Ec(je.getStart(c),Ue)}if(I&&(ue===void 0&&(ue=v),ue=`{${ue}}`,typeof I!="boolean"&&(re=fd(I,c))),T&&kqe(T)&&L){ue===void 0&&(ue=v);const je=Dc(L.pos,c);let Ue="";je&&lB(je.end,je.parent,c)&&(Ue=";"),Ue+=`(await ${L.expression.getText()})`,ue=g?`${Ue}${ue}`:`${Ue}${te?"?.":"."}${ue}`;const Fe=li(L.parent,zC)?L.parent:L.expression;re=Ec(Fe.getStart(c),L.end)}if(CL(T)&&(ce=[Gf(T.moduleSpecifier)],M&&({insertText:ue,replacementSpan:re}=Xqe(v,M,T,k,c,U,j),ae=j.includeCompletionsWithSnippetText?!0:void 0)),(T==null?void 0:T.kind)===64&&(he=!0),j.includeCompletionsWithClassMemberSnippets&&j.includeCompletionsWithInsertText&&H===3&&Wqe(e,o,c)){let je;({insertText:ue,isSnippet:ae,importAdder:je,replacementSpan:re}=xAe(_,d,U,j,v,e,o,s,i,ee)),t=_u.ClassMemberSnippets,je!=null&&je.hasFixes()&&(he=!0,z="ClassMemberSnippet/")}if(T&&gAe(T)&&({insertText:ue,isSnippet:ae,labelDetails:Ee}=T,j.useLabelDetailsInCompletionEntries||(v=v+Ee.detail,Ee=void 0),z="ObjectLiteralMethodSnippet/",t=_u.SortBelow(t)),X&&!ne&&j.includeCompletionsWithSnippetText&&j.jsxAttributeCompletionStyle&&j.jsxAttributeCompletionStyle!=="none"&&!(fm(o.parent)&&o.parent.initializer)){let je=j.jsxAttributeCompletionStyle==="braces";const Ue=Ae.getTypeOfSymbolAtLocation(e,o);j.jsxAttributeCompletionStyle==="auto"&&!(Ue.flags&528)&&!(Ue.flags&1048576&&$t(Ue.types,Je=>!!(Je.flags&528)))&&(Ue.flags&402653316||Ue.flags&1048576&&Qn(Ue.types,Je=>!!(Je.flags&402686084||ibe(Je)))?(ue=`${HT(v)}=${K4(c,j,"$1")}`,ae=!0):je=!0),je&&(ue=`${HT(v)}={$1}`,ae=!0)}if(!(ue!==void 0&&!j.includeCompletionsWithInsertText))return(bO(T)||CL(T))&&(be=AAe(T),he=!M),Li({name:v,kind:qy.getSymbolKind(Ae,e,o),kindModifiers:qy.getSymbolModifiers(Ae,e),sortText:t,source:z,hasAction:he?!0:void 0,isRecommended:Yqe(e,C,Ae)||void 0,insertText:ue,replacementSpan:re,sourceDisplay:ce,labelDetails:Ee,isSnippet:ae,isPackageJsonImport:Iqe(T)||void 0,isImportStatementCompletion:!!M||void 0,data:be},P?{symbol:e}:void 0)}function Wqe(e,t,r){if(_r(t))return!1;const i=106500;return!!(e.flags&i)&&(_i(t)||t.parent&&t.parent.parent&&qc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&_i(t.parent.parent)||t.parent&&$C(t)&&_i(t.parent))}function xAe(e,t,r,i,o,s,c,_,d,v){const g=rr(c,_i);if(!g)return{insertText:o};let T,C,L=o;const I=t.getTypeChecker(),M=c.getSourceFile(),k=Kne({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:nO(x1(e,v==null?void 0:v.options))}),U=Qu.createImportAdder(M,t,i,e);let j;if(i.includeCompletionsWithSnippetText){T=!0;const ue=O.createEmptyStatement();j=O.createBlock([ue],!0),MK(ue,{kind:0,order:0})}else j=O.createBlock([],!0);let H=0;const{modifiers:ee,span:X}=Hqe(d,M,_),ne=!!(ee&256),P=[];return Qu.addNewNodeForMemberSymbol(s,g,M,{program:t,host:e},i,U,ue=>{let re=0;ne&&(re|=256),qc(ue)&&I.getMemberOverrideModifierStatus(g,ue,s)===1&&(re|=16384),P.length||(H=ue.modifierFlagsCache|re|ee),ue=O.updateModifiers(ue,H),P.push(ue)},j,Qu.PreserveOptionalFlags.Property,ne),P.length&&(C=X,v?L=k.printAndFormatSnippetList(131073,O.createNodeArray(P),M,v):L=k.printSnippetList(131073,O.createNodeArray(P),M)),{insertText:L,isSnippet:T,importAdder:U,replacementSpan:C}}function Hqe(e,t,r){if(!e||ll(t,r).line>ll(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s;return(s=zqe(e))&&(i|=VS(s),o=fd(e)),ro(e.parent)&&(i|=Jm(e.parent.modifiers)&126975,o=fd(e.parent)),{modifiers:i,span:o}}function zqe(e){if(po(e))return e.kind;if(We(e)){const t=o1(e);if(t&&Ly(t))return t}}function qqe(e,t,r,i,o,s,c,_){const d=c.includeCompletionsWithSnippetText||void 0;let v=t;const g=r.getSourceFile(),T=Jqe(e,r,g,i,o,c);if(!T)return;const C=Kne({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:nO(x1(o,_==null?void 0:_.options))});_?v=C.printAndFormatSnippetList(80,O.createNodeArray([T],!0),g,_):v=C.printSnippetList(80,O.createNodeArray([T],!0),g);const L=uE({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),I=O.createMethodSignature(void 0,"",T.questionToken,T.typeParameters,T.parameters,T.type),M={detail:L.printNode(4,I,g)};return{isSnippet:d,insertText:v,labelDetails:M}}function Jqe(e,t,r,i,o,s){const c=e.getDeclarations();if(!(c&&c.length))return;const _=i.getTypeChecker(),d=c[0],v=Ol(ka(d),!1),g=_.getWidenedType(_.getTypeOfSymbolAtLocation(e,t)),C=33554432|(Np(r,s)===0?268435456:0);switch(d.kind){case 168:case 169:case 170:case 171:{let L=g.flags&1048576&&g.types.length<10?_.getUnionType(g.types,2):g;if(L.flags&1048576){const j=ur(L.types,H=>_.getSignaturesOfType(H,0).length>0);if(j.length===1)L=j[0];else return}if(_.getSignaturesOfType(L,0).length!==1)return;const M=_.typeToTypeNode(L,t,C,Qu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!M||!Ph(M))return;let k;if(s.includeCompletionsWithSnippetText){const j=O.createEmptyStatement();k=O.createBlock([j],!0),MK(j,{kind:0,order:0})}else k=O.createBlock([],!0);const U=M.parameters.map(j=>O.createParameterDeclaration(void 0,j.dotDotDotToken,j.name,void 0,void 0,j.initializer));return O.createMethodDeclaration(void 0,void 0,v,void 0,void 0,U,void 0,k)}default:return}}function Kne(e){let t;const r=vr.createWriter(m1(e)),i=uE(e,r),o=so(Li({},r),{write:C=>s(C,()=>r.write(C)),nonEscapingWrite:r.write,writeLiteral:C=>s(C,()=>r.writeLiteral(C)),writeStringLiteral:C=>s(C,()=>r.writeStringLiteral(C)),writeSymbol:(C,L)=>s(C,()=>r.writeSymbol(C,L)),writeParameter:C=>s(C,()=>r.writeParameter(C)),writeComment:C=>s(C,()=>r.writeComment(C)),writeProperty:C=>s(C,()=>r.writeProperty(C))});return{printSnippetList:c,printAndFormatSnippetList:d,printNode:v,printAndFormatNode:T};function s(C,L){const I=HT(C);if(I!==C){const M=r.getTextPos();L();const k=r.getTextPos();t=Pn(t||(t=[]),{newText:I,span:{start:M,length:k-M}})}else L()}function c(C,L,I){const M=_(C,L,I);return t?vr.applyChanges(M,t):M}function _(C,L,I){return t=void 0,o.clear(),i.writeList(C,L,I,o),o.getText()}function d(C,L,I,M){const k={text:_(C,L,I),getLineAndCharacterOfPosition(ee){return ll(this,ee)}},U=vB(M,I),j=ji(L,ee=>{const X=vr.assignPositionsToNode(ee);return Rc.formatNodeGivenIndentation(X,k,I.languageVariant,0,0,so(Li({},M),{options:U}))}),H=t?by(ba(j,t),(ee,X)=>U7(ee.span,X.span)):j;return vr.applyChanges(k.text,H)}function v(C,L,I){const M=g(C,L,I);return t?vr.applyChanges(M,t):M}function g(C,L,I){return t=void 0,o.clear(),i.writeNode(C,L,I,o),o.getText()}function T(C,L,I,M){const k={text:g(C,L,I),getLineAndCharacterOfPosition(X){return ll(this,X)}},U=vB(M,I),j=vr.assignPositionsToNode(L),H=Rc.formatNodeGivenIndentation(j,k,I.languageVariant,0,0,so(Li({},M),{options:U})),ee=t?by(ba(H,t),(X,ne)=>U7(X.span,ne.span)):H;return vr.applyChanges(k.text,ee)}}function AAe(e){const t=e.fileName?void 0:X_(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return CL(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:X_(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function Kqe(e,t,r){const i=e.exportName==="default",o=!!e.isPackageJsonImport;return vAe(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 Xqe(e,t,r,i,o,s,c){const _=t.replacementSpan,d=K4(o,c,HT(r.moduleSpecifier)),v=r.isDefaultExport?1:r.exportName==="export="?2:0,g=c.includeCompletionsWithSnippetText?"$1":"",T=Qu.getImportKind(o,v,s,!0),C=t.couldBeTypeOnlyImportSpecifier,L=t.isTopLevelTypeOnly?` ${bo(154)} `:" ",I=C?`${bo(154)} `:"",M=i?";":"";switch(T){case 3:return{replacementSpan:_,insertText:`import${L}${HT(e)}${g} = require(${d})${M}`};case 1:return{replacementSpan:_,insertText:`import${L}${HT(e)}${g} from ${d}${M}`};case 2:return{replacementSpan:_,insertText:`import${L}* as ${HT(e)} from ${d}${M}`};case 0:return{replacementSpan:_,insertText:`import${L}{ ${I}${HT(e)}${g} } from ${d}${M}`}}}function CAe(e,t,r){return/^\d+$/.test(r)?r:K4(e,t,r)}function Yqe(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Xne(e){if(bO(e))return X_(e.moduleSymbol.name);if(CL(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 Yne(e,t,r,i,o,s,c,_,d,v,g,T,C,L,I,M,k,U,j,H,ee,X,ne,P,ue,re=!1){var be;const ae=ol(),z=gJe(o),ce=cB(c),he=d.getTypeChecker(),Ee=new Map;for(let te=0;te<e.length;te++){const Ze=e[te],je=X==null?void 0:X[te],Ue=LU(Ze,v,je,T,!!U);if(!Ue||Ee.get(Ue.name)&&(!je||!gAe(je))||T===1&&ne&&!Ae(Ze,ne))continue;const{name:Je,needsConvertPropertyAccess:Fe}=Ue,Be=(be=ne==null?void 0:ne[To(Ze)])!=null?be:_u.LocationPriority,$e=vJe(Ze,he)?_u.Deprecated(Be):Be,ze=jqe(Ze,$e,r,i,o,s,c,_,d,Je,Fe,je,ee,k,j,H,ce,L,C,T,I,P,ue,re);if(!ze)continue;const Ge=(!je||hAe(je))&&!(Ze.parent===void 0&&!Dt(Ze.declarations,lt=>lt.getSourceFile()===o.getSourceFile()));Ee.set(Je,Ge),Dv(t,ze,EO,!0)}return g("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(ol()-ae)),{has:te=>Ee.has(te),add:te=>Ee.set(te,!0)};function Ae(te,Ze){let je=te.flags;if(!Ki(o)){if(Vl(o.parent))return!0;if(z&&te.valueDeclaration===z)return!1;const Ue=mf(te,he);if(c.externalModuleIndicator&&!L.allowUmdGlobalAccess&&Ze[To(te)]===_u.GlobalsOrKeywords&&(Ze[To(Ue)]===_u.AutoImportSuggestions||Ze[To(Ue)]===_u.LocationPriority))return!1;if(je|=Mk(Ue),RF(o))return!!(je&1920);if(M)return tre(te,he)}return!!(je&111551)}}function $qe(e){const t=Qqe(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function Qqe(e){const t=[],r=new Map;let i=e;for(;i&&!Ya(i);){if(eE(i)){const o=i.label.text;r.has(o)||(r.set(o,!0),t.push({name:o,kindModifiers:"",kind:"label",sortText:_u.LocationPriority}))}i=i.parent}return t}function LAe(e,t,r,i,o,s,c){if(o.source==="SwitchCases/")return{type:"cases"};if(o.data){const H=kAe(o.name,o.data,e,s);if(H){const{contextToken:ee,previousToken:X}=CU(i,r);return{type:"symbol",symbol:H.symbol,location:Bf(r,i),previousToken:X,contextToken:ee,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:H.origin}}}const _=e.getCompilerOptions(),d=IAe(e,t,r,_,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s,void 0);if(!d)return{type:"none"};if(d.kind!==0)return{type:"request",request:d};const{symbols:v,literals:g,location:T,completionKind:C,symbolToOriginInfoMap:L,contextToken:I,previousToken:M,isJsxInitializer:k,isTypeOnlyLocation:U}=d,j=$t(g,H=>Jne(r,c,H)===o.name);return j!==void 0?{type:"literal",literal:j}:qt(v,(H,ee)=>{const X=L[ee],ne=LU(H,ns(_),X,C,d.isJsxIdentifierExpected);return ne&&ne.name===o.name&&(o.source==="ClassMemberSnippet/"&&H.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&H.flags&8196||Xne(X)===o.source)?{type:"symbol",symbol:H,location:T,origin:X,contextToken:I,previousToken:M,isJsxInitializer:k,isTypeOnlyLocation:U}:void 0})||{type:"none"}}function Zqe(e,t,r,i,o,s,c,_,d){const v=e.getTypeChecker(),g=e.getCompilerOptions(),{name:T,source:C,data:L}=o,{previousToken:I,contextToken:M}=CU(i,r);if(_2(r,i,I))return NU.getStringLiteralCompletionDetails(T,r,i,I,v,g,s,d,_);const k=LAe(e,t,r,i,o,s,_);switch(k.type){case"request":{const{request:U}=k;switch(U.kind){case 1:return I1.getJSDocTagNameCompletionDetails(T);case 2:return I1.getJSDocTagCompletionDetails(T);case 3:return I1.getJSDocParameterNameCompletionDetails(T);case 4:return Dt(U.keywordCompletions,j=>j.name===T)?$ne(T,"keyword",5):void 0;default:return R.assertNever(U)}}case"symbol":{const{symbol:U,location:j,contextToken:H,origin:ee,previousToken:X}=k,{codeActions:ne,sourceDisplay:P}=eJe(T,j,H,ee,U,e,s,g,r,i,X,c,_,L,C,d),ue=zne(ee)?ee.symbolName:U.name;return Qne(U,ue,v,r,j,d,ne,P)}case"literal":{const{literal:U}=k;return $ne(Jne(r,_,U),"string",typeof U=="string"?8:7)}case"cases":{const{entry:U,importAdder:j}=SAe(M.parent,r,_,e.getCompilerOptions(),s,e,void 0);if(j.hasFixes()){const H=vr.ChangeTracker.with({host:s,formatContext:c,preferences:_},j.writeFixes);return{name:U.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:H,description:Sx([m.Includes_imports_of_types_referenced_by_0,T])}]}}return{name:U.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return ore().some(U=>U.name===T)?$ne(T,"keyword",5):void 0;default:R.assertNever(k)}}function $ne(e,t,r){return TO(e,"",t,[Od(e,r)])}function Qne(e,t,r,i,o,s,c,_){const{displayParts:d,documentation:v,symbolKind:g,tags:T}=r.runWithCancellationToken(s,C=>qy.getSymbolDisplayPartsDocumentationAndSymbolKind(C,e,i,o,o,7));return TO(t,qy.getSymbolModifiers(r,e),g,d,v,T,c,_)}function TO(e,t,r,i,o,s,c,_){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:c,source:_,sourceDisplay:_}}function eJe(e,t,r,i,o,s,c,_,d,v,g,T,C,L,I,M){if(L!=null&&L.moduleSpecifier&&g&&FAe(r||g).replacementSpan)return{codeActions:void 0,sourceDisplay:[Gf(L.moduleSpecifier)]};if(I==="ClassMemberSnippet/"){const{importAdder:ne}=xAe(c,s,_,C,e,o,t,v,r,T);if(ne)return{sourceDisplay:void 0,codeActions:[{changes:vr.ChangeTracker.with({host:c,formatContext:T,preferences:C},ne.writeFixes),description:Sx([m.Includes_imports_of_types_referenced_by_0,e])}]}}if(hAe(i)){const ne=Qu.getPromoteTypeOnlyCompletionAction(d,i.declaration.name,s,c,T,C);return R.assertIsDefined(ne,"Expected to have a code action for promoting type-only alias"),{codeActions:[ne],sourceDisplay:void 0}}if(!i||!(bO(i)||CL(i)))return{codeActions:void 0,sourceDisplay:void 0};const k=i.isFromPackageJson?c.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:U}=i,j=k.getMergedSymbol(mf(o.exportSymbol||o,k)),H=(r==null?void 0:r.kind)===29&&sd(r.parent),{moduleSpecifier:ee,codeAction:X}=Qu.getImportCompletionAction(j,U,L==null?void 0:L.exportMapKey,d,e,H,c,s,T,g&&We(g)?g.getStart(d):v,C,M);return R.assert(!(L!=null&&L.moduleSpecifier)||ee===L.moduleSpecifier),{sourceDisplay:[Gf(ee)],codeActions:[X]}}function tJe(e,t,r,i,o,s,c){const _=LAe(e,t,r,i,o,s,c);return _.type==="symbol"?_.symbol:void 0}function nJe(e,t,r){return qt(t&&(t.isUnion()?t.types:[t]),i=>{const o=i&&i.symbol;return o&&o.flags&424&&!Rpe(o)?Zne(o,e,r):void 0})}function rJe(e,t,r,i){const{parent:o}=e;switch(e.kind){case 79:return aB(e,i);case 63:switch(o.kind){case 257:return i.getContextualType(o.initializer);case 223:return i.getTypeAtLocation(o.left);case 288:return i.getContextualTypeForJsxAttribute(o);default:return}case 103:return i.getContextualType(o);case 82:const s=li(o,f4);return s?PZ(s,i):void 0;case 18:return d4(o)&&!By(o.parent)&&!cx(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:const c=qO.getArgumentInfoForCompletions(e,t,r);return c?i.getContextualTypeForArgumentAtIndex(c.invocation,c.argumentIndex+(e.kind===27?1:0)):oB(e.kind)&&Tr(o)&&oB(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e)}}function Zne(e,t,r){const i=r.getAccessibleSymbolChain(e,t,67108863,!1);return i?ds(i):e.parent&&(iJe(e.parent)?e:Zne(e.parent,t,r))}function iJe(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===308))}function IAe(e,t,r,i,o,s,c,_,d,v){const g=e.getTypeChecker(),T=TAe(r,i);let C=ol(),L=la(r,o);t("getCompletionData: Get current token: "+(ol()-C)),C=ol();const I=jy(r,o,L);t("getCompletionData: Is inside comment: "+(ol()-C));let M=!1,k=!1;if(I){if(nbe(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{const Ne=k_(o,r);if(!/[^\*|\s(/)]/.test(r.text.substring(Ne,o)))return{kind:2}}}const Y=lJe(L,o);if(Y){if(Y.tagName.pos<=o&&o<=Y.tagName.end)return{kind:1};const Ne=sn(Y);if(Ne&&(L=la(r,o),(!L||!xg(L)&&(L.parent.kind!==351||L.parent.name!==L))&&(M=Te(Ne))),!M&&_m(Y)&&(kl(Y.name)||Y.name.pos<=o&&o<=Y.name.end))return{kind:3,tag:Y}}if(!M){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}C=ol();const U=!M&&ld(r),j=CU(o,r),H=j.previousToken;let ee=j.contextToken;t("getCompletionData: Get previous token: "+(ol()-C));let X=L,ne,P=!1,ue=!1,re=!1,be=!1,ae=!1,z=!1,ce,he=Bf(r,o),Ee=0,Ae=!1,te=0;if(ee){const Y=FAe(ee);if(Y.keywordCompletion){if(Y.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[Oqe(Y.keywordCompletion)],isNewIdentifierLocation:Y.isNewIdentifierLocation};Ee=Pqe(Y.keywordCompletion)}if(Y.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(te|=2,ce=Y,Ae=Y.isNewIdentifierLocation),!Y.replacementSpan&&an(ee))return t("Returning an empty list because completion was requested in an invalid position."),Ee?bAe(Ee,U,Ir()):void 0;let Ne=ee.parent;if(ee.kind===24||ee.kind===28)switch(P=ee.kind===24,ue=ee.kind===28,Ne.kind){case 208:ne=Ne,X=ne.expression;const J=Fk(ne);if(kl(J)||(io(X)||Ya(X))&&X.end===ee.pos&&X.getChildCount(r)&&Ko(X.getChildren(r)).kind!==21)return;break;case 163:X=Ne.left;break;case 264:X=Ne.name;break;case 202:X=Ne;break;case 233:X=Ne.getFirstToken(r),R.assert(X.kind===100||X.kind===103);break;default:return}else if(!ce){if(Ne&&Ne.kind===208&&(ee=Ne,Ne=Ne.parent),L.parent===he)switch(L.kind){case 31:(L.parent.kind===281||L.parent.kind===283)&&(he=L);break;case 43:L.parent.kind===282&&(he=L);break}switch(Ne.kind){case 284:ee.kind===43&&(be=!0,he=ee);break;case 223:if(!PAe(Ne))break;case 282:case 281:case 283:z=!0,ee.kind===29&&(re=!0,he=ee);break;case 291:case 290:(H.kind===19||H.kind===79&&H.parent.kind===288)&&(z=!0);break;case 288:if(Ne.initializer===H&&H.end<o){z=!0;break}switch(H.kind){case 63:ae=!0;break;case 79:z=!0,Ne!==H.parent&&!Ne.initializer&&Es(Ne,63,r)&&(ae=H)}break}}}const Ze=ol();let je=5,Ue=!1,Je=!1,Fe=[],Be;const $e=[],ze=[],Ge=new Map,lt=yn(),Ct=Mm(Y=>Ex(Y?_.getPackageJsonAutoImportProvider():e,_));if(P||ue)pn();else if(re)Fe=g.getJsxIntrinsicTagNamesAt(he),R.assertEachIsDefined(Fe,"getJsxIntrinsicTagNames() should all be defined"),Zt(),je=1,Ee=0;else if(be){const Y=ee.parent.parent.openingElement.tagName,Ne=g.getSymbolAtLocation(Y);Ne&&(Fe=[Ne]),je=1,Ee=0}else if(!Zt())return Ee?bAe(Ee,U,Ae):void 0;t("getCompletionData: Semantic work: "+(ol()-Ze));const bt=H&&rJe(H,o,r,g),zt=ua(bt&&(bt.isUnion()?bt.types:[bt]),Y=>Y.isLiteral()&&!(Y.flags&1024)?Y.value:void 0),nt=H&&bt&&nJe(H,bt,g);return{kind:0,symbols:Fe,completionKind:je,isInSnippetScope:k,propertyAccessToConvert:ne,isNewIdentifierLocation:Ae,location:he,keywordFilters:Ee,literals:zt,symbolToOriginInfoMap:$e,recommendedCompletion:nt,previousToken:H,contextToken:ee,isJsxInitializer:ae,insideJsDocTagTypeExpression:M,symbolToSortTextMap:ze,isTypeOnlyLocation:lt,isJsxIdentifierExpected:z,isRightOfOpenTag:re,isRightOfDotOrQuestionDot:P||ue,importStatementCompletion:ce,hasUnresolvedAutoImports:Je,flags:te};function ot(Y){switch(Y.kind){case 344:case 351:case 345:case 347:case 349:case 352:case 353:return!0;case 348:return!!Y.constraint;default:return!1}}function sn(Y){if(ot(Y)){const Ne=wp(Y)?Y.constraint:Y.typeExpression;return Ne&&Ne.kind===312?Ne:void 0}if(YC(Y)||lX(Y))return Y.class}function pn(){je=2;const Y=l1(X),Ne=M||Y&&!X.isTypeOf||Ih(X.parent)||WN(ee,r,g),J=RF(X);if(uf(X)||Y||Br(X)){const wt=Xl(X.parent);wt&&(Ae=!0);let Et=g.getSymbolAtLocation(X);if(Et&&(Et=mf(Et,g),Et.flags&1920)){const ut=g.getExportsOfModule(Et);R.assertEachIsDefined(ut,"getExportsOfModule() should all be defined");const nn=gi=>g.isValidPropertyAccess(Y?X:X.parent,gi.name),ir=gi=>tre(gi,g),ai=wt?gi=>{var ui;return!!(gi.flags&1920)&&!((ui=gi.declarations)!=null&&ui.every(Wi=>Wi.parent===X.parent))}:J?gi=>ir(gi)||nn(gi):Ne?ir:nn;for(const gi of ut)ai(gi)&&Fe.push(gi);if(!Ne&&Et.declarations&&Et.declarations.some(gi=>gi.kind!==308&&gi.kind!==264&&gi.kind!==263)){let gi=g.getTypeOfSymbolAtLocation(Et,X).getNonOptionalType(),ui=!1;if(gi.isNullableType()){const Wi=P&&!ue&&s.includeAutomaticOptionalChainCompletions!==!1;(Wi||ue)&&(gi=gi.getNonNullableType(),Wi&&(ui=!0))}gn(gi,!!(X.flags&32768),ui)}return}}if(!Ne){g.tryGetThisTypeAt(X,!1);let wt=g.getTypeAtLocation(X).getNonOptionalType(),Et=!1;if(wt.isNullableType()){const ut=P&&!ue&&s.includeAutomaticOptionalChainCompletions!==!1;(ut||ue)&&(wt=wt.getNonNullableType(),ut&&(Et=!0))}gn(wt,!!(X.flags&32768),Et)}}function gn(Y,Ne,J){Ae=!!Y.getStringIndexType(),ue&&Dt(Y.getCallSignatures())&&(Ae=!0);const wt=X.kind===202?X:X.parent;if(T)for(const Et of Y.getApparentProperties())g.isValidPropertyAccessForCompletions(wt,Y,Et)&&jn(Et,!1,J);else Fe.push(...ur(wU(Y,g),Et=>g.isValidPropertyAccessForCompletions(wt,Y,Et)));if(Ne&&s.includeCompletionsWithInsertText){const Et=g.getPromisedTypeOfPromise(Y);if(Et)for(const ut of Et.getApparentProperties())g.isValidPropertyAccessForCompletions(wt,Et,ut)&&jn(ut,!0,J)}}function jn(Y,Ne,J){var wt;const Et=qt(Y.declarations,ai=>li(ka(ai),Cs));if(Et){const ai=Ln(Et.expression),gi=ai&&g.getSymbolAtLocation(ai),ui=gi&&Zne(gi,ee,g);if(ui&&Ip(Ge,To(ui))){const Wi=Fe.length;Fe.push(ui);const go=ui.parent;if(!go||!qN(go)||g.tryGetMemberInModuleExportsAndProperties(ui.name,go)!==ui)$e[Wi]={kind:ir(2)};else{const xo=zc(X_(go.name))?(wt=WM(go))==null?void 0:wt.fileName:void 0,{moduleSpecifier:oo}=(Be||(Be=Qu.createImportSpecifierResolver(r,e,_,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:xo,isFromPackageJson:!1,moduleSymbol:go,symbol:ui,targetFlags:mf(ui,g).flags}],o,qS(he))||{};if(oo){const da={kind:ir(6),moduleSymbol:go,isDefaultExport:!1,symbolName:ui.name,exportName:ui.name,fileName:xo,moduleSpecifier:oo};$e[Wi]=da}}}else s.includeCompletionsWithInsertText&&(nn(Y),ut(Y),Fe.push(Y))}else nn(Y),ut(Y),Fe.push(Y);function ut(ai){pJe(ai)&&(ze[To(ai)]=_u.LocalDeclarationPriority)}function nn(ai){s.includeCompletionsWithInsertText&&(Ne&&Ip(Ge,To(ai))?$e[Fe.length]={kind:ir(8)}:J&&($e[Fe.length]={kind:16}))}function ir(ai){return J?ai|16:ai}}function Ln(Y){return We(Y)?Y:Br(Y)?Ln(Y.expression):void 0}function Zt(){return(Oe()||gt()||ea()||Ot()||Le()||pr()||pt()||Ii()||(ta(),1))===1}function pr(){return ie(ee)?(je=5,Ae=!0,Ee=4,1):0}function Ii(){const Y=W(ee),Ne=Y&&g.getContextualType(Y.attributes);if(!Ne)return 0;const J=Y&&g.getContextualType(Y.attributes,4);return Fe=ba(Fe,fe(kU(Ne,J,Y.attributes,g),Y.attributes.properties)),de(),je=3,Ae=!1,1}function ea(){return ce?(Ae=!0,Bn(),1):0}function ta(){Ee=ye(ee)?5:1,je=1,Ae=Ir(),H!==ee&&R.assert(!!H,"Expected 'contextToken' to be defined when different from 'previousToken'.");const Y=H!==ee?H.getStart():o,Ne=Rn(ee,Y,r)||r;k=Lt(Ne);const J=(lt?0:111551)|788968|1920|2097152,wt=H&&!qS(H);Fe=ba(Fe,g.getSymbolsInScope(Ne,J)),R.assertEachIsDefined(Fe,"getSymbolsInScope() should all be defined");for(let Et=0;Et<Fe.length;Et++){const ut=Fe[Et];if(!g.isArgumentsSymbol(ut)&&!Dt(ut.declarations,nn=>nn.getSourceFile()===r)&&(ze[To(ut)]=_u.GlobalsOrKeywords),wt&&!(ut.flags&111551)){const nn=ut.declarations&&$t(ut.declarations,Yz);if(nn){const ir={kind:64,declaration:nn};$e[Et]=ir}}}if(s.includeCompletionsWithInsertText&&Ne.kind!==308){const Et=g.tryGetThisTypeAt(Ne,!1,_i(Ne.parent)?Ne:void 0);if(Et&&!_Je(Et,r,g))for(const ut of wU(Et,g))$e[Fe.length]={kind:1},Fe.push(ut),ze[To(ut)]=_u.SuggestedClassMembers}Bn(),lt&&(Ee=ee&&AT(ee.parent)?6:7)}function Or(){return ce?!0:Ue||!s.includeCompletionsForModuleExports?!1:r.externalModuleIndicator||r.commonJsModuleIndicator||vZ(e.getCompilerOptions())?!0:ube(e)}function Lt(Y){switch(Y.kind){case 308:case 225:case 291:case 238:return!0;default:return wa(Y)}}function yn(){return M||!!ce&&Mb(he.parent)||!Wt(ee)&&(WN(ee,r,g)||Ih(he)||In(ee))}function Wt(Y){return Y&&(Y.kind===112&&(Y.parent.kind===183||HC(Y.parent))||Y.kind===129&&Y.parent.kind===179)}function In(Y){if(Y){const Ne=Y.parent.kind;switch(Y.kind){case 58:return Ne===169||Ne===168||Ne===166||Ne===257||CS(Ne);case 63:return Ne===262;case 128:return Ne===231;case 29:return Ne===180||Ne===213;case 94:return Ne===165;case 150:return Ne===235}}return!1}function Bn(){var Y,Ne;if(!Or()||(R.assert(!(c!=null&&c.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),c&&!c.source))return;te|=1;const wt=H===ee&&ce?"":H&&We(H)?H.text.toLowerCase():"",Et=(Y=_.getModuleSpecifierCache)==null?void 0:Y.call(_),ut=rO(r,_,e,s,v),nn=(Ne=_.getPackageJsonAutoImportProvider)==null?void 0:Ne.call(_),ir=c?void 0:Y4(r,s,_);yAe("collectAutoImports",_,Be||(Be=Qu.createImportSpecifierResolver(r,e,_,s)),e,o,s,!!ce,qS(he),gi=>{ut.search(r.path,re,(ui,Wi)=>{if(!W_(ui,ns(_.getCompilationSettings()))||!c&&PS(ui)||!lt&&!ce&&!(Wi&111551)||lt&&!(Wi&790504))return!1;const go=ui.charCodeAt(0);return re&&(go<65||go>90)?!1:c?!0:VAe(ui,wt)},(ui,Wi,go,xo)=>{if(c&&!Dt(ui,mi=>c.source===X_(mi.moduleSymbol.name))||(ui=ur(ui,ai),!ui.length))return;const oo=gi.tryResolve(ui,go)||{};if(oo==="failed")return;let da=ui[0],Hi;oo!=="skipped"&&({exportInfo:da=ui[0],moduleSpecifier:Hi}=oo);const $r=da.exportKind===1,ls=$r&&xC(da.symbol)||da.symbol;lr(ls,{kind:Hi?32:4,moduleSpecifier:Hi,symbolName:Wi,exportMapKey:xo,exportName:da.exportKind===2?"export=":da.symbol.name,fileName:da.moduleFileName,isDefaultExport:$r,moduleSymbol:da.moduleSymbol,isFromPackageJson:da.isFromPackageJson})}),Je=gi.skippedAny(),te|=gi.resolvedAny()?8:0,te|=gi.resolvedBeyondLimit()?16:0});function ai(gi){const ui=li(gi.moduleSymbol.valueDeclaration,Ki);if(!ui){const Wi=X_(gi.moduleSymbol.name);return c2.nodeCoreModules.has(Wi)&&xa(Wi,"node:")!==yB(r,e)?!1:ir?ir.allowsImportingAmbientModule(gi.moduleSymbol,Ct(gi.isFromPackageJson)):!0}return XZ(gi.isFromPackageJson?nn:e,r,ui,s,ir,Ct(gi.isFromPackageJson),Et)}}function lr(Y,Ne){const J=To(Y);ze[J]!==_u.GlobalsOrKeywords&&($e[Fe.length]=Ne,ze[J]=ce?_u.LocationPriority:_u.AutoImportSuggestions,Fe.push(Y))}function Oi(Y,Ne){_r(he)||Y.forEach(J=>{if(!bi(J))return;const wt=LU(J,ns(i),void 0,0,!1);if(!wt)return;const{name:Et}=wt,ut=qqe(J,Et,Ne,e,_,i,s,d);if(!ut)return;const nn=Li({kind:128},ut);te|=32,$e[Fe.length]=nn,Fe.push(J)})}function bi(Y){return!!(Y.flags&8196)}function Rn(Y,Ne,J){let wt=Y;for(;wt&&!iZ(wt,Ne,J);)wt=wt.parent;return wt}function an(Y){const Ne=ol(),J=Hr(Y)||He(Y)||jt(Y)||On(Y)||N5(Y);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(ol()-Ne)),J}function On(Y){if(Y.kind===11)return!0;if(Y.kind===31&&Y.parent){if(he===Y.parent&&(he.kind===283||he.kind===282))return!1;if(Y.parent.kind===283)return he.parent.kind!==283;if(Y.parent.kind===284||Y.parent.kind===282)return!!Y.parent.parent&&Y.parent.parent.kind===281}return!1}function Ir(){if(ee){const Y=ee.parent.kind,Ne=IU(ee);switch(Ne){case 27:return Y===210||Y===173||Y===211||Y===206||Y===223||Y===181||Y===207;case 20:return Y===210||Y===173||Y===211||Y===214||Y===193;case 22:return Y===206||Y===178||Y===164;case 142:case 143:case 100:return!0;case 24:return Y===264;case 18:return Y===260||Y===207;case 63:return Y===257||Y===223;case 15:return Y===225;case 16:return Y===236;case 132:return Y===171||Y===300;case 41:return Y===171}if(SO(Ne))return!0}return!1}function Hr(Y){return(UK(Y)||$z(Y))&&(GN(Y,o)||o===Y.end&&(!!Y.isUnterminated||UK(Y)))}function Oe(){const Y=dJe(ee);if(!Y)return 0;const J=(y6(Y.parent)?Y.parent:void 0)||Y,wt=MAe(J,g);if(!wt)return 0;const Et=g.getTypeFromTypeNode(J),ut=wU(wt,g),nn=wU(Et,g),ir=new Set;return nn.forEach(ai=>ir.add(ai.escapedName)),Fe=ba(Fe,ur(ut,ai=>!ir.has(ai.escapedName))),je=0,Ae=!0,1}function gt(){const Y=Fe.length,Ne=aJe(ee);if(!Ne)return 0;je=0;let J,wt;if(Ne.kind===207){const Et=mJe(Ne,g);if(Et===void 0)return Ne.flags&33554432?2:(Ue=!0,0);const ut=g.getContextualType(Ne,4),nn=(ut||Et).getStringIndexType(),ir=(ut||Et).getNumberIndexType();if(Ae=!!nn||!!ir,J=kU(Et,ut,Ne,g),wt=Ne.properties,J.length===0&&!ir)return Ue=!0,0}else{R.assert(Ne.kind===203),Ae=!1;const Et=zm(Ne.parent);if(!sC(Et))return R.fail("Root declaration is not variable-like.");let ut=Wv(Et)||!!iu(Et)||Et.parent.parent.kind===247;if(!ut&&Et.kind===166&&(yt(Et.parent)?ut=!!g.getContextualType(Et.parent):(Et.parent.kind===171||Et.parent.kind===175)&&(ut=yt(Et.parent.parent)&&!!g.getContextualType(Et.parent.parent))),ut){const nn=g.getTypeAtLocation(Ne);if(!nn)return 2;J=g.getPropertiesOfType(nn).filter(ir=>g.isPropertyAccessible(Ne,!1,!1,nn,ir)),wt=Ne.elements}}if(J&&J.length>0){const Et=Sn(J,R.checkDefined(wt));Fe=ba(Fe,Et),de(),Ne.kind===207&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Jt(Y),Oi(Et,Ne))}return 1}function Ot(){if(!ee)return 0;const Y=ee.kind===18||ee.kind===27?li(ee.parent,OJ):KF(ee)?li(ee.parent.parent,OJ):void 0;if(!Y)return 0;KF(ee)||(Ee=8);const{moduleSpecifier:Ne}=Y.kind===272?Y.parent.parent:Y.parent;if(!Ne)return Ae=!0,Y.kind===272?2:0;const J=g.getSymbolAtLocation(Ne);if(!J)return Ae=!0,2;je=3,Ae=!1;const wt=g.getExportsAndPropertiesOfModule(J),Et=new Set(Y.elements.filter(nn=>!Te(nn)).map(nn=>(nn.propertyName||nn.name).escapedText)),ut=wt.filter(nn=>nn.escapedName!=="default"&&!Et.has(nn.escapedName));return Fe=ba(Fe,ut),ut.length||(Ee=0),1}function Le(){var Y;const Ne=ee&&(ee.kind===18||ee.kind===27)?li(ee.parent,tp):void 0;if(!Ne)return 0;const J=rr(Ne,Pm(Ki,Xl));return je=5,Ae=!1,(Y=J.locals)==null||Y.forEach((wt,Et)=>{var ut,nn;Fe.push(wt),(nn=(ut=J.symbol)==null?void 0:ut.exports)!=null&&nn.has(Et)&&(ze[To(wt)]=_u.OptionalMember)}),1}function pt(){const Y=uJe(r,ee,he,o);if(!Y)return 0;if(je=3,Ae=!0,Ee=ee.kind===41?0:_i(Y)?2:3,!_i(Y))return 1;const Ne=ee.kind===26?ee.parent.parent:ee.parent;let J=qc(Ne)?zu(Ne):0;if(ee.kind===79&&!Te(ee))switch(ee.getText()){case"private":J=J|8;break;case"static":J=J|32;break;case"override":J=J|16384;break}if(Rl(Ne)&&(J|=32),!(J&8)){const wt=_i(Y)&&J&16384?hT(am(Y)):bk(Y),Et=ji(wt,ut=>{const nn=g.getTypeAtLocation(ut);return J&32?(nn==null?void 0:nn.symbol)&&g.getPropertiesOfType(g.getTypeOfSymbolAtLocation(nn.symbol,Y)):nn&&g.getPropertiesOfType(nn)});Fe=ba(Fe,at(Et,Y.members,J)),Ie(Fe,(ut,nn)=>{const ir=ut==null?void 0:ut.valueDeclaration;if(ir&&qc(ir)&&ir.name&&Cs(ir.name)){const ai={kind:512,symbolName:g.symbolToString(ut)};$e[nn]=ai}})}return 1}function me(Y){return!!Y.parent&&Ba(Y.parent)&&Kl(Y.parent.parent)&&(ik(Y.kind)||xg(Y))}function ie(Y){if(Y){const Ne=Y.parent;switch(Y.kind){case 20:case 27:return Kl(Y.parent)?Y.parent:void 0;default:if(me(Y))return Ne.parent}}}function ye(Y){if(Y){let Ne;const J=rr(Y.parent,wt=>_i(wt)?"quit":el(wt)&&Ne===wt.body?!0:(Ne=wt,!1));return J&&J}}function W(Y){if(Y){const Ne=Y.parent;switch(Y.kind){case 31:case 30:case 43:case 79:case 208:case 289:case 288:case 290:if(Ne&&(Ne.kind===282||Ne.kind===283)){if(Y.kind===31){const J=Dc(Y.pos,r,void 0);if(!Ne.typeArguments||J&&J.kind===43)break}return Ne}else if(Ne.kind===288)return Ne.parent.parent;break;case 10:if(Ne&&(Ne.kind===288||Ne.kind===290))return Ne.parent.parent;break;case 19:if(Ne&&Ne.kind===291&&Ne.parent&&Ne.parent.kind===288)return Ne.parent.parent.parent;if(Ne&&Ne.kind===290)return Ne.parent.parent;break}}}function He(Y){const Ne=Y.parent,J=Ne.kind;switch(Y.kind){case 27:return J===257||cn(Y)||J===240||J===263||Ye(J)||J===261||J===204||J===262||_i(Ne)&&!!Ne.typeParameters&&Ne.typeParameters.end>=Y.pos;case 24:return J===204;case 58:return J===205;case 22:return J===204;case 20:return J===295||Ye(J);case 18:return J===263;case 29:return J===260||J===228||J===261||J===262||CS(J);case 124:return J===169&&!_i(Ne.parent);case 25:return J===166||!!Ne.parent&&Ne.parent.kind===204;case 123:case 121:case 122:return J===166&&!Kl(Ne.parent);case 128:return J===273||J===278||J===271;case 137:case 151:return!DU(Y);case 79:if(J===273&&Y===Ne.name&&Y.text==="type")return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 138:return!0;case 154:return J!==273;case 41:return Ya(Y.parent)&&!sc(Y.parent)}if(SO(IU(Y))&&DU(Y)||me(Y)&&(!We(Y)||ik(IU(Y))||Te(Y)))return!1;switch(IU(Y)){case 126:case 84:case 85:case 136:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 132:return ro(Y.parent)}if(rr(Y.parent,_i)&&Y===H&&et(Y,o))return!1;const Et=f1(Y.parent,169);if(Et&&Y!==H&&_i(H.parent.parent)&&o<=H.end){if(et(Y,H.end))return!1;if(Y.kind!==63&&(pN(Et)||UM(Et)))return!0}return xg(Y)&&!l_(Y.parent)&&!fm(Y.parent)&&!(_i(Y.parent)&&(Y!==H||o>H.end))}function et(Y,Ne){return Y.kind!==63&&(Y.kind===26||!x_(Y.end,Ne,r))}function Ye(Y){return CS(Y)&&Y!==173}function jt(Y){if(Y.kind===8){const Ne=Y.getFullText();return Ne.charAt(Ne.length-1)==="."}return!1}function cn(Y){return Y.parent.kind===258&&!WN(Y,r,g)}function Sn(Y,Ne){if(Ne.length===0)return Y;const J=new Set,wt=new Set;for(const ut of Ne){if(ut.kind!==299&&ut.kind!==300&&ut.kind!==205&&ut.kind!==171&&ut.kind!==174&&ut.kind!==175&&ut.kind!==301||Te(ut))continue;let nn;if(dx(ut))Er(ut,J);else if(ms(ut)&&ut.propertyName)ut.propertyName.kind===79&&(nn=ut.propertyName.escapedText);else{const ir=ka(ut);nn=ir&&J_(ir)?Tk(ir):void 0}nn!==void 0&&wt.add(nn)}const Et=Y.filter(ut=>!wt.has(ut.escapedName));return mt(J,Et),Et}function Er(Y,Ne){const J=Y.expression,wt=g.getSymbolAtLocation(J),Et=wt&&g.getTypeOfSymbolAtLocation(wt,J),ut=Et&&Et.properties;ut&&ut.forEach(nn=>{Ne.add(nn.name)})}function de(){Fe.forEach(Y=>{var Ne;if(Y.flags&16777216){const J=To(Y);ze[J]=(Ne=ze[J])!=null?Ne:_u.OptionalMember}})}function mt(Y,Ne){if(Y.size!==0)for(const J of Ne)Y.has(J.name)&&(ze[To(J)]=_u.MemberDeclaredBySpreadAssignment)}function Jt(Y){var Ne;for(let J=Y;J<Fe.length;J++){const wt=Fe[J],Et=To(wt),ut=$e==null?void 0:$e[J],nn=ns(i),ir=LU(wt,nn,ut,0,!1);if(ir){const ai=(Ne=ze[Et])!=null?Ne:_u.LocationPriority,{name:gi}=ir;ze[Et]=_u.ObjectLiteralProperty(ai,gi)}}}function at(Y,Ne,J){const wt=new Set;for(const Et of Ne){if(Et.kind!==169&&Et.kind!==171&&Et.kind!==174&&Et.kind!==175||Te(Et)||Hd(Et,8)||Xa(Et)!==!!(J&32))continue;const ut=Hb(Et.name);ut&&wt.add(ut)}return Y.filter(Et=>!wt.has(Et.escapedName)&&!!Et.declarations&&!(a_(Et)&8)&&!(Et.valueDeclaration&&od(Et.valueDeclaration)))}function fe(Y,Ne){const J=new Set,wt=new Set;for(const ut of Ne)Te(ut)||(ut.kind===288?J.add(ut.name.escapedText):XT(ut)&&Er(ut,wt));const Et=Y.filter(ut=>!J.has(ut.escapedName));return mt(wt,Et),Et}function Te(Y){return Y.getStart(r)<=o&&o<=Y.getEnd()}}function aJe(e){if(e){const{parent:t}=e;switch(e.kind){case 18:case 27:if(Is(t)||$m(t))return t;break;case 41:return sc(t)?li(t.parent,Is):void 0;case 79:return e.text==="async"&&l_(e.parent)?e.parent.parent:void 0}}}function CU(e,t){const r=Dc(e,t);return r&&e<=r.end&&(gg(r)||Dd(r.kind))?{contextToken:Dc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function kAe(e,t,r,i){const o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),c=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(R.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!c)return;let _=t.exportName==="export="?s.resolveExternalModuleSymbol(c):s.tryGetMemberInModuleExportsAndProperties(t.exportName,c);return _?(_=t.exportName==="default"&&xC(_)||_,{symbol:_,origin:Kqe(t,e,c)}):void 0}function LU(e,t,r,i,o){if(Dqe(r))return;const s=Lqe(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&nR(s.charCodeAt(0))||xR(e))return;const c={name:s,needsConvertPropertyAccess:!1};if(W_(s,t,o?1:0)||e.valueDeclaration&&od(e.valueDeclaration))return c;switch(i){case 3:return zne(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 c;default:R.assertNever(i)}}function wAe(e,t){if(!t)return DAe(e);const r=e+8+1;return xO[r]||(xO[r]=DAe(e).filter(i=>!oJe(bT(i.name))))}function DAe(e){return xO[e]||(xO[e]=ore().filter(t=>{const r=bT(t.name);switch(e){case 0:return!1;case 1:return NAe(r)||r===136||r===142||r===154||r===143||r===126||H4(r)&&r!==155;case 5:return NAe(r);case 2:return SO(r);case 3:return RAe(r);case 4:return ik(r);case 6:return H4(r)||r===85;case 7:return H4(r);case 8:return r===154;default:return R.assertNever(e)}}))}function oJe(e){switch(e){case 126:case 131:case 160:case 134:case 136:case 92:case 159:case 117:case 138:case 118:case 140:case 141:case 142:case 143:case 144:case 148:case 149:case 161:case 121:case 122:case 123:case 146:case 152:case 153:case 154:case 156:case 157:return!0;default:return!1}}function RAe(e){return e===146}function SO(e){switch(e){case 126:case 127:case 135:case 137:case 151:case 132:case 136:case 161:return!0;default:return Qz(e)}}function NAe(e){return e===132||e===133||e===128||e===150||e===154||!EP(e)&&!SO(e)}function IU(e){var t;return We(e)?(t=o1(e))!=null?t:0:e.kind}function sJe(e,t){const r=[];if(e){const i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,c=i.getLineAndCharacterOfPosition(t).line;(Yc(o)||au(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===c&&r.push({name:bo(130),kind:"keyword",kindModifiers:"",sortText:_u.GlobalsOrKeywords})}return r}function lJe(e,t){return rr(e,r=>sk(r)&&BN(r,t)?!0:eh(r)?"quit":!1)}function kU(e,t,r,i){const o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,c=cJe(s,r,i);return s.isClass()&&OAe(c)?[]:o?ur(c,_):c;function _(d){return ge(d.declarations)?Dt(d.declarations,v=>v.parent!==r):!0}}function cJe(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(ur(e.types,i=>!(i.flags&134348796||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&OAe(i.getApparentProperties())))):e.getApparentProperties()}function OAe(e){return Dt(e,t=>!!(a_(t)&24))}function wU(e,t){return e.isUnion()?R.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):R.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function uJe(e,t,r,i){var o;switch(r.kind){case 354:return li(r.parent,jS);case 1:const s=li(rl(lo(r.parent,Ki).statements),jS);if(s&&!Es(s,19,e))return s;break;case 79:{if(o1(r)||ro(r.parent)&&r.parent.initializer===r)return;if(DU(r))return rr(r,jS)}}if(t){if(r.kind===135||We(t)&&ro(t.parent)&&_i(r))return rr(t,_i);switch(t.kind){case 63:return;case 26:case 19:return DU(r)&&r.parent.name===r?r.parent.parent:li(r,jS);case 18:case 27:return li(t.parent,jS);default:if(jS(r)){if(ll(e,t.getEnd()).line!==ll(e,i).line)return r;const s=_i(t.parent.parent)?SO:RAe;return s(t.kind)||t.kind===41||We(t)&&s((o=o1(t))!=null?o:0)?t.parent.parent:void 0}return}}}function dJe(e){if(!e)return;const t=e.parent;switch(e.kind){case 18:if(hf(t))return t;break;case 26:case 27:case 79:if(t.kind===168&&hf(t.parent))return t.parent;break}}function MAe(e,t){if(!e)return;if(Bi(e)&&VM(e.parent))return t.getTypeArgumentConstraint(e);const r=MAe(e.parent,t);if(r)switch(e.kind){case 168:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 190:case 184:case 189:return r}}function DU(e){return e.parent&&MM(e.parent)&&jS(e.parent.parent)}function fJe(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&kbe(r)&&i===r.getStart(e)+1;case"#":return!!r&&Ri(r)&&!!wc(r);case"<":return!!r&&r.kind===29&&(!Tr(r.parent)||PAe(r.parent));case"/":return!!r&&(As(r)?!!_R(r):r.kind===43&&lx(r.parent));case" ":return!!r&&r4(r)&&r.parent.kind===308;default:return R.assertNever(t)}}function PAe({left:e}){return kl(e)}function _Je(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 pJe(e){return!!(e.valueDeclaration&&zu(e.valueDeclaration)&32&&_i(e.valueDeclaration.parent))}function mJe(e,t){const r=t.getContextualType(e);if(r)return r;const i=zv(e.parent);if(Tr(i)&&i.operatorToken.kind===63&&e===i.left)return t.getTypeAtLocation(i);if(yt(i))return t.getContextualType(i)}function FAe(e){var t,r,i;let o,s=!1;const c=_();return{isKeywordOnlyCompletion:s,keywordCompletion:o,isNewIdentifierLocation:!!(c||o===154),isTopLevelTypeOnly:!!((r=(t=li(c,Yc))==null?void 0:t.importClause)!=null&&r.isTypeOnly)||!!((i=li(c,fu))!=null&&i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!c&&GAe(c,e),replacementSpan:hJe(c)};function _(){const d=e.parent;if(fu(d))return o=e.kind===154?void 0:154,ere(d.moduleReference)?d:void 0;if(GAe(d,e)&&UAe(d.parent))return d;if(Fy(d)||Zv(d)){if(!d.parent.isTypeOnly&&(e.kind===18||e.kind===100||e.kind===27)&&(o=154),UAe(d))if(e.kind===19||e.kind===79)s=!0,o=158;else return d.parent.parent;return}if(r4(e)&&Ki(d))return o=154,e;if(r4(e)&&Yc(d))return o=154,ere(d.moduleSpecifier)?d:void 0}}function hJe(e){var t,r,i;if(!e)return;const o=(t=rr(e,Pm(Yc,fu)))!=null?t:e,s=o.getSourceFile();if(VT(o,s))return fd(o,s);R.assert(o.kind!==100&&o.kind!==273);const c=o.kind===269?(i=BAe((r=o.importClause)==null?void 0:r.namedBindings))!=null?i:o.moduleSpecifier:o.moduleReference,_={pos:o.getFirstToken().getStart(),end:c.pos};if(VT(_,s))return o0(_)}function BAe(e){var t;return $t((t=li(e,Fy))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&PS(r.name.text)&&((i=Dc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==27})}function GAe(e,t){return Nd(e)&&(e.isTypeOnly||t===e.name&&KF(t))}function UAe(e){if(!ere(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Fy(e)){const t=BAe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function ere(e){var t;return kl(e)?!0:!((t=li(Zm(e)?e.expression:e,As))!=null&&t.text)}function gJe(e){return rr(e,r=>DT(r)||yJe(r)||$a(r)?"quit":$i(r))}function yJe(e){return e.parent&&Xs(e.parent)&&e.parent.body===e}function tre(e,t,r=new Map){return i(e)||i(mf(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&Ip(r,To(o))&&t.getExportsOfModule(o).some(s=>tre(s,t,r))}}function vJe(e,t){const r=mf(e,t).declarations;return!!ge(r)&&Qn(r,gB)}function VAe(e,t){if(t.length===0)return!0;let r=!1,i,o=0;const s=e.length;for(let c=0;c<s;c++){const _=e.charCodeAt(c),d=t.charCodeAt(o);if((_===d||_===bJe(d))&&(r||(r=i===void 0||97<=i&&i<=122&&65<=_&&_<=90||i===95&&_!==95),r&&o++,o===t.length))return!0;i=_}return!1}function bJe(e){return 97<=e&&e<=122?e-32:e}var RU,nre,_u,rre,ire,are,xO,ore,EJe=b({"src/services/completions.ts"(){"use strict";Zr(),fre(),RU=100,nre=1e3,_u={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`${e}\0${t}\0`},SortBelow(e){return e+"1"}},rre=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e))(rre||{}),ire=(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))(ire||{}),are=(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))(are||{}),xO=[],ore=Ld(()=>{const e=[];for(let t=81;t<=162;t++)e.push({name:bo(t),kind:"keyword",kindModifiers:"",sortText:_u.GlobalsOrKeywords});return e})}});function sre(){const e=new Map;function t(r){const i=e.get(r.name);(!i||dre[i.kind]<dre[r.kind])&&e.set(r.name,r)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function TJe(e,t,r,i,o,s,c,_,d){if(sbe(e,t)){const v=BJe(e,t,i,o);return v&&jAe(v)}if(_2(e,t,r)){if(!r||!As(r))return;const v=HAe(e,r,t,s.getTypeChecker(),i,o,_);return SJe(v,r,e,o,s,c,i,_,t,d)}}function SJe(e,t,r,i,o,s,c,_,d,v){if(e===void 0)return;const g=mZ(t);switch(e.kind){case 0:return jAe(e.paths);case 1:{const T=YW();return Yne(e.symbols,T,t,t,r,d,r,i,o,99,s,4,_,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,v),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:g,entries:T}}case 2:{const T=e.types.map(C=>({name:C.value,kindModifiers:"",kind:"string",sortText:_u.LocationPriority,replacementSpan:pZ(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:g,entries:T}}default:return R.assertNever(e)}}function xJe(e,t,r,i,o,s,c,_,d){if(!i||!As(i))return;const v=HAe(t,i,r,o,s,c,d);return v&&AJe(e,i,v,t,o,_)}function AJe(e,t,r,i,o,s){switch(r.kind){case 0:{const c=$t(r.paths,_=>_.name===e);return c&&TO(e,WAe(c.extension),c.kind,[Gf(e)])}case 1:{const c=$t(r.symbols,_=>_.name===e);return c&&Qne(c,c.name,o,i,t,s)}case 2:return $t(r.types,c=>c.value===e)?TO(e,"","string",[Gf(e)]):void 0;default:return R.assertNever(r)}}function jAe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:c,extension:_})=>({name:o,kind:s,kindModifiers:WAe(_),sortText:_u.LocationPriority,replacementSpan:c}))}}function WAe(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 R.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return R.assertNever(e)}}function HAe(e,t,r,i,o,s,c){const _=zAe(t.parent);switch(_.kind){case 198:{const C=zAe(_.parent);switch(C.kind){case 230:case 180:{const M=rr(_,k=>k.parent===C);return M?{kind:2,types:AO(i.getTypeArgumentConstraint(M)),isNewIdentifier:!1}:void 0}case 196:const{indexType:L,objectType:I}=C;return BN(L,r)?qAe(i.getTypeFromTypeNode(I)):void 0;case 202:return{kind:0,paths:KAe(e,t,o,s,i,c)};case 189:{if(!ep(C.parent))return;const M=CJe(C,_);return{kind:2,types:AO(i.getTypeArgumentConstraint(C)).filter(U=>!Fr(M,U.value)),isNewIdentifier:!1}}default:return}}case 299:return Is(_.parent)&&_.name===t?IJe(i,_.parent):d()||d(0);case 209:{const{expression:C,argumentExpression:L}=_;return t===Hs(L)?qAe(i.getTypeAtLocation(C)):void 0}case 210:case 211:case 288:if(!jJe(t)&&!pf(_)){const C=qO.getArgumentInfoForCompletions(_.kind===288?_.parent:t,r,e);return C&&LJe(C.invocation,t,C,i)||d()}case 269:case 275:case 280:return{kind:0,paths:KAe(e,t,o,s,i,c)};case 292:const v=bB(i,_.parent.clauses),g=d();return g?{kind:2,types:g.types.filter(C=>!v.hasValue(C.value)),isNewIdentifier:!1}:void 0;default:return d()}function d(v=4){const g=AO(aB(t,i,v));if(g.length)return{kind:2,types:g,isNewIdentifier:!1}}}function zAe(e){switch(e.kind){case 193:return yR(e);case 214:return zv(e);default:return e}}function CJe(e,t){return ua(e.types,r=>r!==t&&v1(r)&&Wo(r.literal)?r.literal.text:void 0)}function LJe(e,t,r,i){let o=!1;const s=new Map,c=[],_=sd(e)?R.checkDefined(rr(t.parent,fm)):t;i.getResolvedSignatureForStringLiteralCompletions(e,_,c);const d=ji(c,v=>{if(!Lu(v)&&r.argumentCount>v.parameters.length)return;let g=v.getTypeParameterAtPosition(r.argumentIndex);if(sd(e)){const T=i.getTypeOfPropertyOfType(g,_.name.text);T&&(g=T)}return o=o||!!(g.flags&4),AO(g,s)});return ge(d)?{kind:2,types:d,isNewIdentifier:o}:void 0}function qAe(e){return e&&{kind:1,symbols:ur(e.getApparentProperties(),t=>!(t.valueDeclaration&&od(t.valueDeclaration))),hasIndexSignature:MZ(e)}}function IJe(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:kU(r,i,t,e),hasIndexSignature:MZ(r)}}function AO(e,t=new Map){return e?(e=yZ(e),e.isUnion()?ji(e.types,r=>AO(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Ip(t,e.value)?[e]:it):it}function LL(e,t,r){return{name:e,kind:t,extension:r}}function lre(e){return LL(e,"directory",void 0)}function JAe(e,t,r){const i=UJe(e,t),o=e.length===0?void 0:Mc(t,e.length);return r.map(({name:s,kind:c,extension:_})=>Math.max(s.indexOf(Bs),s.indexOf(ED))!==-1?{name:s,kind:c,extension:_,span:o}:{name:s,kind:c,extension:_,span:i})}function KAe(e,t,r,i,o,s){return JAe(t.text,t.getStart(e)+1,kJe(e,t,r,i,o,s))}function kJe(e,t,r,i,o,s){const c=ru(t.text),_=As(t)?Dp(e,t):void 0,d=e.path,v=vi(d),g=cre(r,1,e,o,s,_);return VJe(c)||!r.baseUrl&&(Fm(c)||Mde(c))?wJe(c,v,r,i,d,g):OJe(c,v,_,r,i,g,o)}function cre(e,t,r,i,o,s){return{extensionsToSearch:Ha(DJe(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o==null?void 0:o.importModuleSpecifierEnding,resolutionMode:s}}function wJe(e,t,r,i,o,s){return r.rootDirs?NJe(r.rootDirs,e,t,s,r,i,o):Oo(l8(e,t,s,i,!1,o).values())}function DJe(e,t){const r=t?ua(t.getAmbientModules(),s=>{const c=s.name.slice(1,-1);if(!(!c.startsWith("*.")||c.includes("/")))return c.slice(1)}):[],i=[...jk(e),r],o=El(e);return YF(o)?HR(e,i):i}function RJe(e,t,r,i){e=e.map(s=>Xo(Fm(s)?s:Fi(t,s)));const o=qt(e,s=>Mv(s,r,t,i)?r.substr(s.length):void 0);return BA([...e.map(s=>Fi(s,o)),r],mS,ju)}function NJe(e,t,r,i,o,s,c){const _=o.project||s.getCurrentDirectory(),d=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),v=RJe(e,_,r,d);return ji(v,g=>Oo(l8(t,g,i,s,!0,c).values()))}function l8(e,t,r,i,o,s,c=sre()){var _;e===void 0&&(e=""),e=ru(e),Nv(e)||(e=vi(e)),e===""&&(e="."+Bs),e=Wu(e);const d=Ov(t,e),v=Nv(d)?d:vi(d);if(!o){const L=Rbe(v,i);if(L){const M=Rk(L,i).typesVersions;if(typeof M=="object"){const k=(_=T9(M))==null?void 0:_.paths;if(k){const U=vi(L),j=d.slice(Wu(U).length);if(YAe(c,j,U,r,i,k))return c}}}}const g=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!fB(i,v))return c;const T=BZ(i,v,r.extensionsToSearch,void 0,["./*"]);if(T)for(let L of T){if(L=Xo(L),s&&vT(L,s,t,g)===0)continue;const{name:I,extension:M}=XAe(Eu(L),i.getCompilationSettings(),r);c.add(LL(I,"script",M))}const C=uB(i,v);if(C)for(const L of C){const I=Eu(Xo(L));I!=="@types"&&c.add(lre(I))}return c}function XAe(e,t,r){const i=oE.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:Nh(i)};if(r.referenceKind===0)return{name:e,extension:Nh(e)};const o=JJ(r.endingPreference,r.resolutionMode,t,r.importingSourceFile);if(o===3){if(Ic(e,n5))return{name:e,extension:Nh(e)};const c=oE.tryGetJSExtensionForFile(e,t);return c?{name:Xb(e,c),extension:c}:{name:e,extension:Nh(e)}}if((o===0||o===1)&&Ic(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:zd(e),extension:Nh(e)};const s=oE.tryGetJSExtensionForFile(e,t);return s?{name:Xb(e,s),extension:s}:{name:e,extension:Nh(e)}}function YAe(e,t,r,i,o,s){const c=d=>s[d],_=(d,v)=>{const g=IC(d),T=IC(v),C=typeof g=="object"?g.prefix.length:d.length,L=typeof T=="object"?T.prefix.length:v.length;return qs(L,C)};return $Ae(e,t,r,i,o,fg(s),c,_)}function $Ae(e,t,r,i,o,s,c,_){let d=[],v;for(const g of s){if(g===".")continue;const T=g.replace(/^\.\//,""),C=c(g);if(C){const L=IC(T);if(!L)continue;const I=typeof L=="object"&&H7(L,t);I&&(v===void 0||_(g,v)===-1)&&(v=g,d=d.filter(k=>!k.matchedPattern)),(typeof L=="string"||v===void 0||_(g,v)!==1)&&d.push({matchedPattern:I,results:MJe(T,C,t,r,i,o).map(({name:k,kind:U,extension:j})=>LL(k,U,j))})}}return d.forEach(g=>g.results.forEach(T=>e.add(T))),v!==void 0}function OJe(e,t,r,i,o,s,c){const{baseUrl:_,paths:d}=i,v=sre(),g=El(i);if(_){const C=i.project||o.getCurrentDirectory(),L=Xo(Fi(C,_));l8(e,L,s,o,!1,void 0,v),d&&YAe(v,e,L,s,o,d)}const T=ZAe(e);for(const C of FJe(e,T,c))v.add(LL(C,"external module name",void 0));if(nCe(o,i,t,T,s,v),YF(g)){let C=!1;if(T===void 0)for(const L of GJe(o,t)){const I=LL(L,"external module name",void 0);v.has(I.name)||(C=!0,v.add(I))}if(!C){let L=I=>{const M=Fi(I,"node_modules");fB(o,M)&&l8(e,M,s,o,!1,void 0,v)};if(T&&BJ(i)){const I=L;L=M=>{const k=md(e);k.shift();let U=k.shift();if(!U)return I(M);if(xa(U,"@")){const ee=k.shift();if(!ee)return I(M);U=Fi(U,ee)}const j=Fi(M,"node_modules",U),H=Fi(j,"package.json");if(dB(o,H)){const X=Rk(H,o).exports;if(X){if(typeof X!="object"||X===null)return;const ne=fg(X),P=k.join("/")+(k.length&&Nv(e)?"/":""),ue=r===99?["node","import","types"]:["node","require","types"];$Ae(v,P,j,s,o,ne,re=>hT(QAe(X[re],ue)),mY);return}}return I(M)}}pg(t,L)}}return Oo(v.values())}function QAe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!ja(e)){for(const r in e)if(r==="default"||t.indexOf(r)>-1||aN(t,r)){const i=e[r];return QAe(i,t)}}}function ZAe(e){return ure(e)?Nv(e)?e:vi(e):void 0}function MJe(e,t,r,i,o,s){if(!oc(e,"*"))return bu(e,"*")?it:d(e,"script");const c=e.slice(0,e.length-1),_=sH(r,c);if(_===void 0)return e[e.length-2]==="/"?d(c,"directory"):ji(t,g=>{var T;return(T=eCe("",i,g,o,s))==null?void 0:T.map(I=>{var M=I,{name:C}=M,L=nW(M,["name"]);return Li({name:c+C},L)})});return ji(t,v=>eCe(_,i,v,o,s));function d(v,g){return xa(v,r)?[{name:yT(v),kind:g,extension:void 0}]:it}}function eCe(e,t,r,i,o){if(!o.readDirectory)return;const s=IC(r);if(s===void 0||za(s))return;const c=Ov(s.prefix),_=Nv(s.prefix)?c:vi(c),d=Nv(s.prefix)?"":Eu(c),v=ure(e),g=v?Nv(e)?e:vi(e):void 0,T=v?Fi(_,d+g):_,C=Xo(s.suffix),L=Xo(Fi(t,T)),I=v?L:Wu(L)+d,M=C?"**/*"+C:"./*",k=ua(BZ(o,L,i.extensionsToSearch,void 0,[M]),H=>{const ee=j(H);if(ee){if(ure(ee))return lre(md(tCe(ee))[1]);const{name:X,extension:ne}=XAe(ee,o.getCompilationSettings(),i);return LL(X,"script",ne)}}),U=C?it:ua(uB(o,L),H=>H==="node_modules"?void 0:lre(H));return[...k,...U];function j(H){const ee=PJe(Xo(H),I,C);return ee===void 0?void 0:tCe(ee)}}function PJe(e,t,r){return xa(e,t)&&oc(e,r)?e.slice(t.length,e.length-r.length):void 0}function tCe(e){return e[0]===Bs?e.slice(1):e}function FJe(e,t,r){const o=r.getAmbientModules().map(s=>X_(s.name)).filter(s=>xa(s,e)&&s.indexOf("*")<0);if(t!==void 0){const s=Wu(t);return o.map(c=>BI(c,s))}return o}function BJe(e,t,r,i){const o=la(e,t),s=xh(e.text,o.pos),c=s&&$t(s,I=>t>=I.pos&&t<=I.end);if(!c)return;const _=e.text.slice(c.pos,t),d=rCe.exec(_);if(!d)return;const[,v,g,T]=d,C=vi(e.path),L=g==="path"?l8(T,C,cre(r,0,e),i,!0,e.path):g==="types"?nCe(i,r,C,ZAe(T),cre(r,1,e)):R.fail();return JAe(T,c.pos+v.length,Oo(L.values()))}function nCe(e,t,r,i,o,s=sre()){const c=new Map,_=_B(()=>nN(t,e))||it;for(const v of _)d(v);for(const v of GZ(r,e)){const g=Fi(vi(v),"node_modules/@types");d(g)}return s;function d(v){if(fB(e,v))for(const g of uB(e,v)){const T=R9(g);if(!(t.types&&!Fr(t.types,T)))if(i===void 0)c.has(T)||(s.add(LL(T,"external module name",void 0)),c.set(T,!0));else{const C=Fi(v,g),L=VJ(i,T,_1(e));L!==void 0&&l8(L,C,o,e,!1,void 0,s)}}}}function GJe(e,t){if(!e.readFile||!e.fileExists)return it;const r=[];for(const i of GZ(t,e)){const o=Rk(i,e);for(const s of iCe){const c=o[s];if(c)for(const _ in c)Fs(c,_)&&!xa(_,"@types/")&&r.push(_)}}return r}function UJe(e,t){const r=Math.max(e.lastIndexOf(Bs),e.lastIndexOf(ED)),i=r!==-1?r+1:0,o=e.length-i;return o===0||W_(e.substr(i,o),99)?void 0:Mc(t+i,o)}function VJe(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 ure(e){return bu(e,Bs)}function jJe(e){return io(e.parent)&&tu(e.parent.arguments)===e&&We(e.parent.expression)&&e.parent.expression.escapedText==="require"}var dre,rCe,iCe,WJe=b({"src/services/stringCompletions.ts"(){"use strict";Zr(),fre(),dre={directory:0,script:1,"external module name":2},rCe=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,iCe=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}}),NU={};B(NU,{getStringLiteralCompletionDetails:()=>xJe,getStringLiteralCompletions:()=>TJe});var HJe=b({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";WJe()}}),Nx={};B(Nx,{CompletionKind:()=>are,CompletionSource:()=>rre,SortText:()=>_u,StringCompletions:()=>NU,SymbolOriginInfoKind:()=>ire,createCompletionDetails:()=>TO,createCompletionDetailsForSymbol:()=>Qne,getCompletionEntriesFromSymbols:()=>Yne,getCompletionEntryDetails:()=>Zqe,getCompletionEntrySymbol:()=>tJe,getCompletionsAtPosition:()=>Rqe,getPropertiesForObjectExpression:()=>kU,moduleSpecifierResolutionCacheAttemptLimit:()=>nre,moduleSpecifierResolutionLimit:()=>RU});var fre=b({"src/services/_namespaces/ts.Completions.ts"(){"use strict";EJe(),HJe()}});function _re(e,t,r,i){const o=KJe(e,r,i);return(s,c,_)=>{const{directImports:d,indirectUsers:v}=zJe(e,t,o,c,r,i);return Li({indirectUsers:v},qJe(d,s,c.exportKind,r,_))}}function zJe(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,c){const _=hL(),d=hL(),v=[],g=!!i.globalExports,T=g?void 0:[];return L(i),{directImports:v,indirectUsers:C()};function C(){if(g)return e;if(i.declarations)for(const H of i.declarations)Bb(H)&&t.has(H.getSourceFile().fileName)&&U(H);return T.map(Zn)}function L(H){const ee=j(H);if(ee){for(const X of ee)if(_(X))switch(c&&c.throwIfCancellationRequested(),X.kind){case 210:if(pf(X)){I(X);break}if(!g){const P=X.parent;if(o===2&&P.kind===257){const{name:ue}=P;if(ue.kind===79){v.push(ue);break}}}break;case 79:break;case 268:k(X,X.name,Qr(X,1),!1);break;case 269:v.push(X);const ne=X.importClause&&X.importClause.namedBindings;ne&&ne.kind===271?k(X,ne.name,!1,!0):!g&&NS(X)&&U(CO(X));break;case 275:X.exportClause?X.exportClause.kind===277?U(CO(X),!0):v.push(X):L(ZJe(X,s));break;case 202:!g&&X.isTypeOf&&!X.qualifier&&M(X)&&U(X.getSourceFile(),!0),v.push(X);break;default:R.failBadSyntaxKind(X,"Unexpected import kind.")}}}function I(H){const ee=rr(H,OU)||H.getSourceFile();U(ee,!!M(H,!0))}function M(H,ee=!1){return rr(H,X=>ee&&OU(X)?"quit":np(X)&&Dt(X.modifiers,P5))}function k(H,ee,X,ne){if(o===2)ne||v.push(H);else if(!g){const P=CO(H);R.assert(P.kind===308||P.kind===264),X||JJe(P,ee,s)?U(P,!0):U(P)}}function U(H,ee=!1){if(R.assert(!g),!d(H)||(T.push(H),!ee))return;const ne=s.getMergedSymbol(H.symbol);if(!ne)return;R.assert(!!(ne.flags&1536));const P=j(ne);if(P)for(const ue of P)Ig(ue)||U(CO(ue),!0)}function j(H){return r.get(To(H).toString())}}function qJe(e,t,r,i,o){const s=[],c=[];function _(C,L){s.push([C,L])}if(e)for(const C of e)d(C);return{importSearches:s,singleReferences:c};function d(C){if(C.kind===268){mre(C)&&v(C.name);return}if(C.kind===79){v(C);return}if(C.kind===202){if(C.qualifier){const M=Of(C.qualifier);M.escapedText===Gl(t)&&c.push(M)}else r===2&&c.push(C.argument.literal);return}if(C.moduleSpecifier.kind!==10)return;if(C.kind===275){C.exportClause&&tp(C.exportClause)&&g(C.exportClause);return}const{name:L,namedBindings:I}=C.importClause||{name:void 0,namedBindings:void 0};if(I)switch(I.kind){case 271:v(I.name);break;case 272:(r===0||r===1)&&g(I);break;default:R.assertNever(I)}if(L&&(r===1||r===2)&&(!o||L.escapedText===ZF(t))){const M=i.getSymbolAtLocation(L);_(L,M)}}function v(C){r===2&&(!o||T(C.escapedText))&&_(C,i.getSymbolAtLocation(C))}function g(C){if(C)for(const L of C.elements){const{name:I,propertyName:M}=L;if(T((M||I).escapedText))if(M)c.push(M),(!o||I.escapedText===t.escapedName)&&_(I,i.getSymbolAtLocation(I));else{const k=L.kind===278&&L.propertyName?i.getExportSpecifierLocalTargetSymbol(L):i.getSymbolAtLocation(I);_(I,k)}}}function T(C){return C===t.escapedName||r!==0&&C==="default"}}function JJe(e,t,r){const i=r.getSymbolAtLocation(t);return!!oCe(e,o=>{if(!au(o))return;const{exportClause:s,moduleSpecifier:c}=o;return!c&&s&&tp(s)&&s.elements.some(_=>r.getExportSpecifierLocalTargetSymbol(_)===i)})}function aCe(e,t,r){var i;const o=[],s=e.getTypeChecker();for(const c of t){const _=r.valueDeclaration;if((_==null?void 0:_.kind)===308){for(const d of c.referencedFiles)e.getSourceFileFromReference(c,d)===_&&o.push({kind:"reference",referencingFile:c,ref:d});for(const d of c.typeReferenceDirectives){const v=(i=e.getResolvedTypeReferenceDirectives().get(d.fileName,d.resolutionMode||c.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;v!==void 0&&v.resolvedFileName===_.fileName&&o.push({kind:"reference",referencingFile:c,ref:d})}}sCe(c,(d,v)=>{s.getSymbolAtLocation(v)===r&&o.push({kind:"import",literal:v})})}return o}function KJe(e,t,r){const i=new Map;for(const o of e)r&&r.throwIfCancellationRequested(),sCe(o,(s,c)=>{const _=t.getSymbolAtLocation(c);if(_){const d=To(_).toString();let v=i.get(d);v||i.set(d,v=[]),v.push(s)}});return i}function oCe(e,t){return Ie(e.kind===308?e.statements:e.body.statements,r=>t(r)||OU(r)&&Ie(r.body&&r.body.statements,t))}function sCe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(fR(r),r);else oCe(e,r=>{switch(r.kind){case 275:case 269:{const i=r;i.moduleSpecifier&&Wo(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 268:{const i=r;mre(i)&&t(i,i.moduleReference.expression);break}}})}function lCe(e,t,r,i){return i?o():o()||s();function o(){var d;const{parent:v}=e,g=v.parent;if(t.exportSymbol)return v.kind===208?(d=t.declarations)!=null&&d.some(L=>L===v)&&Tr(g)?C(g,!1):void 0:c(t.exportSymbol,_(v));{const L=YJe(v,e);if(L&&Qr(L,1))return fu(L)&&L.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(L.name)}:c(t,_(L));if(Bh(v))return c(t,0);if(Vl(v))return T(v);if(Vl(g))return T(g);if(Tr(v))return C(v,!0);if(Tr(g))return C(g,!0);if(sX(v)||tX(v))return c(t,0)}function T(L){if(!L.symbol.parent)return;const I=L.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:L.symbol.parent,exportKind:I}}}function C(L,I){let M;switch(wl(L)){case 1:M=0;break;case 2:M=2;break;default:return}const k=I?r.getSymbolAtLocation(Ope(lo(L.left,ul))):t;return k&&c(k,M)}}function s(){if(!$Je(e))return;let v=r.getImmediateAliasedSymbol(t);if(!v||(v=QJe(v,r),v.escapedName==="export="&&(v=XJe(v,r),v===void 0)))return;const g=ZF(v);if(g===void 0||g==="default"||g===t.escapedName)return{kind:0,symbol:v}}function c(d,v){const g=pre(d,v,r);return g&&{kind:1,symbol:d,exportInfo:g}}function _(d){return Qr(d,1024)?1:0}}function XJe(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const o=R.checkDefined(e.valueDeclaration);if(Vl(o))return(r=li(o.expression,Um))==null?void 0:r.symbol;if(Tr(o))return(i=li(o.right,Um))==null?void 0:i.symbol;if(Ki(o))return o.symbol}function YJe(e,t){const r=$i(e)?e:ms(e)?qA(e):void 0;return r?e.name!==t||JC(r.parent)?void 0:pc(r.parent.parent)?r.parent.parent:void 0:e}function $Je(e){const{parent:t}=e;switch(t.kind){case 268:return t.name===e&&mre(t);case 273:return!t.propertyName;case 270:case 271:return R.assert(t.name===e),!0;case 205:return _r(e)&&jb(t.parent.parent);default:return!1}}function pre(e,t,r){const i=e.parent;if(!i)return;const o=r.getMergedSymbol(i);return qN(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function QJe(e,t){if(e.declarations)for(const r of e.declarations){if(yd(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(Br(r)&&kh(r.expression)&&!Ri(r.name))return t.getSymbolAtLocation(r);if(l_(r)&&Tr(r.parent.parent)&&wl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function ZJe(e,t){return t.getMergedSymbol(CO(e).symbol)}function CO(e){if(e.kind===210)return e.getSourceFile();const{parent:t}=e;return t.kind===308?t:(R.assert(t.kind===265),lo(t.parent,OU))}function OU(e){return e.kind===264&&e.name.kind===10}function mre(e){return e.moduleReference.kind===280&&e.moduleReference.expression.kind===10}var hre,gre,eKe=b({"src/services/importTracker.ts"(){"use strict";Zr(),hre=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(hre||{}),gre=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(gre||{})}});function Uh(e,t=1){return{kind:t,node:e.name||e,context:tKe(e)}}function cCe(e){return e&&e.kind===void 0}function tKe(e){if(Au(e))return mE(e);if(e.parent){if(!Au(e.parent)&&!Vl(e.parent)){if(_r(e)){const r=Tr(e.parent)?e.parent:ul(e.parent)&&Tr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&wl(r)!==0)return mE(r)}if(Gh(e.parent)||lx(e.parent))return e.parent.parent;if(sx(e.parent)||eE(e.parent)||nk(e.parent))return e.parent;if(As(e)){const r=_R(e);if(r){const i=rr(r,o=>Au(o)||wa(o)||sk(o));return Au(i)?mE(i):i}}const t=rr(e,Cs);return t?mE(t.parent):void 0}if(e.parent.name===e||Kl(e.parent)||Vl(e.parent)||(xS(e.parent)||ms(e.parent))&&e.parent.propertyName===e||e.kind===88&&Qr(e.parent,1025))return mE(e.parent)}}function mE(e){if(e)switch(e.kind){case 257:return!Xu(e.parent)||e.parent.declarations.length!==1?e:pc(e.parent.parent)?e.parent.parent:QA(e.parent.parent)?mE(e.parent.parent):e.parent;case 205:return mE(e.parent.parent);case 273:return e.parent.parent.parent;case 278:case 271:return e.parent.parent;case 270:case 277:return e.parent;case 223:return du(e.parent)?e.parent:e;case 247:case 246:return{start:e.initializer,end:e.expression};case 299:case 300:return Wy(e.parent)?mE(rr(e.parent,t=>Tr(t)||QA(t))):e;default:return e}}function yre(e,t,r){if(!r)return;const i=cCe(r)?IO(r.start,t,r.end):IO(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function nKe(e,t,r,i,o){const s=Bf(i,o),c={use:1},_=E2.getReferencedSymbolsForNode(o,s,e,r,t,c),d=e.getTypeChecker(),v=E2.getAdjustedNode(s,c),g=rKe(v)?d.getSymbolAtLocation(v):void 0;return!_||!_.length?void 0:ua(_,({definition:T,references:C})=>T&&{definition:d.runWithCancellationToken(t,L=>oKe(T,L,s)),references:C.map(L=>lKe(L,g))})}function rKe(e){return e.kind===88||!!vR(e)||bR(e)||e.kind===135&&Kl(e.parent)}function iKe(e,t,r,i,o){const s=Bf(i,o);let c;const _=uCe(e,t,r,s,o);if(s.parent.kind===208||s.parent.kind===205||s.parent.kind===209||s.kind===106)c=_&&[..._];else if(_){const v=rH(_),g=new Map;for(;!v.isEmpty();){const T=v.dequeue();if(!Ip(g,hs(T.node)))continue;c=Pn(c,T);const C=uCe(e,t,r,T.node,T.node.pos);C&&v.enqueue(...C)}}const d=e.getTypeChecker();return Pt(c,v=>uKe(v,d))}function uCe(e,t,r,i,o){if(i.kind===308)return;const s=e.getTypeChecker();if(i.parent.kind===300){const c=[];return E2.getReferenceEntriesForShorthandPropertyAssignment(i,s,_=>c.push(Uh(_))),c}else if(i.kind===106||gd(i.parent)){const c=s.getSymbolAtLocation(i);return c.valueDeclaration&&[Uh(c.valueDeclaration)]}else return dCe(o,i,e,r,t,{implementations:!0,use:1})}function aKe(e,t,r,i,o,s,c){return Pt(fCe(E2.getReferencedSymbolsForNode(o,i,e,r,t,s)),_=>c(_,i,e.getTypeChecker()))}function dCe(e,t,r,i,o,s={},c=new Set(i.map(_=>_.fileName))){return fCe(E2.getReferencedSymbolsForNode(e,t,r,i,o,s,c))}function fCe(e){return e&&ji(e,t=>t.references)}function oKe(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:g}=e,{displayParts:T,kind:C}=_Ce(g,t,r),L=T.map(k=>k.text).join(""),I=g.declarations&&tu(g.declarations),M=I?ka(I)||I:r;return so(Li({},LO(M)),{name:L,kind:C,displayParts:T,context:mE(I)})}case 1:{const{node:g}=e;return so(Li({},LO(g)),{name:g.text,kind:"label",displayParts:[Od(g.text,17)]})}case 2:{const{node:g}=e,T=bo(g.kind);return so(Li({},LO(g)),{name:T,kind:"keyword",displayParts:[{text:T,kind:"keyword"}]})}case 3:{const{node:g}=e,T=t.getSymbolAtLocation(g),C=T&&qy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,T,g.getSourceFile(),d2(g),g).displayParts||[Gf("this")];return so(Li({},LO(g)),{name:"this",kind:"var",displayParts:C})}case 4:{const{node:g}=e;return so(Li({},LO(g)),{name:g.text,kind:"var",displayParts:[Od(kc(g),8)]})}case 5:return{textSpan:o0(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[Od(`"${e.reference.fileName}"`,8)]};default:return R.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:c,kind:_,displayParts:d,context:v}=i;return Li({containerKind:"",containerName:"",fileName:o.fileName,kind:_,name:c,textSpan:s,displayParts:d},yre(s,o,v))}function LO(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:IO(Cs(e)?e.expression:e,t)}}function _Ce(e,t,r){const i=E2.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&tu(e.declarations)||r,{displayParts:s,symbolKind:c}=qy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:c}}function sKe(e,t,r,i){return Li(Li({},MU(e)),i&&cKe(e,t,r))}function lKe(e,t){const r=pCe(e);return t?so(Li({},r),{isDefinition:e.kind!==0&&hCe(e.node,t)}):r}function pCe(e){const t=MU(e);if(e.kind===0)return so(Li({},t),{isWriteAccess:!1});const{kind:r,node:i}=e;return so(Li({},t),{isWriteAccess:mCe(i),isInString:r===2?!0:void 0})}function MU(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=IO(e.node,t);return Li({textSpan:r,fileName:t.fileName},yre(r,t,e.context))}}function cKe(e,t,r){if(e.kind!==0&&We(t)){const{node:i,kind:o}=e,s=i.parent,c=t.text,_=l_(s);if(_||XN(s)&&s.name===i&&s.dotDotDotToken===void 0){const d={prefixText:c+": "},v={suffixText:": "+c};if(o===3)return d;if(o===4)return v;if(_){const g=s.parent;return Is(g)&&Tr(g.parent)&&kh(g.parent.left)?d:v}else return d}else if(Nd(s)&&!s.propertyName){const d=yd(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return Fr(d.declarations,s)?{prefixText:c+" as "}:mm}else if(yd(s)&&!s.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:c+" as "}:{suffixText:" as "+c}}return mm}function uKe(e,t){const r=MU(e);if(e.kind!==0){const{node:i}=e;return Li(Li({},r),dKe(i,t))}else return so(Li({},r),{kind:"",displayParts:[]})}function dKe(e,t){const r=t.getSymbolAtLocation(Au(e)&&e.name?e.name:e);return r?_Ce(r,t,e):e.kind===207?{kind:"interface",displayParts:[Iu(20),Gf("object literal"),Iu(21)]}:e.kind===228?{kind:"local class",displayParts:[Iu(20),Gf("anonymous local class"),Iu(21)]}:{kind:_E(e),displayParts:[]}}function fKe(e){const t=MU(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=mCe(e.node),i=Li({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 IO(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return As(e)&&o-i>2&&(R.assert(r===void 0),i+=1,o-=1),Ec(i,o)}function vre(e){return e.kind===0?e.textSpan:IO(e.node,e.node.getSourceFile())}function mCe(e){const t=vR(e);return!!t&&_Ke(t)||e.kind===88||Pk(e)}function hCe(e,t){var r;if(!t)return!1;const i=vR(e)||(e.kind===88?e.parent:bR(e)||e.kind===135&&Kl(e.parent)?e.parent.parent:void 0),o=i&&Tr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function _Ke(e){if(e.flags&16777216)return!0;switch(e.kind){case 223:case 205:case 260:case 228:case 88:case 263:case 302:case 278:case 270:case 268:case 273:case 261:case 341:case 349:case 288:case 264:case 267:case 271:case 277:case 166:case 300:case 262:case 165:return!0;case 299:return!Wy(e.parent);case 259:case 215:case 173:case 171:case 174:case 175:return!!e.body;case 257:case 169:return!!e.initializer||JC(e.parent);case 170:case 168:case 351:case 344:return!1;default:return R.failBadSyntaxKind(e)}}var bre,Ere,Tre,E2,pKe=b({"src/services/findAllReferences.ts"(){"use strict";Zr(),gCe(),bre=(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))(bre||{}),Ere=(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))(Ere||{}),Tre=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Tre||{}),(e=>{function t(Oe,gt,Ot,Le,pt,me={},ie=new Set(Le.map(ye=>ye.fileName))){var ye,W,He;if(gt=r(gt,me),Ki(gt)){const de=u8.getReferenceAtPosition(gt,Oe,Ot);if(!(de!=null&&de.file))return;const mt=Ot.getTypeChecker().getMergedSymbol(de.file.symbol);if(mt)return v(Ot,mt,!1,Le,ie);const Jt=Ot.getFileIncludeReasons();return Jt?[{definition:{type:5,reference:de.reference,file:gt},references:o(de.file,Jt,Ot)||it}]:void 0}if(!me.implementations){const de=T(gt,Le,pt);if(de)return de}const et=Ot.getTypeChecker(),Ye=et.getSymbolAtLocation(Kl(gt)&&gt.parent.name||gt);if(!Ye){if(!me.implementations&&As(gt)){if(eB(gt)){const de=Ot.getFileIncludeReasons(),mt=(He=(W=(ye=gt.getSourceFile().resolvedModules)==null?void 0:ye.get(gt.text,Dp(gt.getSourceFile(),gt)))==null?void 0:W.resolvedModule)==null?void 0:He.resolvedFileName,Jt=mt?Ot.getSourceFile(mt):void 0;if(Jt)return[{definition:{type:4,node:gt},references:o(Jt,de,Ot)||it}]}return Lt(gt,Le,et,pt)}return}if(Ye.escapedName==="export=")return v(Ot,Ye.parent,!1,Le,ie);const jt=c(Ye,Ot,Le,pt,me,ie);if(jt&&!(Ye.flags&33554432))return jt;const cn=s(gt,Ye,et),Sn=cn&&c(cn,Ot,Le,pt,me,ie),Er=C(Ye,gt,Le,ie,et,pt,me);return _(Ot,jt,Er,Sn)}e.getReferencedSymbolsForNode=t;function r(Oe,gt){return gt.use===1?Oe=aZ(Oe):gt.use===2&&(Oe=VF(Oe)),Oe}e.getAdjustedNode=r;function i(Oe,gt,Ot,Le=new Set(Ot.map(pt=>pt.fileName))){var pt,me;const ie=(pt=gt.getSourceFile(Oe))==null?void 0:pt.symbol;if(ie)return((me=v(gt,ie,!1,Ot,Le)[0])==null?void 0:me.references)||it;const ye=gt.getFileIncludeReasons(),W=gt.getSourceFile(Oe);return W&&ye&&o(W,ye,gt)||it}e.getReferencesForFileName=i;function o(Oe,gt,Ot){let Le;const pt=gt.get(Oe.path)||it;for(const me of pt)if(S1(me)){const ie=Ot.getSourceFileByPath(me.file),ye=P4(Ot.getSourceFileByPath,me);cL(ye)&&(Le=Pn(Le,{kind:0,fileName:ie.fileName,textSpan:o0(ye)}))}return Le}function s(Oe,gt,Ot){if(Oe.parent&&x6(Oe.parent)){const Le=Ot.getAliasedSymbol(gt),pt=Ot.getMergedSymbol(Le);if(Le!==pt)return pt}}function c(Oe,gt,Ot,Le,pt,me){const ie=Oe.flags&1536&&Oe.declarations&&$t(Oe.declarations,Ki);if(!ie)return;const ye=Oe.exports.get("export="),W=v(gt,Oe,!!ye,Ot,me);if(!ye||!me.has(ie.fileName))return W;const He=gt.getTypeChecker();return Oe=mf(ye,He),_(gt,W,C(Oe,void 0,Ot,me,He,Le,pt))}function _(Oe,...gt){let Ot;for(const Le of gt)if(!(!Le||!Le.length)){if(!Ot){Ot=Le;continue}for(const pt of Le){if(!pt.definition||pt.definition.type!==0){Ot.push(pt);continue}const me=pt.definition.symbol,ie=ii(Ot,W=>!!W.definition&&W.definition.type===0&&W.definition.symbol===me);if(ie===-1){Ot.push(pt);continue}const ye=Ot[ie];Ot[ie]={definition:ye.definition,references:ye.references.concat(pt.references).sort((W,He)=>{const et=d(Oe,W),Ye=d(Oe,He);if(et!==Ye)return qs(et,Ye);const jt=vre(W),cn=vre(He);return jt.start!==cn.start?qs(jt.start,cn.start):qs(jt.length,cn.length)})}}}return Ot}function d(Oe,gt){const Ot=gt.kind===0?Oe.getSourceFile(gt.fileName):gt.node.getSourceFile();return Oe.getSourceFiles().indexOf(Ot)}function v(Oe,gt,Ot,Le,pt){R.assert(!!gt.valueDeclaration);const me=ua(aCe(Oe,Le,gt),ye=>{if(ye.kind==="import"){const W=ye.literal.parent;if(v1(W)){const He=lo(W.parent,Ig);if(Ot&&!He.qualifier)return}return Uh(ye.literal)}else return{kind:0,fileName:ye.referencingFile.fileName,textSpan:o0(ye.ref)}});if(gt.declarations)for(const ye of gt.declarations)switch(ye.kind){case 308:break;case 264:pt.has(ye.getSourceFile().fileName)&&me.push(Uh(ye.name));break;default:R.assert(!!(gt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const ie=gt.exports.get("export=");if(ie!=null&&ie.declarations)for(const ye of ie.declarations){const W=ye.getSourceFile();if(pt.has(W.fileName)){const He=Tr(ye)&&Br(ye.left)?ye.left.expression:Vl(ye)?R.checkDefined(Es(ye,93,W)):ka(ye)||ye;me.push(Uh(He))}}return me.length?[{definition:{type:0,symbol:gt},references:me}]:it}function g(Oe){return Oe.kind===146&&nx(Oe.parent)&&Oe.parent.operator===146}function T(Oe,gt,Ot){if(H4(Oe.kind))return Oe.kind===114&&ix(Oe.parent)||Oe.kind===146&&!g(Oe)?void 0:je(gt,Oe.kind,Ot,Oe.kind===146?g:void 0);if(oC(Oe.parent)&&Oe.parent.name===Oe)return Ze(gt,Ot);if(QS(Oe)&&Rl(Oe.parent))return[{definition:{type:2,node:Oe},references:[Uh(Oe)]}];if(FN(Oe)){const Le=MF(Oe.parent,Oe.text);return Le&&Ae(Le.parent,Le)}else if(YQ(Oe))return Ae(Oe.parent,Oe);if(mL(Oe))return Or(Oe,gt,Ot);if(Oe.kind===106)return ea(Oe)}function C(Oe,gt,Ot,Le,pt,me,ie){const ye=gt&&M(Oe,gt,pt,!Hr(ie))||Oe,W=gt?Oi(gt,ye):7,He=[],et=new j(Ot,Le,gt?I(gt):0,pt,me,W,ie,He),Ye=!Hr(ie)||!ye.declarations?void 0:$t(ye.declarations,yd);if(Ye)$e(Ye.name,ye,Ye,et.createSearch(gt,Oe,void 0),et,!0,!0);else if(gt&&gt.kind===88&&ye.escapedName==="default"&&ye.parent)bt(gt,ye,et),H(gt,ye,{exportingModuleSymbol:ye.parent,exportKind:1},et);else{const jt=et.createSearch(gt,ye,void 0,{allSearchSymbols:gt?yn(ye,gt,pt,ie.use===2,!!ie.providePrefixAndSuffixTextForRename,!!ie.implementations):[ye]});L(ye,et,jt)}return He}function L(Oe,gt,Ot){const Le=re(Oe);if(Le)Je(Le,Le.getSourceFile(),Ot,gt,!(Ki(Le)&&!Fr(gt.sourceFiles,Le)));else for(const pt of gt.sourceFiles)gt.cancellationToken.throwIfCancellationRequested(),P(pt,Ot,gt)}function I(Oe){switch(Oe.kind){case 173:case 135:return 1;case 79:if(_i(Oe.parent))return R.assert(Oe.parent.name===Oe),2;default:return 0}}function M(Oe,gt,Ot,Le){const{parent:pt}=gt;return yd(pt)&&Le?ze(gt,Oe,pt,Ot):qt(Oe.declarations,me=>{if(!me.parent){if(Oe.flags&33554432)return;R.fail(`Unexpected symbol at ${R.formatSyntaxKind(gt.kind)}: ${R.formatSymbol(Oe)}`)}return hf(me.parent)&&ex(me.parent.parent)?Ot.getPropertyOfType(Ot.getTypeFromTypeNode(me.parent.parent),Oe.name):void 0})}let k;(Oe=>{Oe[Oe.None=0]="None",Oe[Oe.Constructor=1]="Constructor",Oe[Oe.Class=2]="Class"})(k||(k={}));function U(Oe){if(!(Oe.flags&33555968))return;const gt=Oe.declarations&&$t(Oe.declarations,Ot=>!Ki(Ot)&&!Xl(Ot));return gt&&gt.symbol}class j{constructor(gt,Ot,Le,pt,me,ie,ye,W){this.sourceFiles=gt,this.sourceFilesSet=Ot,this.specialSearchKind=Le,this.checker=pt,this.cancellationToken=me,this.searchMeaning=ie,this.options=ye,this.result=W,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=hL(),this.markSeenReExportRHS=hL(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(gt){return this.sourceFilesSet.has(gt.fileName)}getImportSearches(gt,Ot){return this.importTracker||(this.importTracker=_re(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(gt,Ot,this.options.use===2)}createSearch(gt,Ot,Le,pt={}){const{text:me=X_(Gl(xC(Ot)||U(Ot)||Ot)),allSearchSymbols:ie=[Ot]}=pt,ye=cl(me),W=this.options.implementations&&gt?Ir(gt,Ot,this.checker):void 0;return{symbol:Ot,comingFrom:Le,text:me,escapedText:ye,parents:W,allSearchSymbols:ie,includes:He=>Fr(ie,He)}}referenceAdder(gt){const Ot=To(gt);let Le=this.symbolIdToReferences[Ot];return Le||(Le=this.symbolIdToReferences[Ot]=[],this.result.push({definition:{type:0,symbol:gt},references:Le})),(pt,me)=>Le.push(Uh(pt,me))}addStringOrCommentReference(gt,Ot){this.result.push({definition:void 0,references:[{kind:0,fileName:gt,textSpan:Ot}]})}markSearchedSymbols(gt,Ot){const Le=hs(gt),pt=this.sourceFileToSeenSymbols[Le]||(this.sourceFileToSeenSymbols[Le]=new Set);let me=!1;for(const ie of Ot)me=wv(pt,To(ie))||me;return me}}function H(Oe,gt,Ot,Le){const{importSearches:pt,singleReferences:me,indirectUsers:ie}=Le.getImportSearches(gt,Ot);if(me.length){const ye=Le.referenceAdder(gt);for(const W of me)X(W,Le)&&ye(W)}for(const[ye,W]of pt)Ue(ye.getSourceFile(),Le.createSearch(ye,W,1),Le);if(ie.length){let ye;switch(Ot.exportKind){case 0:ye=Le.createSearch(Oe,gt,1);break;case 1:ye=Le.options.use===2?void 0:Le.createSearch(Oe,gt,1,{text:"default"});break;case 2:break}if(ye)for(const W of ie)P(W,ye,Le)}}function ee(Oe,gt,Ot,Le,pt,me,ie,ye){const W=_re(Oe,new Set(Oe.map(jt=>jt.fileName)),gt,Ot),{importSearches:He,indirectUsers:et,singleReferences:Ye}=W(Le,{exportKind:ie?1:0,exportingModuleSymbol:pt},!1);for(const[jt]of He)ye(jt);for(const jt of Ye)We(jt)&&Ig(jt.parent)&&ye(jt);for(const jt of et)for(const cn of he(jt,ie?"default":me)){const Sn=gt.getSymbolAtLocation(cn),Er=Dt(Sn==null?void 0:Sn.declarations,de=>!!li(de,Vl));We(cn)&&!xS(cn.parent)&&(Sn===Le||Er)&&ye(cn)}}e.eachExportReference=ee;function X(Oe,gt){return Fe(Oe,gt)?gt.options.use!==2?!0:We(Oe)?!(xS(Oe.parent)&&Oe.escapedText==="default"):!1:!1}function ne(Oe,gt){if(Oe.declarations)for(const Ot of Oe.declarations){const Le=Ot.getSourceFile();Ue(Le,gt.createSearch(Ot,Oe,0),gt,gt.includesSourceFile(Le))}}function P(Oe,gt,Ot){Iee(Oe).get(gt.escapedText)!==void 0&&Ue(Oe,gt,Ot)}function ue(Oe,gt){return Wy(Oe.parent.parent)?gt.getPropertySymbolOfDestructuringAssignment(Oe):void 0}function re(Oe){const{declarations:gt,flags:Ot,parent:Le,valueDeclaration:pt}=Oe;if(pt&&(pt.kind===215||pt.kind===228))return pt;if(!gt)return;if(Ot&8196){const ye=$t(gt,W=>Hd(W,8)||od(W));return ye?f1(ye,260):void 0}if(gt.some(XN))return;const me=Le&&!(Oe.flags&262144);if(me&&!(qN(Le)&&!Le.globalExports))return;let ie;for(const ye of gt){const W=d2(ye);if(ie&&ie!==W||!W||W.kind===308&&!_f(W))return;if(ie=W,Us(ie)){let He;for(;He=Yq(ie);)ie=He}}return me?ie.getSourceFile():ie}function be(Oe,gt,Ot,Le=Ot){return ae(Oe,gt,Ot,()=>!0,Le)||!1}e.isSymbolReferencedInFile=be;function ae(Oe,gt,Ot,Le,pt=Ot){const me=cf(Oe.parent,Oe.parent.parent)?ds(gt.getSymbolsOfParameterPropertyDeclaration(Oe.parent,Oe.text)):gt.getSymbolAtLocation(Oe);if(me)for(const ie of he(Ot,me.name,pt)){if(!We(ie)||ie===Oe||ie.escapedText!==Oe.escapedText)continue;const ye=gt.getSymbolAtLocation(ie);if(ye===me||gt.getShorthandAssignmentValueSymbol(ie.parent)===me||yd(ie.parent)&&ze(ie,ye,ie.parent,gt)===me){const W=Le(ie);if(W)return W}}}e.eachSymbolReferenceInFile=ae;function z(Oe,gt){return ur(he(gt,Oe),pt=>!!vR(pt)).reduce((pt,me)=>{const ie=Le(me);return!Dt(pt.declarationNames)||ie===pt.depth?(pt.declarationNames.push(me),pt.depth=ie):ie<pt.depth&&(pt.declarationNames=[me],pt.depth=ie),pt},{depth:1/0,declarationNames:[]}).declarationNames;function Le(pt){let me=0;for(;pt;)pt=d2(pt),me++;return me}}e.getTopMostDeclarationNamesInFile=z;function ce(Oe,gt,Ot,Le){if(!Oe.name||!We(Oe.name))return!1;const pt=R.checkDefined(Ot.getSymbolAtLocation(Oe.name));for(const me of gt)for(const ie of he(me,pt.name)){if(!We(ie)||ie===Oe.name||ie.escapedText!==Oe.name.escapedText)continue;const ye=OF(ie),W=io(ye.parent)&&ye.parent.expression===ye?ye.parent:void 0,He=Ot.getSymbolAtLocation(ie);if(He&&Ot.getRootSymbols(He).some(et=>et===pt)&&Le(ie,W))return!0}return!1}e.someSignatureUsage=ce;function he(Oe,gt,Ot=Oe){return Ee(Oe,gt,Ot).map(Le=>Bf(Oe,Le))}function Ee(Oe,gt,Ot=Oe){const Le=[];if(!gt||!gt.length)return Le;const pt=Oe.text,me=pt.length,ie=gt.length;let ye=pt.indexOf(gt,Ot.pos);for(;ye>=0&&!(ye>Ot.end);){const W=ye+ie;(ye===0||!a1(pt.charCodeAt(ye-1),99))&&(W===me||!a1(pt.charCodeAt(W),99))&&Le.push(ye),ye=pt.indexOf(gt,ye+ie+1)}return Le}function Ae(Oe,gt){const Ot=Oe.getSourceFile(),Le=gt.text,pt=ua(he(Ot,Le,Oe),me=>me===gt||FN(me)&&MF(me,Le)===gt?Uh(me):void 0);return[{definition:{type:1,node:gt},references:pt}]}function te(Oe,gt){switch(Oe.kind){case 80:if(E1(Oe.parent))return!0;case 79:return Oe.text.length===gt.length;case 14:case 10:{const Ot=Oe;return(PF(Ot)||eZ(Oe)||W1e(Oe)||io(Oe.parent)&&DS(Oe.parent)&&Oe.parent.arguments[1]===Oe)&&Ot.text.length===gt.length}case 8:return PF(Oe)&&Oe.text.length===gt.length;case 88:return gt.length===7;default:return!1}}function Ze(Oe,gt){const Ot=ji(Oe,Le=>(gt.throwIfCancellationRequested(),ua(he(Le,"meta",Le),pt=>{const me=pt.parent;if(oC(me))return Uh(me)})));return Ot.length?[{definition:{type:2,node:Ot[0].node},references:Ot}]:void 0}function je(Oe,gt,Ot,Le){const pt=ji(Oe,me=>(Ot.throwIfCancellationRequested(),ua(he(me,bo(gt),me),ie=>{if(ie.kind===gt&&(!Le||Le(ie)))return Uh(ie)})));return pt.length?[{definition:{type:2,node:pt[0].node},references:pt}]:void 0}function Ue(Oe,gt,Ot,Le=!0){return Ot.cancellationToken.throwIfCancellationRequested(),Je(Oe,Oe,gt,Ot,Le)}function Je(Oe,gt,Ot,Le,pt){if(Le.markSearchedSymbols(gt,Ot.allSearchSymbols))for(const me of Ee(gt,Ot.text,Oe))Be(gt,me,Ot,Le,pt)}function Fe(Oe,gt){return!!(u2(Oe)&gt.searchMeaning)}function Be(Oe,gt,Ot,Le,pt){const me=Bf(Oe,gt);if(!te(me,Ot.text)){!Le.options.implementations&&(Le.options.findInStrings&&_2(Oe,gt)||Le.options.findInComments&&lbe(Oe,gt))&&Le.addStringOrCommentReference(Oe.fileName,Mc(gt,Ot.text.length));return}if(!Fe(me,Le))return;let ie=Le.checker.getSymbolAtLocation(me);if(!ie)return;const ye=me.parent;if(Nd(ye)&&ye.propertyName===me)return;if(yd(ye)){R.assert(me.kind===79),$e(me,ie,ye,Ot,Le,pt);return}const W=lr(Ot,ie,me,Le);if(!W){Ct(ie,Ot,Le);return}switch(Le.specialSearchKind){case 0:pt&&bt(me,W,Le);break;case 1:zt(me,Oe,Ot,Le);break;case 2:nt(me,Ot,Le);break;default:R.assertNever(Le.specialSearchKind)}_r(me)&&ms(me.parent)&&jb(me.parent.parent.parent)&&(ie=me.parent.symbol,!ie)||lt(me,ie,Ot,Le)}function $e(Oe,gt,Ot,Le,pt,me,ie){R.assert(!ie||!!pt.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:ye,propertyName:W,name:He}=Ot,et=ye.parent,Ye=ze(Oe,gt,Ot,pt.checker);if(!ie&&!Le.includes(Ye))return;if(W?Oe===W?(et.moduleSpecifier||jt(),me&&pt.options.use!==2&&pt.markSeenReExportRHS(He)&&bt(He,R.checkDefined(Ot.symbol),pt)):pt.markSeenReExportRHS(Oe)&&jt():pt.options.use===2&&He.escapedText==="default"||jt(),!Hr(pt.options)||ie){const Sn=Oe.escapedText==="default"||Ot.name.escapedText==="default"?1:0,Er=R.checkDefined(Ot.symbol),de=pre(Er,Sn,pt.checker);de&&H(Oe,Er,de,pt)}if(Le.comingFrom!==1&&et.moduleSpecifier&&!W&&!Hr(pt.options)){const cn=pt.checker.getExportSpecifierLocalTargetSymbol(Ot);cn&&ne(cn,pt)}function jt(){me&&bt(Oe,Ye,pt)}}function ze(Oe,gt,Ot,Le){return Ge(Oe,Ot)&&Le.getExportSpecifierLocalTargetSymbol(Ot)||gt}function Ge(Oe,gt){const{parent:Ot,propertyName:Le,name:pt}=gt;return R.assert(Le===Oe||pt===Oe),Le?Le===Oe:!Ot.parent.moduleSpecifier}function lt(Oe,gt,Ot,Le){const pt=lCe(Oe,gt,Le.checker,Ot.comingFrom===1);if(!pt)return;const{symbol:me}=pt;pt.kind===0?Hr(Le.options)||ne(me,Le):H(Oe,me,pt.exportInfo,Le)}function Ct({flags:Oe,valueDeclaration:gt},Ot,Le){const pt=Le.checker.getShorthandAssignmentValueSymbol(gt),me=gt&&ka(gt);!(Oe&33554432)&&me&&Ot.includes(pt)&&bt(me,pt,Le)}function bt(Oe,gt,Ot){const{kind:Le,symbol:pt}="kind"in gt?gt:{kind:void 0,symbol:gt};if(Ot.options.use===2&&Oe.kind===88)return;const me=Ot.referenceAdder(pt);Ot.options.implementations?Ln(Oe,me,Ot):me(Oe,Le)}function zt(Oe,gt,Ot,Le){G4(Oe)&&bt(Oe,Ot.symbol,Le);const pt=()=>Le.referenceAdder(Ot.symbol);if(_i(Oe.parent))R.assert(Oe.kind===88||Oe.parent.name===Oe),ot(Ot.symbol,gt,pt());else{const me=On(Oe);me&&(pn(me,pt()),jn(me,Le))}}function nt(Oe,gt,Ot){bt(Oe,gt.symbol,Ot);const Le=Oe.parent;if(Ot.options.use===2||!_i(Le))return;R.assert(Le.name===Oe);const pt=Ot.referenceAdder(gt.symbol);for(const me of Le.members)YA(me)&&Xa(me)&&me.body&&me.body.forEachChild(function ie(ye){ye.kind===108?pt(ye):!Ya(ye)&&!_i(ye)&&ye.forEachChild(ie)})}function ot(Oe,gt,Ot){const Le=sn(Oe);if(Le&&Le.declarations)for(const pt of Le.declarations){const me=Es(pt,135,gt);R.assert(pt.kind===173&&!!me),Ot(me)}Oe.exports&&Oe.exports.forEach(pt=>{const me=pt.valueDeclaration;if(me&&me.kind===171){const ie=me.body;ie&&an(ie,108,ye=>{G4(ye)&&Ot(ye)})}})}function sn(Oe){return Oe.members&&Oe.members.get("__constructor")}function pn(Oe,gt){const Ot=sn(Oe.symbol);if(Ot&&Ot.declarations)for(const Le of Ot.declarations){R.assert(Le.kind===173);const pt=Le.body;pt&&an(pt,106,me=>{KQ(me)&&gt(me)})}}function gn(Oe){return!!sn(Oe.symbol)}function jn(Oe,gt){if(gn(Oe))return;const Ot=Oe.symbol,Le=gt.createSearch(void 0,Ot,void 0);L(Ot,gt,Le)}function Ln(Oe,gt,Ot){if(xg(Oe)&&bi(Oe.parent)){gt(Oe);return}if(Oe.kind!==79)return;Oe.parent.kind===300&&Rn(Oe,Ot.checker,gt);const Le=Zt(Oe);if(Le){gt(Le);return}const pt=rr(Oe,ye=>!Rd(ye.parent)&&!Bi(ye.parent)&&!xT(ye.parent)),me=pt.parent;if(UM(me)&&me.type===pt&&Ot.markSeenContainingTypeReference(me))if(Wv(me))ie(me.initializer);else if(Ya(me)&&me.body){const ye=me.body;ye.kind===238?wT(ye,W=>{W.expression&&ie(W.expression)}):ie(ye)}else AT(me)&&ie(me.expression);function ie(ye){pr(ye)&&gt(ye)}}function Zt(Oe){return We(Oe)||Br(Oe)?Zt(Oe.parent):Py(Oe)?li(Oe.parent.parent,_i):void 0}function pr(Oe){switch(Oe.kind){case 214:return pr(Oe.expression);case 216:case 215:case 207:case 228:case 206:return!0;default:return!1}}function Ii(Oe,gt,Ot,Le){if(Oe===gt)return!0;const pt=To(Oe)+","+To(gt),me=Ot.get(pt);if(me!==void 0)return me;Ot.set(pt,!1);const ie=!!Oe.declarations&&Oe.declarations.some(ye=>bk(ye).some(W=>{const He=Le.getTypeAtLocation(W);return!!He&&!!He.symbol&&Ii(He.symbol,gt,Ot,Le)}));return Ot.set(pt,ie),ie}function ea(Oe){let gt=$D(Oe,!1);if(!gt)return;let Ot=32;switch(gt.kind){case 169:case 168:case 171:case 170:case 173:case 174:case 175:Ot&=Jv(gt),gt=gt.parent;break;default:return}const Le=gt.getSourceFile(),pt=ua(he(Le,"super",gt),me=>{if(me.kind!==106)return;const ie=$D(me,!1);return ie&&Xa(ie)===!!Ot&&ie.parent.symbol===gt.symbol?Uh(me):void 0});return[{definition:{type:0,symbol:gt.symbol},references:pt}]}function ta(Oe){return Oe.kind===79&&Oe.parent.kind===166&&Oe.parent.name===Oe}function Or(Oe,gt,Ot){let Le=kd(Oe,!1,!1),pt=32;switch(Le.kind){case 171:case 170:if(q_(Le)){pt&=Jv(Le),Le=Le.parent;break}case 169:case 168:case 173:case 174:case 175:pt&=Jv(Le),Le=Le.parent;break;case 308:if(tc(Le)||ta(Oe))return;case 259:case 215:break;default:return}const me=ji(Le.kind===308?gt:[Le.getSourceFile()],ye=>(Ot.throwIfCancellationRequested(),he(ye,"this",Ki(Le)?ye:Le).filter(W=>{if(!mL(W))return!1;const He=kd(W,!1,!1);if(!Um(He))return!1;switch(Le.kind){case 215:case 259:return Le.symbol===He.symbol;case 171:case 170:return q_(Le)&&Le.symbol===He.symbol;case 228:case 260:case 207:return He.parent&&Um(He.parent)&&Le.symbol===He.parent.symbol&&Xa(He)===!!pt;case 308:return He.kind===308&&!tc(He)&&!ta(W)}}))).map(ye=>Uh(ye));return[{definition:{type:3,node:qt(me,ye=>Ba(ye.node.parent)?ye.node:void 0)||Oe},references:me}]}function Lt(Oe,gt,Ot,Le){const pt=UF(Oe,Ot),me=ji(gt,ie=>(Le.throwIfCancellationRequested(),ua(he(ie,Oe.text),ye=>{if(As(ye)&&ye.text===Oe.text)if(pt){const W=UF(ye,Ot);if(pt!==Ot.getStringType()&&pt===W)return Uh(ye,2)}else return $S(ye)&&!VT(ye,ie)?void 0:Uh(ye,2)})));return[{definition:{type:4,node:Oe},references:me}]}function yn(Oe,gt,Ot,Le,pt,me){const ie=[];return Wt(Oe,gt,Ot,Le,!(Le&&pt),(ye,W,He)=>{He&&Bn(Oe)!==Bn(He)&&(He=void 0),ie.push(He||W||ye)},()=>!me),ie}function Wt(Oe,gt,Ot,Le,pt,me,ie){const ye=cO(gt);if(ye){const Sn=Ot.getShorthandAssignmentValueSymbol(gt.parent);if(Sn&&Le)return me(Sn,void 0,void 0,3);const Er=Ot.getContextualType(ye.parent),de=Er&&qt(VB(ye,Ot,Er,!0),fe=>jt(fe,4));if(de)return de;const mt=ue(gt,Ot),Jt=mt&&me(mt,void 0,void 0,4);if(Jt)return Jt;const at=Sn&&me(Sn,void 0,void 0,3);if(at)return at}const W=s(gt,Oe,Ot);if(W){const Sn=me(W,void 0,void 0,1);if(Sn)return Sn}const He=jt(Oe);if(He)return He;if(Oe.valueDeclaration&&cf(Oe.valueDeclaration,Oe.valueDeclaration.parent)){const Sn=Ot.getSymbolsOfParameterPropertyDeclaration(lo(Oe.valueDeclaration,Ba),Oe.name);return R.assert(Sn.length===2&&!!(Sn[0].flags&1)&&!!(Sn[1].flags&4)),jt(Oe.flags&1?Sn[1]:Sn[0])}const et=Il(Oe,278);if(!Le||et&&!et.propertyName){const Sn=et&&Ot.getExportSpecifierLocalTargetSymbol(et);if(Sn){const Er=me(Sn,void 0,void 0,1);if(Er)return Er}}if(!Le){let Sn;return pt?Sn=XN(gt.parent)?tB(Ot,gt.parent):void 0:Sn=cn(Oe,Ot),Sn&&jt(Sn,4)}if(R.assert(Le),pt){const Sn=cn(Oe,Ot);return Sn&&jt(Sn,4)}function jt(Sn,Er){return qt(Ot.getRootSymbols(Sn),de=>me(Sn,de,void 0,Er)||(de.parent&&de.parent.flags&96&&ie(de)?In(de.parent,de.name,Ot,mt=>me(Sn,de,mt,Er)):void 0))}function cn(Sn,Er){const de=Il(Sn,205);if(de&&XN(de))return tB(Er,de)}}function In(Oe,gt,Ot,Le){const pt=new Map;return me(Oe);function me(ie){if(!(!(ie.flags&96)||!Ip(pt,To(ie))))return qt(ie.declarations,ye=>qt(bk(ye),W=>{const He=Ot.getTypeAtLocation(W),et=He&&He.symbol&&Ot.getPropertyOfType(He,gt);return He&&et&&(qt(Ot.getRootSymbols(et),Le)||me(He.symbol))}))}}function Bn(Oe){return Oe.valueDeclaration?!!(zu(Oe.valueDeclaration)&32):!1}function lr(Oe,gt,Ot,Le){const{checker:pt}=Le;return Wt(gt,Ot,pt,!1,Le.options.use!==2||!!Le.options.providePrefixAndSuffixTextForRename,(me,ie,ye,W)=>(ye&&Bn(gt)!==Bn(ye)&&(ye=void 0),Oe.includes(ye||ie||me)?{symbol:ie&&!(Dl(me)&6)?ie:me,kind:W}:void 0),me=>!(Oe.parents&&!Oe.parents.some(ie=>Ii(me.parent,ie,Le.inheritsFromCache,pt))))}function Oi(Oe,gt){let Ot=u2(Oe);const{declarations:Le}=gt;if(Le){let pt;do{pt=Ot;for(const me of Le){const ie=MN(me);ie&Ot&&(Ot|=ie)}}while(Ot!==pt)}return Ot}e.getIntersectingMeaningFromDeclarations=Oi;function bi(Oe){return Oe.flags&16777216?!(dd(Oe)||um(Oe)):sC(Oe)?Wv(Oe):el(Oe)?!!Oe.body:_i(Oe)||UD(Oe)}function Rn(Oe,gt,Ot){const Le=gt.getSymbolAtLocation(Oe),pt=gt.getShorthandAssignmentValueSymbol(Le.valueDeclaration);if(pt)for(const me of pt.getDeclarations())MN(me)&1&&Ot(me)}e.getReferenceEntriesForShorthandPropertyAssignment=Rn;function an(Oe,gt,Ot){Pa(Oe,Le=>{Le.kind===gt&&Ot(Le),an(Le,gt,Ot)})}function On(Oe){return SJ(OF(Oe).parent)}function Ir(Oe,gt,Ot){const Le=pL(Oe)?Oe.parent:void 0,pt=Le&&Ot.getTypeAtLocation(Le.expression),me=ua(pt&&(pt.isUnionOrIntersection()?pt.types:pt.symbol===gt.parent?void 0:[pt]),ie=>ie.symbol&&ie.symbol.flags&96?ie.symbol:void 0);return me.length===0?void 0:me}function Hr(Oe){return Oe.use===2&&Oe.providePrefixAndSuffixTextForRename}})(E2||(E2={}))}}),fl={};B(fl,{Core:()=>E2,DefinitionKind:()=>bre,EntryKind:()=>Ere,ExportKind:()=>hre,FindReferencesUse:()=>Tre,ImportExport:()=>gre,createImportTracker:()=>_re,findModuleReferences:()=>aCe,findReferenceOrRenameEntries:()=>aKe,findReferencedSymbols:()=>nKe,getContextNode:()=>mE,getExportInfo:()=>pre,getImplementationsAtPosition:()=>iKe,getImportOrExportSymbol:()=>lCe,getReferenceEntriesForNode:()=>dCe,getTextSpanOfEntry:()=>vre,isContextWithStartAndEndNode:()=>cCe,isDeclarationOfSymbol:()=>hCe,nodeEntry:()=>Uh,toContextSpan:()=>yre,toHighlightSpan:()=>fKe,toReferenceEntry:()=>pCe,toRenameLocation:()=>sKe});var gCe=b({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";eKe(),pKe()}});function yCe(e,t,r,i,o){var s,c;const _=bCe(t,r,e),d=_&&[SKe(_.reference.fileName,_.fileName,_.unverified)]||it;if(_!=null&&_.file)return d;const v=Bf(t,r);if(v===t)return;const{parent:g}=v,T=e.getTypeChecker();if(v.kind===161||We(v)&&z5(g)&&g.tagName===v)return hKe(T,v)||it;if(FN(v)){const k=MF(v.parent,v.text);return k?[xre(T,k,"label",v.text,void 0)]:void 0}if(v.kind===105){const k=rr(v.parent,U=>Rl(U)?"quit":el(U));return k?[kO(T,k)]:void 0}if(v.kind===133){const k=rr(v,j=>el(j));return k&&Dt(k.modifiers,j=>j.kind===132)?[kO(T,k)]:void 0}if(v.kind===125){const k=rr(v,j=>el(j));return k&&k.asteriskToken?[kO(T,k)]:void 0}if(QS(v)&&Rl(v.parent)){const k=v.parent.parent,{symbol:U,failedAliasResolution:j}=PU(k,T,o),H=ur(k.members,Rl),ee=U?T.symbolToString(U,k):"",X=v.getSourceFile();return Pt(H,ne=>{let{pos:P}=sm(ne);return P=Yo(X.text,P),xre(T,ne,"constructor","static {}",ee,!1,j,{start:P,length:6})})}let{symbol:C,failedAliasResolution:L}=PU(v,T,o),I=v;if(i&&L){const k=Ie([v,...(C==null?void 0:C.declarations)||it],j=>rr(j,p_e)),U=k&&dR(k);U&&({symbol:C,failedAliasResolution:L}=PU(U,T,o),I=U)}if(!C&&eB(I)){const k=(c=(s=t.resolvedModules)==null?void 0:s.get(I.text,Dp(t,I)))==null?void 0:c.resolvedModule;if(k)return[{name:I.text,fileName:k.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Mc(0,0),failedAliasResolution:L,isAmbient:vd(k.resolvedFileName),unverified:I!==v}]}if(!C)return ba(d,bKe(v,T));if(i&&Qn(C.declarations,k=>k.getSourceFile().fileName===t.fileName))return;const M=AKe(T,v);if(M&&!(sd(v.parent)&&CKe(M))){const k=kO(T,M,L);if(T.getRootSymbols(C).some(U=>mKe(U,M)))return[k];{const U=IL(T,C,v,L,M)||it;return v.kind===106?[k,...U]:[...U,k]}}if(v.parent.kind===300){const k=T.getShorthandAssignmentValueSymbol(C.valueDeclaration),U=k!=null&&k.declarations?k.declarations.map(j=>c8(j,T,k,v,!1,L)):it;return ba(U,vCe(T,v)||it)}if(bl(v)&&ms(g)&&$m(g.parent)&&v===(g.propertyName||g.name)){const k=KN(v),U=T.getTypeAtLocation(g.parent);return k===void 0?it:ji(U.isUnion()?U.types:[U],j=>{const H=j.getProperty(k);return H&&IL(T,H,v)})}return ba(d,vCe(T,v)||IL(T,C,v,L))}function mKe(e,t){var r;return e===t.symbol||e===t.symbol.parent||cd(t.parent)||!LS(t.parent)&&e===((r=li(t.parent,Um))==null?void 0:r.symbol)}function vCe(e,t){const r=cO(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return ji(VB(r,e,i,!1),o=>IL(e,o,t))}}function hKe(e,t){const r=rr(t,qc);if(!(r&&r.name))return;const i=rr(r,_i);if(!i)return;const o=am(i);if(!o)return;const s=Hs(o.expression),c=Ku(s)?s.symbol:e.getSymbolAtLocation(s);if(!c)return;const _=ia(rC(r.name)),d=Tc(r)?e.getPropertyOfType(e.getTypeOfSymbol(c),_):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(c),_);if(d)return IL(e,d,t)}function bCe(e,t,r){var i,o,s,c;const _=kL(e.referencedFiles,t);if(_){const g=r.getSourceFileFromReference(e,_);return g&&{reference:_,fileName:g.fileName,file:g,unverified:!1}}const d=kL(e.typeReferenceDirectives,t);if(d){const g=(i=r.getResolvedTypeReferenceDirectives().get(d.fileName,d.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,T=g&&r.getSourceFile(g.resolvedFileName);return T&&{reference:d,fileName:T.fileName,file:T,unverified:!1}}const v=kL(e.libReferenceDirectives,t);if(v){const g=r.getLibFileFromReference(v);return g&&{reference:v,fileName:g.fileName,file:g,unverified:!1}}if((o=e.resolvedModules)!=null&&o.size()){const g=j4(e,t);if(eB(g)&&zc(g.text)&&e.resolvedModules.has(g.text,Dp(e,g))){const T=(c=(s=e.resolvedModules.get(g.text,Dp(e,g)))==null?void 0:s.resolvedModule)==null?void 0:c.resolvedFileName,C=T||Ov(vi(e.fileName),g.text);return{file:r.getSourceFile(C),fileName:C,reference:{pos:g.getStart(),end:g.getEnd(),fileName:g.text},unverified:!T}}}}function gKe(e,t,r){const i=Bf(t,r);if(i===t)return;if(oC(i.parent)&&i.parent.name===i)return Sre(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:o,failedAliasResolution:s}=PU(i,e,!1);if(!o)return;const c=e.getTypeOfSymbolAtLocation(o,i),_=yKe(o,c,e),d=_&&Sre(_,e,i,s),v=d&&d.length!==0?d:Sre(c,e,i,s);return v.length?v:!(o.flags&111551)&&o.flags&788968?IL(e,mf(o,e),i,s):void 0}function Sre(e,t,r,i){return ji(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&IL(t,o.symbol,r,i))}function yKe(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&$i(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(ds(i))}}function vKe(e,t,r){const i=yCe(e,t,r);if(!i||i.length===0)return;const o=kL(t.referencedFiles,r)||kL(t.typeReferenceDirectives,r)||kL(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:o0(o)};const s=Bf(t,r),c=Mc(s.getStart(),s.getWidth());return{definitions:i,textSpan:c}}function bKe(e,t){return ua(t.getIndexInfosAtLocation(e),r=>r.declaration&&kO(t,r.declaration))}function PU(e,t,r){const i=t.getSymbolAtLocation(e);let o=!1;if(i!=null&&i.declarations&&i.flags&2097152&&!r&&EKe(e,i.declarations[0])){const s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function EKe(e,t){return e.kind!==79?!1:e.parent===t?!0:t.kind!==271}function TKe(e){if(!yk(e))return!1;const t=rr(e,r=>cd(r)?!0:yk(r)?!1:"quit");return!!t&&wl(t)===5}function IL(e,t,r,i,o){const s=ur(t.declarations,T=>T!==o),c=ur(s,T=>!TKe(T)),_=Dt(c)?c:s;return d()||v()||Pt(_,T=>c8(T,e,t,r,!1,i));function d(){if(t.flags&32&&!(t.flags&19)&&(G4(r)||r.kind===135)){const T=$t(s,_i)||R.fail("Expected declaration to have at least one class-like declaration");return g(T.members,!0)}}function v(){return XQ(r)||tZ(r)?g(s,!1):void 0}function g(T,C){if(!T)return;const L=T.filter(C?Kl:Ya),I=L.filter(M=>!!M.body);return L.length?I.length!==0?I.map(M=>c8(M,e,t,r)):[c8(Ko(L),e,t,r,!1,i)]:void 0}}function c8(e,t,r,i,o,s){const c=t.symbolToString(r),_=qy.getSymbolKind(t,r,i),d=r.parent?t.symbolToString(r.parent,i):"";return xre(t,e,_,c,d,o,s)}function xre(e,t,r,i,o,s,c,_){const d=t.getSourceFile();if(!_){const v=ka(t)||t;_=fd(v,d)}return so(Li({fileName:d.fileName,textSpan:_,kind:r,name:i,containerKind:void 0,containerName:o},fl.toContextSpan(_,d,fl.getContextNode(t))),{isLocal:!Are(e,t),isAmbient:!!(t.flags&16777216),unverified:s,failedAliasResolution:c})}function Are(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Wv(t.parent)&&t.parent.initializer===t)return Are(e,t.parent);switch(t.kind){case 169:case 174:case 175:case 171:if(Hd(t,8))return!1;case 173:case 299:case 300:case 207:case 228:case 216:case 215:return Are(e,t.parent);default:return!1}}function kO(e,t,r){return c8(t,e,t.symbol,t,!1,r)}function kL(e,t){return $t(e,r=>xM(r,t))}function SKe(e,t,r){return{fileName:t,textSpan:Ec(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function xKe(e){const t=rr(e,i=>!pL(i)),r=t==null?void 0:t.parent;return r&&LS(r)&&cP(r)===t?r:void 0}function AKe(e,t){const r=xKe(t),i=r&&e.getResolvedSignature(r);return li(i&&i.declaration,o=>Ya(o)&&!Ph(o))}function CKe(e){switch(e.kind){case 173:case 182:case 177:return!0;default:return!1}}var LKe=b({"src/services/goToDefinition.ts"(){"use strict";Zr()}}),u8={};B(u8,{createDefinitionInfo:()=>c8,findReferenceInPosition:()=>kL,getDefinitionAndBoundSpan:()=>vKe,getDefinitionAtPosition:()=>yCe,getReferenceAtPosition:()=>bCe,getTypeDefinitionAtPosition:()=>gKe});var IKe=b({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";LKe()}});function kKe(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function wKe(e){return e.includeInlayParameterNameHints==="literals"}function DKe(e){const{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,c=t.text,_=r.getCompilerOptions(),d=r.getTypeChecker(),v=[];return g(t),v;function g(he){if(!(!he||he.getFullWidth()===0)){switch(he.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 171:case 216:o.throwIfCancellationRequested()}if(AM(i,he.pos,he.getFullWidth())&&!(Bi(he)&&!Py(he)))return s.includeInlayVariableTypeHints&&$i(he)||s.includeInlayPropertyDeclarationTypeHints&&ro(he)?U(he):s.includeInlayEnumMemberValueHints&&nE(he)?M(he):kKe(s)&&(io(he)||Zb(he))?j(he):(s.includeInlayFunctionParameterTypeHints&&el(he)&&KP(he)&&ue(he),s.includeInlayFunctionLikeReturnTypeHints&&T(he)&&ne(he)),Pa(he,g)}}function T(he){return Xs(he)||Us(he)||Sc(he)||sc(he)||Z_(he)}function C(he,Ee,Ae){v.push({text:`${Ae?"...":""}${be(he,FU)}:`,position:Ee,kind:"Parameter",whitespaceAfter:!0})}function L(he,Ee){v.push({text:`: ${be(he,FU)}`,position:Ee,kind:"Type",whitespaceBefore:!0})}function I(he,Ee){v.push({text:`= ${be(he,FU)}`,position:Ee,kind:"Enum",whitespaceBefore:!0})}function M(he){if(he.initializer)return;const Ee=d.getConstantValue(he);Ee!==void 0&&I(Ee.toString(),he.end)}function k(he){return he.symbol&&he.symbol.flags&1536}function U(he){if(!he.initializer||$a(he.name)||$i(he)&&!ce(he)||iu(he))return;const Ae=d.getTypeAtLocation(he);if(k(Ae))return;const te=ae(Ae);if(te){if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&pS(he.name.getText(),te))return;L(te,he.name.end)}}function j(he){const Ee=he.arguments;if(!Ee||!Ee.length)return;const Ae=[],te=d.getResolvedSignatureForSignatureHelp(he,Ae);if(!(!te||!Ae.length))for(let Ze=0;Ze<Ee.length;++Ze){const je=Ee[Ze],Ue=Hs(je);if(wKe(s)&&!X(Ue))continue;const Je=d.getParameterIdentifierNameAtPosition(te,Ze);if(Je){const[Fe,Be]=Je;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!H(Ue,Fe))&&!Be)continue;const ze=ia(Fe);if(ee(Ue,ze))continue;C(ze,je.getStart(),Be)}}}function H(he,Ee){return We(he)?he.text===Ee:Br(he)?he.name.text===Ee:!1}function ee(he,Ee){if(!W_(Ee,_.target,GR(t.scriptKind)))return!1;const Ae=xh(c,he.pos);if(!(Ae!=null&&Ae.length))return!1;const te=ECe(Ee);return Dt(Ae,Ze=>te.test(c.substring(Ze.pos,Ze.end)))}function X(he){switch(he.kind){case 221:{const Ee=he.operand;return ST(Ee)||We(Ee)&&Kk(Ee.escapedText)}case 110:case 95:case 104:case 14:case 225:return!0;case 79:{const Ee=he.escapedText;return z(Ee)||Kk(Ee)}}return ST(he)}function ne(he){if(Xs(he)&&!Es(he,20,t)||Lp(he)||!he.body)return;const Ae=d.getSignatureFromDeclaration(he);if(!Ae)return;const te=d.getReturnTypeOfSignature(Ae);if(k(te))return;const Ze=ae(te);Ze&&L(Ze,P(he))}function P(he){const Ee=Es(he,21,t);return Ee?Ee.end:he.parameters.end}function ue(he){const Ee=d.getSignatureFromDeclaration(he);if(Ee)for(let Ae=0;Ae<he.parameters.length&&Ae<Ee.parameters.length;++Ae){const te=he.parameters[Ae];if(!ce(te)||iu(te))continue;const je=re(Ee.parameters[Ae]);je&&L(je,te.questionToken?te.questionToken.end:te.name.end)}}function re(he){const Ee=he.valueDeclaration;if(!Ee||!Ba(Ee))return;const Ae=d.getTypeOfSymbolAtLocation(he,Ee);if(!k(Ae))return ae(Ae)}function be(he,Ee){return he.length>Ee?he.substr(0,Ee-3)+"...":he}function ae(he){const Ae=dE();return ck(te=>{const Ze=d.typeToTypeNode(he,void 0,71286784);R.assertIsDefined(Ze,"should always get typenode"),Ae.writeNode(4,Ze,t,te)})}function z(he){return he==="undefined"}function ce(he){if((FT(he)||$i(he)&&Eg(he))&&he.initializer){const Ee=Hs(he.initializer);return!(X(Ee)||Zb(Ee)||Is(Ee)||AT(Ee))}return!0}}var FU,ECe,RKe=b({"src/services/inlayHints.ts"(){"use strict";Zr(),FU=30,ECe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),Cre={};B(Cre,{provideInlayHints:()=>DKe});var NKe=b({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";RKe()}});function OKe(e,t){const r=[];return SZ(e,i=>{for(const o of PKe(i)){const s=eh(o)&&o.tags&&$t(o.tags,_=>_.kind===330&&(_.tagName.escapedText==="inheritDoc"||_.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||eh(o)&&i.kind!==349&&i.kind!==341&&o.tags&&o.tags.some(_=>_.kind===349||_.kind===341)&&!o.tags.some(_=>_.kind===344||_.kind===345))continue;let c=o.comment?Ox(o.comment,t):[];s&&s.comment&&(c=c.concat(Ox(s.comment,t))),Fr(r,c,MKe)||r.push(c)}}),Ha(sa(r,[vL()]))}function MKe(e,t){return Jo(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function PKe(e){switch(e.kind){case 344:case 351:return[e];case 341:case 349:return[e,e.parent];default:return Xq(e)}}function FKe(e,t){const r=[];return SZ(e,i=>{const o=Nb(i);if(!(o.some(s=>s.kind===349||s.kind===341)&&!o.some(s=>s.kind===344||s.kind===345)))for(const s of o)r.push({name:s.tagName.text,text:BKe(s,t)})}),r}function Ox(e,t){return typeof e=="string"?[Gf(e)]:ji(e,r=>r.kind===324?[Gf(r.text)]:Tbe(r,t))}function BKe(e,t){const{comment:r,kind:i}=e,o=GKe(i);switch(i){case 352:const _=e.typeExpression;return _?s(_):r===void 0?void 0:Ox(r,t);case 332:return s(e.class);case 331:return s(e.class);case 348:const d=e,v=[];if(d.constraint&&v.push(Gf(d.constraint.getText())),ge(d.typeParameters)){ge(v)&&v.push(Tl());const T=d.typeParameters[d.typeParameters.length-1];Ie(d.typeParameters,C=>{v.push(o(C.getText())),T!==C&&v.push(Iu(27),Tl())})}return r&&v.push(Tl(),...Ox(r,t)),v;case 347:case 353:return s(e.typeExpression);case 349:case 341:case 351:case 344:case 350:const{name:g}=e;return g?s(g):r===void 0?void 0:Ox(r,t);default:return r===void 0?void 0:Ox(r,t)}function s(_){return c(_.getText())}function c(_){return r?_.match(/^https?$/)?[Gf(_),...Ox(r,t)]:[o(_),Tl(),...Ox(r,t)]:[Gf(_)]}}function GKe(e){switch(e){case 344:return gbe;case 351:return ybe;case 348:return bbe;case 349:case 341:return vbe;default:return Gf}}function UKe(){return SCe||(SCe=Pt(Ire,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:Nx.SortText.LocationPriority})))}function VKe(){return xCe||(xCe=Pt(Ire,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:Nx.SortText.LocationPriority})))}function TCe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[Gf(e)],documentation:it,tags:void 0,codeActions:void 0}}function jKe(e){if(!We(e.name))return it;const t=e.name.text,r=e.parent,i=r.parent;return Ya(i)?ua(i.parameters,o=>{if(!We(o.name))return;const s=o.name.text;if(!(r.tags.some(c=>c!==e&&_m(c)&&We(c.name)&&c.name.escapedText===s)||t!==void 0&&!xa(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:Nx.SortText.LocationPriority}}):[]}function WKe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[Gf(e)],documentation:it,tags:void 0,codeActions:void 0}}function HKe(e,t,r,i){const o=la(t,r),s=rr(o,eh);if(s&&(s.comment!==void 0||ge(s.tags)))return;const c=o.getStart(t);if(!s&&c<r)return;const _=KKe(o,i);if(!_)return;const{commentOwner:d,parameters:v,hasReturn:g}=_,T=Df(d)&&d.jsDoc?d.jsDoc:void 0,C=rl(T);if(d.getStart(t)<r||C&&s&&C!==s)return;const L=zKe(t,r),I=zS(t.fileName),M=(v?qKe(v||[],I,L,e):"")+(g?JKe(L,e):""),k="/**",U=" */",j=(T||[]).some(H=>!!H.tags);if(M&&!j){const H=k+e+L+" * ",ee=c===r?e+L:"";return{newText:H+e+M+L+U+ee,caretOffset:H.length}}return{newText:k+U,caretOffset:3}}function zKe(e,t){const{text:r}=e,i=k_(t,e);let o=i;for(;o<=t&&Gm(r.charCodeAt(o));o++);return r.slice(i,o)}function qKe(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},c)=>{const _=o.kind===79?o.text:"param"+c;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${_}${i}`}).join("")}function JKe(e,t){return`${e} * @returns${t}`}function KKe(e,t){return Qfe(e,r=>Lre(r,t))}function Lre(e,t){switch(e.kind){case 259:case 215:case 171:case 173:case 170:case 216:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:wO(r,t)};case 299:return Lre(e.initializer,t);case 260:case 261:case 263:case 302:case 262:return{commentOwner:e};case 168:{const o=e;return o.type&&Ph(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:wO(o.type,t)}:{commentOwner:e}}case 240:{const s=e.declarationList.declarations,c=s.length===1&&s[0].initializer?XKe(s[0].initializer):void 0;return c?{commentOwner:e,parameters:c.parameters,hasReturn:wO(c,t)}:{commentOwner:e}}case 308:return"quit";case 264:return e.parent.kind===264?void 0:{commentOwner:e};case 241:return Lre(e.expression,t);case 223:{const o=e;return wl(o)===0?"quit":Ya(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:wO(o.right,t)}:{commentOwner:e}}case 169:const i=e.initializer;if(i&&(Us(i)||Xs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:wO(i,t)}}}function wO(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(Ph(e)||Xs(e)&&yt(e.body)||el(e)&&e.body&&fo(e.body)&&!!wT(e.body,r=>r))}function XKe(e){for(;e.kind===214;)e=e.expression;switch(e.kind){case 215:case 216:return e;case 228:return $t(e.members,Kl)}}var Ire,SCe,xCe,ACe,YKe=b({"src/services/jsDoc.ts"(){"use strict";Zr(),Ire=["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"],ACe=TCe}}),I1={};B(I1,{getDocCommentTemplateAtPosition:()=>HKe,getJSDocParameterNameCompletionDetails:()=>WKe,getJSDocParameterNameCompletions:()=>jKe,getJSDocTagCompletionDetails:()=>TCe,getJSDocTagCompletions:()=>VKe,getJSDocTagNameCompletionDetails:()=>ACe,getJSDocTagNameCompletions:()=>UKe,getJsDocCommentsFromDeclarations:()=>OKe,getJsDocTagsFromDeclarations:()=>FKe});var $Ke=b({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";YKe()}});function QKe(e,t,r,i,o,s){const c=vr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),_=s==="SortAndCombine"||s==="All",d=_,v=s==="RemoveUnused"||s==="All",g=kre(e,e.statements.filter(Yc)),T=mXe(o,_?()=>ICe(g,o)===2:void 0),C=I=>(v&&(I=eXe(I,e,i)),d&&(I=CCe(I,T,e)),_&&(I=by(I,(M,k)=>Ore(M,k,T))),I);if(g.forEach(I=>L(I,C)),s!=="RemoveUnused"){const I=e.statements.filter(au);L(I,M=>wre(M,T))}for(const I of e.statements.filter(Hu)){if(!I.body)continue;if(kre(e,I.body.statements.filter(Yc)).forEach(k=>L(k,C)),s!=="RemoveUnused"){const k=I.body.statements.filter(au);L(k,U=>wre(U,T))}}return c.getChanges();function L(I,M){if(ge(I)===0)return;iB(I[0]);const k=d?PI(I,H=>DO(H.moduleSpecifier)):[I],U=_?by(k,(H,ee)=>Rre(H[0].moduleSpecifier,ee[0].moduleSpecifier,T)):k,j=ji(U,H=>DO(H[0].moduleSpecifier)?M(H):H);if(j.length===0)c.deleteNodes(e,I,{leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.Include},!0);else{const H={leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.Include,suffix:x1(r,t.options)};c.replaceNodeWithNodes(e,I[0],j,H);const ee=c.nodeHasTrailingComment(e,I[0],H);c.deleteNodes(e,I.slice(1),{trailingTriviaOption:vr.TrailingTriviaOption.Include},ee)}}}function kre(e,t){const r=xy(e.languageVersion,!1,e.languageVariant),i=[];let o=0;for(const s of t)i[o]&&ZKe(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function ZKe(e,t,r){const i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenPos()<o;)if(r.scan()===4&&(s++,s>=2))return!0;return!1}function eXe(e,t,r){const i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),c=i.getJsxFragmentFactory(t),_=!!(t.transformFlags&2),d=[];for(const g of e){const{importClause:T,moduleSpecifier:C}=g;if(!T){d.push(g);continue}let{name:L,namedBindings:I}=T;if(L&&!v(L)&&(L=void 0),I)if(Zv(I))v(I.name)||(I=void 0);else{const M=I.elements.filter(k=>v(k.name));M.length<I.elements.length&&(I=M.length?O.updateNamedImports(I,M):void 0)}L||I?d.push(d8(g,L,I)):tXe(t,C)&&(t.isDeclarationFile?d.push(O.createImportDeclaration(g.modifiers,void 0,C,void 0)):d.push(g))}return d;function v(g){return _&&(g.text===s||c&&g.text===c)&&zZ(o.jsx)||fl.Core.isSymbolReferencedInFile(g,i,t)}}function tXe(e,t){const r=Wo(t)&&t.text;return za(r)&&Dt(e.moduleAugmentations,i=>Wo(i)&&i.text===r)}function DO(e){return e!==void 0&&As(e)?e.text:void 0}function nXe(e,t,r){const i=BU(t);return CCe(e,i,r)}function CCe(e,t,r){if(e.length===0)return e;const{importWithoutClause:i,typeOnlyImports:o,regularImports:s}=rXe(e),c=[];i&&c.push(i);for(const _ of[s,o]){const d=_===o,{defaultImports:v,namespaceImports:g,namedImports:T}=_;if(!d&&v.length===1&&g.length===1&&T.length===0){const ee=v[0];c.push(d8(ee,ee.importClause.name,g[0].importClause.namedBindings));continue}const C=by(g,(ee,X)=>t(ee.importClause.namedBindings.name.text,X.importClause.namedBindings.name.text));for(const ee of C)c.push(d8(ee,void 0,ee.importClause.namedBindings));const L=tu(v),I=tu(T),M=L!=null?L:I;if(!M)continue;let k;const U=[];if(v.length===1)k=v[0].importClause.name;else for(const ee of v)U.push(O.createImportSpecifier(!1,O.createIdentifier("default"),ee.importClause.name));U.push(...dXe(T));const j=O.createNodeArray(LCe(U,t),I==null?void 0:I.importClause.namedBindings.elements.hasTrailingComma),H=j.length===0?k?void 0:O.createNamedImports(it):I?O.updateNamedImports(I.importClause.namedBindings,j):O.createNamedImports(j);r&&H&&(I!=null&&I.importClause.namedBindings)&&!VT(I.importClause.namedBindings,r)&&sr(H,2),d&&k&&H?(c.push(d8(M,k,void 0)),c.push(d8(I!=null?I:M,void 0,H))):c.push(d8(M,k,H))}return c}function rXe(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:c,namedBindings:_}=o.importClause;c&&s.defaultImports.push(o),_&&(Zv(_)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function iXe(e,t){const r=BU(t);return wre(e,r)}function wre(e,t){if(e.length===0)return e;const{exportWithoutClause:r,namedExports:i,typeOnlyExports:o}=c(e),s=[];r&&s.push(r);for(const _ of[i,o]){if(_.length===0)continue;const d=[];d.push(...ji(_,T=>T.exportClause&&tp(T.exportClause)?T.exportClause.elements:it));const v=LCe(d,t),g=_[0];s.push(O.updateExportDeclaration(g,g.modifiers,g.isTypeOnly,g.exportClause&&(tp(g.exportClause)?O.updateNamedExports(g.exportClause,v):O.updateNamespaceExport(g.exportClause,g.exportClause.name)),g.moduleSpecifier,g.assertClause))}return s;function c(_){let d;const v=[],g=[];for(const T of _)T.exportClause===void 0?d=d||T:T.isTypeOnly?g.push(T):v.push(T);return{exportWithoutClause:d,namedExports:v,typeOnlyExports:g}}}function d8(e,t,r){return O.updateImportDeclaration(e,e.modifiers,O.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.assertClause)}function LCe(e,t){return by(e,(r,i)=>Dre(r,i,t))}function Dre(e,t,r){return Ab(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}function aXe(e,t,r){const i=BU(!!r);return Rre(e,t,i)}function Rre(e,t,r){const i=e===void 0?void 0:DO(e),o=t===void 0?void 0:DO(t);return Ab(i===void 0,o===void 0)||Ab(zc(i),zc(o))||r(i,o)}function Nre(e){var t;switch(e.kind){case 268:return(t=li(e.moduleReference,Zm))==null?void 0:t.expression;case 269:return e.moduleSpecifier;case 240:return e.declarationList.declarations[0].initializer.arguments[0]}}function oXe(e,t){return ICe(kre(e,e.statements.filter(Yc)),t)}function ICe(e,t){const r=Mx(t,!1),i=Mx(t,!0);let o=3,s=!1;for(const c of e){if(c.length>1){const d=F7(c,v=>{var g,T;return(T=(g=li(v.moduleSpecifier,Wo))==null?void 0:g.text)!=null?T:""},r,i);if(d&&(o&=d,s=!0),!o)return o}const _=$t(c,d=>{var v,g;return((g=li((v=d.importClause)==null?void 0:v.namedBindings,Fy))==null?void 0:g.elements.length)>1});if(_){const d=Mre(_.importClause.namedBindings.elements,t);if(d&&(o&=d,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function sXe(e,t){const r=Mx(t,!1),i=Mx(t,!0);return F7(e,o=>DO(Nre(o))||"",r,i)}function lXe(e,t,r){const i=Rv(e,t,gl,(o,s)=>Ore(o,s,r));return i<0?~i:i}function cXe(e,t,r){const i=Rv(e,t,gl,(o,s)=>Dre(o,s,r));return i<0?~i:i}function Ore(e,t,r){return Rre(Nre(e),Nre(t),r)||uXe(e,t)}function uXe(e,t){return qs(kCe(e),kCe(t))}function kCe(e){var t;switch(e.kind){case 269:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===271?2:e.importClause.name?3:4:0;case 268:return 5;case 240:return 6}}function dXe(e){return ji(e,t=>Pt(fXe(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?O.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function fXe(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&Fy(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function BU(e){return e?Jue:ju}function _Xe(e,t){var r,i,o;const s=pXe(t),c=(r=t.organizeImportsCaseFirst)!=null?r:!1,_=(i=t.organizeImportsNumericCollation)!=null?i:!1,d=(o=t.organizeImportsAccentCollation)!=null?o:!0,v=e?d?"accent":"base":d?"variant":"case";return new Intl.Collator(s,{usage:"sort",caseFirst:c||"false",sensitivity:v,numeric:_}).compare}function pXe(e){let t=e.organizeImportsLocale;t==="auto"&&(t=Kue()),t===void 0&&(t="en");const r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function Mx(e,t){var r;return((r=e.organizeImportsCollation)!=null?r:"ordinal")==="unicode"?_Xe(t,e):BU(t)}function mXe(e,t){var r;const i=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(r=t==null?void 0:t())!=null?r:!1;return Mx(e,i)}var wCe,Mre,hXe=b({"src/services/organizeImports.ts"(){"use strict";Zr(),wCe=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)}},Mre=zue((e,t)=>{if(!Mue(e,(o,s)=>Ab(o.isTypeOnly,s.isTypeOnly)))return 0;const r=Mx(t,!1),i=Mx(t,!0);return F7(e,o=>o.name.text,r,i)},new wCe)}}),ap={};B(ap,{coalesceExports:()=>iXe,coalesceImports:()=>nXe,compareImportOrExportSpecifiers:()=>Dre,compareImportsOrRequireStatements:()=>Ore,compareModuleSpecifiers:()=>aXe,detectImportDeclarationSorting:()=>sXe,detectImportSpecifierSorting:()=>Mre,detectSorting:()=>oXe,getImportDeclarationInsertionIndex:()=>lXe,getImportSpecifierInsertionIndex:()=>cXe,getOrganizeImportsComparer:()=>Mx,organizeImports:()=>QKe});var gXe=b({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";hXe()}});function yXe(e,t){const r=[];return vXe(e,t,r),bXe(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function vXe(e,t,r){let i=40,o=0;const s=[...e.statements,e.endOfFileToken],c=s.length;for(;o<c;){for(;o<c&&!kT(s[o]);)_(s[o]),o++;if(o===c)break;const d=o;for(;o<c&&kT(s[o]);)_(s[o]),o++;const v=o-1;v!==d&&r.push(RO(Es(s[d],100,e).getStart(e),s[v].getEnd(),"imports"))}function _(d){var v;if(i===0)return;t.throwIfCancellationRequested(),(Au(d)||pc(d)||kp(d)||vg(d)||d.kind===1)&&RCe(d,e,t,r),Ya(d)&&Tr(d.parent)&&Br(d.parent.left)&&RCe(d.parent.left,e,t,r),(fo(d)||dm(d))&&Pre(d.statements.end,e,t,r),(_i(d)||dd(d))&&Pre(d.members.end,e,t,r);const g=EXe(d,e);g&&r.push(g),i--,io(d)?(i++,_(d.expression),i--,d.arguments.forEach(_),(v=d.typeArguments)==null||v.forEach(_)):JT(d)&&d.elseStatement&&JT(d.elseStatement)?(_(d.expression),_(d.thenStatement),i++,_(d.elseStatement),i--):d.forEachChild(_),i++}}function bXe(e,t){const r=[],i=e.getLineStarts();for(const o of i){const s=e.getLineEndOfPosition(o),c=e.text.substring(o,s),_=DCe(c);if(!(!_||jy(e,o)))if(_[1]){const d=r.pop();d&&(d.textSpan.length=s-d.textSpan.start,d.hintSpan.length=s-d.textSpan.start,t.push(d))}else{const d=Ec(e.text.indexOf("//",o),s);r.push(T2(d,"region",d,!1,_[2]||"#region"))}}}function DCe(e){return e=GI(e),xa(e,"//")?(e=Lb(e.slice(2)),NCe.exec(e)):null}function Pre(e,t,r,i){const o=xh(t.text,e);if(!o)return;let s=-1,c=-1,_=0;const d=t.getFullText();for(const{kind:g,pos:T,end:C}of o)switch(r.throwIfCancellationRequested(),g){case 2:const L=d.slice(T,C);if(DCe(L)){v(),_=0;break}_===0&&(s=T),c=C,_++;break;case 3:v(),i.push(RO(T,C,"comment")),_=0;break;default:R.assertNever(g)}v();function v(){_>1&&i.push(RO(s,c,"comment"))}}function RCe(e,t,r,i){YS(e)||Pre(e.pos,t,r,i)}function RO(e,t,r){return T2(Ec(e,t),r)}function EXe(e,t){switch(e.kind){case 238:if(Ya(e.parent))return TXe(e.parent,e,t);switch(e.parent.kind){case 243:case 246:case 247:case 245:case 242:case 244:case 251:case 295:return g(e.parent);case 255:const L=e.parent;if(L.tryBlock===e)return g(e.parent);if(L.finallyBlock===e){const I=Es(L,96,t);if(I)return g(I)}default:return T2(fd(e,t),"code")}case 265:return g(e.parent);case 260:case 228:case 261:case 263:case 266:case 184:case 203:return g(e);case 186:return g(e,!1,!UC(e.parent),22);case 292:case 293:return T(e.statements);case 207:return v(e);case 206:return v(e,22);case 281:return s(e);case 285:return c(e);case 282:case 283:return _(e.attributes);case 225:case 14:return d(e);case 204:return g(e,!1,!ms(e.parent),22);case 216:return o(e);case 210:return i(e);case 214:return C(e);case 272:case 276:case 296:return r(e)}function r(L){if(!L.elements.length)return;const I=Es(L,18,t),M=Es(L,19,t);if(!(!I||!M||x_(I.pos,M.pos,t)))return GU(I,M,L,t,!1,!1)}function i(L){if(!L.arguments.length)return;const I=Es(L,20,t),M=Es(L,21,t);if(!(!I||!M||x_(I.pos,M.pos,t)))return GU(I,M,L,t,!1,!0)}function o(L){if(fo(L.body)||qd(L.body)||x_(L.body.getFullStart(),L.body.getEnd(),t))return;const I=Ec(L.body.getFullStart(),L.body.getEnd());return T2(I,"code",fd(L))}function s(L){const I=Ec(L.openingElement.getStart(t),L.closingElement.getEnd()),M=L.openingElement.tagName.getText(t),k="<"+M+">...</"+M+">";return T2(I,"code",I,!1,k)}function c(L){const I=Ec(L.openingFragment.getStart(t),L.closingFragment.getEnd());return T2(I,"code",I,!1,"<>...</>")}function _(L){if(L.properties.length!==0)return RO(L.getStart(t),L.getEnd(),"code")}function d(L){if(!(L.kind===14&&L.text.length===0))return RO(L.getStart(t),L.getEnd(),"code")}function v(L,I=18){return g(L,!1,!Ju(L.parent)&&!io(L.parent),I)}function g(L,I=!1,M=!0,k=18,U=k===18?19:23){const j=Es(e,k,t),H=Es(e,U,t);return j&&H&&GU(j,H,L,t,I,M)}function T(L){return L.length?T2(o0(L),"code"):void 0}function C(L){if(x_(L.getStart(),L.getEnd(),t))return;const I=Ec(L.getStart(),L.getEnd());return T2(I,"code",fd(L))}}function TXe(e,t,r){const i=SXe(e,t,r),o=Es(t,19,r);return i&&o&&GU(i,o,e,r,e.kind!==216)}function GU(e,t,r,i,o=!1,s=!0){const c=Ec(s?e.getFullStart():e.getStart(i),t.getEnd());return T2(c,"code",fd(r,i),o)}function T2(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function SXe(e,t,r){if(kpe(e.parameters,r)){const i=Es(e,20,r);if(i)return i}return Es(t,18,r)}var NCe,xXe=b({"src/services/outliningElementsCollector.ts"(){"use strict";Zr(),NCe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Fre={};B(Fre,{collectElements:()=>yXe});var AXe=b({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";xXe()}});function Ng(e,t){UU.set(e,t)}function CXe(e){return Oo(xp(UU.values(),t=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((r=t.kinds)!=null&&r.some(i=>d0(i,e.kind)))?void 0:t.getAvailableActions(e)}))}function LXe(e,t,r){const i=UU.get(t);return i&&i.getEditsForAction(e,r)}var UU,IXe=b({"src/services/refactorProvider.ts"(){"use strict";Zr(),jh(),UU=new Map}});function OCe(e,t=!0){const{file:r,program:i}=e,o=Tx(e),s=la(r,o.start),c=s.parent&&Jv(s.parent)&1&&t?s.parent:YN(s,r,o);if(!c||!Ki(c.parent)&&!(dm(c.parent)&&Hu(c.parent.parent)))return{error:Po(m.Could_not_find_export_statement)};const _=i.getTypeChecker(),d=OXe(c.parent,_),v=Jv(c)||(Vl(c)&&!c.isExportEquals?1025:0),g=!!(v&1024);if(!(v&1)||!g&&d.exports.has("default"))return{error:Po(m.This_file_already_has_a_default_export)};const T=C=>We(C)&&_.getSymbolAtLocation(C)?void 0:{error:Po(m.Can_only_convert_named_export)};switch(c.kind){case 259:case 260:case 261:case 263:case 262:case 264:{const C=c;return C.name?T(C.name)||{exportNode:C,exportName:C.name,wasDefault:g,exportingModuleSymbol:d}:void 0}case 240:{const C=c;if(!(C.declarationList.flags&2)||C.declarationList.declarations.length!==1)return;const L=ds(C.declarationList.declarations);return L.initializer?(R.assert(!g,"Can't have a default flag here"),T(L.name)||{exportNode:C,exportName:L.name,wasDefault:g,exportingModuleSymbol:d}):void 0}case 274:{const C=c;return C.isExportEquals?void 0:T(C.expression)||{exportNode:C,exportName:C.expression,wasDefault:g,exportingModuleSymbol:d}}default:return}}function kXe(e,t,r,i,o){wXe(e,r,i,t.getTypeChecker()),DXe(t,r,i,o)}function wXe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(Vl(r)&&!r.isExportEquals){const c=r.expression,_=MCe(c.text,c.text);o.replaceNode(e,r,O.createExportDeclaration(void 0,!1,O.createNamedExports([_])))}else o.delete(e,R.checkDefined(gL(r,88),"Should find a default keyword in modifier list"));else{const c=R.checkDefined(gL(r,93),"Should find an export keyword in modifier list");switch(r.kind){case 259:case 260:case 261:o.insertNodeAfter(e,c,O.createToken(88));break;case 240:const _=ds(r.declarationList.declarations);if(!fl.Core.isSymbolReferencedInFile(i,s,e)&&!_.type){o.replaceNode(e,r,O.createExportDefault(R.checkDefined(_.initializer,"Initializer was previously known to be present")));break}case 263:case 262:case 264:o.deleteModifier(e,c),o.insertNodeAfter(e,r,O.createExportDefault(O.createIdentifier(i.text)));break;default:R.fail(`Unexpected exportNode kind ${r.kind}`)}}}function DXe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){const c=e.getTypeChecker(),_=R.checkDefined(c.getSymbolAtLocation(r),"Export name should resolve to a symbol");fl.Core.eachExportReference(e.getSourceFiles(),c,s,_,i,r.text,t,d=>{if(r===d)return;const v=d.getSourceFile();t?RXe(v,d,o,r.text):NXe(v,d,o)})}function RXe(e,t,r,i){const{parent:o}=t;switch(o.kind){case 208:r.replaceNode(e,t,O.createIdentifier(i));break;case 273:case 278:{const c=o;r.replaceNode(e,c,Bre(i,c.name.text));break}case 270:{const c=o;R.assert(c.name===t,"Import clause name should match provided ref");const _=Bre(i,t.text),{namedBindings:d}=c;if(!d)r.replaceNode(e,t,O.createNamedImports([_]));else if(d.kind===271){r.deleteRange(e,{pos:t.getStart(e),end:d.getStart(e)});const v=Wo(c.parent.moduleSpecifier)?EZ(c.parent.moduleSpecifier,e):1,g=Hy(void 0,[Bre(i,t.text)],c.parent.moduleSpecifier,v);r.insertNodeAfter(e,c.parent,g)}else r.delete(e,t),r.insertNodeAtEndOfList(e,d.elements,_);break}case 202:const s=o;r.replaceNode(e,o,O.createImportTypeNode(s.argument,s.assertions,O.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:R.failBadSyntaxKind(o)}}function NXe(e,t,r){const i=t.parent;switch(i.kind){case 208:r.replaceNode(e,t,O.createIdentifier("default"));break;case 273:{const o=O.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 278:{r.replaceNode(e,i,MCe("default",i.name.text));break}default:R.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function Bre(e,t){return O.createImportSpecifier(!1,e===t?void 0:O.createIdentifier(e),O.createIdentifier(t))}function MCe(e,t){return O.createExportSpecifier(!1,e===t?void 0:O.createIdentifier(e),O.createIdentifier(t))}function OXe(e,t){if(Ki(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&Bb(r.valueDeclaration)?t.getMergedSymbol(r):r}var VU,NO,OO,MXe=b({"src/services/refactors/convertExport.ts"(){"use strict";Zr(),jh(),VU="Convert export",NO={name:"Convert default export to named export",description:m.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},OO={name:"Convert named export to default export",description:m.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"},Ng(VU,{kinds:[NO.kind,OO.kind],getAvailableActions:function(t){const r=OCe(t,t.triggerReason==="invoked");if(!r)return it;if(!Vh(r)){const i=r.wasDefault?NO:OO;return[{name:VU,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:VU,description:m.Convert_default_export_to_named_export.message,actions:[so(Li({},NO),{notApplicableReason:r.error}),so(Li({},OO),{notApplicableReason:r.error})]}]:it},getEditsForAction:function(t,r){R.assert(r===NO.name||r===OO.name,"Unexpected action name");const i=OCe(t);return R.assert(i&&!Vh(i),"Expected applicable refactor info"),{edits:vr.ChangeTracker.with(t,s=>kXe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function PCe(e,t=!0){const{file:r}=e,i=Tx(e),o=la(r,i.start),s=t?rr(o,Yc):YN(o,r,i);if(!s||!Yc(s))return{error:"Selection is not an import declaration."};const c=i.start+i.length,_=f2(s,s.parent,r);if(_&&c>_.getStart())return;const{importClause:d}=s;return d?d.namedBindings?d.namedBindings.kind===271?{convertTo:0,import:d.namedBindings}:FCe(e.program,d)?{convertTo:1,import:d.namedBindings}:{convertTo:2,import:d.namedBindings}:{error:Po(m.Could_not_find_namespace_import_or_named_imports)}:{error:Po(m.Could_not_find_import_clause)}}function FCe(e,t){return jT(e.getCompilerOptions())&&GXe(t.parent.moduleSpecifier,e.getTypeChecker())}function PXe(e,t,r,i){const o=t.getTypeChecker();i.convertTo===0?FXe(e,o,r,i.import,jT(t.getCompilerOptions())):GCe(e,t,r,i.import,i.convertTo===1)}function FXe(e,t,r,i,o){let s=!1;const c=[],_=new Map;fl.Core.eachSymbolReferenceInFile(i.name,t,e,T=>{if(!Pfe(T.parent))s=!0;else{const C=BCe(T.parent).text;t.resolveName(C,T,67108863,!0)&&_.set(C,!0),R.assert(BXe(T.parent)===T,"Parent expression should match id"),c.push(T.parent)}});const d=new Map;for(const T of c){const C=BCe(T).text;let L=d.get(C);L===void 0&&d.set(C,L=_.has(C)?m2(C,e):C),r.replaceNode(e,T,O.createIdentifier(L))}const v=[];d.forEach((T,C)=>{v.push(O.createImportSpecifier(!1,T===C?void 0:O.createIdentifier(C),O.createIdentifier(T)))});const g=i.parent.parent;s&&!o?r.insertNodeAfter(e,g,Gre(g,void 0,v)):r.replaceNode(e,g,Gre(g,s?O.createIdentifier(i.name.text):void 0,v))}function BCe(e){return Br(e)?e.name:e.right}function BXe(e){return Br(e)?e.expression:e.left}function GCe(e,t,r,i,o=FCe(t,i.parent)){const s=t.getTypeChecker(),c=i.parent.parent,{moduleSpecifier:_}=c,d=new Set;i.elements.forEach(I=>{const M=s.getSymbolAtLocation(I.name);M&&d.add(M)});const v=_&&Wo(_)?Qu.moduleSpecifierToValidIdentifier(_.text,99):"module";function g(I){return!!fl.Core.eachSymbolReferenceInFile(I.name,s,e,M=>{const k=s.resolveName(v,M,67108863,!0);return k?d.has(k)?yd(M.parent):!0:!1})}const C=i.elements.some(g)?m2(v,e):v,L=new Set;for(const I of i.elements){const M=(I.propertyName||I.name).text;fl.Core.eachSymbolReferenceInFile(I.name,s,e,k=>{const U=O.createPropertyAccessExpression(O.createIdentifier(C),M);l_(k.parent)?r.replaceNode(e,k.parent,O.createPropertyAssignment(k.text,U)):yd(k.parent)?L.add(I):r.replaceNode(e,k,U)})}if(r.replaceNode(e,i,o?O.createIdentifier(C):O.createNamespaceImport(O.createIdentifier(C))),L.size){const I=Oo(L.values(),M=>O.createImportSpecifier(M.isTypeOnly,M.propertyName&&O.createIdentifier(M.propertyName.text),O.createIdentifier(M.name.text)));r.insertNodeAfter(e,i.parent.parent,Gre(c,void 0,I))}}function GXe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function Gre(e,t,r){return O.createImportDeclaration(void 0,O.createImportClause(!1,t,r&&r.length?O.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var jU,MO,UXe=b({"src/services/refactors/convertImport.ts"(){"use strict";Zr(),jh(),jU="Convert import",MO={0:{name:"Convert namespace import to named imports",description:m.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:m.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:m.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"}},Ng(jU,{kinds:_S(MO).map(e=>e.kind),getAvailableActions:function(t){const r=PCe(t,t.triggerReason==="invoked");if(!r)return it;if(!Vh(r)){const i=MO[r.convertTo];return[{name:jU,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?_S(MO).map(i=>({name:jU,description:i.description,actions:[so(Li({},i),{notApplicableReason:r.error})]})):it},getEditsForAction:function(t,r){R.assert(Dt(_S(MO),s=>s.name===r),"Unexpected action name");const i=PCe(t);return R.assert(i&&!Vh(i),"Expected applicable refactor info"),{edits:vr.ChangeTracker.with(t,s=>PXe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function UCe(e,t=!0){const{file:r,startPosition:i}=e,o=ld(r),s=la(r,i),c=qF(Tx(e)),_=c.pos===c.end&&t,d=rr(s,L=>L.parent&&Bi(L)&&!k1(c,L.parent,r)&&(_||rZ(s,r,c.pos,c.end)));if(!d||!Bi(d))return{error:Po(m.Selection_is_not_a_valid_type_node)};const v=e.program.getTypeChecker(),g=zXe(d,o);if(g===void 0)return{error:Po(m.No_type_could_be_extracted_from_this_type_node)};const T=VXe(v,d,g,r);if(!T)return{error:Po(m.No_type_could_be_extracted_from_this_type_node)};const C=Ure(v,d);return{isJS:o,selection:d,enclosingNode:g,typeParameters:T,typeElements:C}}function Ure(e,t){if(t)if(y6(t)){const r=[],i=new Map;for(const o of t.types){const s=Ure(e,o);if(!s||!s.every(c=>c.name&&Ip(i,KN(c.name))))return;xi(r,s)}return r}else{if(tx(t))return Ure(e,t.type);if(hf(t))return t.members}}function k1(e,t,r){return UN(e,Yo(r.text,t.pos),t.end)}function VXe(e,t,r,i){const o=[];return s(t)?void 0:o;function s(c){if(ep(c)){if(We(c.typeName)){const _=c.typeName,d=e.resolveName(_.text,_,262144,!0);for(const v of(d==null?void 0:d.declarations)||it)if(Ul(v)&&v.getSourceFile()===i){if(v.name.escapedText===_.escapedText&&k1(v,t,i))return!0;if(k1(r,v,i)&&!k1(t,v,i)){y_(o,v);break}}}}else if(jC(c)){const _=rr(c,d=>VC(d)&&k1(d.extendsType,c,i));if(!_||!k1(t,_,i))return!0}else if(F5(c)||B5(c)){const _=rr(c.parent,Ya);if(_&&_.type&&k1(_.type,c,i)&&!k1(t,_,i))return!0}else if(a4(c)){if(We(c.exprName)){const _=e.resolveName(c.exprName.text,c.exprName,111551,!1);if(_!=null&&_.valueDeclaration&&k1(r,_.valueDeclaration,i)&&!k1(t,_.valueDeclaration,i))return!0}else if(GT(c.exprName.left)&&!k1(t,c.parent,i))return!0}return i&&UC(c)&&ll(i,c.pos).line===ll(i,c.end).line&&sr(c,1),Pa(c,s)}}function jXe(e,t,r,i){const{enclosingNode:o,selection:s,typeParameters:c}=i,_=O.createTypeAliasDeclaration(void 0,r,c.map(d=>O.updateTypeParameterDeclaration(d,d.modifiers,d.name,d.constraint,void 0)),s);e.insertNodeBefore(t,o,PK(_),!0),e.replaceNode(t,s,O.createTypeReferenceNode(r,c.map(d=>O.createTypeReferenceNode(d.name,void 0))),{leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.ExcludeWhitespace})}function WXe(e,t,r,i){var o;const{enclosingNode:s,selection:c,typeParameters:_,typeElements:d}=i,v=O.createInterfaceDeclaration(void 0,r,_,void 0,d);ht(v,(o=d[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,PK(v),!0),e.replaceNode(t,c,O.createTypeReferenceNode(r,_.map(g=>O.createTypeReferenceNode(g.name,void 0))),{leadingTriviaOption:vr.LeadingTriviaOption.Exclude,trailingTriviaOption:vr.TrailingTriviaOption.ExcludeWhitespace})}function HXe(e,t,r,i,o){var s;const{enclosingNode:c,selection:_,typeParameters:d}=o;sr(_,7168);const v=O.createJSDocTypedefTag(O.createIdentifier("typedef"),O.createJSDocTypeExpression(_),O.createIdentifier(i)),g=[];Ie(d,C=>{const L=JA(C),I=O.createTypeParameterDeclaration(void 0,C.name),M=O.createJSDocTemplateTag(O.createIdentifier("template"),L&&lo(L,$T),[I]);g.push(M)});const T=O.createJSDocComment(void 0,O.createNodeArray(ba(g,[v])));if(eh(c)){const C=c.getStart(r),L=x1(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,c.getStart(r),T,{suffix:L+L+r.text.slice(wZ(r.text,C-1),C)})}else e.insertNodeBefore(r,c,T,!0);e.replaceNode(r,_,O.createTypeReferenceNode(i,d.map(C=>O.createTypeReferenceNode(C.name,void 0))))}function zXe(e,t){return rr(e,wa)||(t?rr(e,eh):void 0)}var WU,PO,FO,BO,qXe=b({"src/services/refactors/extractType.ts"(){"use strict";Zr(),jh(),WU="Extract type",PO={name:"Extract to type alias",description:Po(m.Extract_to_type_alias),kind:"refactor.extract.type"},FO={name:"Extract to interface",description:Po(m.Extract_to_interface),kind:"refactor.extract.interface"},BO={name:"Extract to typedef",description:Po(m.Extract_to_typedef),kind:"refactor.extract.typedef"},Ng(WU,{kinds:[PO.kind,FO.kind,BO.kind],getAvailableActions:function(t){const r=UCe(t,t.triggerReason==="invoked");return r?Vh(r)?t.preferences.provideRefactorNotApplicableReason?[{name:WU,description:Po(m.Extract_type),actions:[so(Li({},BO),{notApplicableReason:r.error}),so(Li({},PO),{notApplicableReason:r.error}),so(Li({},FO),{notApplicableReason:r.error})]}]:it:[{name:WU,description:Po(m.Extract_type),actions:r.isJS?[BO]:Pn([PO],r.typeElements&&FO)}]:it},getEditsForAction:function(t,r){const{file:i}=t,o=UCe(t);R.assert(o&&!Vh(o),"Expected to find a range to extract");const s=m2("NewType",i),c=vr.ChangeTracker.with(t,v=>{switch(r){case PO.name:return R.assert(!o.isJS,"Invalid actionName/JS combo"),jXe(v,i,s,o);case BO.name:return R.assert(o.isJS,"Invalid actionName/JS combo"),HXe(v,t,i,s,o);case FO.name:return R.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),WXe(v,i,s,o);default:R.fail("Unexpected action name")}}),_=i.fileName,d=eO(c,_,s,!1);return{edits:c,renameFilename:_,renameLocation:d}}})}});function Vh(e){return e.error!==void 0}function d0(e,t){return t?e.substr(0,t.length)===t:!0}var JXe=b({"src/services/refactors/helpers.ts"(){"use strict"}});function KXe(e){const{file:t}=e,r=qF(Tx(e)),{statements:i}=t,o=ii(i,_=>_.end>r.pos);if(o===-1)return;const s=i[o];if(Su(s)&&s.name&&gf(s.name,r))return{toMove:[i[o]],afterLast:i[o+1]};if(r.pos>s.getStart(t))return;const c=ii(i,_=>_.end>r.end,o);if(!(c!==-1&&(c===0||i[c].getStart(t)<r.end)))return{toMove:i.slice(o,c===-1?i.length:c),afterLast:c===-1?void 0:i[c]}}function XXe(e,t,r,i,o,s){const c=t.getTypeChecker(),_=fYe(e,r.all,c),d=vi(e.fileName),v=XR(e.fileName),g=Fi(d,uYe(dYe(_.oldFileImportsFromNewFile,_.movedSymbols),v,d,o))+v;i.createNewFile(e,g,ZXe(e,_,i,r,t,o,g,s)),QXe(t,i,e.fileName,g,_1(o))}function VCe(e){const t=KXe(e);if(t===void 0)return;const r=[],i=[],{toMove:o,afterLast:s}=t;return XW(o,YXe,(c,_)=>{for(let d=c;d<_;d++)r.push(o[d]);i.push({first:o[c],afterLast:s})}),r.length===0?void 0:{all:r,ranges:i}}function YXe(e){return!$Xe(e)&&!Cp(e)}function $Xe(e){switch(e.kind){case 269:return!0;case 268:return!Qr(e,1);case 240:return e.declarationList.declarations.every(t=>!!t.initializer&&wd(t.initializer,!0));default:return!1}}function QXe(e,t,r,i,o){const s=e.getCompilerOptions().configFile;if(!s)return;const c=Xo(Fi(r,"..",i)),_=bD(s.fileName,c,o),d=s.statements[0]&&li(s.statements[0].expression,Is),v=d&&$t(d.properties,g=>$c(g)&&Wo(g.name)&&g.name.text==="files");v&&Ju(v.initializer)&&t.insertNodeInListAfter(s,Ko(v.initializer.elements),O.createStringLiteral(_),v.initializer.elements)}function ZXe(e,t,r,i,o,s,c,_){const d=o.getTypeChecker(),v=J7(e.statements,Cp);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByNewFile.size()===0)return jCe(e,i.ranges,r),[...v,...i.all];const g=!!e.externalModuleIndicator,T=Np(e,_),C=aYe(e,t.oldFileImportsFromNewFile,c,o,s,g,T);C&&nB(r,e,C,!0,_),eYe(e,i.all,r,t.unusedImportsFromOldFile,d),jCe(e,i.ranges,r),tYe(r,o,s,e,t.movedSymbols,c);const L=cYe(e,t.oldImportsNeededByNewFile,t.newFileImportsFromOldFile,r,d,o,s,g,T),I=oYe(e,i.all,t.oldFileImportsFromNewFile,g);return L.length&&I.length?[...v,...L,4,...I]:[...v,...L,...I]}function jCe(e,t,r){for(const{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function eYe(e,t,r,i,o){for(const s of e.statements)Fr(t,s)||Vre(s,c=>qCe(e,c,r,_=>i.has(o.getSymbolAtLocation(_))))}function tYe(e,t,r,i,o,s){const c=t.getTypeChecker();for(const _ of t.getSourceFiles())if(_!==i)for(const d of _.statements)Vre(d,v=>{if(c.getSymbolAtLocation(WCe(v))!==i.symbol)return;const g=M=>{const k=ms(M.parent)?tB(c,M.parent):mf(c.getSymbolAtLocation(M),c);return!!k&&o.has(k)};qCe(_,v,e,g);const T=Ov(vi(i.path),s),C=M9(t.getCompilerOptions(),_,_.path,T,Ex(t,r)),L=XCe(v,O.createStringLiteral(C),g);L&&e.insertNodeAfter(_,d,L);const I=nYe(v);I&&rYe(e,_,c,o,C,I,v)})}function nYe(e){switch(e.kind){case 269:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===271?e.importClause.namedBindings.name:void 0;case 268:return e.name;case 257:return li(e.name,We);default:return R.assertNever(e,`Unexpected node kind ${e.kind}`)}}function rYe(e,t,r,i,o,s,c){const _=Qu.moduleSpecifierToValidIdentifier(o,99);let d=!1;const v=[];if(fl.Core.eachSymbolReferenceInFile(s,r,t,g=>{Br(g.parent)&&(d=d||!!r.resolveName(_,g,67108863,!0),i.has(r.getSymbolAtLocation(g.parent.name))&&v.push(g))}),v.length){const g=d?m2(_,t):_;for(const T of v)e.replaceNode(t,T,O.createIdentifier(g));e.insertNodeAfter(t,c,iYe(c,_,o))}}function iYe(e,t,r){const i=O.createIdentifier(t),o=O.createStringLiteral(r);switch(e.kind){case 269:return O.createImportDeclaration(void 0,O.createImportClause(!1,void 0,O.createNamespaceImport(i)),o,void 0);case 268:return O.createImportEqualsDeclaration(void 0,!1,i,O.createExternalModuleReference(o));case 257:return O.createVariableDeclaration(i,void 0,void 0,jre(o));default:return R.assertNever(e,`Unexpected node kind ${e.kind}`)}}function WCe(e){return e.kind===269?e.moduleSpecifier:e.kind===268?e.moduleReference.expression:e.initializer.arguments[0]}function Vre(e,t){if(Yc(e))Wo(e.moduleSpecifier)&&t(e);else if(fu(e))Zm(e.moduleReference)&&As(e.moduleReference.expression)&&t(e);else if(pc(e))for(const r of e.declarationList.declarations)r.initializer&&wd(r.initializer,!0)&&t(r)}function aYe(e,t,r,i,o,s,c){let _;const d=[];return t.forEach(v=>{v.escapedName==="default"?_=O.createIdentifier(QF(v)):d.push(v.name)}),HCe(e,_,d,r,i,o,s,c)}function HCe(e,t,r,i,o,s,c,_){const d=Ov(vi(e.path),i),v=M9(o.getCompilerOptions(),e,e.path,d,Ex(o,s));if(c){const g=r.map(T=>O.createImportSpecifier(!1,void 0,O.createIdentifier(T)));return fbe(t,g,v,_)}else{R.assert(!t,"No default import should exist");const g=r.map(T=>O.createBindingElement(void 0,void 0,T));return g.length?zCe(O.createObjectBindingPattern(g),void 0,jre(O.createStringLiteral(v))):void 0}}function zCe(e,t,r,i=2){return O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(e,void 0,t,r)],i))}function jre(e){return O.createCallExpression(O.createIdentifier("require"),void 0,[e])}function oYe(e,t,r,i){return ji(t,o=>{if(hYe(o)&&!nLe(e,o,i)&&ZCe(o,s=>{var c;return r.has(R.checkDefined((c=li(s,Um))==null?void 0:c.symbol))})){const s=vYe(o,i);if(s)return s}return o})}function qCe(e,t,r,i){switch(t.kind){case 269:sYe(e,t,r,i);break;case 268:i(t.name)&&r.delete(e,t);break;case 257:lYe(e,t,r,i);break;default:R.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function sYe(e,t,r,i){if(!t.importClause)return;const{name:o,namedBindings:s}=t.importClause,c=!o||i(o),_=!s||(s.kind===271?i(s.name):s.elements.length!==0&&s.elements.every(d=>i(d.name)));if(c&&_)r.delete(e,t);else if(o&&c&&r.delete(e,o),s){if(_)r.replaceNode(e,t.importClause,O.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===272)for(const d of s.elements)i(d.name)&&r.delete(e,d)}}function lYe(e,t,r,i){const{name:o}=t;switch(o.kind){case 79:i(o)&&(t.initializer&&wd(t.initializer,!0)?r.delete(e,Xu(t.parent)&&ge(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 204:break;case 203:if(o.elements.every(s=>We(s.name)&&i(s.name)))r.delete(e,Xu(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const s of o.elements)We(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function cYe(e,t,r,i,o,s,c,_,d){const v=[];for(const L of e.statements)Vre(L,I=>{Pn(v,XCe(I,WCe(I),M=>t.has(o.getSymbolAtLocation(M))))});let g;const T=[],C=hL();return r.forEach(L=>{if(L.declarations)for(const I of L.declarations){if(!$Ce(I))continue;const M=gYe(I);if(!M)continue;const k=tLe(I);C(k)&&yYe(e,k,M,i,_),Qr(I,1024)?g=M:T.push(M.text)}}),Pn(v,HCe(e,g,T,Eu(e.fileName),s,c,_,d)),v}function uYe(e,t,r,i){let o=e;for(let s=1;;s++){const c=Fi(r,o+t);if(!i.fileExists(c))return o;o=`${e}.${s}`}}function dYe(e,t){return e.forEachEntry(QF)||t.forEachEntry(QF)||"newFile"}function fYe(e,t,r){const i=new _8,o=new _8,s=new _8,c=$t(t,T=>!!(T.transformFlags&2)),_=g(c);_&&o.add(_);for(const T of t)ZCe(T,C=>{i.add(R.checkDefined(du(C)?r.getSymbolAtLocation(C.expression.left):C.symbol,"Need a symbol here"))});for(const T of t)YCe(T,r,C=>{if(C.declarations)for(const L of C.declarations)JCe(L)?o.add(C):$Ce(L)&&mYe(L)===e&&!i.has(C)&&s.add(C)});const d=o.clone(),v=new _8;for(const T of e.statements)Fr(t,T)||(_&&T.transformFlags&2&&d.delete(_),YCe(T,r,C=>{i.has(C)&&v.add(C),d.delete(C)}));return{movedSymbols:i,newFileImportsFromOldFile:s,oldFileImportsFromNewFile:v,oldImportsNeededByNewFile:o,unusedImportsFromOldFile:d};function g(T){if(T===void 0)return;const C=r.getJsxNamespace(T),L=r.resolveName(C,T,1920,!0);return L&&Dt(L.declarations,JCe)?L:void 0}}function JCe(e){switch(e.kind){case 268:case 273:case 270:case 271:return!0;case 257:return KCe(e);case 205:return $i(e.parent.parent)&&KCe(e.parent.parent);default:return!1}}function KCe(e){return Ki(e.parent.parent.parent)&&!!e.initializer&&wd(e.initializer,!0)}function XCe(e,t,r){switch(e.kind){case 269:{const i=e.importClause;if(!i)return;const o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&_Ye(i.namedBindings,r);return o||s?O.createImportDeclaration(void 0,O.createImportClause(i.isTypeOnly,o,s),t,void 0):void 0}case 268:return r(e.name)?e:void 0;case 257:{const i=pYe(e.name,r);return i?zCe(i,e.type,jre(t),e.parent.flags):void 0}default:return R.assertNever(e,`Unexpected import kind ${e.kind}`)}}function _Ye(e,t){if(e.kind===271)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?O.createNamedImports(r):void 0}}function pYe(e,t){switch(e.kind){case 79:return t(e)?e:void 0;case 204:return e;case 203:{const r=e.elements.filter(i=>i.propertyName||!We(i.name)||t(i.name));return r.length?O.createObjectBindingPattern(r):void 0}}}function YCe(e,t,r){e.forEachChild(function i(o){if(We(o)&&!xg(o)){const s=t.getSymbolAtLocation(o);s&&r(s)}else o.forEachChild(i)})}function $Ce(e){return QCe(e)&&Ki(e.parent)||$i(e)&&Ki(e.parent.parent.parent)}function mYe(e){return $i(e)?e.parent.parent.parent:e.parent}function hYe(e){return R.assert(Ki(e.parent),"Node parent should be a SourceFile"),QCe(e)||pc(e)}function QCe(e){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return!0;default:return!1}}function ZCe(e,t){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return t(e);case 240:return qt(e.declarationList.declarations,r=>eLe(r.name,t));case 241:{const{expression:r}=e;return Tr(r)&&wl(r)===1?t(e):void 0}}}function eLe(e,t){switch(e.kind){case 79:return t(lo(e.parent,r=>$i(r)||ms(r)));case 204:case 203:return qt(e.elements,r=>Fc(r)?void 0:eLe(r.name,t));default:return R.assertNever(e,`Unexpected name kind ${e.kind}`)}}function gYe(e){return du(e)?li(e.expression.left.name,We):li(e.name,We)}function tLe(e){switch(e.kind){case 257:return e.parent.parent;case 205:return tLe(lo(e.parent.parent,t=>$i(t)||ms(t)));default:return e}}function yYe(e,t,r,i,o){if(!nLe(e,t,o,r))if(o)du(t)||i.insertExportModifier(e,t);else{const s=Wre(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(rLe))}}function nLe(e,t,r,i){var o;return r?!du(t)&&Qr(t,1)||!!(i&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&Wre(t).some(s=>e.symbol.exports.has(cl(s)))}function vYe(e,t){return t?[bYe(e)]:EYe(e)}function bYe(e){const t=np(e)?ba([O.createModifier(93)],ET(e)):void 0;switch(e.kind){case 259:return O.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 260:const r=_x(e)?Fv(e):void 0;return O.updateClassDeclaration(e,ba(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 240:return O.updateVariableStatement(e,t,e.declarationList);case 264:return O.updateModuleDeclaration(e,t,e.name,e.body);case 263:return O.updateEnumDeclaration(e,t,e.name,e.members);case 262:return O.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 261:return O.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 268:return O.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 241:return R.fail();default:return R.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function EYe(e){return[e,...Wre(e).map(rLe)]}function Wre(e){switch(e.kind){case 259:case 260:return[e.name.text];case 240:return ua(e.declarationList.declarations,t=>We(t.name)?t.name.text:void 0);case 264:case 263:case 262:case 261:case 268:return it;case 241:return R.fail("Can't export an ExpressionStatement");default:return R.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function rLe(e){return O.createExpressionStatement(O.createBinaryExpression(O.createPropertyAccessExpression(O.createIdentifier("exports"),O.createIdentifier(e)),63,O.createIdentifier(e)))}var f8,HU,zU,_8,TYe=b({"src/services/refactors/moveToNewFile.ts"(){"use strict";Qye(),Zr(),jh(),f8="Move to a new file",HU=Po(m.Move_to_a_new_file),zU={name:f8,description:HU,kind:"refactor.move.newFile"},Ng(f8,{kinds:[zU.kind],getAvailableActions:function(t){const r=VCe(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:f8,description:HU,actions:[zU]}]:t.preferences.provideRefactorNotApplicableReason?[{name:f8,description:HU,actions:[so(Li({},zU),{notApplicableReason:Po(m.Selection_is_not_a_valid_statement_or_statements)})]}]:it},getEditsForAction:function(t,r){R.assert(r===f8,"Wrong refactor invoked");const i=R.checkDefined(VCe(t));return{edits:vr.ChangeTracker.with(t,s=>XXe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}}),_8=class{constructor(){this.map=new Map}add(e){this.map.set(String(To(e)),e)}has(e){return this.map.has(String(To(e)))}delete(e){this.map.delete(String(To(e)))}forEach(e){this.map.forEach(e)}forEachEntry(e){return ff(this.map,e)}clone(){const e=new _8;return WD(this.map,e.map),e}size(){return this.map.size}}}});function SYe(e){const{file:t,startPosition:r,program:i}=e;return aLe(t,r,i)?[{name:qU,description:Hre,actions:[zre]}]:it}function xYe(e){const{file:t,startPosition:r,program:i}=e,o=aLe(t,r,i);if(!o)return;const s=i.getTypeChecker(),c=o[o.length-1];let _=c;switch(c.kind){case 170:{_=O.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,v(o),c.type);break}case 171:{_=O.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,v(o),c.type,c.body);break}case 176:{_=O.updateCallSignature(c,c.typeParameters,v(o),c.type);break}case 173:{_=O.updateConstructorDeclaration(c,c.modifiers,v(o),c.body);break}case 177:{_=O.updateConstructSignature(c,c.typeParameters,v(o),c.type);break}case 259:{_=O.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,v(o),c.type,c.body);break}default:return R.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(_===c)return;return{renameFilename:void 0,renameLocation:void 0,edits:vr.ChangeTracker.with(e,C=>{C.replaceNodeRange(t,o[0],o[o.length-1],_)})};function v(C){const L=C[C.length-1];return el(L)&&L.body&&(C=C.slice(0,C.length-1)),O.createNodeArray([O.createParameterDeclaration(void 0,O.createToken(25),"args",void 0,O.createUnionTypeNode(Pt(C,g)))])}function g(C){const L=Pt(C.parameters,T);return sr(O.createTupleTypeNode(L),Dt(L,I=>!!ge(MC(I)))?0:1)}function T(C){R.assert(We(C.name));const L=ht(O.createNamedTupleMember(C.dotDotDotToken,C.name,C.questionToken,C.type||O.createKeywordTypeNode(131)),C),I=C.symbol&&C.symbol.getDocumentationComment(s);if(I){const M=oTe(I);M.length&&Qb(L,[{text:`*
${M.split(`
`).map(k=>` * ${k}`).join(`
`)}
`,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return L}}function iLe(e){switch(e.kind){case 170:case 171:case 176:case 173:case 177:case 259:return!0}return!1}function aLe(e,t,r){const i=la(e,t),o=rr(i,iLe);if(!o||el(o)&&o.body&&BN(o.body,t))return;const s=r.getTypeChecker(),c=o.symbol;if(!c)return;const _=c.declarations;if(ge(_)<=1||!Qn(_,C=>Zn(C)===e)||!iLe(_[0]))return;const d=_[0].kind;if(!Qn(_,C=>C.kind===d))return;const v=_;if(Dt(v,C=>!!C.typeParameters||Dt(C.parameters,L=>!!L.modifiers||!We(L.name))))return;const g=ua(v,C=>s.getSignatureFromDeclaration(C));if(ge(g)!==ge(_))return;const T=s.getReturnTypeOfSignature(g[0]);if(Qn(g,C=>s.getReturnTypeOfSignature(C)===T))return v}var qU,Hre,zre,AYe=b({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";Zr(),jh(),qU="Convert overload list to single signature",Hre=m.Convert_overload_list_to_single_signature.message,zre={name:qU,description:Hre,kind:"refactor.rewrite.function.overloadList"},Ng(qU,{kinds:[zre.kind],getEditsForAction:xYe,getAvailableActions:SYe})}});function CYe(e){const{file:t,startPosition:r,triggerReason:i}=e,o=oLe(t,r,i==="invoked");return o?Vh(o)?e.preferences.provideRefactorNotApplicableReason?[{name:JU,description:qre,actions:[so(Li({},GO),{notApplicableReason:o.error}),so(Li({},p8),{notApplicableReason:o.error})]}]:it:[{name:JU,description:qre,actions:[o.addBraces?GO:p8]}]:it}function LYe(e,t){const{file:r,startPosition:i}=e,o=oLe(r,i);R.assert(o&&!Vh(o),"Expected applicable refactor info");const{expression:s,returnStatement:c,func:_}=o;let d;if(t===GO.name){const g=O.createReturnStatement(s);d=O.createBlock([g],!0),bL(s,g,r,3,!0)}else if(t===p8.name&&c){const g=s||O.createVoidZero();d=OZ(g)?O.createParenthesizedExpression(g):g,tO(c,d,r,3,!1),bL(c,d,r,3,!1),J4(c,d,r,3,!1)}else R.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:vr.ChangeTracker.with(e,g=>{g.replaceNode(r,_.body,d)})}}function oLe(e,t,r=!0,i){const o=la(e,t),s=Nf(o);if(!s)return{error:Po(m.Could_not_find_a_containing_arrow_function)};if(!Xs(s))return{error:Po(m.Containing_function_is_not_an_arrow_function)};if(!(!gf(s,o)||gf(s.body,o)&&!r)){if(d0(GO.kind,i)&&yt(s.body))return{func:s,addBraces:!0,expression:s.body};if(d0(p8.kind,i)&&fo(s.body)&&s.body.statements.length===1){const c=ds(s.body.statements);if(kp(c))return{func:s,addBraces:!1,expression:c.expression,returnStatement:c}}}}var JU,qre,GO,p8,IYe=b({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";Zr(),jh(),JU="Add or remove braces in an arrow function",qre=m.Add_or_remove_braces_in_an_arrow_function.message,GO={name:"Add braces to arrow function",description:m.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},p8={name:"Remove braces from arrow function",description:m.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"},Ng(JU,{kinds:[p8.kind],getEditsForAction:LYe,getAvailableActions:CYe})}}),kYe={},wYe=b({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";AYe(),IYe()}});function DYe(e){const{file:t,startPosition:r,program:i,kind:o}=e,s=lLe(t,r,i);if(!s)return it;const{selectedVariableDeclaration:c,func:_}=s,d=[],v=[];if(d0(h8.kind,o)){const g=c||Xs(_)&&$i(_.parent)?void 0:Po(m.Could_not_convert_to_named_function);g?v.push(so(Li({},h8),{notApplicableReason:g})):d.push(h8)}if(d0(m8.kind,o)){const g=!c&&Xs(_)?void 0:Po(m.Could_not_convert_to_anonymous_function);g?v.push(so(Li({},m8),{notApplicableReason:g})):d.push(m8)}if(d0(g8.kind,o)){const g=Us(_)?void 0:Po(m.Could_not_convert_to_arrow_function);g?v.push(so(Li({},g8),{notApplicableReason:g})):d.push(g8)}return[{name:Jre,description:dLe,actions:d.length===0&&e.preferences.provideRefactorNotApplicableReason?v:d}]}function RYe(e,t){const{file:r,startPosition:i,program:o}=e,s=lLe(r,i,o);if(!s)return;const{func:c}=s,_=[];switch(t){case m8.name:_.push(...PYe(e,c));break;case h8.name:const d=MYe(c);if(!d)return;_.push(...FYe(e,c,d));break;case g8.name:if(!Us(c))return;_.push(...BYe(e,c));break;default:return R.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:_}}function sLe(e){let t=!1;return e.forEachChild(function r(i){if(mL(i)){t=!0;return}!_i(i)&&!Sc(i)&&!Us(i)&&Pa(i,r)}),t}function lLe(e,t,r){const i=la(e,t),o=r.getTypeChecker(),s=OYe(e,o,i.parent);if(s&&!sLe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};const c=Nf(i);if(c&&(Us(c)||Xs(c))&&!gf(c.body,i)&&!sLe(c.body)&&!o.containsArgumentsReference(c))return Us(c)&&uLe(e,o,c)?void 0:{selectedVariableDeclaration:!1,func:c}}function NYe(e){return $i(e)||Xu(e)&&e.declarations.length===1}function OYe(e,t,r){if(!NYe(r))return;const o=($i(r)?r:ds(r.declarations)).initializer;if(o&&(Xs(o)||Us(o)&&!uLe(e,t,o)))return o}function cLe(e){if(yt(e)){const t=O.createReturnStatement(e),r=e.getSourceFile();return ht(t,e),Yd(t),tO(e,t,r,void 0,!0),O.createBlock([t],!0)}else return e}function MYe(e){const t=e.parent;if(!$i(t)||!nP(t))return;const r=t.parent,i=r.parent;if(!(!Xu(r)||!pc(i)||!We(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function PYe(e,t){const{file:r}=e,i=cLe(t.body),o=O.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return vr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function FYe(e,t,r){const{file:i}=e,o=cLe(t.body),{variableDeclaration:s,variableDeclarationList:c,statement:_,name:d}=r;iB(_);const v=Cy(s)&1|zu(t),g=O.createModifiersFromModifierFlags(v),T=O.createFunctionDeclaration(ge(g)?g:void 0,t.asteriskToken,d,t.typeParameters,t.parameters,t.type,o);return c.declarations.length===1?vr.ChangeTracker.with(e,C=>C.replaceNode(i,_,T)):vr.ChangeTracker.with(e,C=>{C.delete(i,s),C.insertNodeAfter(i,_,T)})}function BYe(e,t){const{file:r}=e,o=t.body.statements[0];let s;GYe(t.body,o)?(s=o.expression,Yd(s),p2(o,s)):s=t.body;const c=O.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,O.createToken(38),s);return vr.ChangeTracker.with(e,_=>_.replaceNode(r,t,c))}function GYe(e,t){return e.statements.length===1&&kp(t)&&!!t.expression}function uLe(e,t,r){return!!r.name&&fl.Core.isSymbolReferencedInFile(r.name,t,e)}var Jre,dLe,m8,h8,g8,UYe=b({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";Zr(),jh(),Jre="Convert arrow function or function expression",dLe=Po(m.Convert_arrow_function_or_function_expression),m8={name:"Convert to anonymous function",description:Po(m.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},h8={name:"Convert to named function",description:Po(m.Convert_to_named_function),kind:"refactor.rewrite.function.named"},g8={name:"Convert to arrow function",description:Po(m.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},Ng(Jre,{kinds:[m8.kind,h8.kind,g8.kind],getEditsForAction:RYe,getAvailableActions:DYe})}}),VYe={},jYe=b({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";UYe()}});function WYe(e){const{file:t,startPosition:r}=e;return ld(t)||!pLe(t,r,e.program.getTypeChecker())?it:[{name:VO,description:$re,actions:[Qre]}]}function HYe(e,t){R.assert(t===VO,"Unexpected action name");const{file:r,startPosition:i,program:o,cancellationToken:s,host:c}=e,_=pLe(r,i,o.getTypeChecker());if(!_||!s)return;const d=qYe(_,o,s);return d.valid?{renameFilename:void 0,renameLocation:void 0,edits:vr.ChangeTracker.with(e,g=>zYe(r,o,c,g,_,d))}:{edits:[]}}function zYe(e,t,r,i,o,s){const c=s.signature,_=Pt(yLe(o,t,r),g=>Ol(g));if(c){const g=Pt(yLe(c,t,r),T=>Ol(T));v(c,g)}v(o,_);const d=Yw(s.functionCalls,(g,T)=>qs(g.pos,T.pos));for(const g of d)if(g.arguments&&g.arguments.length){const T=Ol(n$e(o,g.arguments),!0);i.replaceNodeRange(Zn(g),ds(g.arguments),Ko(g.arguments),T,{leadingTriviaOption:vr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:vr.TrailingTriviaOption.Include})}function v(g,T){i.replaceNodeRangeWithNodes(e,ds(g.parameters),Ko(g.parameters),T,{joiner:", ",indentation:0,leadingTriviaOption:vr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:vr.TrailingTriviaOption.Include})}}function qYe(e,t,r){const i=i$e(e),o=Kl(e)?r$e(e):[],s=BA([...i,...o],r1),c=t.getTypeChecker(),_=ji(s,T=>fl.getReferenceEntriesForNode(-1,T,t,t.getSourceFiles(),r)),d=v(_);return Qn(d.declarations,T=>Fr(s,T))||(d.valid=!1),d;function v(T){const C={accessExpressions:[],typeUsages:[]},L={functionCalls:[],declarations:[],classReferences:C,valid:!0},I=Pt(i,g),M=Pt(o,g),k=Kl(e),U=Pt(i,j=>Kre(j,c));for(const j of T){if(j.kind===fl.EntryKind.Span){L.valid=!1;continue}if(Fr(U,g(j.node))){if(YYe(j.node.parent)){L.signature=j.node.parent;continue}const ee=_Le(j);if(ee){L.functionCalls.push(ee);continue}}const H=Kre(j.node,c);if(H&&Fr(U,H)){const ee=Xre(j);if(ee){L.declarations.push(ee);continue}}if(Fr(I,g(j.node))||G4(j.node)){if(fLe(j))continue;const X=Xre(j);if(X){L.declarations.push(X);continue}const ne=_Le(j);if(ne){L.functionCalls.push(ne);continue}}if(k&&Fr(M,g(j.node))){if(fLe(j))continue;const X=Xre(j);if(X){L.declarations.push(X);continue}const ne=JYe(j);if(ne){C.accessExpressions.push(ne);continue}if(Bc(e.parent)){const P=KYe(j);if(P){C.typeUsages.push(P);continue}}}L.valid=!1}return L}function g(T){const C=c.getSymbolAtLocation(T);return C&&xbe(C,c)}}function Kre(e,t){const r=cO(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),o=i==null?void 0:i.getSymbol();if(o&&!(Dl(o)&6))return o}}function fLe(e){const t=e.node;if(Nd(t.parent)||Qm(t.parent)||fu(t.parent)||Zv(t.parent)||yd(t.parent)||Vl(t.parent))return t}function Xre(e){if(Au(e.node.parent))return e.node}function _Le(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 210:case 211:const i=li(r,vg);if(i&&i.expression===t)return i;break;case 208:const o=li(r,Br);if(o&&o.parent&&o.name===t){const c=li(o.parent,vg);if(c&&c.expression===o)return c}break;case 209:const s=li(r,dl);if(s&&s.parent&&s.argumentExpression===t){const c=li(s.parent,vg);if(c&&c.expression===s)return c}break}}}function JYe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 208:const i=li(r,Br);if(i&&i.expression===t)return i;break;case 209:const o=li(r,dl);if(o&&o.expression===t)return o;break}}}function KYe(e){const t=e.node;if(u2(t)===2||OR(t.parent))return t}function pLe(e,t,r){const i=j4(e,t),o=I_e(i);if(!XYe(i)&&o&&$Ye(o,r)&&gf(o,i)&&!(o.body&&gf(o.body,i)))return o}function XYe(e){const t=rr(e,ZA);if(t){const r=rr(t,i=>!ZA(i));return!!r&&el(r)}return!1}function YYe(e){return Mh(e)&&(dd(e.parent)||hf(e.parent))}function $Ye(e,t){var r;if(!QYe(e.parameters,t))return!1;switch(e.kind){case 259:return mLe(e)&&UO(e,t);case 171:if(Is(e.parent)){const i=Kre(e.name,t);return((r=i==null?void 0:i.declarations)==null?void 0:r.length)===1&&UO(e,t)}return UO(e,t);case 173:return Bc(e.parent)?mLe(e.parent)&&UO(e,t):hLe(e.parent.parent)&&UO(e,t);case 215:case 216:return hLe(e.parent)}return!1}function UO(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function mLe(e){return e.name?!0:!!gL(e,88)}function QYe(e,t){return e$e(e)>=vLe&&Qn(e,r=>ZYe(r,t))}function ZYe(e,t){if(Lh(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&We(e.name)}function hLe(e){return $i(e)&&Eg(e)&&We(e.name)&&!e.type}function Yre(e){return e.length>0&&mL(e[0].name)}function e$e(e){return Yre(e)?e.length-1:e.length}function gLe(e){return Yre(e)&&(e=O.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function t$e(e,t){return We(t)&&K_(t)===e?O.createShorthandPropertyAssignment(e):O.createPropertyAssignment(e,t)}function n$e(e,t){const r=gLe(e.parameters),i=Lh(Ko(r)),o=i?t.slice(0,r.length-1):t,s=Pt(o,(_,d)=>{const v=KU(r[d]),g=t$e(v,_);return Yd(g.name),$c(g)&&Yd(g.initializer),p2(_,g),g});if(i&&t.length>=r.length){const _=t.slice(r.length-1),d=O.createPropertyAssignment(KU(Ko(r)),O.createArrayLiteralExpression(_));s.push(d)}return O.createObjectLiteralExpression(s,!1)}function yLe(e,t,r){const i=t.getTypeChecker(),o=gLe(e.parameters),s=Pt(o,g),c=O.createObjectBindingPattern(s),_=T(o);let d;Qn(o,I)&&(d=O.createObjectLiteralExpression());const v=O.createParameterDeclaration(void 0,void 0,c,void 0,_,d);if(Yre(e.parameters)){const M=e.parameters[0],k=O.createParameterDeclaration(void 0,void 0,M.name,void 0,M.type);return Yd(k.name),p2(M.name,k.name),M.type&&(Yd(k.type),p2(M.type,k.type)),O.createNodeArray([k,v])}return O.createNodeArray([v]);function g(M){const k=O.createBindingElement(void 0,void 0,KU(M),Lh(M)&&I(M)?O.createArrayLiteralExpression():M.initializer);return Yd(k),M.initializer&&k.initializer&&p2(M.initializer,k.initializer),k}function T(M){const k=Pt(M,C);return cm(O.createTypeLiteralNode(k),1)}function C(M){let k=M.type;!k&&(M.initializer||Lh(M))&&(k=L(M));const U=O.createPropertySignature(void 0,KU(M),I(M)?O.createToken(57):M.questionToken,k);return Yd(U),p2(M.name,U.name),M.type&&U.type&&p2(M.type,U.type),U}function L(M){const k=i.getTypeAtLocation(M);return X4(k,M,t,r)}function I(M){if(Lh(M)){const k=i.getTypeAtLocation(M);return!i.isTupleType(k)}return i.isOptionalParameter(M)}}function KU(e){return K_(e.name)}function r$e(e){switch(e.parent.kind){case 260:const t=e.parent;return t.name?[t.name]:[R.checkDefined(gL(t,88),"Nameless class declaration should be a default export")];case 228:const i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function i$e(e){switch(e.kind){case 259:return e.name?[e.name]:[R.checkDefined(gL(e,88),"Nameless function declaration should be a default export")];case 171:return[e.name];case 173:const r=R.checkDefined(Es(e,135,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===228?[e.parent.parent.name,r]:[r];case 216:return[e.parent.name];case 215:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return R.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var VO,vLe,$re,Qre,a$e=b({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";Zr(),jh(),VO="Convert parameters to destructured object",vLe=1,$re=Po(m.Convert_parameters_to_destructured_object),Qre={name:VO,description:$re,kind:"refactor.rewrite.parameters.toDestructured"},Ng(VO,{kinds:[Qre.kind],getEditsForAction:HYe,getAvailableActions:WYe})}}),o$e={},s$e=b({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";a$e()}});function l$e(e){const{file:t,startPosition:r}=e,i=bLe(t,r),o=Zre(i),s={name:XU,description:YU,actions:[]};return Tr(o)&&eie(o).isValidConcatenation?(s.actions.push($U),[s]):e.preferences.provideRefactorNotApplicableReason?(s.actions.push(so(Li({},$U),{notApplicableReason:Po(m.Can_only_convert_string_concatenation)})),[s]):it}function bLe(e,t){const r=la(e,t),i=Zre(r);return!eie(i).isValidConcatenation&&qd(i.parent)&&Tr(i.parent.parent)?i.parent.parent:r}function c$e(e,t){const{file:r,startPosition:i}=e,o=bLe(r,i);switch(t){case YU:return{edits:u$e(e,o)};default:return R.fail("invalid action")}}function u$e(e,t){const r=Zre(t),i=e.file,o=_$e(eie(r),i),s=i1(i.text,r.end);if(s){const c=s[s.length-1],_={pos:s[0].pos,end:c.end};return vr.ChangeTracker.with(e,d=>{d.deleteRange(i,_),d.replaceNode(i,r,o)})}else return vr.ChangeTracker.with(e,c=>c.replaceNode(i,r,o))}function d$e(e){return e.operatorToken.kind!==63}function Zre(e){return rr(e.parent,r=>{switch(r.kind){case 208:case 209:return!1;case 225:case 223:return!(Tr(r.parent)&&d$e(r.parent));default:return"quit"}})||e}function eie(e){const t=c=>{if(!Tr(c))return{nodes:[c],operators:[],validOperators:!0,hasString:Wo(c)||$S(c)};const{nodes:_,operators:d,hasString:v,validOperators:g}=t(c.left);if(!(v||Wo(c.right)||G5(c.right)))return{nodes:[c],operators:[],hasString:!1,validOperators:!0};const T=c.operatorToken.kind===39,C=g&&T;return _.push(c.right),d.push(c.operatorToken),{nodes:_,operators:d,hasString:!0,validOperators:C}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function f$e(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function ELe(e){const t=BC(e)||Xme(e)?-2:-1;return kc(e).slice(1,t)}function TLe(e,t){const r=[];let i="",o="";for(;e<t.length;){const s=t[e];if(As(s))i+=s.text,o+=f$e(kc(s).slice(1,-1)),r.push(e),e++;else if(G5(s)){i+=s.head.text,o+=ELe(s.head);break}else break}return[e,i,o,r]}function _$e({nodes:e,operators:t},r){const i=xLe(t,r),o=ALe(e,r,i),[s,c,_,d]=TLe(0,e);if(s===e.length){const T=O.createNoSubstitutionTemplateLiteral(c,_);return o(d,T),T}const v=[],g=O.createTemplateHead(c,_);o(d,g);for(let T=s;T<e.length;T++){const C=p$e(e[T]);i(T,C);const[L,I,M,k]=TLe(T+1,e);T=L-1;const U=T===e.length-1;if(G5(C)){const j=Pt(C.templateSpans,(H,ee)=>{SLe(H);const X=ee===C.templateSpans.length-1,ne=H.literal.text+(X?I:""),P=ELe(H.literal)+(X?M:"");return O.createTemplateSpan(H.expression,U&&X?O.createTemplateTail(ne,P):O.createTemplateMiddle(ne,P))});v.push(...j)}else{const j=U?O.createTemplateTail(I,M):O.createTemplateMiddle(I,M);o(k,j),v.push(O.createTemplateSpan(C,j))}}return O.createTemplateExpression(g,v)}function SLe(e){const t=e.getSourceFile();J4(e,e.expression,t,3,!1),tO(e.expression,e.expression,t,3,!1)}function p$e(e){return qd(e)&&(SLe(e),e=e.expression),e}var XU,YU,$U,xLe,ALe,m$e=b({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";Zr(),jh(),XU="Convert to template string",YU=Po(m.Convert_to_template_string),$U={name:XU,description:YU,kind:"refactor.rewrite.string"},Ng(XU,{kinds:[$U.kind],getEditsForAction:c$e,getAvailableActions:l$e}),xLe=(e,t)=>(r,i)=>{r<e.length&&J4(e[r],i,t,3,!1)},ALe=(e,t,r)=>(i,o)=>{for(;i.length>0;){const s=i.shift();J4(e[s],o,t,3,!1),r(s,o)}}}}),h$e={},g$e=b({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";m$e()}});function y$e(e){const t=CLe(e,e.triggerReason==="invoked");return t?Vh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:jO,description:eV,actions:[so(Li({},tV),{notApplicableReason:t.error})]}]:it:[{name:jO,description:eV,actions:[tV]}]:it}function v$e(e,t){const r=CLe(e);return R.assert(r&&!Vh(r),"Expected applicable refactor info"),{edits:vr.ChangeTracker.with(e,o=>L$e(e.file,e.program.getTypeChecker(),o,r,t)),renameFilename:void 0,renameLocation:void 0}}function QU(e){return Tr(e)||qC(e)}function b$e(e){return du(e)||kp(e)||pc(e)}function ZU(e){return QU(e)||b$e(e)}function CLe(e,t=!0){const{file:r,program:i}=e,o=Tx(e),s=o.length===0;if(s&&!t)return;const c=la(r,o.start),_=jF(r,o.start+o.length),d=Ec(c.pos,_&&_.end>=c.pos?_.getEnd():c.getEnd()),v=s?A$e(c):x$e(c,d),g=v&&ZU(v)?C$e(v):void 0;if(!g)return{error:Po(m.Could_not_find_convertible_access_expression)};const T=i.getTypeChecker();return qC(g)?E$e(g,T):T$e(g)}function E$e(e,t){const r=e.condition,i=nie(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Po(m.Could_not_find_convertible_access_expression)};if((Br(r)||We(r))&&tie(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(Tr(r)){const o=LLe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:Po(m.Could_not_find_matching_access_expressions)}}}function T$e(e){if(e.operatorToken.kind!==55)return{error:Po(m.Can_only_convert_logical_AND_access_chains)};const t=nie(e.right);if(!t)return{error:Po(m.Could_not_find_convertible_access_expression)};const r=LLe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:Po(m.Could_not_find_matching_access_expressions)}}function LLe(e,t){const r=[];for(;Tr(t)&&t.operatorToken.kind===55;){const o=tie(Hs(e),Hs(t.right));if(!o)break;r.push(o),e=o,t=t.left}const i=tie(e,t);return i&&r.push(i),r.length>0?r:void 0}function tie(e,t){if(!(!We(t)&&!Br(t)&&!dl(t)))return S$e(e,t)?t:void 0}function S$e(e,t){for(;(io(e)||Br(e)||dl(e))&&y8(e)!==y8(t);)e=e.expression;for(;Br(e)&&Br(t)||dl(e)&&dl(t);){if(y8(e)!==y8(t))return!1;e=e.expression,t=t.expression}return We(e)&&We(t)&&e.getText()===t.getText()}function y8(e){if(We(e)||n_(e))return e.getText();if(Br(e))return y8(e.name);if(dl(e))return y8(e.argumentExpression)}function x$e(e,t){for(;e.parent;){if(ZU(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function A$e(e){for(;e.parent;){if(ZU(e)&&!ZU(e.parent))return e;e=e.parent}}function C$e(e){if(QU(e))return e;if(pc(e)){const t=mC(e),r=t==null?void 0:t.initializer;return r&&QU(r)?r:void 0}return e.expression&&QU(e.expression)?e.expression:void 0}function nie(e){if(e=Hs(e),Tr(e))return nie(e.left);if((Br(e)||dl(e)||io(e))&&!xu(e))return e}function ILe(e,t,r){if(Br(t)||dl(t)||io(t)){const i=ILe(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(),io(t))return s?O.createCallChain(i,O.createToken(28),t.typeArguments,t.arguments):O.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Br(t))return s?O.createPropertyAccessChain(i,O.createToken(28),t.name):O.createPropertyAccessChain(i,t.questionDotToken,t.name);if(dl(t))return s?O.createElementAccessChain(i,O.createToken(28),t.argumentExpression):O.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function L$e(e,t,r,i,o){const{finalExpression:s,occurrences:c,expression:_}=i,d=c[c.length-1],v=ILe(t,s,c);v&&(Br(v)||dl(v)||io(v))&&(Tr(_)?r.replaceNodeRange(e,d,s,v):qC(_)&&r.replaceNode(e,_,O.createBinaryExpression(v,O.createToken(60),_.whenFalse)))}var jO,eV,tV,I$e=b({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";Zr(),jh(),jO="Convert to optional chain expression",eV=Po(m.Convert_to_optional_chain_expression),tV={name:jO,description:eV,kind:"refactor.rewrite.expression.optionalChain"},Ng(jO,{kinds:[tV.kind],getEditsForAction:v$e,getAvailableActions:y$e})}}),k$e={},w$e=b({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";I$e()}});function kLe(e){const t=e.kind,r=rie(e.file,Tx(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return it;const I=[];return d0(Bx.kind,t)&&I.push({name:Px,description:Bx.description,actions:[so(Li({},Bx),{notApplicableReason:L(r.errors)})]}),d0(Fx.kind,t)&&I.push({name:Px,description:Fx.description,actions:[so(Li({},Fx),{notApplicableReason:L(r.errors)})]}),I}const o=P$e(i,e);if(o===void 0)return it;const s=[],c=new Map;let _;const d=[],v=new Map;let g,T=0;for(const{functionExtraction:I,constantExtraction:M}of o){if(d0(Bx.kind,t)){const k=I.description;I.errors.length===0?c.has(k)||(c.set(k,!0),s.push({description:k,name:`function_scope_${T}`,kind:Bx.kind})):_||(_={description:k,name:`function_scope_${T}`,notApplicableReason:L(I.errors),kind:Bx.kind})}if(d0(Fx.kind,t)){const k=M.description;M.errors.length===0?v.has(k)||(v.set(k,!0),d.push({description:k,name:`constant_scope_${T}`,kind:Fx.kind})):g||(g={description:k,name:`constant_scope_${T}`,notApplicableReason:L(M.errors),kind:Fx.kind})}T++}const C=[];return s.length?C.push({name:Px,description:Po(m.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&_&&C.push({name:Px,description:Po(m.Extract_function),actions:[_]}),d.length?C.push({name:Px,description:Po(m.Extract_constant),actions:d}):e.preferences.provideRefactorNotApplicableReason&&g&&C.push({name:Px,description:Po(m.Extract_constant),actions:[g]}),C.length?C:it;function L(I){let M=I[0].messageText;return typeof M!="string"&&(M=M.messageText),M}}function wLe(e,t){const i=rie(e.file,Tx(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){const c=+o[1];return R.assert(isFinite(c),"Expected to parse a finite number from the function scope index"),O$e(i,e,c)}const s=/^constant_scope_(\d+)$/.exec(t);if(s){const c=+s[1];return R.assert(isFinite(c),"Expected to parse a finite number from the constant scope index"),M$e(i,e,c)}R.fail("Unrecognized action name")}function rie(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[Pc(e,t.start,i,Qc.cannotExtractEmpty)]};const o=i===0&&r,s=$1e(e,t.start),c=jF(e,cu(t)),_=s&&c&&r?D$e(s,c,e):t,d=o?nQe(s):YN(s,e,_),v=o?d:YN(c,e,_);let g=0,T;if(!d||!v)return{errors:[Pc(e,t.start,i,Qc.cannotExtractRange)]};if(d.flags&8388608)return{errors:[Pc(e,t.start,i,Qc.cannotExtractJSDoc)]};if(d.parent!==v.parent)return{errors:[Pc(e,t.start,i,Qc.cannotExtractRange)]};if(d!==v){if(!RLe(d.parent))return{errors:[Pc(e,t.start,i,Qc.cannotExtractRange)]};const j=[];for(const H of d.parent.statements){if(H===d||j.length){const ee=U(H);if(ee)return{errors:ee};j.push(H)}if(H===v)break}return j.length?{targetRange:{range:j,facts:g,thisNode:T}}:{errors:[Pc(e,t.start,i,Qc.cannotExtractRange)]}}if(kp(d)&&!d.expression)return{errors:[Pc(e,t.start,i,Qc.cannotExtractRange)]};const C=I(d),L=M(C)||U(C);if(L)return{errors:L};return{targetRange:{range:R$e(C),facts:g,thisNode:T}};function I(j){if(kp(j)){if(j.expression)return j.expression}else if(pc(j)||Xu(j)){const H=pc(j)?j.declarationList.declarations:j.declarations;let ee=0,X;for(const ne of H)ne.initializer&&(ee++,X=ne.initializer);if(ee===1)return X}else if($i(j)&&j.initializer)return j.initializer;return j}function M(j){if(We(du(j)?j.expression:j))return[Nr(j,Qc.cannotExtractIdentifier)]}function k(j,H){let ee=j;for(;ee!==H;){if(ee.kind===169){Xa(ee)&&(g|=32);break}else if(ee.kind===166){Nf(ee).kind===173&&(g|=32);break}else ee.kind===171&&Xa(ee)&&(g|=32);ee=ee.parent}}function U(j){let H;if((re=>{re[re.None=0]="None",re[re.Break=1]="Break",re[re.Continue=2]="Continue",re[re.Return=4]="Return"})(H||(H={})),R.assert(j.pos<=j.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),R.assert(!lm(j.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!wa(j)&&!(Tg(j)&&DLe(j))&&!lie(j))return[Nr(j,Qc.statementOrExpressionExpected)];if(j.flags&16777216)return[Nr(j,Qc.cannotExtractAmbientBlock)];const ee=wc(j);ee&&k(j,ee);let X,ne=4,P;if(ue(j),g&8){const re=kd(j,!1,!1);(re.kind===259||re.kind===171&&re.parent.kind===207||re.kind===215)&&(g|=16)}return X;function ue(re){if(X)return!0;if(Au(re)){const ae=re.kind===257?re.parent.parent:re;if(Qr(ae,1))return(X||(X=[])).push(Nr(re,Qc.cannotExtractExportedEntity)),!0}switch(re.kind){case 269:return(X||(X=[])).push(Nr(re,Qc.cannotExtractImport)),!0;case 274:return(X||(X=[])).push(Nr(re,Qc.cannotExtractExportedEntity)),!0;case 106:if(re.parent.kind===210){const ae=wc(re);if(ae===void 0||ae.pos<t.start||ae.end>=t.start+t.length)return(X||(X=[])).push(Nr(re,Qc.cannotExtractSuper)),!0}else g|=8,T=re;break;case 216:Pa(re,function ae(z){if(mL(z))g|=8,T=re;else{if(_i(z)||Ya(z)&&!Xs(z))return!1;Pa(z,ae)}});case 260:case 259:Ki(re.parent)&&re.parent.externalModuleIndicator===void 0&&(X||(X=[])).push(Nr(re,Qc.functionWillNotBeVisibleInTheNewScope));case 228:case 215:case 171:case 173:case 174:case 175:return!1}const be=ne;switch(re.kind){case 242:ne&=-5;break;case 255:ne=0;break;case 238:re.parent&&re.parent.kind===255&&re.parent.finallyBlock===re&&(ne=4);break;case 293:case 292:ne|=1;break;default:Vv(re,!1)&&(ne|=3);break}switch(re.kind){case 194:case 108:g|=8,T=re;break;case 253:{const ae=re.label;(P||(P=[])).push(ae.escapedText),Pa(re,ue),P.pop();break}case 249:case 248:{const ae=re.label;ae?Fr(P,ae.escapedText)||(X||(X=[])).push(Nr(re,Qc.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ne&(re.kind===249?1:2)||(X||(X=[])).push(Nr(re,Qc.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 220:g|=4;break;case 226:g|=2;break;case 250:ne&4?g|=1:(X||(X=[])).push(Nr(re,Qc.cannotExtractRangeContainingConditionalReturnStatement));break;default:Pa(re,ue);break}ne=be}}}function D$e(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 R$e(e){if(wa(e))return[e];if(Tg(e))return du(e.parent)?[e.parent]:e;if(lie(e))return e}function iie(e){return Xs(e)?rq(e.body):el(e)||Ki(e)||dm(e)||_i(e)}function N$e(e){let t=Og(e.range)?ds(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=wc(t);if(i){const o=rr(t,el);return o?[o,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===166&&(t=rr(t,i=>el(i)).parent),iie(t)&&(r.push(t),t.kind===308))return r}function O$e(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:c,exposedVariableDeclarations:_}}=aie(e,t);return R.assert(!c[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),j$e(o,i[r],s[r],_,e,t)}function M$e(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:c,exposedVariableDeclarations:_}}=aie(e,t);R.assert(!c[r].length,"The extraction went missing? How?"),R.assert(_.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const d=yt(o)?o:o.statements[0].expression;return W$e(d,i[r],s[r],e.facts,t)}function P$e(e,t){const{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=aie(e,t);return r.map((c,_)=>{const d=F$e(c),v=B$e(c),g=el(c)?G$e(c):_i(c)?U$e(c):V$e(c);let T,C;return g===1?(T=Rh(Po(m.Extract_to_0_in_1_scope),[d,"global"]),C=Rh(Po(m.Extract_to_0_in_1_scope),[v,"global"])):g===0?(T=Rh(Po(m.Extract_to_0_in_1_scope),[d,"module"]),C=Rh(Po(m.Extract_to_0_in_1_scope),[v,"module"])):(T=Rh(Po(m.Extract_to_0_in_1),[d,g]),C=Rh(Po(m.Extract_to_0_in_1),[v,g])),_===0&&!_i(c)&&(C=Rh(Po(m.Extract_to_0_in_enclosing_scope),[v])),{functionExtraction:{description:T,errors:i[_]},constantExtraction:{description:C,errors:o[_]}}})}function aie(e,t){const{file:r}=t,i=N$e(e),o=eQe(e,r),s=tQe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function F$e(e){return el(e)?"inner function":_i(e)?"method":"function"}function B$e(e){return _i(e)?"readonly field":"constant"}function G$e(e){switch(e.kind){case 173:return"constructor";case 215:case 259:return e.name?`function '${e.name.text}'`:SB;case 216:return"arrow function";case 171:return`method '${e.name.getText()}'`;case 174:return`'get ${e.name.getText()}'`;case 175:return`'set ${e.name.getText()}'`;default:throw R.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function U$e(e){return e.kind===260?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function V$e(e){return e.kind===265?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function j$e(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,c,_){const d=_.program.getTypeChecker(),v=ns(_.program.getCompilerOptions()),g=Qu.createImportAdder(_.file,_.program,_.preferences,_.host),T=t.getSourceFile(),C=m2(_i(t)?"newMethod":"newFunction",T),L=_r(t),I=O.createIdentifier(C);let M;const k=[],U=[];let j;r.forEach((Fe,Be)=>{let $e;if(!L){let Ge=d.getTypeOfSymbolAtLocation(Fe.symbol,Fe.node);Ge=d.getBaseTypeOfLiteralType(Ge),$e=Qu.typeToAutoImportableTypeNode(d,g,Ge,t,v,1)}const ze=O.createParameterDeclaration(void 0,void 0,Be,void 0,$e);k.push(ze),Fe.usage===2&&(j||(j=[])).push(Fe),U.push(O.createIdentifier(Be))});const ee=Oo(i.values(),Fe=>({type:Fe,declaration:z$e(Fe)})).sort(q$e),X=ee.length===0?void 0:ee.map(Fe=>Fe.declaration),ne=X!==void 0?X.map(Fe=>O.createTypeReferenceNode(Fe.name,void 0)):void 0;if(yt(e)&&!L){const Fe=d.getContextualType(e);M=d.typeToTypeNode(Fe,t,1)}const{body:P,returnValueProperty:ue}=K$e(e,s,j,o,!!(c.facts&1));Yd(P);let re;const be=!!(c.facts&16);if(_i(t)){const Fe=L?[]:[O.createModifier(121)];c.facts&32&&Fe.push(O.createModifier(124)),c.facts&4&&Fe.push(O.createModifier(132)),re=O.createMethodDeclaration(Fe.length?Fe:void 0,c.facts&2?O.createToken(41):void 0,I,void 0,X,k,M,P)}else be&&k.unshift(O.createParameterDeclaration(void 0,void 0,"this",void 0,d.typeToTypeNode(d.getTypeAtLocation(c.thisNode),t,1),void 0)),re=O.createFunctionDeclaration(c.facts&4?[O.createToken(132)]:void 0,c.facts&2?O.createToken(41):void 0,I,X,k,M,P);const ae=vr.ChangeTracker.fromContext(_),z=(Og(c.range)?Ko(c.range):c.range).end,ce=$$e(z,t);ce?ae.insertNodeBefore(_.file,ce,re,!0):ae.insertNodeAtEndOfScope(_.file,t,re),g.writeFixes(ae);const he=[],Ee=J$e(t,c,C);be&&U.unshift(O.createIdentifier("this"));let Ae=O.createCallExpression(be?O.createPropertyAccessExpression(Ee,"call"):Ee,ne,U);if(c.facts&2&&(Ae=O.createYieldExpression(O.createToken(41),Ae)),c.facts&4&&(Ae=O.createAwaitExpression(Ae)),sie(e)&&(Ae=O.createJsxExpression(void 0,Ae)),s.length&&!j)if(R.assert(!ue,"Expected no returnValueProperty"),R.assert(!(c.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){const Fe=s[0];he.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(Ol(Fe.name),void 0,Ol(Fe.type),Ae)],Fe.parent.flags)))}else{const Fe=[],Be=[];let $e=s[0].parent.flags,ze=!1;for(const lt of s){Fe.push(O.createBindingElement(void 0,void 0,Ol(lt.name)));const Ct=d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(lt)),t,1);Be.push(O.createPropertySignature(void 0,lt.symbol.name,void 0,Ct)),ze=ze||lt.type!==void 0,$e=$e&lt.parent.flags}const Ge=ze?O.createTypeLiteralNode(Be):void 0;Ge&&sr(Ge,1),he.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(O.createObjectBindingPattern(Fe),void 0,Ge,Ae)],$e)))}else if(s.length||j){if(s.length)for(const Be of s){let $e=Be.parent.flags;$e&2&&($e=$e&-3|1),he.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(Be.symbol.name,void 0,Je(Be.type))],$e)))}ue&&he.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(ue,void 0,Je(M))],1)));const Fe=oie(s,j);ue&&Fe.unshift(O.createShorthandPropertyAssignment(ue)),Fe.length===1?(R.assert(!ue,"Shouldn't have returnValueProperty here"),he.push(O.createExpressionStatement(O.createAssignment(Fe[0].name,Ae))),c.facts&1&&he.push(O.createReturnStatement())):(he.push(O.createExpressionStatement(O.createAssignment(O.createObjectLiteralExpression(Fe),Ae))),ue&&he.push(O.createReturnStatement(O.createIdentifier(ue))))}else c.facts&1?he.push(O.createReturnStatement(Ae)):Og(c.range)?he.push(O.createExpressionStatement(Ae)):he.push(Ae);Og(c.range)?ae.replaceNodeRangeWithNodes(_.file,ds(c.range),Ko(c.range),he):ae.replaceNodeWithNodes(_.file,c.range,he);const te=ae.getChanges(),je=(Og(c.range)?ds(c.range):c.range).getSourceFile().fileName,Ue=eO(te,je,C,!1);return{renameFilename:je,renameLocation:Ue,edits:te};function Je(Fe){if(Fe===void 0)return;const Be=Ol(Fe);let $e=Be;for(;tx($e);)$e=$e.type;return ex($e)&&$t($e.types,ze=>ze.kind===155)?Be:O.createUnionTypeNode([Be,O.createKeywordTypeNode(155)])}}function W$e(e,t,{substitutions:r},i,o){const s=o.program.getTypeChecker(),c=t.getSourceFile(),_=Br(e)&&!_i(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Ri(e.name)&&!o1(e.name)?e.name.text:m2(_i(t)?"newProperty":"newLocal",c),d=_r(t);let v=d||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),g=X$e(Hs(e),r);({variableType:v,initializer:g}=M(v,g)),Yd(g);const T=vr.ChangeTracker.fromContext(o);if(_i(t)){R.assert(!d,"Cannot extract to a JS class");const k=[];k.push(O.createModifier(121)),i&32&&k.push(O.createModifier(124)),k.push(O.createModifier(146));const U=O.createPropertyDeclaration(k,_,void 0,v,g);let j=O.createPropertyAccessExpression(i&32?O.createIdentifier(t.name.getText()):O.createThis(),O.createIdentifier(_));sie(e)&&(j=O.createJsxExpression(void 0,j));const H=e.pos,ee=Q$e(H,t);T.insertNodeBefore(o.file,ee,U,!0),T.replaceNode(o.file,e,j)}else{const k=O.createVariableDeclaration(_,void 0,v,g),U=H$e(e,t);if(U){T.insertNodeBefore(o.file,U,k);const j=O.createIdentifier(_);T.replaceNode(o.file,e,j)}else if(e.parent.kind===241&&t===rr(e,iie)){const j=O.createVariableStatement(void 0,O.createVariableDeclarationList([k],2));T.replaceNode(o.file,e.parent,j)}else{const j=O.createVariableStatement(void 0,O.createVariableDeclarationList([k],2)),H=Z$e(e,t);if(H.pos===0?T.insertNodeAtTopOfFile(o.file,j,!1):T.insertNodeBefore(o.file,H,j,!1),e.parent.kind===241)T.delete(o.file,e.parent);else{let ee=O.createIdentifier(_);sie(e)&&(ee=O.createJsxExpression(void 0,ee)),T.replaceNode(o.file,e,ee)}}}const C=T.getChanges(),L=e.getSourceFile().fileName,I=eO(C,L,_,!0);return{renameFilename:L,renameLocation:I,edits:C};function M(k,U){if(k===void 0)return{variableType:k,initializer:U};if(!Us(U)&&!Xs(U)||U.typeParameters)return{variableType:k,initializer:U};const j=s.getTypeAtLocation(e),H=Nm(s.getSignaturesOfType(j,0));if(!H)return{variableType:k,initializer:U};if(H.getTypeParameters())return{variableType:k,initializer:U};const ee=[];let X=!1;for(const ne of U.parameters)if(ne.type)ee.push(ne);else{const P=s.getTypeAtLocation(ne);P===s.getAnyType()&&(X=!0),ee.push(O.updateParameterDeclaration(ne,ne.modifiers,ne.dotDotDotToken,ne.name,ne.questionToken,ne.type||s.typeToTypeNode(P,t,1),ne.initializer))}if(X)return{variableType:k,initializer:U};if(k=void 0,Xs(U))U=O.updateArrowFunction(U,np(e)?ET(e):void 0,U.typeParameters,ee,U.type||s.typeToTypeNode(H.getReturnType(),t,1),U.equalsGreaterThanToken,U.body);else{if(H&&H.thisParameter){const ne=tu(ee);if(!ne||We(ne.name)&&ne.name.escapedText!=="this"){const P=s.getTypeOfSymbolAtLocation(H.thisParameter,e);ee.splice(0,0,O.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(P,t,1)))}}U=O.updateFunctionExpression(U,np(e)?ET(e):void 0,U.asteriskToken,U.name,U.typeParameters,ee,U.type||s.typeToTypeNode(H.getReturnType(),t,1),U.body)}return{variableType:k,initializer:U}}}function H$e(e,t){let r;for(;e!==void 0&&e!==t;){if($i(e)&&e.initializer===r&&Xu(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function z$e(e){let t;const r=e.symbol;if(r&&r.declarations)for(const i of r.declarations)(t===void 0||i.pos<t.pos)&&(t=i);return t}function q$e({type:e,declaration:t},{type:r,declaration:i}){return Yue(t,i,"pos",qs)||ju(e.symbol?e.symbol.getName():"",r.symbol?r.symbol.getName():"")||qs(e.id,r.id)}function J$e(e,t,r){const i=O.createIdentifier(r);if(_i(e)){const o=t.facts&32?O.createIdentifier(e.name.text):O.createThis();return O.createPropertyAccessExpression(o,i)}else return i}function K$e(e,t,r,i,o){const s=r!==void 0||t.length>0;if(fo(e)&&!s&&i.size===0)return{body:O.createBlock(e.statements,!0),returnValueProperty:void 0};let c,_=!1;const d=O.createNodeArray(fo(e)?e.statements.slice(0):[wa(e)?e:O.createReturnStatement(Hs(e))]);if(s||i.size){const g=Jn(d,v,wa).slice();if(s&&!o&&wa(e)){const T=oie(t,r);T.length===1?g.push(O.createReturnStatement(T[0].name)):g.push(O.createReturnStatement(O.createObjectLiteralExpression(T)))}return{body:O.createBlock(g,!0),returnValueProperty:c}}else return{body:O.createBlock(d,!0),returnValueProperty:void 0};function v(g){if(!_&&kp(g)&&s){const T=oie(t,r);return g.expression&&(c||(c="__return"),T.unshift(O.createPropertyAssignment(c,ct(g.expression,v,yt)))),T.length===1?O.createReturnStatement(T[0].name):O.createReturnStatement(O.createObjectLiteralExpression(T))}else{const T=_;_=_||el(g)||_i(g);const C=i.get(hs(g).toString()),L=C?Ol(C):Fn(g,v,Dg);return _=T,L}}}function X$e(e,t){return t.size?r(e):e;function r(i){const o=t.get(hs(i).toString());return o?Ol(o):Fn(i,r,Dg)}}function Y$e(e){if(el(e)){const t=e.body;if(fo(t))return t.statements}else{if(dm(e)||Ki(e))return e.statements;if(_i(e))return e.members;}return it}function $$e(e,t){return $t(Y$e(t),r=>r.pos>=e&&el(r)&&!Kl(r))}function Q$e(e,t){const r=t.members;R.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&&!ro(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?R.fail():i}function Z$e(e,t){R.assert(!_i(t));let r;for(let i=e;i!==t;i=i.parent)iie(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(RLe(i)){let o;for(const s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&f4(i)?(R.assert(E6(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):R.checkDefined(o,"prevStatement failed to get set")}R.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function oie(e,t){const r=Pt(e,o=>O.createShorthandPropertyAssignment(o.symbol.name)),i=Pt(t,o=>O.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function Og(e){return ja(e)}function eQe(e,t){return Og(e.range)?{pos:ds(e.range).getStart(t),end:Ko(e.range).getEnd()}:e.range}function tQe(e,t,r,i,o,s){const c=new Map,_=[],d=[],v=[],g=[],T=[],C=new Map,L=[];let I;const M=Og(e.range)?e.range.length===1&&du(e.range[0])?e.range[0].expression:void 0:e.range;let k;if(M===void 0){const ce=e.range,he=ds(ce).getStart(),Ee=Ko(ce).end;k=Pc(i,he,Ee-he,Qc.expressionExpected)}else o.getTypeAtLocation(M).flags&147456&&(k=Nr(M,Qc.uselessConstantType));for(const ce of t){_.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),d.push(new Map),v.push([]);const he=[];k&&he.push(k),_i(ce)&&_r(ce)&&he.push(Nr(ce,Qc.cannotExtractToJSClass)),Xs(ce)&&!fo(ce.body)&&he.push(Nr(ce,Qc.cannotExtractToExpressionArrowFunction)),g.push(he)}const U=new Map,j=Og(e.range)?O.createBlock(e.range):e.range,H=Og(e.range)?ds(e.range):e.range,ee=X(H);if(P(j),ee&&!Og(e.range)&&!fm(e.range)){const ce=o.getContextualType(e.range);ne(ce)}if(c.size>0){const ce=new Map;let he=0;for(let Ee=H;Ee!==void 0&&he<t.length;Ee=Ee.parent)if(Ee===t[he]&&(ce.forEach((Ae,te)=>{_[he].typeParameterUsages.set(te,Ae)}),he++),kq(Ee))for(const Ae of Gv(Ee)){const te=o.getTypeAtLocation(Ae);c.has(te.id.toString())&&ce.set(te.id.toString(),te)}R.assert(he===t.length,"Should have iterated all scopes")}if(T.length){const ce=Iq(t[0],t[0].parent)?t[0]:Hm(t[0]);Pa(ce,be)}for(let ce=0;ce<t.length;ce++){const he=_[ce];if(ce>0&&(he.usages.size>0||he.typeParameterUsages.size>0)){const te=Og(e.range)?e.range[0]:e.range;g[ce].push(Nr(te,Qc.cannotAccessVariablesFromNestedScopes))}e.facts&16&&_i(t[ce])&&v[ce].push(Nr(e.thisNode,Qc.cannotExtractFunctionsContainingThisToMethod));let Ee=!1,Ae;if(_[ce].usages.forEach(te=>{te.usage===2&&(Ee=!0,te.symbol.flags&106500&&te.symbol.valueDeclaration&&Hd(te.symbol.valueDeclaration,64)&&(Ae=te.symbol.valueDeclaration))}),R.assert(Og(e.range)||L.length===0,"No variable declarations expected if something was extracted"),Ee&&!Og(e.range)){const te=Nr(e.range,Qc.cannotWriteInExpression);v[ce].push(te),g[ce].push(te)}else if(Ae&&ce>0){const te=Nr(Ae,Qc.cannotExtractReadonlyPropertyInitializerOutsideConstructor);v[ce].push(te),g[ce].push(te)}else if(I){const te=Nr(I,Qc.cannotExtractExportedEntity);v[ce].push(te),g[ce].push(te)}}return{target:j,usagesPerScope:_,functionErrorsPerScope:v,constantErrorsPerScope:g,exposedVariableDeclarations:L};function X(ce){return!!rr(ce,he=>kq(he)&&Gv(he).length!==0)}function ne(ce){const he=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:Ee}=he.walkType(ce);for(const Ae of Ee)Ae.isTypeParameter()&&c.set(Ae.id.toString(),Ae)}function P(ce,he=1){if(ee){const Ee=o.getTypeAtLocation(ce);ne(Ee)}if(Au(ce)&&ce.symbol&&T.push(ce),cd(ce))P(ce.left,2),P(ce.right);else if(Gfe(ce))P(ce.operand,2);else if(Br(ce)||dl(ce))Pa(ce,P);else if(We(ce)){if(!ce.parent||Rd(ce.parent)&&ce!==ce.parent.left||Br(ce.parent)&&ce!==ce.parent.expression)return;ue(ce,he,Ih(ce))}else Pa(ce,P)}function ue(ce,he,Ee){const Ae=re(ce,he,Ee);if(Ae)for(let te=0;te<t.length;te++){const Ze=d[te].get(Ae);Ze&&_[te].substitutions.set(hs(ce).toString(),Ze)}}function re(ce,he,Ee){const Ae=ae(ce);if(!Ae)return;const te=To(Ae).toString(),Ze=U.get(te);if(Ze&&Ze>=he)return te;if(U.set(te,he),Ze){for(const Je of _)Je.usages.get(ce.text)&&Je.usages.set(ce.text,{usage:he,symbol:Ae,node:ce});return te}const je=Ae.getDeclarations(),Ue=je&&$t(je,Je=>Je.getSourceFile()===i);if(Ue&&!UN(r,Ue.getStart(),Ue.end)){if(e.facts&2&&he===2){const Je=Nr(ce,Qc.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const Fe of v)Fe.push(Je);for(const Fe of g)Fe.push(Je)}for(let Je=0;Je<t.length;Je++){const Fe=t[Je];if(o.resolveName(Ae.name,Fe,Ae.flags,!1)!==Ae&&!d[Je].has(te)){const $e=z(Ae.exportSymbol||Ae,Fe,Ee);if($e)d[Je].set(te,$e);else if(Ee){if(!(Ae.flags&262144)){const ze=Nr(ce,Qc.typeWillNotBeVisibleInTheNewScope);v[Je].push(ze),g[Je].push(ze)}}else _[Je].usages.set(ce.text,{usage:he,symbol:Ae,node:ce})}}return te}}function be(ce){if(ce===e.range||Og(e.range)&&e.range.indexOf(ce)>=0)return;const he=We(ce)?ae(ce):o.getSymbolAtLocation(ce);if(he){const Ee=$t(T,Ae=>Ae.symbol===he);if(Ee)if($i(Ee)){const Ae=Ee.symbol.id.toString();C.has(Ae)||(L.push(Ee),C.set(Ae,!0))}else I=I||Ee}Pa(ce,be)}function ae(ce){return ce.parent&&l_(ce.parent)&&ce.parent.name===ce?o.getShorthandAssignmentValueSymbol(ce.parent):o.getSymbolAtLocation(ce)}function z(ce,he,Ee){if(!ce)return;const Ae=ce.getDeclarations();if(Ae&&Ae.some(Ze=>Ze.parent===he))return O.createIdentifier(ce.name);const te=z(ce.parent,he,Ee);if(te!==void 0)return Ee?O.createQualifiedName(te,O.createIdentifier(ce.name)):O.createPropertyAccessExpression(te,ce.name)}}function nQe(e){return rr(e,t=>t.parent&&DLe(t)&&!Tr(t.parent))}function DLe(e){const{parent:t}=e;switch(t.kind){case 302:return!1}switch(e.kind){case 10:return t.kind!==269&&t.kind!==273;case 227:case 203:case 205:return!1;case 79:return t.kind!==205&&t.kind!==273&&t.kind!==278}return!0}function RLe(e){switch(e.kind){case 238:case 308:case 265:case 292:return!0;default:return!1}}function sie(e){return lie(e)||(By(e)||sx(e)||cx(e))&&(By(e.parent)||cx(e.parent))}function lie(e){return Wo(e)&&e.parent&&fm(e.parent)}var Px,Fx,Bx,Qc,cie,rQe=b({"src/services/refactors/extractSymbol.ts"(){"use strict";Zr(),jh(),Px="Extract Symbol",Fx={name:"Extract Constant",description:Po(m.Extract_constant),kind:"refactor.extract.constant"},Bx={name:"Extract Function",description:Po(m.Extract_function),kind:"refactor.extract.function"},Ng(Px,{kinds:[Fx.kind,Bx.kind],getEditsForAction:wLe,getAvailableActions:kLe}),(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")})(Qc||(Qc={})),cie=(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))(cie||{})}}),NLe={};B(NLe,{Messages:()=>Qc,RangeFacts:()=>cie,getRangeToExtract:()=>rie,getRefactorActionsToExtractSymbol:()=>kLe,getRefactorEditsToExtractSymbol:()=>wLe});var iQe=b({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";rQe()}}),WO,nV,rV,aQe=b({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";Zr(),jh(),WO="Generate 'get' and 'set' accessors",nV=m.Generate_get_and_set_accessors.message,rV={name:WO,description:nV,kind:"refactor.rewrite.property.generateAccessors"},Ng(WO,{kinds:[rV.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=Qu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);R.assert(i&&!Vh(i),"Expected applicable refactor info");const o=Qu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;const s=t.file.fileName,c=i.renameAccessor?i.accessorName:i.fieldName,d=(We(c)?0:-1)+eO(o,s,c.text,Ba(i.declaration));return{renameFilename:s,renameLocation:d,edits:o}},getAvailableActions(e){if(!e.endPosition)return it;const t=Qu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Vh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:WO,description:nV,actions:[so(Li({},rV),{notApplicableReason:t.error})]}]:it:[{name:WO,description:nV,actions:[rV]}]:it}})}}),oQe={},sQe=b({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";aQe()}});function lQe(e){const t=OLe(e);if(t&&!Vh(t))return{renameFilename:void 0,renameLocation:void 0,edits:vr.ChangeTracker.with(e,i=>uQe(e.file,i,t.declaration,t.returnTypeNode))}}function cQe(e){const t=OLe(e);return t?Vh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:HO,description:iV,actions:[so(Li({},zO),{notApplicableReason:t.error})]}]:it:[{name:HO,description:iV,actions:[zO]}]:it}function uQe(e,t,r,i){const o=Es(r,21,e),s=Xs(r)&&o===void 0,c=s?ds(r.parameters):o;c&&(s&&(t.insertNodeBefore(e,c,O.createToken(20)),t.insertNodeAfter(e,c,O.createToken(21))),t.insertNodeAt(e,c.end,i,{prefix:": "}))}function OLe(e){if(_r(e.file)||!d0(zO.kind,e.kind))return;const t=la(e.file,e.startPosition),r=rr(t,c=>fo(c)||c.parent&&Xs(c.parent)&&(c.kind===38||c.parent.body===c)?"quit":dQe(c));if(!r||!r.body||r.type)return{error:Po(m.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),o=fQe(i,r);if(!o)return{error:Po(m.Could_not_determine_function_return_type)};const s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function dQe(e){switch(e.kind){case 259:case 215:case 216:case 171:return!0;default:return!1}}function fQe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(ua(i,o=>o.getReturnType()))}const r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var HO,iV,zO,_Qe=b({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";Zr(),jh(),HO="Infer function return type",iV=m.Infer_function_return_type.message,zO={name:HO,description:iV,kind:"refactor.rewrite.function.returnType"},Ng(HO,{kinds:[zO.kind],getEditsForAction:lQe,getAvailableActions:cQe})}}),pQe={},mQe=b({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";_Qe()}}),v8={};B(v8,{addOrRemoveBracesToArrowFunction:()=>kYe,convertArrowFunctionOrFunctionExpression:()=>VYe,convertParamsToDestructuredObject:()=>o$e,convertStringOrTemplateLiteral:()=>h$e,convertToOptionalChainExpression:()=>k$e,doChangeNamedToNamespaceOrDefault:()=>GCe,extractSymbol:()=>NLe,generateGetAccessorAndSetAccessor:()=>oQe,getApplicableRefactors:()=>CXe,getEditsForRefactor:()=>LXe,inferFunctionReturnType:()=>pQe,isRefactorErrorInfo:()=>Vh,refactorKindBeginsWith:()=>d0,registerRefactor:()=>Ng});var jh=b({"src/services/_namespaces/ts.refactor.ts"(){"use strict";IXe(),MXe(),UXe(),qXe(),JXe(),TYe(),wYe(),jYe(),s$e(),g$e(),w$e(),iQe(),sQe(),mQe()}});function hQe(e,t,r,i){const o=VF(Bf(t,r));if(PLe(o)){const s=gQe(o,e.getTypeChecker(),t,e,i);if(s)return s}return aV(m.You_cannot_rename_this_element)}function gQe(e,t,r,i,o){const s=t.getSymbolAtLocation(e);if(!s){if(As(e)){const C=UF(e,t);if(C&&(C.flags&128||C.flags&1048576&&Qn(C.types,L=>!!(L.flags&128))))return uie(e.text,e.text,"string","",e,r)}else if($Q(e)){const C=kc(e);return uie(C,C,"label","",e,r)}return}const{declarations:c}=s;if(!c||c.length===0)return;if(c.some(C=>yQe(i,C)))return aV(m.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(We(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(As(e)&&_R(e))return o.allowRenameOfImportPath?bQe(e,r,s):void 0;const _=vQe(r,s,t,o);if(_)return aV(_);const d=qy.getSymbolKind(t,s,e),v=Sbe(e)||n_(e)&&e.parent.kind===164?X_(K_(e)):void 0,g=v||t.symbolToString(s),T=v||t.getFullyQualifiedName(s);return uie(g,T,d,qy.getSymbolModifiers(t,s),e,r)}function yQe(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&_c(r.fileName,".d.ts")}function vQe(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const c=t.declarations&&$t(t.declarations,_=>Nd(_));c&&!c.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:o}=t;if(!o)return;const s=MLe(e.path);if(s===void 0)return Dt(o,c=>Mbe(c.getSourceFile().path))?m.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const c of o){const _=MLe(c.getSourceFile().path);if(_){const d=Math.min(s.length,_.length);for(let v=0;v<=d;v++)if(ju(s[v],_[v])!==0)return m.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function MLe(e){const t=md(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function bQe(e,t,r){if(!zc(e.text))return aV(m.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&$t(r.declarations,Ki);if(!i)return;const o=oc(e.text,"/index")||oc(e.text,"/index.js")?void 0:$ue(zd(i.fileName),"/index"),s=o===void 0?i.fileName:o,c=o===void 0?"module":"directory",_=e.text.lastIndexOf("/")+1,d=Mc(e.getStart(t)+1+_,e.text.length-_);return{canRename:!0,fileToRename:s,kind:c,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:d}}function uie(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:EQe(o,s)}}function aV(e){return{canRename:!1,localizedErrorMessage:Po(e)}}function EQe(e,t){let r=e.getStart(t),i=e.getWidth(t);return As(e)&&(r+=1,i-=2),Mc(r,i)}function PLe(e){switch(e.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return PF(e);default:return!1}}var TQe=b({"src/services/rename.ts"(){"use strict";Zr()}}),oV={};B(oV,{getRenameInfo:()=>hQe,nodeIsEligibleForRename:()=>PLe});var SQe=b({"src/services/_namespaces/ts.Rename.ts"(){"use strict";TQe()}});function xQe(e,t,r,i,o){const s=e.getTypeChecker(),c=jF(t,r);if(!c)return;const _=!!i&&i.kind==="characterTyped";if(_&&(_2(t,r,c)||jy(t,r)))return;const d=!!i&&i.kind==="invoked",v=GQe(c,r,t,s,d);if(!v)return;o.throwIfCancellationRequested();const g=AQe(v,s,t,c,_);return o.throwIfCancellationRequested(),g?s.runWithCancellationToken(o,T=>g.kind===0?WLe(g.candidates,g.resolvedSignature,v,t,T):VQe(g.symbol,v,t,T)):ld(t)?LQe(v,e,o):void 0}function AQe({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!CQe(o,e.node,i))return;const c=[],_=r.getResolvedSignatureForSignatureHelp(e.node,c,t);return c.length===0?void 0:{kind:0,candidates:c,resolvedSignature:_}}case 1:{const{called:c}=e;if(s&&!FLe(o,i,We(c)?c.parent:c))return;const _=cZ(c,t,r);if(_.length!==0)return{kind:0,candidates:_,resolvedSignature:ds(_)};const d=r.getSymbolAtLocation(c);return d&&{kind:1,symbol:d}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return R.assertNever(e)}}function CQe(e,t,r){if(!vg(t))return!1;const i=t.getChildren(r);switch(e.kind){case 20:return Fr(i,e);case 27:{const o=GF(e);return!!o&&Fr(i,o)}case 29:return FLe(e,r,t.expression);default:return!1}}function LQe(e,t,r){if(e.invocation.kind===2)return;const i=VLe(e.invocation),o=Br(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:qt(t.getSourceFiles(),c=>qt(c.getNamedDeclarations().get(o),_=>{const d=_.symbol&&s.getTypeOfSymbolAtLocation(_.symbol,_),v=d&&d.getCallSignatures();if(v&&v.length)return s.runWithCancellationToken(r,g=>WLe(v,v[0],e,c,g,!0))}))}function FLe(e,t,r){const i=e.getFullStart();let o=e.parent;for(;o;){const s=Dc(i,t,o,!0);if(s)return gf(r,s);o=o.parent}return R.fail("Could not find preceding token")}function IQe(e,t,r){const i=GLe(e,t,r);return!i||i.isTypeParameterList||i.invocation.kind!==0?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function BLe(e,t,r){const i=kQe(e,r);if(!i)return;const{list:o,argumentIndex:s}=i,c=MQe(o,_2(r,t,e));s!==0&&R.assertLessThan(s,c);const _=FQe(o,r);return{list:o,argumentIndex:s,argumentCount:c,argumentsSpan:_}}function kQe(e,t){if(e.kind===29||e.kind===20)return{list:UQe(e.parent,e,t),argumentIndex:0};{const r=GF(e);return r&&{list:r,argumentIndex:OQe(r,e)}}}function GLe(e,t,r){const{parent:i}=e;if(vg(i)){const o=i,s=BLe(e,t,r);if(!s)return;const{list:c,argumentIndex:_,argumentCount:d,argumentsSpan:v}=s;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:o},argumentsSpan:v,argumentIndex:_,argumentCount:d}}else{if($S(e)&&qT(i))return HN(e,t,r)?fie(i,0,r):void 0;if(BC(e)&&i.parent.kind===212){const o=i,s=o.parent;R.assert(o.kind===225);const c=HN(e,t,r)?0:1;return fie(s,c,r)}else if(u4(i)&&qT(i.parent.parent)){const o=i,s=i.parent.parent;if(VK(e)&&!HN(e,t,r))return;const c=o.parent.templateSpans.indexOf(o),_=PQe(c,e,t,r);return fie(s,_,r)}else if(sd(i)){const o=i.attributes.pos,s=Yo(r.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:Mc(o,s-o),argumentIndex:0,argumentCount:1}}else{const o=uZ(e,r);if(o){const{called:s,nTypeArguments:c}=o,_={kind:1,called:s},d=Ec(s.getStart(r),e.end);return{isTypeParameterList:!0,invocation:_,argumentsSpan:d,argumentIndex:c,argumentCount:c+1}}return}}}function wQe(e,t,r,i){return DQe(e,t,r,i)||GLe(e,t,r)}function ULe(e){return Tr(e.parent)?ULe(e.parent):e}function die(e){return Tr(e.left)?die(e.left)+1:2}function DQe(e,t,r,i){const o=RQe(e,r,t,i);if(!o)return;const{contextualType:s,argumentIndex:c,argumentCount:_,argumentsSpan:d}=o,v=s.getNonNullableType(),g=v.symbol;if(g===void 0)return;const T=rl(v.getCallSignatures());return T===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:T,node:e,symbol:NQe(g)},argumentsSpan:d,argumentIndex:c,argumentCount:_}}function RQe(e,t,r,i){if(e.kind!==20&&e.kind!==27)return;const{parent:o}=e;switch(o.kind){case 214:case 171:case 215:case 216:const s=BLe(e,r,t);if(!s)return;const{argumentIndex:c,argumentCount:_,argumentsSpan:d}=s,v=sc(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return v&&{contextualType:v,argumentIndex:c,argumentCount:_,argumentsSpan:d};case 223:{const g=ULe(o),T=i.getContextualType(g),C=e.kind===20?0:die(o)-1,L=die(g);return T&&{contextualType:T,argumentIndex:C,argumentCount:L,argumentsSpan:fd(o)}}default:return}}function NQe(e){return e.name==="__type"&&qt(e.declarations,t=>{var r;return Ph(t)?(r=li(t.parent,Um))==null?void 0:r.symbol:void 0})||e}function OQe(e,t){let r=0;for(const i of e.getChildren()){if(i===t)break;i.kind!==27&&r++}return r}function MQe(e,t){const r=e.getChildren();let i=Hc(r,o=>o.kind!==27);return!t&&r.length>0&&Ko(r).kind===27&&i++,i}function PQe(e,t,r,i){return R.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),Lfe(t)?HN(t,r,i)?0:e+2:e+1}function fie(e,t,r){const i=$S(e.template)?1:e.template.templateSpans.length+1;return t!==0&&R.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:BQe(e,r),argumentIndex:t,argumentCount:i}}function FQe(e,t){const r=e.getFullStart(),i=Yo(t.text,e.getEnd(),!1);return Mc(r,i-r)}function BQe(e,t){const r=e.template,i=r.getStart();let o=r.getEnd();return r.kind===225&&Ko(r.templateSpans).literal.getFullWidth()===0&&(o=Yo(t.text,o,!1)),Mc(i,o-i)}function GQe(e,t,r,i,o){for(let s=e;!Ki(s)&&(o||!fo(s));s=s.parent){R.assert(gf(s.parent,s),"Not a subspan",()=>`Child: ${R.formatSyntaxKind(s.kind)}, parent: ${R.formatSyntaxKind(s.parent.kind)}`);const c=wQe(s,t,r,i);if(c)return c}}function UQe(e,t,r){const i=e.getChildren(r),o=i.indexOf(t);return R.assert(o>=0&&i.length>o+1),i[o+1]}function VLe(e){return e.kind===0?cP(e.node):e.called}function jLe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function WLe(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:c},_,d,v){var g;const T=jLe(s),C=s.kind===2?s.symbol:d.getSymbolAtLocation(VLe(s))||v&&((g=t.declaration)==null?void 0:g.symbol),L=C?q4(d,C,v?_:void 0,void 0):it,I=Pt(e,H=>WQe(H,L,r,d,T,_));c!==0&&R.assertLessThan(c,i);let M=0,k=0;for(let H=0;H<I.length;H++){const ee=I[H];if(e[H]===t&&(M=k,ee.length>1)){let X=0;for(const ne of ee){if(ne.isVariadic||ne.parameters.length>=i){M=k+X;break}X++}}k+=ee.length}R.assert(M!==-1);const U={items:bc(I,gl),applicableSpan:o,selectedItemIndex:M,argumentIndex:c,argumentCount:i},j=U.items[M];if(j.isVariadic){const H=ii(j.parameters,ee=>!!ee.isRest);-1<H&&H<j.parameters.length-1?U.argumentIndex=j.parameters.length:U.argumentIndex=Math.min(U.argumentIndex,j.parameters.length-1)}return U}function VQe(e,{argumentCount:t,argumentsSpan:r,invocation:i,argumentIndex:o},s,c){const _=c.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return _?{items:[jQe(e,_,c,jLe(i),s)],applicableSpan:r,selectedItemIndex:0,argumentIndex:o,argumentCount:t}:void 0}function jQe(e,t,r,i,o){const s=q4(r,e),c=dE(),_=t.map(T=>HLe(T,r,i,o,c)),d=e.getDocumentationComment(r),v=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,Iu(29)],suffixDisplayParts:[Iu(31)],separatorDisplayParts:_ie,parameters:_,documentation:d,tags:v}}function WQe(e,t,r,i,o,s){const c=(r?zQe:qQe)(e,i,o,s);return Pt(c,({isVariadic:_,parameters:d,prefix:v,suffix:g})=>{const T=[...t,...v],C=[...g,...HQe(e,o,i)],L=e.getDocumentationComment(i),I=e.getJsDocTags();return{isVariadic:_,prefixDisplayParts:T,suffixDisplayParts:C,separatorDisplayParts:_ie,parameters:d,documentation:L,tags:I}})}function HQe(e,t,r){return s0(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 zQe(e,t,r,i){const o=(e.target||e).typeParameters,s=dE(),c=(o||it).map(d=>HLe(d,t,r,i,s)),_=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,b8)]:[];return t.getExpandedParameters(e).map(d=>{const v=O.createNodeArray([..._,...Pt(d,T=>t.symbolToParameterDeclaration(T,r,b8))]),g=s0(T=>{s.writeList(2576,v,i,T)});return{isVariadic:!1,parameters:c,prefix:[Iu(29)],suffix:[Iu(31),...g]}})}function qQe(e,t,r,i){const o=dE(),s=s0(d=>{if(e.typeParameters&&e.typeParameters.length){const v=O.createNodeArray(e.typeParameters.map(g=>t.typeParameterToDeclaration(g,r,b8)));o.writeList(53776,v,i,d)}}),c=t.getExpandedParameters(e),_=t.hasEffectiveRestParameter(e)?c.length===1?d=>!0:d=>{var v;return!!(d.length&&((v=li(d[d.length-1],jm))==null?void 0:v.links.checkFlags)&32768)}:d=>!1;return c.map(d=>({isVariadic:_(d),parameters:d.map(v=>JQe(v,t,r,i,o)),prefix:[...s,Iu(20)],suffix:[Iu(21)]}))}function JQe(e,t,r,i,o){const s=s0(d=>{const v=t.symbolToParameterDeclaration(e,r,b8);o.writeNode(4,v,i,d)}),c=t.isOptionalParameter(e.valueDeclaration),_=jm(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:c,isRest:_}}function HLe(e,t,r,i,o){const s=s0(c=>{const _=t.typeParameterToDeclaration(e,r,b8);o.writeNode(4,_,i,c)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var b8,_ie,KQe=b({"src/services/signatureHelp.ts"(){"use strict";Zr(),b8=70246400,_ie=[Iu(27),Tl()]}}),qO={};B(qO,{getArgumentInfoForCompletions:()=>IQe,getSignatureHelpItems:()=>xQe});var XQe=b({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";KQe()}});function YQe(e,t){var r,i;let o={textSpan:Ec(t.getFullStart(),t.getEnd())},s=t;e:for(;;){const d=QQe(s);if(!d.length)break;for(let v=0;v<d.length;v++){const g=d[v-1],T=d[v],C=d[v+1];if(IT(T,t,!0)>e)break e;const L=Nm(i1(t.text,T.end));if(L&&L.kind===2&&_(L.pos,L.end),$Qe(t,e,T)){if(rq(T)&&el(s)&&!x_(T.getStart(t),T.getEnd(),t)&&c(T.getStart(t),T.getEnd()),fo(T)||u4(T)||BC(T)||VK(T)||g&&BC(g)||Xu(T)&&pc(s)||$C(T)&&Xu(s)||$i(T)&&$C(s)&&d.length===1||$T(T)||rE(T)||p4(T)){s=T;break}if(u4(s)&&C&&OM(C)){const U=T.getFullStart()-2,j=C.getStart()+1;c(U,j)}const I=$C(T)&&ZQe(g)&&eZe(C)&&!x_(g.getStart(),C.getStart(),t);let M=I?g.getEnd():T.getStart();const k=I?C.getStart():tZe(t,T);if(Df(T)&&((r=T.jsDoc)!=null&&r.length)&&c(ds(T.jsDoc).getStart(),k),$C(T)){const U=T.getChildren()[0];U&&Df(U)&&((i=U.jsDoc)!=null&&i.length)&&U.getStart()!==T.pos&&(M=Math.min(M,ds(U.jsDoc).getStart()))}c(M,k),(Wo(T)||$A(T))&&c(M+1,k-1),s=T;break}if(v===d.length-1)break e}}return o;function c(d,v){if(d!==v){const g=Ec(d,v);(!o||!yL(g,o.textSpan)&&ife(g,e))&&(o=Li({textSpan:g},o&&{parent:o}))}}function _(d,v){c(d,v);let g=d;for(;t.text.charCodeAt(g)===47;)g++;c(g,v)}}function $Qe(e,t,r){return R.assert(r.pos<=t),t<r.end?!0:r.getEnd()===t?Bf(e,t).pos<r.end:!1}function QQe(e){var t;if(Ki(e))return E8(e.getChildAt(0).getChildren(),zLe);if(s4(e)){const[r,...i]=e.getChildren(),o=R.checkDefined(i.pop());R.assertEqual(r.kind,18),R.assertEqual(o.kind,19);const s=E8(i,_=>_===e.readonlyToken||_.kind===146||_===e.questionToken||_.kind===57),c=E8(s,({kind:_})=>_===22||_===165||_===23);return[r,T8(sV(c,({kind:_})=>_===58)),o]}if(Mf(e)){const r=E8(e.getChildren(),c=>c===e.name||Fr(e.modifiers,c)),i=((t=r[0])==null?void 0:t.kind)===323?r[0]:void 0,o=i?r.slice(1):r,s=sV(o,({kind:c})=>c===58);return i?[i,T8(s)]:s}if(Ba(e)){const r=E8(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=E8(r,o=>o===r[0]||o===e.questionToken);return sV(i,({kind:o})=>o===63)}return ms(e)?sV(e.getChildren(),({kind:r})=>r===63):e.getChildren()}function E8(e,t){const r=[];let i;for(const o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(T8(i)),i=void 0),r.push(o));return i&&r.push(T8(i)),r}function sV(e,t,r=!0){if(e.length<2)return e;const i=ii(e,t);if(i===-1)return e;const o=e.slice(0,i),s=e[i],c=Ko(e),_=r&&c.kind===26,d=e.slice(i+1,_?e.length-1:void 0),v=$w([o.length?T8(o):void 0,s,d.length?T8(d):void 0]);return _?v.concat(c):v}function T8(e){return R.assertGreaterThanOrEqual(e.length,1),Xm(th.createSyntaxList(e),e[0].pos,Ko(e).end)}function ZQe(e){const t=e&&e.kind;return t===18||t===22||t===20||t===283}function eZe(e){const t=e&&e.kind;return t===19||t===23||t===21||t===284}function tZe(e,t){switch(t.kind){case 344:case 341:case 351:case 349:case 346:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var zLe,nZe=b({"src/services/smartSelection.ts"(){"use strict";Zr(),zLe=Pm(Yc,fu)}}),pie={};B(pie,{getSmartSelectionRange:()=>YQe});var rZe=b({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";nZe()}});function qLe(e,t,r){const i=JLe(e,t,r);if(i!=="")return i;const o=Mk(t);return o&32?Il(t,228)?"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 JLe(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&ds(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===108&&yt(r)||GS(r))return"parameter";const o=Mk(t);if(o&3)return AZ(t)?"parameter":t.valueDeclaration&&Eg(t.valueDeclaration)?"const":Ie(t.declarations,_k)?"let":YLe(t)?"local var":"var";if(o&16)return YLe(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=Ie(e.getRootSymbols(t),c=>{if(c.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function KLe(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=ge(r)&&gB(t)&&Dt(r,s=>!gB(s))?8192:0,o=W4(t,i);if(o)return o.split(",")}return[]}function iZe(e,t){if(!t)return"";const r=new Set(KLe(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&Ie(KLe(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Oo(r.values()).join(","):""}function XLe(e,t,r,i,o,s=u2(o),c){var _;const d=[];let v=[],g=[];const T=Mk(t);let C=s&1?JLe(e,t,o):"",L=!1;const I=o.kind===108&&dP(o)||GS(o);let M,k,U,j=!1;if(o.kind===108&&!I)return{displayParts:[Xd(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(C!==""||T&32||T&2097152){if(C==="getter"||C==="setter"){const he=$t(t.declarations,Ee=>Ee.name===o);if(he)switch(he.kind){case 174:C="getter";break;case 175:C="setter";break;case 169:C="accessor";break;default:R.assertNever(he)}else C="property"}let z;if(M=I?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o),o.parent&&o.parent.kind===208){const he=o.parent.name;(he===o||he&&he.getFullWidth()===0)&&(o=o.parent)}let ce;if(vg(o)?ce=o:(KQ(o)||G4(o)||o.parent&&(sd(o.parent)||qT(o.parent))&&Ya(t.valueDeclaration))&&(ce=o.parent),ce){z=e.getResolvedSignature(ce);const he=ce.kind===211||io(ce)&&ce.expression.kind===106,Ee=he?M.getConstructSignatures():M.getCallSignatures();if(z&&!Fr(Ee,z.target)&&!Fr(Ee,z)&&(z=Ee.length?Ee[0]:void 0),z){switch(he&&T&32?(C="constructor",ue(M.symbol,C)):T&2097152?(C="alias",re(C),d.push(Tl()),he&&(z.flags&4&&(d.push(Xd(126)),d.push(Tl())),d.push(Xd(103)),d.push(Tl())),P(t)):ue(t,C),C){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":d.push(Iu(58)),d.push(Tl()),!(ni(M)&16)&&M.symbol&&(xi(d,q4(e,M.symbol,i,void 0,5)),d.push(vL())),he&&(z.flags&4&&(d.push(Xd(126)),d.push(Tl())),d.push(Xd(103)),d.push(Tl())),be(z,Ee,262144);break;default:be(z,Ee)}L=!0,j=Ee.length>1}}else if(tZ(o)&&!(T&98304)||o.kind===135&&o.parent.kind===173){const he=o.parent;if(t.declarations&&$t(t.declarations,Ae=>Ae===(o.kind===135?he.parent:he))){const Ae=he.kind===173?M.getNonNullableType().getConstructSignatures():M.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(he)?z=Ae[0]:z=e.getSignatureFromDeclaration(he),he.kind===173?(C="constructor",ue(M.symbol,C)):ue(he.kind===176&&!(M.symbol.flags&2048||M.symbol.flags&4096)?M.symbol:t,C),z&&be(z,Ae),L=!0,j=Ae.length>1}}}if(T&32&&!L&&!I&&(X(),Il(t,228)?re("local class"):d.push(Xd(84)),d.push(Tl()),P(t),ae(t,r)),T&64&&s&2&&(ee(),d.push(Xd(118)),d.push(Tl()),P(t),ae(t,r)),T&524288&&s&2&&(ee(),d.push(Xd(154)),d.push(Tl()),P(t),ae(t,r),d.push(Tl()),d.push(z4(63)),d.push(Tl()),xi(d,QN(e,yg(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),T&384&&(ee(),Dt(t.declarations,z=>b1(z)&&Ub(z))&&(d.push(Xd(85)),d.push(Tl())),d.push(Xd(92)),d.push(Tl()),P(t)),T&1536&&!I){ee();const z=Il(t,264),ce=z&&z.name&&z.name.kind===79;d.push(Xd(ce?143:142)),d.push(Tl()),P(t)}if(T&262144&&s&2)if(ee(),d.push(Iu(20)),d.push(Gf("type parameter")),d.push(Iu(21)),d.push(Tl()),P(t),t.parent)ne(),P(t.parent,i),ae(t.parent,i);else{const z=Il(t,165);if(z===void 0)return R.fail();const ce=z.parent;if(ce)if(Ya(ce)){ne();const he=e.getSignatureFromDeclaration(ce);ce.kind===177?(d.push(Xd(103)),d.push(Tl())):ce.kind!==176&&ce.name&&P(ce.symbol),xi(d,IZ(e,he,r,32))}else um(ce)&&(ne(),d.push(Xd(154)),d.push(Tl()),P(ce.symbol),ae(ce.symbol,r))}if(T&8){C="enum member",ue(t,"enum member");const z=(_=t.declarations)==null?void 0:_[0];if((z==null?void 0:z.kind)===302){const ce=e.getConstantValue(z);ce!==void 0&&(d.push(Tl()),d.push(z4(63)),d.push(Tl()),d.push(Od(u_e(ce),typeof ce=="number"?7:8)))}}if(t.flags&2097152){if(ee(),!L){const z=e.getAliasedSymbol(t);if(z!==t&&z.declarations&&z.declarations.length>0){const ce=z.declarations[0],he=ka(ce);if(he){const Ee=KM(ce)&&Qr(ce,2),Ae=t.name!=="default"&&!Ee,te=XLe(e,z,Zn(ce),ce,he,s,Ae?t:z);d.push(...te.displayParts),d.push(vL()),k=te.documentation,U=te.tags}else k=z.getContextualDocumentationComment(ce,e),U=z.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 267:d.push(Xd(93)),d.push(Tl()),d.push(Xd(143));break;case 274:d.push(Xd(93)),d.push(Tl()),d.push(Xd(t.declarations[0].isExportEquals?63:88));break;case 278:d.push(Xd(93));break;default:d.push(Xd(100))}d.push(Tl()),P(t),Ie(t.declarations,z=>{if(z.kind===268){const ce=z;if(c1(ce))d.push(Tl()),d.push(z4(63)),d.push(Tl()),d.push(Xd(147)),d.push(Iu(20)),d.push(Od(kc(gk(ce)),8)),d.push(Iu(21));else{const he=e.getSymbolAtLocation(ce.moduleReference);he&&(d.push(Tl()),d.push(z4(63)),d.push(Tl()),P(he,i))}return!0}})}if(!L)if(C!==""){if(M){if(I?(ee(),d.push(Xd(108))):ue(t,C),C==="property"||C==="accessor"||C==="getter"||C==="setter"||C==="JSX attribute"||T&3||C==="local var"||C==="index"||I){if(d.push(Iu(58)),d.push(Tl()),M.symbol&&M.symbol.flags&262144&&C!=="index"){const z=s0(ce=>{const he=e.typeParameterToDeclaration(M,i,mie);H().writeNode(4,he,Zn(Ea(i)),ce)});xi(d,z)}else xi(d,QN(e,M,i));if(jm(t)&&t.links.target&&jm(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const z=t.links.target.links.tupleLabelDeclaration;R.assertNode(z.name,We),d.push(Tl()),d.push(Iu(20)),d.push(Gf(Pr(z.name))),d.push(Iu(21))}}else if(T&16||T&8192||T&16384||T&131072||T&98304||C==="method"){const z=M.getNonNullableType().getCallSignatures();z.length&&(be(z[0],z),j=z.length>1)}}}else C=qLe(e,t,o);if(v.length===0&&!j&&(v=t.getContextualDocumentationComment(i,e)),v.length===0&&T&4&&t.parent&&t.declarations&&Ie(t.parent.declarations,z=>z.kind===308))for(const z of t.declarations){if(!z.parent||z.parent.kind!==223)continue;const ce=e.getSymbolAtLocation(z.parent.right);if(ce&&(v=ce.getDocumentationComment(e),g=ce.getJsDocTags(e),v.length>0))break}if(v.length===0&&We(o)&&t.valueDeclaration&&ms(t.valueDeclaration)){const z=t.valueDeclaration,ce=z.parent;if(We(z.name)&&$m(ce)){const he=K_(z.name),Ee=e.getTypeAtLocation(ce);v=qt(Ee.isUnion()?Ee.types:[Ee],Ae=>{const te=Ae.getProperty(he);return te?te.getDocumentationComment(e):void 0})||it}}return g.length===0&&!j&&(g=t.getContextualJsDocTags(i,e)),v.length===0&&k&&(v=k),g.length===0&&U&&(g=U),{displayParts:d,documentation:v,symbolKind:C,tags:g.length===0?void 0:g};function H(){return dE()}function ee(){d.length&&d.push(vL()),X()}function X(){c&&(re("alias"),d.push(Tl()))}function ne(){d.push(Tl()),d.push(Xd(101)),d.push(Tl())}function P(z,ce){let he;c&&z===t&&(z=c),C==="index"&&(he=e.getIndexInfosOfIndexSymbol(z));let Ee=[];z.flags&131072&&he?(z.parent&&(Ee=q4(e,z.parent)),Ee.push(Iu(22)),he.forEach((Ae,te)=>{Ee.push(...QN(e,Ae.keyType)),te!==he.length-1&&(Ee.push(Tl()),Ee.push(Iu(51)),Ee.push(Tl()))}),Ee.push(Iu(23))):Ee=q4(e,z,ce||r,void 0,7),xi(d,Ee),t.flags&16777216&&d.push(Iu(57))}function ue(z,ce){ee(),ce&&(re(ce),z&&!Dt(z.declarations,he=>Xs(he)||(Us(he)||Ku(he))&&!he.name)&&(d.push(Tl()),P(z)))}function re(z){switch(z){case"var":case"function":case"let":case"const":case"constructor":d.push(CZ(z));return;default:d.push(Iu(20)),d.push(CZ(z)),d.push(Iu(21));return}}function be(z,ce,he=0){xi(d,IZ(e,z,i,he|32)),ce.length>1&&(d.push(Tl()),d.push(Iu(20)),d.push(z4(39)),d.push(Od((ce.length-1).toString(),7)),d.push(Tl()),d.push(Gf(ce.length===2?"overload":"overloads")),d.push(Iu(21))),v=z.getDocumentationComment(e),g=z.getJsDocTags(),ce.length>1&&v.length===0&&g.length===0&&(v=ce[0].getDocumentationComment(e),g=ce[0].getJsDocTags().filter(Ee=>Ee.name!=="deprecated"))}function ae(z,ce){const he=s0(Ee=>{const Ae=e.symbolToTypeParameterDeclarations(z,ce,mie);H().writeList(53776,Ae,Zn(Ea(ce)),Ee)});xi(d,he)}}function YLe(e){return e.parent?!1:Ie(e.declarations,t=>{if(t.kind===215)return!0;if(t.kind!==257&&t.kind!==259)return!1;for(let r=t.parent;!DT(r);r=r.parent)if(r.kind===308||r.kind===265)return!1;return!0})}var mie,aZe=b({"src/services/symbolDisplay.ts"(){"use strict";Zr(),mie=70246400}}),qy={};B(qy,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>XLe,getSymbolKind:()=>qLe,getSymbolModifiers:()=>iZe});var oZe=b({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";aZe()}});function $Le(e){const t=e.__pos;return R.assert(typeof t=="number"),t}function hie(e,t){R.assert(typeof t=="number"),e.__pos=t}function QLe(e){const t=e.__end;return R.assert(typeof t=="number"),t}function gie(e,t){R.assert(typeof t=="number"),e.__end=t}function ZLe(e,t){return Yo(e,t,!1,!0)}function sZe(e,t){let r=t;for(;r<e.length;){const i=e.charCodeAt(r);if(Gm(i)){r++;continue}return i===47}return!1}function S8(e,t,r,i){return{pos:S2(e,t,i),end:Gx(e,r,i)}}function S2(e,t,r,i=!1){var o,s;const{leadingTriviaOption:c}=r;if(c===0)return t.getStart(e);if(c===3){const L=t.getStart(e),I=k_(L,e);return BN(t,I)?I:L}if(c===2){const L=Mq(t,e.text);if(L!=null&&L.length)return k_(L[0].pos,e)}const _=t.getFullStart(),d=t.getStart(e);if(_===d)return d;const v=k_(_,e);if(k_(d,e)===v)return c===1?_:d;if(i){const L=((o=xh(e.text,_))==null?void 0:o[0])||((s=i1(e.text,_))==null?void 0:s[0]);if(L)return Yo(e.text,L.end,!0,!0)}const T=_>0?1:0;let C=Hv(Ck(e,v)+T,e);return C=ZLe(e.text,C),Hv(Ck(e,C),e)}function yie(e,t,r){const{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){const s=i1(e.text,i);if(s){const c=Ck(e,t.end);for(const _ of s){if(_.kind===2||Ck(e,_.pos)>c)break;if(Ck(e,_.end)>c)return Yo(e.text,_.end,!0,!0)}}}}function Gx(e,t,r){var i;const{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){const d=ba(i1(e.text,o),xh(e.text,o)),v=(i=d==null?void 0:d[d.length-1])==null?void 0:i.end;return v||o}const c=yie(e,t,r);if(c)return c;const _=Yo(e.text,o,!0);return _!==o&&(s===2||Tu(e.text.charCodeAt(_-1)))?_:o}function lV(e,t){return!!t&&!!e.parent&&(t.kind===27||t.kind===26&&e.parent.kind===207)}function lZe(e){return Us(e)||Sc(e)}function cZe(e){if(e.kind!==216)return e;const t=e.parent.kind===169?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function uZe(e,t){if(e.kind===t.kind)switch(e.kind){case 344:{const r=e,i=t;return We(r.name)&&We(i.name)&&r.name.escapedText===i.name.escapedText?O.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 345:return O.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 347:return O.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function vie(e,t){return Yo(e.text,S2(e,t,{leadingTriviaOption:1}),!1,!0)}function dZe(e,t,r,i){const o=vie(e,i);if(r===void 0||x_(Gx(e,t,{}),o,e))return o;const s=Dc(i.getStart(e),e);if(lV(t,s)){const c=Dc(t.getStart(e),e);if(lV(r,c)){const _=Yo(e.text,s.getEnd(),!0,!0);if(x_(c.getStart(e),s.getStart(e),e))return Tu(e.text.charCodeAt(_-1))?_-1:_;if(Tu(e.text.charCodeAt(_)))return _}}return o}function fZe(e,t){const r=Es(e,18,t),i=Es(e,19,t);return[r==null?void 0:r.end,i==null?void 0:i.end]}function cV(e){return Is(e)?e.properties:e.members}function _Ze(e,t,r,i){return JO.newFileChangesWorker(void 0,t,e,r,i)}function bie(e,t){for(let r=t.length-1;r>=0;r--){const{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(cu(i))}`}return e}function pZe(e){return Yo(e,0)===e.length}function uV(e){const t=Fn(e,uV,nIe,mZe,uV),r=tl(t)?t:Object.create(t);return Xm(r,$Le(e),QLe(e)),r}function mZe(e,t,r,i,o){const s=Jn(e,t,r,i,o);if(!s)return s;R.assert(e);const c=s===e?O.createNodeArray(s.slice(0)):s;return Xm(c,$Le(e),QLe(e)),c}function eIe(e){let t=0;const r=wR(e),i=te=>{te&&hie(te,t)},o=te=>{te&&gie(te,t)},s=te=>{te&&hie(te,t)},c=te=>{te&&gie(te,t)},_=te=>{te&&hie(te,t)},d=te=>{te&&gie(te,t)};function v(te,Ze){if(Ze||!pZe(te)){t=r.getTextPos();let je=0;for(;hg(te.charCodeAt(te.length-je-1));)je++;t-=je}}function g(te){r.write(te),v(te,!1)}function T(te){r.writeComment(te)}function C(te){r.writeKeyword(te),v(te,!1)}function L(te){r.writeOperator(te),v(te,!1)}function I(te){r.writePunctuation(te),v(te,!1)}function M(te){r.writeTrailingSemicolon(te),v(te,!1)}function k(te){r.writeParameter(te),v(te,!1)}function U(te){r.writeProperty(te),v(te,!1)}function j(te){r.writeSpace(te),v(te,!1)}function H(te){r.writeStringLiteral(te),v(te,!1)}function ee(te,Ze){r.writeSymbol(te,Ze),v(te,!1)}function X(te){r.writeLine(te)}function ne(){r.increaseIndent()}function P(){r.decreaseIndent()}function ue(){return r.getText()}function re(te){r.rawWrite(te),v(te,!1)}function be(te){r.writeLiteral(te),v(te,!0)}function ae(){return r.getTextPos()}function z(){return r.getLine()}function ce(){return r.getColumn()}function he(){return r.getIndent()}function Ee(){return r.isAtStartOfLine()}function Ae(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:c,onBeforeEmitToken:_,onAfterEmitToken:d,write:g,writeComment:T,writeKeyword:C,writeOperator:L,writePunctuation:I,writeTrailingSemicolon:M,writeParameter:k,writeProperty:U,writeSpace:j,writeStringLiteral:H,writeSymbol:ee,writeLine:X,increaseIndent:ne,decreaseIndent:P,getText:ue,rawWrite:re,writeLiteral:be,getTextPos:ae,getLine:z,getColumn:ce,getIndent:he,isAtStartOfLine:Ee,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:Ae}}function hZe(e){let t;for(const v of e.statements)if(Cp(v))t=v;else break;let r=0;const i=e.text;if(t)return r=t.end,d(),r;const o=EM(i);o!==void 0&&(r=o.length,d());const s=xh(i,r);if(!s)return r;let c,_;for(const v of s){if(v.kind===3){if(qM(i,v.pos)){c={range:v,pinnedOrTripleSlash:!0};continue}}else if(yq(i,v.pos,v.end)){c={range:v,pinnedOrTripleSlash:!0};continue}if(c){if(c.pinnedOrTripleSlash)break;const g=e.getLineAndCharacterOfPosition(v.pos).line,T=e.getLineAndCharacterOfPosition(c.range.end).line;if(g>=T+2)break}if(e.statements.length){_===void 0&&(_=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const g=e.getLineAndCharacterOfPosition(v.end).line;if(_<g+2)break}c={range:v,pinnedOrTripleSlash:!1}}return c&&(r=c.range.end,d()),r;function d(){if(r<i.length){const v=i.charCodeAt(r);Tu(v)&&(r++,r<i.length&&v===13&&i.charCodeAt(r)===10&&r++)}}}function tIe(e,t){return!jy(e,t)&&!_2(e,t)&&!lZ(e,t)&&!ebe(e,t)}function gZe(e,t){return(Mf(e)||ro(e))&&MM(t)&&t.name.kind===164||VD(e)&&VD(t)}function Wh(e,t,r,i={leadingTriviaOption:1}){const o=S2(t,r,i),s=Gx(t,r,i);e.deleteRange(t,{pos:o,end:s})}function x8(e,t,r,i){const o=R.checkDefined(Rc.SmartIndenter.getContainingList(i,r)),s=nC(o,i);if(R.assert(s!==-1),o.length===1){Wh(e,r,i);return}R.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:vie(r,i),end:s===o.length-1?Gx(r,i,{}):dZe(r,i,o[s-1],o[s+1])})}var Eie,Tie,wL,dV,JO,nIe,Sie,yZe=b({"src/services/textChanges.ts"(){"use strict";Zr(),Eie=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Eie||{}),Tie=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(Tie||{}),wL={leadingTriviaOption:0,trailingTriviaOption:0},dV=class{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(e){return new dV(x1(e.host,e.formatContext.options),e.formatContext)}static with(e,t){const r=dV.fromContext(e);return t(r),r.getChanges()}pushRaw(e,t){R.assertEqual(e.fileName,t.fileName);for(const r of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:r.newText,range:qF(r.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,r={leadingTriviaOption:1}){this.deleteRange(e,S8(e,t,t,r))}deleteNodes(e,t,r={leadingTriviaOption:1},i){for(const o of t){const s=S2(e,o,r,i),c=Gx(e,o,r);this.deleteRange(e,{pos:s,end:c}),i=!!yie(e,o,r)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Yo(e.text,t.end,!0)})}deleteNodeRange(e,t,r,i={leadingTriviaOption:1}){const o=S2(e,t,i),s=Gx(e,r,i);this.deleteRange(e,{pos:o,end:s})}deleteNodeRangeExcludingEnd(e,t,r,i={leadingTriviaOption:1}){const o=S2(e,t,i),s=r===void 0?e.text.length:S2(e,r,i);this.deleteRange(e,{pos:o,end:s})}replaceRange(e,t,r,i={}){this.changes.push({kind:1,sourceFile:e,range:t,options:i,node:r})}replaceNode(e,t,r,i=wL){this.replaceRange(e,S8(e,t,t,i),r,i)}replaceNodeRange(e,t,r,i,o=wL){this.replaceRange(e,S8(e,t,r,o),i,o)}replaceRangeWithNodes(e,t,r,i={}){this.changes.push({kind:2,sourceFile:e,range:t,options:i,nodes:r})}replaceNodeWithNodes(e,t,r,i=wL){this.replaceRangeWithNodes(e,S8(e,t,t,i),r,i)}replaceNodeWithText(e,t,r){this.replaceRangeWithText(e,S8(e,t,t,wL),r)}replaceNodeRangeWithNodes(e,t,r,i,o=wL){this.replaceRangeWithNodes(e,S8(e,t,r,o),i,o)}nodeHasTrailingComment(e,t,r=wL){return!!yie(e,t,r)}nextCommaToken(e,t){const r=f2(t,t.parent,e);return r&&r.kind===27?r:void 0}replacePropertyAssignment(e,t,r){const i=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:i})}insertNodeAt(e,t,r,i={}){this.replaceRange(e,S_(t),r,i)}insertNodesAt(e,t,r,i={}){this.replaceRangeWithNodes(e,S_(t),r,i)}insertNodeAtTopOfFile(e,t,r){this.insertAtTopOfFile(e,t,r)}insertNodesAtTopOfFile(e,t,r){this.insertAtTopOfFile(e,t,r)}insertAtTopOfFile(e,t,r){const i=hZe(e),o={prefix:i===0?void 0:this.newLineCharacter,suffix:(Tu(e.text.charCodeAt(i))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")};ja(t)?this.insertNodesAt(e,i,t,o):this.insertNodeAt(e,i,t,o)}insertFirstParameter(e,t,r){const i=tu(t);i?this.insertNodeBefore(e,i,r):this.insertNodeAt(e,t.pos,r)}insertNodeBefore(e,t,r,i=!1,o={}){this.insertNodeAt(e,S2(e,t,o),r,this.getOptionsForInsertNodeBefore(t,r,i))}insertModifierAt(e,t,r,i={}){this.insertNodeAt(e,t,O.createToken(r),i)}insertModifierBefore(e,t,r){return this.insertModifierAt(e,r.getStart(e),t,{suffix:" "})}insertCommentBeforeLine(e,t,r,i){const o=Hv(t,e),s=Cbe(e.text,o),c=tIe(e,s),_=j4(e,c?s:r),d=e.text.slice(o,s),v=`${c?"":this.newLineCharacter}//${i}${this.newLineCharacter}${d}`;this.insertText(e,_.getStart(e),v)}insertJsdocCommentBefore(e,t,r){const i=t.getStart(e);if(t.jsDoc)for(const c of t.jsDoc)this.deleteRange(e,{pos:k_(c.getStart(e),e),end:Gx(e,c,{})});const o=wZ(e.text,i-1),s=e.text.slice(o,i);this.insertNodeAt(e,i,r,{suffix:this.newLineCharacter+s})}createJSDocText(e,t){const r=ji(t.jsDoc,o=>za(o.comment)?O.createJSDocText(o.comment):o.comment),i=Nm(t.jsDoc);return i&&x_(i.pos,i.end,e)&&ge(r)===0?void 0:O.createNodeArray(sa(r,O.createJSDocText(`
`)))}replaceJSDocComment(e,t,r){this.insertJsdocCommentBefore(e,cZe(t),O.createJSDocComment(this.createJSDocText(e,t),O.createNodeArray(r)))}addJSDocTags(e,t,r){const i=bc(t.jsDoc,s=>s.tags),o=r.filter(s=>!i.some((c,_)=>{const d=uZe(c,s);return d&&(i[_]=d),!!d}));this.replaceJSDocComment(e,t,[...i,...o])}filterJSDocTags(e,t,r){this.replaceJSDocComment(e,t,ur(bc(t.jsDoc,i=>i.tags),r))}replaceRangeWithText(e,t,r){this.changes.push({kind:3,sourceFile:e,range:t,text:r})}insertText(e,t,r){this.replaceRangeWithText(e,S_(t),r)}tryInsertTypeAnnotation(e,t,r){var i;let o;if(Ya(t)){if(o=Es(t,21,e),!o){if(!Xs(t))return!1;o=ds(t.parameters)}}else o=(i=t.kind===257?t.exclamationToken:t.questionToken)!=null?i:t.name;return this.insertNodeAt(e,o.end,r,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,r){const i=Es(t,20,e).getStart(e)+1,o=t.parameters.length?", ":"";this.insertNodeAt(e,i,r,{prefix:"this: ",suffix:o})}insertTypeParameters(e,t,r){const i=(Es(t,20,e)||ds(t.parameters)).getStart(e);this.insertNodesAt(e,i,r,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,r){return wa(e)||qc(e)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:$i(e)?{suffix:", "}:Ba(e)?Ba(t)?{suffix:", "}:{}:Wo(e)&&Yc(e.parent)||Fy(e)?{suffix:", "}:Nd(e)?{suffix:","+(r?this.newLineCharacter:" ")}:R.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,r){const i=tu(t.body.statements);!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[r,...t.body.statements]):this.insertNodeBefore(e,i,r)}insertNodeAtConstructorStartAfterSuperCall(e,t,r){const i=$t(t.body.statements,o=>du(o)&&aC(o.expression));!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,r]):this.insertNodeAfter(e,i,r)}insertNodeAtConstructorEnd(e,t,r){const i=rl(t.body.statements);!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,r]):this.insertNodeAfter(e,i,r)}replaceConstructorBody(e,t,r){this.replaceNode(e,t.body,O.createBlock(r,!0))}insertNodeAtEndOfScope(e,t,r){const i=S2(e,t.getLastToken(),{});this.insertNodeAt(e,i,r,{prefix:Tu(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,r){this.insertNodeAtStartWorker(e,t,r)}insertNodeAtObjectStart(e,t,r){this.insertNodeAtStartWorker(e,t,r)}insertNodeAtStartWorker(e,t,r){var i;const o=(i=this.guessIndentationFromExistingMembers(e,t))!=null?i:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,cV(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,o))}guessIndentationFromExistingMembers(e,t){let r,i=t;for(const o of cV(t)){if(NP(i,o,e))return;const s=o.getStart(e),c=Rc.SmartIndenter.findFirstNonWhitespaceColumn(k_(s,e),s,e,this.formatContext.options);if(r===void 0)r=c;else if(c!==r)return;i=o}return r}computeIndentationForNewMember(e,t){var r;const i=t.getStart(e);return Rc.SmartIndenter.findFirstNonWhitespaceColumn(k_(i,e),i,e,this.formatContext.options)+((r=this.formatContext.options.indentSize)!=null?r:4)}getInsertNodeAtStartInsertOptions(e,t,r){const o=cV(t).length===0,s=Ip(this.classesWithNodesInsertedAtStart,hs(t),{node:t,sourceFile:e}),c=Is(t)&&(!E_(e)||!o),_=Is(t)&&E_(e)&&o&&!s;return{indentation:r,prefix:(_?",":"")+this.newLineCharacter,suffix:c?",":dd(t)&&o?";":""}}insertNodeAfterComma(e,t,r){const i=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,r){const i=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})}insertNodesAfter(e,t,r){const i=this.insertNodeAfterWorker(e,t,ds(r));this.insertNodesAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,r){return gZe(t,r)&&e.text.charCodeAt(t.end-1)!==59&&this.replaceRange(e,S_(t.end),O.createToken(26)),Gx(e,t,{})}getInsertNodeAfterOptions(e,t){const r=this.getInsertNodeAfterOptionsWorker(t);return so(Li({},r),{prefix:t.end===e.end&&wa(t)?r.prefix?`
${r.prefix}`:`
`:r.prefix})}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 260:case 264:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 257:case 10:case 79:return{prefix:", "};case 299:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 166:return{};default:return R.assert(wa(e)||MM(e)),{suffix:this.newLineCharacter}}}insertName(e,t,r){if(R.assert(!t.name),t.kind===216){const i=Es(t,38,e),o=Es(t,20,e);o?(this.insertNodesAt(e,o.getStart(e),[O.createToken(98),O.createIdentifier(r)],{joiner:" "}),Wh(this,e,i)):(this.insertText(e,ds(t.parameters).getStart(e),`function ${r}(`),this.replaceRange(e,i,O.createToken(21))),t.body.kind!==238&&(this.insertNodesAt(e,t.body.getStart(e),[O.createToken(18),O.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[O.createToken(26),O.createToken(19)],{joiner:" "}))}else{const i=Es(t,t.kind===215?98:84,e).end;this.insertNodeAt(e,i,O.createIdentifier(r),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,r,i){const o=r.elements[i-1];o?this.insertNodeInListAfter(e,o,t):this.insertNodeBefore(e,r.elements[0],t,!x_(r.elements[0].getStart(),r.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,r,i=Rc.SmartIndenter.getContainingList(t,e)){if(!i){R.fail("node is not a list element");return}const o=nC(i,t);if(o<0)return;const s=t.getEnd();if(o!==i.length-1){const c=la(e,t.end);if(c&&lV(t,c)){const _=i[o+1],d=ZLe(e.text,_.getFullStart()),v=`${bo(c.kind)}${e.text.substring(c.end,d)}`;this.insertNodesAt(e,d,[r],{suffix:v})}}else{const c=t.getStart(e),_=k_(c,e);let d,v=!1;if(i.length===1)d=27;else{const g=Dc(t.pos,e);d=lV(t,g)?g.kind:27,v=k_(i[o-1].getStart(e),e)!==_}if(sZe(e.text,t.end)&&(v=!0),v){this.replaceRange(e,S_(s),O.createToken(d));const g=Rc.SmartIndenter.findFirstNonWhitespaceColumn(_,c,e,this.formatContext.options);let T=Yo(e.text,s,!0,!1);for(;T!==s&&Tu(e.text.charCodeAt(T-1));)T--;this.replaceRange(e,S_(T),r,{indentation:g,prefix:this.newLineCharacter})}else this.replaceRange(e,S_(s),r,{prefix:`${bo(d)} `})}}parenthesizeExpression(e,t){this.replaceRange(e,YJ(t),O.createParenthesizedExpression(t))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:e,sourceFile:t})=>{const[r,i]=fZe(e,t);if(r!==void 0&&i!==void 0){const o=cV(e).length===0,s=x_(r,i,t);o&&s&&r!==i-1&&this.deleteRange(t,S_(r,i-1)),s&&this.insertText(t,i-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:r}of this.deletedNodes)this.deletedNodes.some(i=>i.sourceFile===t&&H1e(i.node,r))||(ja(r)?this.deleteRange(t,$J(t,r)):Sie.deleteDeclaration(this,e,t,r));e.forEach(t=>{const r=t.getSourceFile(),i=Rc.SmartIndenter.getContainingList(t,r);if(t!==Ko(i))return;const o=va(i,s=>!e.has(s),i.length-2);o!==-1&&this.deleteRange(r,{pos:i[o].end,end:vie(r,i[o+1])})})}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=JO.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);for(const{oldFile:r,fileName:i,statements:o}of this.newFiles)t.push(JO.newFileChanges(r,i,o,this.newLineCharacter,this.formatContext));return t}createNewFile(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})}},(e=>{function t(_,d,v,g){return ua(PI(_,T=>T.sourceFile.path),T=>{const C=T[0].sourceFile,L=by(T,(M,k)=>M.range.pos-k.range.pos||M.range.end-k.range.end);for(let M=0;M<L.length-1;M++)R.assert(L[M].range.end<=L[M+1].range.pos,"Changes overlap",()=>`${JSON.stringify(L[M].range)} and ${JSON.stringify(L[M+1].range)}`);const I=ua(L,M=>{const k=o0(M.range),U=o(M,C,d,v,g);if(!(k.length===U.length&&jbe(C.text,U,k.start)))return zN(k,U)});return I.length>0?{fileName:C.fileName,textChanges:I}:void 0})}e.getTextChangesFromChanges=t;function r(_,d,v,g,T){const C=i(_,qJ(d),v,g,T);return{fileName:d,textChanges:[zN(Mc(0,0),C)],isNewFile:!0}}e.newFileChanges=r;function i(_,d,v,g,T){const C=v.map(M=>M===4?"":c(M,_,g).text).join(g),L=F6("any file name",C,99,!0,d),I=Rc.formatDocument(L,T);return bie(C,I)+g}e.newFileChangesWorker=i;function o(_,d,v,g,T){var C;if(_.kind===0)return"";if(_.kind===3)return _.text;const{options:L={},range:{pos:I}}=_,M=j=>s(j,d,I,L,v,g,T),k=_.kind===2?_.nodes.map(j=>UA(M(j),v)).join(((C=_.options)==null?void 0:C.joiner)||v):M(_.node),U=L.indentation!==void 0||k_(I,d)===I?k:k.replace(/^\s+/,"");return(L.prefix||"")+U+(!L.suffix||oc(U,L.suffix)?"":L.suffix)}function s(_,d,v,{indentation:g,prefix:T,delta:C},L,I,M){const{node:k,text:U}=c(_,d,L);M&&M(k,U);const j=vB(I,d),H=g!==void 0?g:Rc.SmartIndenter.getIndentation(v,d,j,T===L||k_(v,d)===v);C===void 0&&(C=Rc.SmartIndenter.shouldIndentChildNode(j,_)&&j.indentSize||0);const ee={text:U,getLineAndCharacterOfPosition(ne){return ll(this,ne)}},X=Rc.formatNodeGivenIndentation(k,ee,d.languageVariant,H,C,so(Li({},I),{options:j}));return bie(U,X)}function c(_,d,v){const g=eIe(v),T=nO(v);return uE({newLine:T,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},g).writeNode(4,_,d,g),{text:g.getText(),node:uV(_)}}e.getNonformattedText=c})(JO||(JO={})),nIe=so(Li({},Dg),{factory:r6(Dg.factory.flags|1,Dg.factory.baseFactory)}),(e=>{function t(s,c,_,d){switch(d.kind){case 166:{const L=d.parent;Xs(L)&&L.parameters.length===1&&!Es(L,20,_)?s.replaceNodeWithText(_,d,"()"):x8(s,c,_,d);break}case 269:case 268:const v=_.imports.length&&d===ds(_.imports).parent||d===$t(_.statements,kT);Wh(s,_,d,{leadingTriviaOption:v?0:Df(d)?2:3});break;case 205:const g=d.parent;g.kind===204&&d!==Ko(g.elements)?Wh(s,_,d):x8(s,c,_,d);break;case 257:o(s,c,_,d);break;case 165:x8(s,c,_,d);break;case 273:const C=d.parent;C.elements.length===1?i(s,_,C):x8(s,c,_,d);break;case 271:i(s,_,d);break;case 26:Wh(s,_,d,{trailingTriviaOption:0});break;case 98:Wh(s,_,d,{leadingTriviaOption:0});break;case 260:case 259:Wh(s,_,d,{leadingTriviaOption:Df(d)?2:3});break;default:d.parent?Qm(d.parent)&&d.parent.name===d?r(s,_,d.parent):io(d.parent)&&Fr(d.parent.arguments,d)?x8(s,c,_,d):Wh(s,_,d):Wh(s,_,d)}}e.deleteDeclaration=t;function r(s,c,_){if(!_.namedBindings)Wh(s,c,_.parent);else{const d=_.name.getStart(c),v=la(c,_.name.end);if(v&&v.kind===27){const g=Yo(c.text,v.end,!1,!0);s.deleteRange(c,{pos:d,end:g})}else Wh(s,c,_.name)}}function i(s,c,_){if(_.parent.name){const d=R.checkDefined(la(c,_.pos-1));s.deleteRange(c,{pos:d.getStart(c),end:_.end})}else{const d=f1(_,269);Wh(s,c,d)}}function o(s,c,_,d){const{parent:v}=d;if(v.kind===295){s.deleteNodeRange(_,Es(v,20,_),Es(v,21,_));return}if(v.declarations.length!==1){x8(s,c,_,d);return}const g=v.parent;switch(g.kind){case 247:case 246:s.replaceNode(_,d,O.createObjectLiteralExpression());break;case 245:Wh(s,_,v);break;case 240:Wh(s,_,g,{leadingTriviaOption:Df(g)?2:3});break;default:R.assertNever(g)}}})(Sie||(Sie={}))}}),vr={};B(vr,{ChangeTracker:()=>dV,LeadingTriviaOption:()=>Eie,TrailingTriviaOption:()=>Tie,applyChanges:()=>bie,assignPositionsToNode:()=>uV,createWriter:()=>eIe,deleteNode:()=>Wh,getNewFileText:()=>_Ze,isThisTypeAnnotatable:()=>lZe,isValidLocationToAddComment:()=>tIe});var vZe=b({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";yZe()}}),xie,Aie,bZe=b({"src/services/formatting/formattingContext.ts"(){"use strict";Zr(),xie=(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))(xie||{}),Aie=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=R.checkDefined(e),this.currentTokenParent=R.checkDefined(t),this.nextTokenSpan=R.checkDefined(r),this.nextTokenParent=R.checkDefined(i),this.contextNode=R.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,18,this.sourceFile),r=Es(e,19,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 Cie(e,t,r,i,o){const s=t===1?iIe:rIe;s.setText(e),s.setTextPos(r);let c=!0,_,d,v,g,T;const C=o({advance:L,readTokenInfo:X,readEOFTokenRange:P,isOnToken:ue,isOnEOF:re,getCurrentLeadingTrivia:()=>_,lastTrailingTriviaWasNewLine:()=>c,skipToEndOf:ae,skipToStartOf:z,getStartPos:()=>{var ce;return(ce=T==null?void 0:T.token.pos)!=null?ce:s.getTokenPos()}});return T=void 0,s.setText(void 0),C;function L(){T=void 0,s.getStartPos()!==r?c=!!d&&Ko(d).kind===4:s.scan(),_=void 0,d=void 0;let he=s.getStartPos();for(;he<i;){const Ee=s.getToken();if(!vC(Ee))break;s.scan();const Ae={pos:he,end:s.getStartPos(),kind:Ee};he=s.getStartPos(),_=Pn(_,Ae)}v=s.getStartPos()}function I(ce){switch(ce.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function M(ce){if(ce.parent)switch(ce.parent.kind){case 288:case 283:case 284:case 282:return Dd(ce.kind)||ce.kind===79}return!1}function k(ce){return YS(ce)||By(ce)&&(T==null?void 0:T.token.kind)===11}function U(ce){return ce.kind===13}function j(ce){return ce.kind===16||ce.kind===17}function H(ce){return ce.parent&&fm(ce.parent)&&ce.parent.initializer===ce}function ee(ce){return ce===43||ce===68}function X(ce){R.assert(ue());const he=I(ce)?1:U(ce)?2:j(ce)?3:M(ce)?4:k(ce)?5:H(ce)?6:0;if(T&&he===g)return be(T,ce);s.getStartPos()!==v&&(R.assert(T!==void 0),s.setTextPos(v),s.scan());let Ee=ne(ce,he);const Ae=mV(s.getStartPos(),s.getTextPos(),Ee);for(d&&(d=void 0);s.getStartPos()<i&&(Ee=s.scan(),!!vC(Ee));){const te=mV(s.getStartPos(),s.getTextPos(),Ee);if(d||(d=[]),d.push(te),Ee===4){s.scan();break}}return T={leadingTrivia:_,trailingTrivia:d,token:Ae},be(T,ce)}function ne(ce,he){const Ee=s.getToken();switch(g=0,he){case 1:if(Ee===31){g=1;const Ae=s.reScanGreaterToken();return R.assert(ce.kind===Ae),Ae}break;case 2:if(ee(Ee)){g=2;const Ae=s.reScanSlashToken();return R.assert(ce.kind===Ae),Ae}break;case 3:if(Ee===19)return g=3,s.reScanTemplateToken(!1);break;case 4:return g=4,s.scanJsxIdentifier();case 5:return g=5,s.reScanJsxToken(!1);case 6:return g=6,s.reScanJsxAttributeValue();case 0:break;default:R.assertNever(he)}return Ee}function P(){return R.assert(re()),mV(s.getStartPos(),s.getTextPos(),1)}function ue(){const ce=T?T.token.kind:s.getToken();return ce!==1&&!vC(ce)}function re(){return(T?T.token.kind:s.getToken())===1}function be(ce,he){return SS(he)&&ce.token.kind!==he.kind&&(ce.token.kind=he.kind),ce}function ae(ce){s.setTextPos(ce.end),v=s.getStartPos(),g=void 0,T=void 0,c=!1,_=void 0,d=void 0}function z(ce){s.setTextPos(ce.pos),v=s.getStartPos(),g=void 0,T=void 0,c=!1,_=void 0,d=void 0}}var rIe,iIe,EZe=b({"src/services/formatting/formattingScanner.ts"(){"use strict";Zr(),L8(),rIe=xy(99,!1,0),iIe=xy(99,!1,1)}}),KO,Lie,Iie,TZe=b({"src/services/formatting/rule.ts"(){"use strict";Zr(),KO=it,Lie=(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))(Lie||{}),Iie=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(Iie||{})}});function aIe(){const e=[];for(let ne=0;ne<=162;ne++)ne!==1&&e.push(ne);function t(...ne){return{tokens:e.filter(P=>!ne.some(ue=>ue===P)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=DL([...e,3]),o=DL([...e,1]),s=sIe(81,162),c=sIe(29,78),_=[101,102,162,128,140,150],d=[45,46,54,53],v=[8,9,79,20,22,18,108,103],g=[79,20,108,103],T=[79,21,23,103],C=[79,20,108,103],L=[79,21,23,103],I=[2,3],M=[79,...EB],k=i,U=DL([79,3,84,93,100]),j=DL([21,3,90,111,96,91]),H=[qr("IgnoreBeforeComment",r,I,KO,1),qr("IgnoreAfterLineComment",2,r,KO,1),qr("NotSpaceBeforeColon",r,58,[Ni,XO,uIe],16),qr("SpaceAfterColon",58,r,[Ni,XO],4),qr("NoSpaceBeforeQuestionMark",r,57,[Ni,XO,uIe],16),qr("SpaceAfterQuestionMarkInConditionalOperator",57,r,[Ni,xZe],4),qr("NoSpaceAfterQuestionMark",57,r,[Ni],16),qr("NoSpaceBeforeDot",r,[24,28],[Ni,XZe],16),qr("NoSpaceAfterDot",[24,28],r,[Ni],16),qr("NoSpaceBetweenImportParenInImportType",100,20,[Ni,MZe],16),qr("NoSpaceAfterUnaryPrefixOperator",d,v,[Ni,XO],16),qr("NoSpaceAfterUnaryPreincrementOperator",45,g,[Ni],16),qr("NoSpaceAfterUnaryPredecrementOperator",46,C,[Ni],16),qr("NoSpaceBeforeUnaryPostincrementOperator",T,45,[Ni,AIe],16),qr("NoSpaceBeforeUnaryPostdecrementOperator",L,46,[Ni,AIe],16),qr("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[Ni,Jy],4),qr("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[Ni,Jy],4),qr("SpaceAfterAddWhenFollowedByPreincrement",39,45,[Ni,Jy],4),qr("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[Ni,Jy],4),qr("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[Ni,Jy],4),qr("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[Ni,Jy],4),qr("NoSpaceAfterCloseBrace",19,[27,26],[Ni],16),qr("NewLineBeforeCloseBraceInBlockContext",i,19,[fIe],8),qr("SpaceAfterCloseBrace",19,t(21),[Ni,LZe],4),qr("SpaceBetweenCloseBraceAndElse",19,91,[Ni],4),qr("SpaceBetweenCloseBraceAndWhile",19,115,[Ni],4),qr("NoSpaceBetweenEmptyBraceBrackets",18,19,[Ni,yIe],16),qr("SpaceAfterConditionalClosingParen",21,22,[YO],4),qr("NoSpaceBetweenFunctionKeywordAndStar",98,41,[mIe],16),qr("SpaceAfterStarInGeneratorDeclaration",41,79,[mIe],4),qr("SpaceAfterFunctionInFuncDecl",98,r,[hE],4),qr("NewLineAfterOpenBraceInBlockContext",18,r,[fIe],8),qr("SpaceAfterGetSetInMember",[137,151],79,[hE],4),qr("NoSpaceBetweenYieldKeywordAndStar",125,41,[Ni,xIe],16),qr("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],r,[Ni,xIe],4),qr("NoSpaceBetweenReturnAndSemicolon",105,26,[Ni],16),qr("SpaceAfterCertainKeywords",[113,109,103,89,105,112,133],r,[Ni],4),qr("SpaceAfterLetConstInVariableDeclaration",[119,85],r,[Ni,GZe],4),qr("NoSpaceBeforeOpenParenInFuncCall",r,20,[Ni,wZe,DZe],16),qr("SpaceBeforeBinaryKeywordOperator",r,_,[Ni,Jy],4),qr("SpaceAfterBinaryKeywordOperator",_,r,[Ni,Jy],4),qr("SpaceAfterVoidOperator",114,r,[Ni,HZe],4),qr("SpaceBetweenAsyncAndOpenParen",132,20,[OZe,Ni],4),qr("SpaceBetweenAsyncAndFunctionKeyword",132,[98,79],[Ni],4),qr("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[Ni],16),qr("SpaceBeforeJsxAttribute",r,79,[PZe,Ni],4),qr("SpaceBeforeSlashInJsxOpeningElement",r,43,[EIe,Ni],4),qr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[EIe,Ni],16),qr("NoSpaceBeforeEqualInJsxAttribute",r,63,[bIe,Ni],16),qr("NoSpaceAfterEqualInJsxAttribute",63,r,[bIe,Ni],16),qr("NoSpaceAfterModuleImport",[142,147],20,[Ni],16),qr("SpaceAfterCertainTypeScriptKeywords",[126,127,84,136,88,92,93,94,137,117,100,118,142,143,121,123,122,146,151,124,154,158,141,138],r,[Ni],4),qr("SpaceBeforeCertainTypeScriptKeywords",r,[94,117,158],[Ni],4),qr("SpaceAfterModuleName",10,18,[UZe],4),qr("SpaceBeforeArrow",r,38,[Ni],4),qr("SpaceAfterArrow",38,r,[Ni],4),qr("NoSpaceAfterEllipsis",25,79,[Ni],16),qr("NoSpaceAfterOptionalParameters",57,[21,27],[Ni,XO],16),qr("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[Ni,VZe],16),qr("NoSpaceBeforeOpenAngularBracket",M,29,[Ni,$O],16),qr("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[Ni,$O],16),qr("NoSpaceAfterOpenAngularBracket",29,r,[Ni,$O],16),qr("NoSpaceBeforeCloseAngularBracket",r,31,[Ni,$O],16),qr("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[Ni,$O,CZe,WZe],16),qr("SpaceBeforeAt",[21,79],59,[Ni],4),qr("NoSpaceAfterAt",59,r,[Ni],16),qr("SpaceAfterDecorator",r,[126,79,93,88,84,124,123,121,122,137,151,22,41],[BZe],4),qr("NoSpaceBeforeNonNullAssertionOperator",r,53,[Ni,zZe],16),qr("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[Ni,jZe],16),qr("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[Ni],4)],ee=[qr("SpaceAfterConstructor",135,20,[yf("insertSpaceAfterConstructor"),Ni],4),qr("NoSpaceAfterConstructor",135,20,[Mp("insertSpaceAfterConstructor"),Ni],16),qr("SpaceAfterComma",27,r,[yf("insertSpaceAfterCommaDelimiter"),Ni,Mie,RZe,NZe],4),qr("NoSpaceAfterComma",27,r,[Mp("insertSpaceAfterCommaDelimiter"),Ni,Mie],16),qr("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[yf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),hE],4),qr("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[Mp("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),hE],16),qr("SpaceAfterKeywordInControl",s,20,[yf("insertSpaceAfterKeywordsInControlFlowStatements"),YO],4),qr("NoSpaceAfterKeywordInControl",s,20,[Mp("insertSpaceAfterKeywordsInControlFlowStatements"),YO],16),qr("SpaceAfterOpenParen",20,r,[yf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ni],4),qr("SpaceBeforeCloseParen",r,21,[yf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ni],4),qr("SpaceBetweenOpenParens",20,20,[yf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ni],4),qr("NoSpaceBetweenParens",20,21,[Ni],16),qr("NoSpaceAfterOpenParen",20,r,[Mp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ni],16),qr("NoSpaceBeforeCloseParen",r,21,[Mp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ni],16),qr("SpaceAfterOpenBracket",22,r,[yf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ni],4),qr("SpaceBeforeCloseBracket",r,23,[yf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ni],4),qr("NoSpaceBetweenBrackets",22,23,[Ni],16),qr("NoSpaceAfterOpenBracket",22,r,[Mp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ni],16),qr("NoSpaceBeforeCloseBracket",r,23,[Mp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ni],16),qr("SpaceAfterOpenBrace",18,r,[cIe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),dIe],4),qr("SpaceBeforeCloseBrace",r,19,[cIe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),dIe],4),qr("NoSpaceBetweenEmptyBraceBrackets",18,19,[Ni,yIe],16),qr("NoSpaceAfterOpenBrace",18,r,[kie("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ni],16),qr("NoSpaceBeforeCloseBrace",r,19,[kie("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ni],16),qr("SpaceBetweenEmptyBraceBrackets",18,19,[yf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),qr("NoSpaceBetweenEmptyBraceBrackets",18,19,[kie("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ni],16),qr("SpaceAfterTemplateHeadAndMiddle",[15,16],r,[yf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),vIe],4,1),qr("SpaceBeforeTemplateMiddleAndTail",r,[16,17],[yf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ni],4),qr("NoSpaceAfterTemplateHeadAndMiddle",[15,16],r,[Mp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),vIe],16,1),qr("NoSpaceBeforeTemplateMiddleAndTail",r,[16,17],[Mp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ni],16),qr("SpaceAfterOpenBraceInJsxExpression",18,r,[yf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ni,_V],4),qr("SpaceBeforeCloseBraceInJsxExpression",r,19,[yf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ni,_V],4),qr("NoSpaceAfterOpenBraceInJsxExpression",18,r,[Mp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ni,_V],16),qr("NoSpaceBeforeCloseBraceInJsxExpression",r,19,[Mp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ni,_V],16),qr("SpaceAfterSemicolonInFor",26,r,[yf("insertSpaceAfterSemicolonInForStatements"),Ni,Die],4),qr("NoSpaceAfterSemicolonInFor",26,r,[Mp("insertSpaceAfterSemicolonInForStatements"),Ni,Die],16),qr("SpaceBeforeBinaryOperator",r,c,[yf("insertSpaceBeforeAndAfterBinaryOperators"),Ni,Jy],4),qr("SpaceAfterBinaryOperator",c,r,[yf("insertSpaceBeforeAndAfterBinaryOperators"),Ni,Jy],4),qr("NoSpaceBeforeBinaryOperator",r,c,[Mp("insertSpaceBeforeAndAfterBinaryOperators"),Ni,Jy],16),qr("NoSpaceAfterBinaryOperator",c,r,[Mp("insertSpaceBeforeAndAfterBinaryOperators"),Ni,Jy],16),qr("SpaceBeforeOpenParenInFuncDecl",r,20,[yf("insertSpaceBeforeFunctionParenthesis"),Ni,hE],4),qr("NoSpaceBeforeOpenParenInFuncDecl",r,20,[Mp("insertSpaceBeforeFunctionParenthesis"),Ni,hE],16),qr("NewLineBeforeOpenBraceInControl",j,18,[yf("placeOpenBraceOnNewLineForControlBlocks"),YO,Oie],8,1),qr("NewLineBeforeOpenBraceInFunction",k,18,[yf("placeOpenBraceOnNewLineForFunctions"),hE,Oie],8,1),qr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",U,18,[yf("placeOpenBraceOnNewLineForFunctions"),hIe,Oie],8,1),qr("SpaceAfterTypeAssertion",31,r,[yf("insertSpaceAfterTypeAssertion"),Ni,Fie],4),qr("NoSpaceAfterTypeAssertion",31,r,[Mp("insertSpaceAfterTypeAssertion"),Ni,Fie],16),qr("SpaceBeforeTypeAnnotation",r,[57,58],[yf("insertSpaceBeforeTypeAnnotation"),Ni,Rie],4),qr("NoSpaceBeforeTypeAnnotation",r,[57,58],[Mp("insertSpaceBeforeTypeAnnotation"),Ni,Rie],16),qr("NoOptionalSemicolon",26,o,[lIe("semicolons","remove"),JZe],32),qr("OptionalSemicolon",r,o,[lIe("semicolons","insert"),KZe],64)],X=[qr("NoSpaceBeforeSemicolon",r,26,[Ni],16),qr("SpaceBeforeOpenBraceInControl",j,18,[wie("placeOpenBraceOnNewLineForControlBlocks"),YO,Pie,Nie],4,1),qr("SpaceBeforeOpenBraceInFunction",k,18,[wie("placeOpenBraceOnNewLineForFunctions"),hE,fV,Pie,Nie],4,1),qr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",U,18,[wie("placeOpenBraceOnNewLineForFunctions"),hIe,Pie,Nie],4,1),qr("NoSpaceBeforeComma",r,27,[Ni],16),qr("NoSpaceBeforeOpenBracket",t(132,82),22,[Ni],16),qr("NoSpaceAfterCloseBracket",23,r,[Ni,FZe],16),qr("SpaceAfterSemicolon",26,r,[Ni],4),qr("SpaceBetweenForAndAwaitKeyword",97,133,[Ni],4),qr("SpaceBetweenStatements",[21,90,91,82],r,[Ni,Mie,SZe],4),qr("SpaceAfterTryCatchFinally",[111,83,96],18,[Ni],4)];return[...H,...ee,...X]}function qr(e,t,r,i,o,s=0){return{leftTokenRange:oIe(t),rightTokenRange:oIe(r),rule:{debugName:e,context:i,action:o,flags:s}}}function DL(e){return{tokens:e,isSpecific:!0}}function oIe(e){return typeof e=="number"?DL([e]):ja(e)?DL(e):e}function sIe(e,t,r=[]){const i=[];for(let o=e;o<=t;o++)Fr(r,o)||i.push(o);return DL(i)}function lIe(e,t){return r=>r.options&&r.options[e]===t}function yf(e){return t=>t.options&&Fs(t.options,e)&&!!t.options[e]}function kie(e){return t=>t.options&&Fs(t.options,e)&&!t.options[e]}function Mp(e){return t=>!t.options||!Fs(t.options,e)||!t.options[e]}function wie(e){return t=>!t.options||!Fs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function cIe(e){return t=>!t.options||!Fs(t.options,e)||!!t.options[e]}function Die(e){return e.contextNode.kind===245}function SZe(e){return!Die(e)}function Jy(e){switch(e.contextNode.kind){case 223:return e.contextNode.operatorToken.kind!==27;case 224:case 191:case 231:case 278:case 273:case 179:case 189:case 190:case 235:return!0;case 205:case 262:case 268:case 274:case 257:case 166:case 302:case 169:case 168:return e.currentTokenSpan.kind===63||e.nextTokenSpan.kind===63;case 246:case 165:return e.currentTokenSpan.kind===101||e.nextTokenSpan.kind===101||e.currentTokenSpan.kind===63||e.nextTokenSpan.kind===63;case 247:return e.currentTokenSpan.kind===162||e.nextTokenSpan.kind===162}return!1}function XO(e){return!Jy(e)}function uIe(e){return!Rie(e)}function Rie(e){const t=e.contextNode.kind;return t===169||t===168||t===166||t===257||CS(t)}function xZe(e){return e.contextNode.kind===224||e.contextNode.kind===191}function Nie(e){return e.TokensAreOnSameLine()||fV(e)}function dIe(e){return e.contextNode.kind===203||e.contextNode.kind===197||AZe(e)}function Oie(e){return fV(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function fIe(e){return _Ie(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function AZe(e){return _Ie(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function _Ie(e){return pIe(e.contextNode)}function fV(e){return pIe(e.nextTokenParent)}function pIe(e){if(gIe(e))return!0;switch(e.kind){case 238:case 266:case 207:case 265:return!0}return!1}function hE(e){switch(e.contextNode.kind){case 259:case 171:case 170:case 174:case 175:case 176:case 215:case 173:case 216:case 261:return!0}return!1}function CZe(e){return!hE(e)}function mIe(e){return e.contextNode.kind===259||e.contextNode.kind===215}function hIe(e){return gIe(e.contextNode)}function gIe(e){switch(e.kind){case 260:case 228:case 261:case 263:case 184:case 264:case 275:case 276:case 269:case 272:return!0}return!1}function LZe(e){switch(e.currentTokenParent.kind){case 260:case 264:case 263:case 295:case 265:case 252:return!0;case 238:{const t=e.currentTokenParent.parent;if(!t||t.kind!==216&&t.kind!==215)return!0}}return!1}function YO(e){switch(e.contextNode.kind){case 242:case 252:case 245:case 246:case 247:case 244:case 255:case 243:case 251:case 295:return!0;default:return!1}}function yIe(e){return e.contextNode.kind===207}function IZe(e){return e.contextNode.kind===210}function kZe(e){return e.contextNode.kind===211}function wZe(e){return IZe(e)||kZe(e)}function DZe(e){return e.currentTokenSpan.kind!==27}function RZe(e){return e.nextTokenSpan.kind!==23}function NZe(e){return e.nextTokenSpan.kind!==21}function OZe(e){return e.contextNode.kind===216}function MZe(e){return e.contextNode.kind===202}function Ni(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==11}function vIe(e){return e.contextNode.kind!==11}function Mie(e){return e.contextNode.kind!==281&&e.contextNode.kind!==285}function _V(e){return e.contextNode.kind===291||e.contextNode.kind===290}function PZe(e){return e.nextTokenParent.kind===288}function bIe(e){return e.contextNode.kind===288}function EIe(e){return e.contextNode.kind===282}function FZe(e){return!hE(e)&&!fV(e)}function BZe(e){return e.TokensAreOnSameLine()&&i_(e.contextNode)&&TIe(e.currentTokenParent)&&!TIe(e.nextTokenParent)}function TIe(e){for(;e&&yt(e);)e=e.parent;return e&&e.kind===167}function GZe(e){return e.currentTokenParent.kind===258&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Pie(e){return e.formattingRequestKind!==2}function UZe(e){return e.contextNode.kind===264}function VZe(e){return e.contextNode.kind===184}function jZe(e){return e.contextNode.kind===177}function SIe(e,t){if(e.kind!==29&&e.kind!==31)return!1;switch(t.kind){case 180:case 213:case 262:case 260:case 228:case 261:case 259:case 215:case 216:case 171:case 170:case 176:case 177:case 210:case 211:case 230:return!0;default:return!1}}function $O(e){return SIe(e.currentTokenSpan,e.currentTokenParent)||SIe(e.nextTokenSpan,e.nextTokenParent)}function Fie(e){return e.contextNode.kind===213}function WZe(e){return!Fie(e)}function HZe(e){return e.currentTokenSpan.kind===114&&e.currentTokenParent.kind===219}function xIe(e){return e.contextNode.kind===226&&e.contextNode.expression!==void 0}function zZe(e){return e.contextNode.kind===232}function AIe(e){return!qZe(e)}function qZe(e){switch(e.contextNode.kind){case 242:case 245:case 246:case 247:case 243:case 244:return!0;default:return!1}}function JZe(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(vC(t)){const s=e.nextTokenParent===e.currentTokenParent?f2(e.currentTokenParent,rr(e.currentTokenParent,c=>!c.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===19||t===1:t===237||t===26?!1:e.contextNode.kind===261||e.contextNode.kind===262?!Mf(e.currentTokenParent)||!!e.currentTokenParent.type||t!==20:ro(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==245&&e.currentTokenParent.kind!==239&&e.currentTokenParent.kind!==237&&t!==22&&t!==20&&t!==39&&t!==40&&t!==43&&t!==13&&t!==27&&t!==225&&t!==15&&t!==14&&t!==24}function KZe(e){return lB(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function XZe(e){return!Br(e.contextNode)||!C_(e.contextNode.expression)||e.contextNode.expression.getText().indexOf(".")!==-1}var YZe=b({"src/services/formatting/rules.ts"(){"use strict";Zr(),L8()}});function $Ze(e,t){return{options:e,getRules:QZe(),host:t}}function QZe(){return Bie===void 0&&(Bie=eet(aIe())),Bie}function ZZe(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function eet(e){const t=tet(e);return r=>{const i=t[CIe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const o=[];let s=0;for(const c of i){const _=~ZZe(s);c.action&_&&Qn(c.context,d=>d(r))&&(o.push(c),s|=c.action)}if(o.length)return o}}}function tet(e){const t=new Array(pV*pV),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 c of i.rightTokenRange.tokens){const _=CIe(s,c);let d=t[_];d===void 0&&(d=t[_]=[]),net(d,i.rule,o,r,_)}}return t}function CIe(e,t){return R.assert(e<=162&&t<=162,"Must compute formatting context from tokens"),e*pV+t}function net(e,t,r,i,o){const s=t.action&3?r?0:RL.StopRulesAny:t.context!==KO?r?RL.ContextRulesSpecific:RL.ContextRulesAny:r?RL.NoContextRulesSpecific:RL.NoContextRulesAny,c=i[o]||0;e.splice(ret(c,s),0,t),i[o]=iet(c,s)}function ret(e,t){let r=0;for(let i=0;i<=t;i+=Ux)r+=e&QO,e>>=Ux;return r}function iet(e,t){const r=(e>>t&QO)+1;return R.assert((r&QO)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(QO<<t)|r<<t}var Bie,Ux,QO,pV,RL,aet=b({"src/services/formatting/rulesMap.ts"(){"use strict";Zr(),L8(),Ux=5,QO=31,pV=162+1,RL=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=Ux*1]="StopRulesAny",e[e.ContextRulesSpecific=Ux*2]="ContextRulesSpecific",e[e.ContextRulesAny=Ux*3]="ContextRulesAny",e[e.NoContextRulesSpecific=Ux*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=Ux*5]="NoContextRulesAny",e))(RL||{})}});function mV(e,t,r){const i={pos:e,end:t,kind:r};return R.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>R.formatSyntaxKind(r)}),i}function oet(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=qD(i,t);for(;Gm(t.text.charCodeAt(o));)o--;Tu(t.text.charCodeAt(o))&&o--;const s={pos:Hv(i-1,t),end:o+1};return ZO(s,t,r,2)}function set(e,t,r){const i=Gie(e,26,t);return LIe(Uie(i),t,r,3)}function cet(e,t,r){const i=Gie(e,18,t);if(!i)return[];const o=i.parent,s=Uie(o),c={pos:k_(s.getStart(t),t),end:e};return ZO(c,t,r,4)}function uet(e,t,r){const i=Gie(e,19,t);return LIe(Uie(i),t,r,5)}function det(e,t){const r={pos:0,end:e.text.length};return ZO(r,e,t,0)}function fet(e,t,r,i){const o={pos:k_(e,r),end:t};return ZO(o,r,i,1)}function Gie(e,t,r){const i=Dc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function Uie(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!_et(t.parent,t);)t=t.parent;return t}function _et(e,t){switch(e.kind){case 260:case 261:return gf(e.members,t);case 264:const r=e.body;return!!r&&r.kind===265&&gf(r.statements,t);case 308:case 238:case 265:return gf(e.statements,t);case 295:return gf(e.block.statements,t)}return!1}function pet(e,t){return r(t);function r(i){const o=Pa(i,s=>nZ(s.getStart(t),s.end,e)&&s);if(o){const s=r(o);if(s)return s}return i}}function met(e,t){if(!e.length)return o;const r=e.filter(s=>V4(t,s.start,s.start+s.length)).sort((s,c)=>s.start-c.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;const c=r[i];if(s.end<=c.start)return!1;if(FF(s.pos,s.end,c.start,c.start+c.length))return!0;i++}};function o(){return!1}}function het(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 get(e,t,r){let i=-1,o;for(;e;){const s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(Pp.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function yet(e,t,r,i,o,s){const c={pos:e.pos,end:e.end};return Cie(t.text,r,c.pos,c.end,_=>IIe(c,e,i,o,_,s,1,d=>!1,t))}function LIe(e,t,r,i){if(!e)return[];const o={pos:k_(e.getStart(t),t),end:e.end};return ZO(o,t,r,i)}function ZO(e,t,r,i){const o=pet(e,t);return Cie(t.text,t.languageVariant,het(o,e,t),e.end,s=>IIe(e,o,Pp.getIndentationForNode(o,e,t,r.options),get(o,r.options,t),s,r,i,met(t.parseDiagnostics,e),t))}function IIe(e,t,r,i,o,{options:s,getRules:c,host:_},d,v,g){var T;const C=new Aie(g,d,s);let L,I,M,k,U,j=-1;const H=[];if(o.advance(),o.isOnToken()){const ze=g.getLineAndCharacterOfPosition(t.getStart(g)).line;let Ge=ze;i_(t)&&(Ge=g.getLineAndCharacterOfPosition(vq(t,g)).line),ue(t,t,ze,Ge,r,i)}if(!o.isOnToken()){const ze=Pp.nodeWillIndentChild(s,t,void 0,g,!1)?r+s.indentSize:r,Ge=o.getCurrentLeadingTrivia();Ge&&(re(Ge,ze,!1,lt=>ae(lt,g.getLineAndCharacterOfPosition(lt.pos),t,t,void 0)),s.trimTrailingWhitespace!==!1&&je(Ge))}if(I&&o.getStartPos()>=e.end){const ze=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(ze&&ze.pos===L){const Ge=((T=Dc(ze.end,g,t))==null?void 0:T.parent)||M;z(ze,g.getLineAndCharacterOfPosition(ze.pos).line,Ge,I,k,M,Ge,void 0)}}return H;function ee(ze,Ge,lt,Ct,bt){if(V4(Ct,ze,Ge)||UN(Ct,ze,Ge)){if(bt!==-1)return bt}else{const zt=g.getLineAndCharacterOfPosition(ze).line,nt=k_(ze,g),ot=Pp.findFirstNonWhitespaceColumn(nt,ze,g,s);if(zt!==lt||ze===ot){const sn=Pp.getBaseIndentation(s);return sn>ot?sn:ot}}return-1}function X(ze,Ge,lt,Ct,bt,zt){const nt=Pp.shouldIndentChildNode(s,ze)?s.indentSize:0;return zt===Ge?{indentation:Ge===U?j:bt.getIndentation(),delta:Math.min(s.indentSize,bt.getDelta(ze)+nt)}:lt===-1?ze.kind===20&&Ge===U?{indentation:j,delta:bt.getDelta(ze)}:Pp.childStartsOnTheSameLineWithElseInIfStatement(Ct,ze,Ge,g)||Pp.childIsUnindentedBranchOfConditionalExpression(Ct,ze,Ge,g)||Pp.argumentStartsOnSameLineAsPreviousArgument(Ct,ze,Ge,g)?{indentation:bt.getIndentation(),delta:nt}:{indentation:bt.getIndentation()+bt.getDelta(ze),delta:nt}:{indentation:lt,delta:nt}}function ne(ze){if(np(ze)){const Ge=$t(ze.modifiers,po,ii(ze.modifiers,qu));if(Ge)return Ge.kind}switch(ze.kind){case 260:return 84;case 261:return 118;case 259:return 98;case 263:return 263;case 174:return 137;case 175:return 151;case 171:if(ze.asteriskToken)return 41;case 169:case 166:const Ge=ka(ze);if(Ge)return Ge.kind}}function P(ze,Ge,lt,Ct){return{getIndentationForComment:(nt,ot,sn)=>{switch(nt){case 19:case 23:case 21:return lt+zt(sn)}return ot!==-1?ot:lt},getIndentationForToken:(nt,ot,sn,pn)=>!pn&&bt(nt,ot,sn)?lt+zt(sn):lt,getIndentation:()=>lt,getDelta:zt,recomputeIndentation:(nt,ot)=>{Pp.shouldIndentChildNode(s,ot,ze,g)&&(lt+=nt?s.indentSize:-s.indentSize,Ct=Pp.shouldIndentChildNode(s,ze)?s.indentSize:0)}};function bt(nt,ot,sn){switch(ot){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(sn.kind){case 283:case 284:case 282:return!1}break;case 22:case 23:if(sn.kind!==197)return!1;break}return Ge!==nt&&!(i_(ze)&&ot===ne(ze))}function zt(nt){return Pp.nodeWillIndentChild(s,ze,nt,g,!0)?Ct:0}}function ue(ze,Ge,lt,Ct,bt,zt){if(!V4(e,ze.getStart(g),ze.getEnd()))return;const nt=P(ze,lt,bt,zt);let ot=Ge;for(Pa(ze,jn=>{sn(jn,-1,ze,nt,lt,Ct,!1)},jn=>{pn(jn,ze,lt,nt)});o.isOnToken()&&o.getStartPos()<e.end;){const jn=o.readTokenInfo(ze);if(jn.token.end>Math.min(ze.end,e.end))break;gn(jn,ze,nt,ze)}function sn(jn,Ln,Zt,pr,Ii,ea,ta,Or){if(R.assert(!tl(jn)),kl(jn)||i_e(Zt,jn))return Ln;const Lt=jn.getStart(g),yn=g.getLineAndCharacterOfPosition(Lt).line;let Wt=yn;i_(jn)&&(Wt=g.getLineAndCharacterOfPosition(vq(jn,g)).line);let In=-1;if(ta&&gf(e,Zt)&&(In=ee(Lt,jn.end,Ii,e,Ln),In!==-1&&(Ln=In)),!V4(e,jn.pos,jn.end))return jn.end<e.pos&&o.skipToEndOf(jn),Ln;if(jn.getFullWidth()===0)return Ln;for(;o.isOnToken()&&o.getStartPos()<e.end;){const Oi=o.readTokenInfo(ze);if(Oi.token.end>e.end)return Ln;if(Oi.token.end>Lt){Oi.token.pos>Lt&&o.skipToStartOf(jn);break}gn(Oi,ze,pr,ze)}if(!o.isOnToken()||o.getStartPos()>=e.end)return Ln;if(SS(jn)){const Oi=o.readTokenInfo(jn);if(jn.kind!==11)return R.assert(Oi.token.end===jn.end,"Token end is child end"),gn(Oi,ze,pr,jn),Ln}const Bn=jn.kind===167?yn:ea,lr=X(jn,yn,In,ze,pr,Bn);return ue(jn,ot,yn,Wt,lr.indentation,lr.delta),ot=ze,Or&&Zt.kind===206&&Ln===-1&&(Ln=lr.indentation),Ln}function pn(jn,Ln,Zt,pr){R.assert(Ob(jn)),R.assert(!tl(jn));const Ii=vet(Ln,jn);let ea=pr,ta=Zt;if(!V4(e,jn.pos,jn.end)){jn.end<e.pos&&o.skipToEndOf(jn);return}if(Ii!==0)for(;o.isOnToken()&&o.getStartPos()<e.end;){const yn=o.readTokenInfo(Ln);if(yn.token.end>jn.pos)break;if(yn.token.kind===Ii){ta=g.getLineAndCharacterOfPosition(yn.token.pos).line,gn(yn,Ln,pr,Ln);let Wt;if(j!==-1)Wt=j;else{const In=k_(yn.token.pos,g);Wt=Pp.findFirstNonWhitespaceColumn(In,yn.token.pos,g,s)}ea=P(Ln,Zt,Wt,s.indentSize)}else gn(yn,Ln,pr,Ln)}let Or=-1;for(let yn=0;yn<jn.length;yn++){const Wt=jn[yn];Or=sn(Wt,Or,ze,ea,ta,ta,!0,yn===0)}const Lt=bet(Ii);if(Lt!==0&&o.isOnToken()&&o.getStartPos()<e.end){let yn=o.readTokenInfo(Ln);yn.token.kind===27&&(gn(yn,Ln,ea,Ln),yn=o.isOnToken()?o.readTokenInfo(Ln):void 0),yn&&yn.token.kind===Lt&&gf(Ln,yn.token)&&gn(yn,Ln,ea,Ln,!0)}}function gn(jn,Ln,Zt,pr,Ii){R.assert(gf(Ln,jn.token));const ea=o.lastTrailingTriviaWasNewLine();let ta=!1;jn.leadingTrivia&&be(jn.leadingTrivia,Ln,ot,Zt);let Or=0;const Lt=gf(e,jn.token),yn=g.getLineAndCharacterOfPosition(jn.token.pos);if(Lt){const Wt=v(jn.token),In=I;if(Or=ae(jn.token,yn,Ln,ot,Zt),!Wt)if(Or===0){const Bn=In&&g.getLineAndCharacterOfPosition(In.end).line;ta=ea&&yn.line!==Bn}else ta=Or===1}if(jn.trailingTrivia&&(L=Ko(jn.trailingTrivia).end,be(jn.trailingTrivia,Ln,ot,Zt)),ta){const Wt=Lt&&!v(jn.token)?Zt.getIndentationForToken(yn.line,jn.token.kind,pr,!!Ii):-1;let In=!0;if(jn.leadingTrivia){const Bn=Zt.getIndentationForComment(jn.token.kind,Wt,pr);In=re(jn.leadingTrivia,Bn,In,lr=>ce(lr.pos,Bn,!1))}Wt!==-1&&In&&(ce(jn.token.pos,Wt,Or===1),U=yn.line,j=Wt)}o.advance(),ot=Ln}}function re(ze,Ge,lt,Ct){for(const bt of ze){const zt=gf(e,bt);switch(bt.kind){case 3:zt&&Ae(bt,Ge,!lt),lt=!1;break;case 2:lt&&zt&&Ct(bt),lt=!1;break;case 4:lt=!0;break}}return lt}function be(ze,Ge,lt,Ct){for(const bt of ze)if(zF(bt.kind)&&gf(e,bt)){const zt=g.getLineAndCharacterOfPosition(bt.pos);ae(bt,zt,Ge,lt,Ct)}}function ae(ze,Ge,lt,Ct,bt){const zt=v(ze);let nt=0;if(!zt)if(I)nt=z(ze,Ge.line,lt,I,k,M,Ct,bt);else{const ot=g.getLineAndCharacterOfPosition(e.pos);te(ot.line,Ge.line)}return I=ze,L=ze.end,M=lt,k=Ge.line,nt}function z(ze,Ge,lt,Ct,bt,zt,nt,ot){C.updateContext(Ct,zt,ze,lt,nt);const sn=c(C);let pn=C.options.trimTrailingWhitespace!==!1,gn=0;return sn?xt(sn,jn=>{if(gn=$e(jn,Ct,bt,ze,Ge),ot)switch(gn){case 2:lt.getStart(g)===ze.pos&&ot.recomputeIndentation(!1,nt);break;case 1:lt.getStart(g)===ze.pos&&ot.recomputeIndentation(!0,nt);break;default:R.assert(gn===0)}pn=pn&&!(jn.action&16)&&jn.flags!==1}):pn=pn&&ze.kind!==1,Ge!==bt&&pn&&te(bt,Ge,Ct),gn}function ce(ze,Ge,lt){const Ct=Vie(Ge,s);if(lt)Fe(ze,0,Ct);else{const bt=g.getLineAndCharacterOfPosition(ze),zt=Hv(bt.line,g);(Ge!==he(zt,bt.character)||Ee(Ct,zt))&&Fe(zt,bt.character,Ct)}}function he(ze,Ge){let lt=0;for(let Ct=0;Ct<Ge;Ct++)g.text.charCodeAt(ze+Ct)===9?lt+=s.tabSize-lt%s.tabSize:lt++;return lt}function Ee(ze,Ge){return ze!==g.text.substr(Ge,ze.length)}function Ae(ze,Ge,lt,Ct=!0){let bt=g.getLineAndCharacterOfPosition(ze.pos).line;const zt=g.getLineAndCharacterOfPosition(ze.end).line;if(bt===zt){lt||ce(ze.pos,Ge,!1);return}const nt=[];let ot=ze.pos;for(let Ln=bt;Ln<zt;Ln++){const Zt=qD(Ln,g);nt.push({pos:ot,end:Zt}),ot=Hv(Ln+1,g)}if(Ct&&nt.push({pos:ot,end:ze.end}),nt.length===0)return;const sn=Hv(bt,g),pn=Pp.findFirstNonWhitespaceCharacterAndColumn(sn,nt[0].pos,g,s);let gn=0;lt&&(gn=1,bt++);const jn=Ge-pn.column;for(let Ln=gn;Ln<nt.length;Ln++,bt++){const Zt=Hv(bt,g),pr=Ln===0?pn:Pp.findFirstNonWhitespaceCharacterAndColumn(nt[Ln].pos,nt[Ln].end,g,s),Ii=pr.column+jn;if(Ii>0){const ea=Vie(Ii,s);Fe(Zt,pr.character,ea)}else Je(Zt,pr.character)}}function te(ze,Ge,lt){for(let Ct=ze;Ct<Ge;Ct++){const bt=Hv(Ct,g),zt=qD(Ct,g);if(lt&&(zF(lt.kind)||fZ(lt.kind))&&lt.pos<=zt&&lt.end>zt)continue;const nt=Ze(bt,zt);nt!==-1&&(R.assert(nt===bt||!Gm(g.text.charCodeAt(nt-1))),Je(nt,zt+1-nt))}}function Ze(ze,Ge){let lt=Ge;for(;lt>=ze&&Gm(g.text.charCodeAt(lt));)lt--;return lt!==Ge?lt+1:-1}function je(ze){let Ge=I?I.end:e.pos;for(const lt of ze)zF(lt.kind)&&(Ge<lt.pos&&Ue(Ge,lt.pos-1,I),Ge=lt.end+1);Ge<e.end&&Ue(Ge,e.end,I)}function Ue(ze,Ge,lt){const Ct=g.getLineAndCharacterOfPosition(ze).line,bt=g.getLineAndCharacterOfPosition(Ge).line;te(Ct,bt+1,lt)}function Je(ze,Ge){Ge&&H.push(JF(ze,Ge,""))}function Fe(ze,Ge,lt){(Ge||lt)&&H.push(JF(ze,Ge,lt))}function Be(ze,Ge){Ge&&H.push(JF(ze,0,Ge))}function $e(ze,Ge,lt,Ct,bt){const zt=bt!==lt;switch(ze.action){case 1:return 0;case 16:if(Ge.end!==Ct.pos)return Je(Ge.end,Ct.pos-Ge.end),zt?2:0;break;case 32:Je(Ge.pos,Ge.end-Ge.pos);break;case 8:if(ze.flags!==1&&lt!==bt)return 0;if(bt-lt!==1)return Fe(Ge.end,Ct.pos-Ge.end,x1(_,s)),zt?0:1;break;case 4:if(ze.flags!==1&&lt!==bt)return 0;if(Ct.pos-Ge.end!==1||g.text.charCodeAt(Ge.end)!==32)return Fe(Ge.end,Ct.pos-Ge.end," "),zt?2:0;break;case 64:Be(Ge.end,";")}return 0}}function kIe(e,t,r,i=la(e,t)){const o=rr(i,eh);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 c=r&&i1(e.text,r.end),_=Oq(i,e),d=ba(c,_);return d&&$t(d,v=>GN(v,t)||t===v.end&&(v.kind===2||t===e.getFullWidth()))}function vet(e,t){switch(e.kind){case 173:case 259:case 215:case 171:case 170:case 216:case 176:case 177:case 181:case 182:case 174:case 175:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 210:case 211:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 260:case 228:case 261:case 262:if(e.typeParameters===t)return 29;break;case 180:case 212:case 183:case 230:case 202:if(e.typeArguments===t)return 29;break;case 184:return 18}return 0}function bet(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}function Vie(e,t){if((!hV||hV.tabSize!==t.tabSize||hV.indentSize!==t.indentSize)&&(hV={tabSize:t.tabSize,indentSize:t.indentSize},A8=C8=void 0),t.convertTabsToSpaces){let i;const o=Math.floor(e/t.indentSize),s=e%t.indentSize;return C8||(C8=[]),C8[o]===void 0?(i=JN(" ",t.indentSize*o),C8[o]=i):i=C8[o],s?i+JN(" ",s):i}else{const i=Math.floor(e/t.tabSize),o=e-i*t.tabSize;let s;return A8||(A8=[]),A8[i]===void 0?A8[i]=s=JN(" ",i):s=A8[i],o?s+JN(" ",o):s}}var hV,A8,C8,Eet=b({"src/services/formatting/formatting.ts"(){"use strict";Zr(),L8()}}),Pp,Tet=b({"src/services/formatting/smartIndenter.ts"(){"use strict";Zr(),L8(),(e=>{let t;(te=>{te[te.Unknown=-1]="Unknown"})(t||(t={}));function r(te,Ze,je,Ue=!1){if(te>Ze.text.length)return _(je);if(je.indentStyle===0)return 0;const Je=Dc(te,Ze,void 0,!0),Fe=kIe(Ze,te,Je||null);if(Fe&&Fe.kind===3)return i(Ze,te,je,Fe);if(!Je)return _(je);if(fZ(Je.kind)&&Je.getStart(Ze)<=te&&te<Je.end)return 0;const $e=Ze.getLineAndCharacterOfPosition(te).line,ze=la(Ze,te),Ge=ze.kind===18&&ze.parent.kind===207;if(je.indentStyle===1||Ge)return o(Ze,te,je);if(Je.kind===27&&Je.parent.kind!==223){const Ct=g(Je,Ze,je);if(Ct!==-1)return Ct}const lt=ee(te,Je.parent,Ze);if(lt&&!gf(lt,Je)){const bt=[215,216].indexOf(ze.parent.kind)!==-1?0:je.indentSize;return P(lt,Ze,je)+bt}return s(Ze,te,Je,$e,Ue,je)}e.getIndentation=r;function i(te,Ze,je,Ue){const Je=ll(te,Ze).line-1,Fe=ll(te,Ue.pos).line;if(R.assert(Fe>=0),Je<=Fe)return z(Hv(Fe,te),Ze,te,je);const Be=Hv(Je,te),{column:$e,character:ze}=ae(Be,Ze,te,je);return $e===0?$e:te.text.charCodeAt(Be+ze)===42?$e-1:$e}function o(te,Ze,je){let Ue=Ze;for(;Ue>0;){const Fe=te.text.charCodeAt(Ue);if(!hg(Fe))break;Ue--}const Je=k_(Ue,te);return z(Je,Ue,te,je)}function s(te,Ze,je,Ue,Je,Fe){let Be,$e=je;for(;$e;){if(iZ($e,Ze,te)&&Ee(Fe,$e,Be,te,!0)){const Ge=I($e,te),lt=L(je,$e,Ue,te),Ct=lt!==0?Je&&lt===2?Fe.indentSize:0:Ue!==Ge.line?Fe.indentSize:0;return d($e,Ge,void 0,Ct,te,!0,Fe)}const ze=ue($e,te,Fe,!0);if(ze!==-1)return ze;Be=$e,$e=$e.parent}return _(Fe)}function c(te,Ze,je,Ue){const Je=je.getLineAndCharacterOfPosition(te.getStart(je));return d(te,Je,Ze,0,je,!1,Ue)}e.getIndentationForNode=c;function _(te){return te.baseIndentSize||0}e.getBaseIndentation=_;function d(te,Ze,je,Ue,Je,Fe,Be){var $e;let ze=te.parent;for(;ze;){let Ge=!0;if(je){const zt=te.getStart(Je);Ge=zt<je.pos||zt>je.end}const lt=v(ze,te,Je),Ct=lt.line===Ze.line||k(ze,te,Ze.line,Je);if(Ge){const zt=($e=H(te,Je))==null?void 0:$e[0],nt=!!zt&&I(zt,Je).line>lt.line;let ot=ue(te,Je,Be,nt);if(ot!==-1||(ot=T(te,ze,Ze,Ct,Je,Be),ot!==-1))return ot+Ue}Ee(Be,ze,te,Je,Fe)&&!Ct&&(Ue+=Be.indentSize);const bt=M(ze,te,Ze.line,Je);te=ze,ze=te.parent,Ze=bt?Je.getLineAndCharacterOfPosition(te.getStart(Je)):lt}return Ue+_(Be)}function v(te,Ze,je){const Ue=H(Ze,je),Je=Ue?Ue.pos:te.getStart(je);return je.getLineAndCharacterOfPosition(Je)}function g(te,Ze,je){const Ue=z1e(te);return Ue&&Ue.listItemIndex>0?re(Ue.list.getChildren(),Ue.listItemIndex-1,Ze,je):-1}function T(te,Ze,je,Ue,Je,Fe){return(Au(te)||VD(te))&&(Ze.kind===308||!Ue)?be(je,Je,Fe):-1}let C;(te=>{te[te.Unknown=0]="Unknown",te[te.OpenBrace=1]="OpenBrace",te[te.CloseBrace=2]="CloseBrace"})(C||(C={}));function L(te,Ze,je,Ue){const Je=f2(te,Ze,Ue);if(!Je)return 0;if(Je.kind===18)return 1;if(Je.kind===19){const Fe=I(Je,Ue).line;return je===Fe?2:0}return 0}function I(te,Ze){return Ze.getLineAndCharacterOfPosition(te.getStart(Ze))}function M(te,Ze,je,Ue){if(!(io(te)&&Fr(te.arguments,Ze)))return!1;const Je=te.expression.getEnd();return ll(Ue,Je).line===je}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=M;function k(te,Ze,je,Ue){if(te.kind===242&&te.elseStatement===Ze){const Je=Es(te,91,Ue);return R.assert(Je!==void 0),I(Je,Ue).line===je}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=k;function U(te,Ze,je,Ue){if(qC(te)&&(Ze===te.whenTrue||Ze===te.whenFalse)){const Je=ll(Ue,te.condition.end).line;if(Ze===te.whenTrue)return je===Je;{const Fe=I(te.whenTrue,Ue).line,Be=ll(Ue,te.whenTrue.end).line;return Je===Fe&&Be===je}}return!1}e.childIsUnindentedBranchOfConditionalExpression=U;function j(te,Ze,je,Ue){if(vg(te)){if(!te.arguments)return!1;const Je=$t(te.arguments,ze=>ze.pos===Ze.pos);if(!Je)return!1;const Fe=te.arguments.indexOf(Je);if(Fe===0)return!1;const Be=te.arguments[Fe-1],$e=ll(Ue,Be.getEnd()).line;if(je===$e)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=j;function H(te,Ze){return te.parent&&X(te.getStart(Ze),te.getEnd(),te.parent,Ze)}e.getContainingList=H;function ee(te,Ze,je){return Ze&&X(te,te,Ze,je)}function X(te,Ze,je,Ue){switch(je.kind){case 180:return Je(je.typeArguments);case 207:return Je(je.properties);case 206:return Je(je.elements);case 184:return Je(je.members);case 259:case 215:case 216:case 171:case 170:case 176:case 173:case 182:case 177:return Je(je.typeParameters)||Je(je.parameters);case 174:return Je(je.parameters);case 260:case 228:case 261:case 262:case 348:return Je(je.typeParameters);case 211:case 210:return Je(je.typeArguments)||Je(je.arguments);case 258:return Je(je.declarations);case 272:case 276:return Je(je.elements);case 203:case 204:return Je(je.elements)}function Je(Fe){return Fe&&UN(ne(je,Fe,Ue),te,Ze)?Fe:void 0}}function ne(te,Ze,je){const Ue=te.getChildren(je);for(let Je=1;Je<Ue.length-1;Je++)if(Ue[Je].pos===Ze.pos&&Ue[Je].end===Ze.end)return{pos:Ue[Je-1].end,end:Ue[Je+1].getStart(je)};return Ze}function P(te,Ze,je){return te?be(Ze.getLineAndCharacterOfPosition(te.pos),Ze,je):-1}function ue(te,Ze,je,Ue){if(te.parent&&te.parent.kind===258)return-1;const Je=H(te,Ze);if(Je){const Fe=Je.indexOf(te);if(Fe!==-1){const Be=re(Je,Fe,Ze,je);if(Be!==-1)return Be}return P(Je,Ze,je)+(Ue?je.indentSize:0)}return-1}function re(te,Ze,je,Ue){R.assert(Ze>=0&&Ze<te.length);const Je=te[Ze];let Fe=I(Je,je);for(let Be=Ze-1;Be>=0;Be--){if(te[Be].kind===27)continue;if(je.getLineAndCharacterOfPosition(te[Be].end).line!==Fe.line)return be(Fe,je,Ue);Fe=I(te[Be],je)}return-1}function be(te,Ze,je){const Ue=Ze.getPositionOfLineAndCharacter(te.line,0);return z(Ue,Ue+te.character,Ze,je)}function ae(te,Ze,je,Ue){let Je=0,Fe=0;for(let Be=te;Be<Ze;Be++){const $e=je.text.charCodeAt(Be);if(!Gm($e))break;$e===9?Fe+=Ue.tabSize+Fe%Ue.tabSize:Fe++,Je++}return{column:Fe,character:Je}}e.findFirstNonWhitespaceCharacterAndColumn=ae;function z(te,Ze,je,Ue){return ae(te,Ze,je,Ue).column}e.findFirstNonWhitespaceColumn=z;function ce(te,Ze,je,Ue,Je){const Fe=je?je.kind:0;switch(Ze.kind){case 241:case 260:case 228:case 261:case 263:case 262:case 206:case 238:case 265:case 207:case 184:case 197:case 186:case 266:case 293:case 292:case 214:case 208:case 210:case 211:case 240:case 274:case 250:case 224:case 204:case 203:case 283:case 286:case 282:case 291:case 170:case 176:case 177:case 166:case 181:case 182:case 193:case 212:case 220:case 276:case 272:case 278:case 273:case 169:return!0;case 257:case 299:case 223:if(!te.indentMultiLineObjectLiteralBeginningOnBlankLine&&Ue&&Fe===207)return Ae(Ue,je);if(Ze.kind===223&&Ue&&je&&Fe===281){const Be=Ue.getLineAndCharacterOfPosition(Yo(Ue.text,Ze.pos)).line,$e=Ue.getLineAndCharacterOfPosition(Yo(Ue.text,je.pos)).line;return Be!==$e}if(Ze.kind!==223)return!0;break;case 243:case 244:case 246:case 247:case 245:case 242:case 259:case 215:case 171:case 173:case 174:case 175:return Fe!==238;case 216:return Ue&&Fe===214?Ae(Ue,je):Fe!==238;case 275:return Fe!==276;case 269:return Fe!==270||!!je.namedBindings&&je.namedBindings.kind!==272;case 281:return Fe!==284;case 285:return Fe!==287;case 190:case 189:if(Fe===184||Fe===186)return!1;break}return Je}e.nodeWillIndentChild=ce;function he(te,Ze){switch(te){case 250:case 254:case 248:case 249:return Ze.kind!==238;default:return!1}}function Ee(te,Ze,je,Ue,Je=!1){return ce(te,Ze,je,Ue,!1)&&!(Je&&je&&he(je.kind,Ze))}e.shouldIndentChildNode=Ee;function Ae(te,Ze){const je=Yo(te.text,Ze.pos),Ue=te.getLineAndCharacterOfPosition(je).line,Je=te.getLineAndCharacterOfPosition(Ze.end).line;return Ue===Je}})(Pp||(Pp={}))}}),Rc={};B(Rc,{FormattingContext:()=>Aie,FormattingRequestKind:()=>xie,RuleAction:()=>Lie,RuleFlags:()=>Iie,SmartIndenter:()=>Pp,anyContext:()=>KO,createTextRangeWithKind:()=>mV,formatDocument:()=>det,formatNodeGivenIndentation:()=>yet,formatOnClosingCurly:()=>uet,formatOnEnter:()=>oet,formatOnOpeningCurly:()=>cet,formatOnSemicolon:()=>set,formatSelection:()=>fet,getAllRules:()=>aIe,getFormatContext:()=>$Ze,getFormattingScanner:()=>Cie,getIndentationString:()=>Vie,getRangeOfEnclosingComment:()=>kIe});var L8=b({"src/services/_namespaces/ts.formatting.ts"(){"use strict";bZe(),EZe(),TZe(),YZe(),aet(),Eet(),Tet()}}),Zr=b({"src/services/_namespaces/ts.ts"(){"use strict";Oa(),DF(),GGe(),_Ue(),gUe(),kUe(),wUe(),DUe(),BUe(),KUe(),XUe(),$Ue(),aVe(),sVe(),NVe(),MVe(),BVe(),VVe(),sje(),yje(),So(),fre(),gCe(),IKe(),NKe(),$Ke(),NEe(),tTe(),gXe(),AXe(),jh(),SQe(),XQe(),rZe(),oZe(),vZe(),L8()}});function xet(){return Wie!=null?Wie:Wie=new j_(pe)}function wIe(e,t,r,i,o){let s=t?"DeprecationError: ":"DeprecationWarning: ";return s+=`'${e}' `,s+=i?`has been deprecated since v${i}`:"is deprecated",s+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",s+=o?` ${Rh(o,[e],0)}`:"",s}function Aet(e,t,r,i){const o=wIe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function Cet(e,t,r,i){let o=!1;return()=>{DIe&&!o&&(R.log.warn(wIe(e,!1,t,r,i)),o=!0)}}function Let(e,t={}){var r,i;const o=typeof t.typeScriptVersion=="string"?new j_(t.typeScriptVersion):(r=t.typeScriptVersion)!=null?r:xet(),s=typeof t.errorAfter=="string"?new j_(t.errorAfter):t.errorAfter,c=typeof t.warnAfter=="string"?new j_(t.warnAfter):t.warnAfter,_=typeof t.since=="string"?new j_(t.since):(i=t.since)!=null?i:c,d=t.error||s&&o.compareTo(s)>=0,v=!c||o.compareTo(c)>=0;return d?Aet(e,s,_,t.message):v?Cet(e,s,_,t.message):co}function Iet(e,t){return function(){return e(),t.apply(this,arguments)}}function jie(e,t){var r;const i=Let((r=t==null?void 0:t.name)!=null?r:R.getFunctionName(e),t);return Iet(i,e)}var DIe,Wie,RIe=b({"src/deprecatedCompat/deprecate.ts"(){"use strict";gV(),DIe=!0}});function Hie(e,t,r,i){if(Object.defineProperty(s,"name",so(Li({},Object.getOwnPropertyDescriptor(s,"name")),{value:e})),i)for(const c of Object.keys(i)){const _=+c;!isNaN(_)&&Fs(t,`${_}`)&&(t[_]=jie(t[_],so(Li({},i[_]),{name:e})))}const o=ket(t,r);return s;function s(...c){const _=o(c),d=_!==void 0?t[_]:void 0;if(typeof d=="function")return d(...c);throw new TypeError("Invalid arguments")}}function ket(e,t){return r=>{for(let i=0;Fs(e,`${i}`)&&Fs(t,`${i}`);i++){const o=t[i];if(o(r))return i}}}function wet(e){return{overload:t=>({bind:r=>({finish:()=>Hie(e,t,r),deprecate:i=>({finish:()=>Hie(e,t,r,i)})})})}}var Det=b({"src/deprecatedCompat/deprecations.ts"(){"use strict";gV(),RIe()}}),Ret=b({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";gV(),RIe(),Ppe(e=>{const t=e.getIdentifierConstructor();Fs(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:jie(function(){return o1(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Fs(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:jie(function(){return this.flags&2048?!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."})})})}}),gV=b({"src/deprecatedCompat/_namespaces/ts.ts"(){"use strict";Oa(),Det(),Ret()}}),NIe={};B(NIe,{ANONYMOUS:()=>SB,AccessFlags:()=>VH,AssertionLevel:()=>dH,AssignmentDeclarationKind:()=>XH,AssignmentKind:()=>uK,Associativity:()=>fK,BreakpointResolver:()=>Bee,BuilderFileEmit:()=>V$,BuilderProgramKind:()=>j$,BuilderState:()=>rh,BundleFileSectionKind:()=>pz,CallHierarchy:()=>Lx,CharacterCodes:()=>sz,CheckFlags:()=>PH,CheckMode:()=>V9,ClassificationType:()=>JQ,ClassificationTypeNames:()=>qQ,CommentDirectiveType:()=>bH,Comparison:()=>ke,CompletionInfoFlags:()=>GQ,CompletionTriggerKind:()=>OQ,Completions:()=>Nx,ConfigFileProgramReloadLevel:()=>f$,ContextFlags:()=>LH,CoreServicesShimHostAdapter:()=>Fee,Debug:()=>R,DiagnosticCategory:()=>cD,Diagnostics:()=>m,DocumentHighlights:()=>CB,ElementFlags:()=>UH,EmitFlags:()=>pM,EmitHint:()=>dz,EmitOnly:()=>TH,EndOfLineState:()=>jQ,EnumKind:()=>MH,ExitStatus:()=>xH,ExportKind:()=>QZ,Extension:()=>lz,ExternalEmitHelpers:()=>uz,FileIncludeKind:()=>oM,FilePreprocessingDiagnosticsKind:()=>EH,FileSystemEntryKind:()=>bz,FileWatcherEventKind:()=>yz,FindAllReferences:()=>fl,FlattenLevel:()=>qY,FlowFlags:()=>lD,ForegroundColorEscapeSequences:()=>I$,FunctionFlags:()=>dK,GeneratedIdentifierFlags:()=>aM,GetLiteralTextFlags:()=>sK,GoToDefinition:()=>u8,HighlightSpanKind:()=>PQ,ImportKind:()=>$Z,ImportsNotUsedAsValues:()=>tz,IndentStyle:()=>FQ,IndexKind:()=>HH,InferenceFlags:()=>JH,InferencePriority:()=>qH,InlayHintKind:()=>MQ,InlayHints:()=>Cre,InternalEmitFlags:()=>cz,InternalSymbolName:()=>FH,InvalidatedProjectKind:()=>vQ,JsDoc:()=>I1,JsTyping:()=>c2,JsxEmit:()=>ez,JsxFlags:()=>yH,JsxReferenceKind:()=>jH,LanguageServiceMode:()=>DQ,LanguageServiceShimHostAdapter:()=>Pee,LanguageVariant:()=>az,LexicalEnvironmentFlags:()=>_z,ListFormat:()=>mz,LogLevel:()=>_H,MemberOverrideStatus:()=>AH,ModifierFlags:()=>rM,ModuleDetectionKind:()=>YH,ModuleInstanceState:()=>EY,ModuleKind:()=>dM,ModuleResolutionKind:()=>uD,ModuleSpecifierEnding:()=>SK,NavigateTo:()=>REe,NavigationBar:()=>eTe,NewLineKind:()=>nz,NodeBuilderFlags:()=>IH,NodeCheckFlags:()=>BH,NodeFactoryFlags:()=>kK,NodeFlags:()=>nM,NodeResolutionFeatures:()=>vY,ObjectFlags:()=>cM,OperationCanceledException:()=>VI,OperatorPrecedence:()=>_K,OrganizeImports:()=>ap,OrganizeImportsMode:()=>NQ,OuterExpressionKinds:()=>fz,OutliningElementsCollector:()=>Fre,OutliningSpanKind:()=>UQ,OutputFileType:()=>VQ,PackageJsonAutoImportPreference:()=>wQ,PackageJsonDependencyGroup:()=>kQ,PatternMatchKind:()=>wB,PollingInterval:()=>mM,PollingWatchKind:()=>ZH,PragmaKindFlags:()=>hz,PrivateIdentifierKind:()=>GK,ProcessLevel:()=>YY,QuotePreference:()=>JZ,RelationComparisonResult:()=>iM,Rename:()=>oV,ScriptElementKind:()=>HQ,ScriptElementKindModifier:()=>zQ,ScriptKind:()=>rz,ScriptSnapshot:()=>IQ,ScriptTarget:()=>iz,SemanticClassificationFormat:()=>RQ,SemanticMeaning:()=>qZ,SemicolonPreference:()=>BQ,SignatureCheckMode:()=>j9,SignatureFlags:()=>uM,SignatureHelp:()=>qO,SignatureKind:()=>WH,SmartSelectionRange:()=>pie,SnippetKind:()=>_M,SortKind:()=>cH,StructureIsReused:()=>SH,SymbolAccessibility:()=>DH,SymbolDisplay:()=>qy,SymbolDisplayPartKind:()=>ON,SymbolFlags:()=>sM,SymbolFormatFlags:()=>wH,SyntaxKind:()=>tM,SyntheticSymbolKind:()=>RH,Ternary:()=>KH,ThrottledCancellationToken:()=>Dee,TokenClass:()=>WQ,TokenFlags:()=>vH,TransformFlags:()=>fM,TypeFacts:()=>G9,TypeFlags:()=>lM,TypeFormatFlags:()=>kH,TypeMapKind:()=>zH,TypePredicateKind:()=>NH,TypeReferenceSerializationKind:()=>OH,TypeScriptServicesFactory:()=>xTe,UnionReduction:()=>CH,UpToDateStatusType:()=>iQ,VarianceFlags:()=>GH,Version:()=>j_,VersionRange:()=>VA,WatchDirectoryFlags:()=>oz,WatchDirectoryKind:()=>QH,WatchFileKind:()=>$H,WatchLogLevel:()=>_$,WatchType:()=>I_,accessPrivateIdentifier:()=>Eve,addEmitFlags:()=>cm,addEmitHelper:()=>KS,addEmitHelpers:()=>Oy,addInternalEmitFlags:()=>JS,addNodeFactoryPatcher:()=>zMe,addObjectAllocatorPatcher:()=>Ppe,addRange:()=>xi,addRelatedInfo:()=>$o,addSyntheticLeadingComment:()=>c6,addSyntheticTrailingComment:()=>o5,addToSeen:()=>Ip,advancedAsyncSuperHelper:()=>p6,affectsDeclarationPathOptionDeclarations:()=>$X,affectsEmitOptionDeclarations:()=>YX,allKeysStartWithDot:()=>w9,altDirectorySeparator:()=>ED,and:()=>z7,append:()=>Pn,appendIfUnique:()=>vy,arrayFrom:()=>Oo,arrayIsEqualTo:()=>Zp,arrayIsHomogeneous:()=>sme,arrayIsSorted:()=>Mue,arrayOf:()=>Gue,arrayReverseIterator:()=>qOe,arrayToMap:()=>Tb,arrayToMultiMap:()=>eD,arrayToNumericMap:()=>Vue,arraysEqual:()=>Jo,assertType:()=>t3e,assign:()=>Zw,assignHelper:()=>_5,asyncDelegator:()=>m5,asyncGeneratorHelper:()=>p5,asyncSuperHelper:()=>_6,asyncValues:()=>h5,attachFileToDiagnostics:()=>WS,awaitHelper:()=>XS,awaiterHelper:()=>y5,base64decode:()=>Cpe,base64encode:()=>Ape,binarySearch:()=>Rv,binarySearchKey:()=>fS,bindSourceFile:()=>Rye,breakIntoCharacterSpans:()=>_Ee,breakIntoWordSpans:()=>pEe,buildLinkParts:()=>Tbe,buildOpts:()=>h9,buildOverload:()=>wet,bundlerModuleNameResolver:()=>pye,canBeConvertedToAsync:()=>pee,canHaveDecorators:()=>_x,canHaveExportModifier:()=>$R,canHaveFlowNode:()=>mR,canHaveIllegalDecorators:()=>vX,canHaveIllegalModifiers:()=>Rhe,canHaveIllegalType:()=>MPe,canHaveIllegalTypeParameters:()=>Dhe,canHaveJSDoc:()=>hR,canHaveLocals:()=>Vm,canHaveModifiers:()=>np,canHaveSymbol:()=>Um,canJsonReportNoInputFiles:()=>H6,canProduceDiagnostics:()=>Q9,canUsePropertyAccess:()=>rK,canWatchDirectoryOrFile:()=>CN,cartesianProduct:()=>nde,cast:()=>lo,chainBundle:()=>rp,chainDiagnosticMessages:()=>Na,changeAnyExtension:()=>xz,changeCompilerHostLikeToUseCache:()=>EN,changeExtension:()=>Xb,changesAffectModuleResolution:()=>pq,changesAffectingProgramStructure:()=>$fe,childIsDecorated:()=>mk,classElementOrClassElementParameterIsDecorated:()=>Gq,classOrConstructorParameterIsDecorated:()=>Vb,classPrivateFieldGetHelper:()=>w5,classPrivateFieldInHelper:()=>R5,classPrivateFieldSetHelper:()=>D5,classicNameResolver:()=>wye,classifier:()=>YB,cleanExtendedConfigCache:()=>d$,clear:()=>Ta,clearMap:()=>o_,clearSharedExtendedConfigFileWatcher:()=>s0e,climbPastPropertyAccess:()=>OF,climbPastPropertyOrElementAccess:()=>V1e,clone:()=>tH,cloneCompilerOptions:()=>obe,closeFileWatcher:()=>Km,closeFileWatcherOf:()=>nh,codefix:()=>Qu,collapseTextChangeRangesAcrossMultipleVersions:()=>i7e,collectExternalModuleInfo:()=>BY,combine:()=>GA,combinePaths:()=>Fi,commentPragmas:()=>dD,commonOptionsWithBuild:()=>$6,commonPackageFolders:()=>hK,compact:()=>$w,compareBooleans:()=>Ab,compareDataObjects:()=>DJ,compareDiagnostics:()=>Gk,compareDiagnosticsSkipRelatedInformation:()=>PP,compareEmitHelpers:()=>Jme,compareNumberOfDirectorySeparators:()=>qR,comparePaths:()=>vT,comparePathsCaseInsensitive:()=>K3e,comparePathsCaseSensitive:()=>J3e,comparePatternKeys:()=>mY,compareProperties:()=>Yue,compareStringsCaseInsensitive:()=>V7,compareStringsCaseInsensitiveEslintCompatible:()=>Jue,compareStringsCaseSensitive:()=>ju,compareStringsCaseSensitiveUI:()=>nD,compareTextSpans:()=>U7,compareValues:()=>qs,compileOnSaveCommandLineOption:()=>J6,compilerOptionsAffectDeclarationPath:()=>Ype,compilerOptionsAffectEmit:()=>Xpe,compilerOptionsAffectSemanticDiagnostics:()=>Kpe,compilerOptionsDidYouMeanDiagnostics:()=>Z6,compilerOptionsIndicateEsModules:()=>vZ,compose:()=>QOe,computeCommonSourceDirectoryOfFilenames:()=>f0e,computeLineAndCharacterOfPosition:()=>AD,computeLineOfPosition:()=>zI,computeLineStarts:()=>SD,computePositionOfLineAndCharacter:()=>kz,computeSignature:()=>s2,computeSignatureWithDiagnostics:()=>P$,computeSuggestionDiagnostics:()=>dee,concatenate:()=>ba,concatenateDiagnosticMessageChains:()=>Vpe,consumesNodeCoreModules:()=>mB,contains:()=>Fr,containsIgnoredPath:()=>Jk,containsObjectRestOrSpread:()=>O6,containsParseError:()=>zD,containsPath:()=>Mv,convertCompilerOptionsForTelemetry:()=>j5e,convertCompilerOptionsFromJson:()=>M5e,convertJsonOption:()=>z6,convertToBase64:()=>xpe,convertToObject:()=>Lge,convertToObjectWorker:()=>j6,convertToOptionsWithAbsolutePaths:()=>FX,convertToRelativePath:()=>WI,convertToTSConfig:()=>E5e,convertTypeAcquisitionFromJson:()=>P5e,copyComments:()=>p2,copyEntries:()=>WD,copyLeadingComments:()=>bL,copyProperties:()=>nH,copyTrailingAsLeadingComments:()=>tO,copyTrailingComments:()=>J4,couldStartTrivia:()=>Ude,countWhere:()=>Hc,createAbstractBuilder:()=>WBe,createAccessorPropertyBackingField:()=>EX,createAccessorPropertyGetRedirector:()=>Vhe,createAccessorPropertySetRedirector:()=>jhe,createBaseNodeFactory:()=>wme,createBinaryExpressionTrampoline:()=>e9,createBindingHelper:()=>FC,createBuildInfo:()=>yN,createBuilderProgram:()=>F$,createBuilderProgramUsingProgramBuildInfo:()=>M0e,createBuilderStatusReporter:()=>X0e,createCacheWithRedirects:()=>sY,createCacheableExportInfoMap:()=>qbe,createCachedDirectoryStructureHost:()=>o0e,createClassifier:()=>Xbe,createCommentDirectivesMap:()=>l_e,createCompilerDiagnostic:()=>Gs,createCompilerDiagnosticForInvalidCustomType:()=>IX,createCompilerDiagnosticFromMessageChain:()=>MP,createCompilerHost:()=>_0e,createCompilerHostFromProgramHost:()=>Z$,createCompilerHostWorker:()=>h$,createDetachedDiagnostic:()=>LC,createDiagnosticCollection:()=>EC,createDiagnosticForFileFromMessageChain:()=>Rq,createDiagnosticForNode:()=>Nr,createDiagnosticForNodeArray:()=>iC,createDiagnosticForNodeArrayFromMessageChain:()=>XD,createDiagnosticForNodeFromMessageChain:()=>bg,createDiagnosticForNodeInSourceFile:()=>hd,createDiagnosticForRange:()=>Nq,createDiagnosticMessageChainFromDiagnostic:()=>y_e,createDiagnosticReporter:()=>LN,createDocumentPositionMapper:()=>_ve,createDocumentRegistry:()=>tee,createDocumentRegistryInternal:()=>nEe,createEmitAndSemanticDiagnosticsBuilderProgram:()=>W$,createEmitHelperFactory:()=>qme,createEmptyExports:()=>L6,createExpressionForJsxElement:()=>The,createExpressionForJsxFragment:()=>She,createExpressionForObjectLiteralElementLike:()=>xhe,createExpressionForPropertyName:()=>_X,createExpressionFromEntityName:()=>I6,createExternalHelpersImportDeclarationIfNeeded:()=>hX,createFileDiagnostic:()=>Pc,createFileDiagnosticFromMessageChain:()=>$M,createForOfBindingStatement:()=>fX,createGetCanonicalFileName:()=>lu,createGetSourceFile:()=>p$,createGetSymbolAccessibilityDiagnosticForNode:()=>Uy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>zve,createGetSymbolWalker:()=>Pye,createIncrementalCompilerHost:()=>nQ,createIncrementalProgram:()=>K0e,createInputFiles:()=>QMe,createInputFilesWithFilePaths:()=>LK,createInputFilesWithFileTexts:()=>IK,createJsxFactoryExpression:()=>dX,createLanguageService:()=>cTe,createLanguageServiceSourceFile:()=>UB,createMemberAccessForPropertyName:()=>QT,createModeAwareCache:()=>t2,createModeAwareCacheKey:()=>T4,createModuleResolutionCache:()=>x9,createModuleResolutionLoader:()=>T$,createModuleSpecifierResolutionHost:()=>Ex,createMultiMap:()=>v_,createNodeConverters:()=>Rme,createNodeFactory:()=>r6,createOptionNameMap:()=>o9,createOverload:()=>Hie,createPackageJsonImportFilter:()=>Y4,createPackageJsonInfo:()=>Obe,createParenthesizerRules:()=>Dme,createPatternMatcher:()=>sEe,createPrependNodes:()=>C$,createPrinter:()=>uE,createPrinterWithDefaults:()=>l$,createPrinterWithRemoveComments:()=>dE,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>c$,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>vN,createProgram:()=>cF,createProgramHost:()=>eQ,createPropertyNameNodeForIdentifierOrLiteral:()=>XP,createQueue:()=>rH,createRange:()=>S_,createRedirectedBuilderProgram:()=>U$,createResolutionCache:()=>P0e,createRuntimeTypeSerializer:()=>Cve,createScanner:()=>xy,createSemanticDiagnosticsBuilderProgram:()=>jBe,createSet:()=>YOe,createSolutionBuilder:()=>oGe,createSolutionBuilderHost:()=>rGe,createSolutionBuilderWithWatch:()=>sGe,createSolutionBuilderWithWatchHost:()=>iGe,createSortedArray:()=>YW,createSourceFile:()=>F6,createSourceMapGenerator:()=>ove,createSourceMapSource:()=>ZMe,createSuperAccessVariableStatement:()=>$9,createSymbolTable:()=>uo,createSymlinkCache:()=>$pe,createSystemWatchFunctions:()=>Nde,createTextChange:()=>zN,createTextChangeFromStartLength:()=>JF,createTextChangeRange:()=>wD,createTextRangeFromNode:()=>hZ,createTextRangeFromSpan:()=>qF,createTextSpan:()=>Mc,createTextSpanFromBounds:()=>Ec,createTextSpanFromNode:()=>fd,createTextSpanFromRange:()=>o0,createTextSpanFromStringLiteralLikeContent:()=>mZ,createTextWriter:()=>wR,createTokenRange:()=>LJ,createTypeChecker:()=>Zye,createTypeReferenceDirectiveResolutionCache:()=>A9,createTypeReferenceResolutionLoader:()=>sF,createUnderscoreEscapedMultiMap:()=>Wue,createUnparsedSourceFile:()=>CK,createWatchCompilerHost:()=>QBe,createWatchCompilerHostOfConfigFile:()=>q0e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>J0e,createWatchFactory:()=>Q$,createWatchHost:()=>$$,createWatchProgram:()=>ZBe,createWatchStatusReporter:()=>B0e,createWriteFileMeasuringIO:()=>m$,declarationNameToString:()=>Ds,decodeMappings:()=>MY,decodedTextSpanIntersectsWith:()=>CM,decorateHelper:()=>l5,deduplicate:()=>BA,defaultIncludeSpec:()=>v9,defaultInitCompilerOptions:()=>y9,defaultMaximumTruncationLength:()=>e6,detectSortCaseSensitivity:()=>F7,diagnosticCategoryName:()=>eM,diagnosticToString:()=>Sx,directoryProbablyExists:()=>om,directorySeparator:()=>Bs,displayPart:()=>Od,displayPartsToString:()=>oTe,disposeEmitNodes:()=>RK,documentSpansEqual:()=>tUe,dumpTracingLegend:()=>Ade,elementAt:()=>Ty,elideNodes:()=>Uhe,emitComments:()=>dpe,emitDetachedComments:()=>fpe,emitFiles:()=>eF,emitFilesAndReportErrors:()=>TF,emitFilesAndReportErrorsAndGetExitStatus:()=>W0e,emitModuleKindIsNonNodeESM:()=>FJ,emitNewLineBeforeLeadingCommentOfPosition:()=>upe,emitNewLineBeforeLeadingComments:()=>lpe,emitNewLineBeforeLeadingCommentsOfPosition:()=>cpe,emitSkippedWithNoDiagnostics:()=>gF,emitUsingBuildInfo:()=>a0e,emptyArray:()=>it,emptyFileSystemEntries:()=>i5,emptyMap:()=>K7,emptyOptions:()=>mm,emptySet:()=>ade,endsWith:()=>oc,ensurePathIsNonModuleName:()=>Db,ensureScriptKind:()=>HP,ensureTrailingDirectorySeparator:()=>Wu,entityNameToString:()=>Rf,enumerateInsertsAndDeletes:()=>tde,equalOwnProperties:()=>Uue,equateStringsCaseInsensitive:()=>pS,equateStringsCaseSensitive:()=>mS,equateValues:()=>r1,esDecorateHelper:()=>d5,escapeJsxAttributeString:()=>lJ,escapeLeadingUnderscores:()=>cl,escapeNonAsciiString:()=>IR,escapeSnippetText:()=>HT,escapeString:()=>FS,every:()=>Qn,expandPreOrPostfixIncrementOrDecrementExpression:()=>K5,explainFiles:()=>j0e,explainIfFileIsRedirectAndImpliedFormat:()=>J$,exportAssignmentIsAlias:()=>gC,exportStarHelper:()=>k5,expressionResultIsUnused:()=>cme,extend:()=>G7,extendsHelper:()=>v5,extensionFromPath:()=>XR,extensionIsTS:()=>qP,externalHelpersModuleNameText:()=>g1,factory:()=>O,fileExtensionIs:()=>_c,fileExtensionIsOneOf:()=>Ic,fileIncludeReasonToDiagnostics:()=>Y$,filter:()=>ur,filterMutate:()=>Ws,filterSemanticDiagnostics:()=>uF,find:()=>$t,findAncestor:()=>rr,findBestPatternMatch:()=>oH,findChildOfKind:()=>Es,findComputedPropertyNameCacheAssignment:()=>n9,findConfigFile:()=>d0e,findContainingList:()=>GF,findDiagnosticForNode:()=>Pbe,findFirstNonJsxWhitespaceToken:()=>$1e,findIndex:()=>ii,findLast:()=>yi,findLastIndex:()=>va,findListItemInfo:()=>z1e,findMap:()=>Mo,findModifier:()=>gL,findNextToken:()=>f2,findPackageJson:()=>Rbe,findPackageJsons:()=>GZ,findPrecedingMatchingToken:()=>HF,findPrecedingToken:()=>Dc,findSuperStatementIndex:()=>K9,findTokenOnLeftOfPosition:()=>jF,findUseStrictPrologue:()=>mX,first:()=>ds,firstDefined:()=>qt,firstDefinedIterator:()=>Xn,firstIterator:()=>Bue,firstOrOnly:()=>jZ,firstOrUndefined:()=>tu,firstOrUndefinedIterator:()=>B7,fixupCompilerOptions:()=>mee,flatMap:()=>ji,flatMapIterator:()=>xp,flatMapToMutable:()=>bc,flatten:()=>Ha,flattenCommaList:()=>Whe,flattenDestructuringAssignment:()=>i2,flattenDestructuringBinding:()=>lE,flattenDiagnosticMessageText:()=>i0,forEach:()=>Ie,forEachAncestor:()=>Qfe,forEachAncestorDirectory:()=>pg,forEachChild:()=>Pa,forEachChildRecursively:()=>P6,forEachEmittedFile:()=>i$,forEachEnclosingBlockScopeContainer:()=>h_e,forEachEntry:()=>ff,forEachExternalModuleToImportFrom:()=>YZ,forEachImportClauseDeclaration:()=>vP,forEachKey:()=>lk,forEachLeadingCommentRange:()=>CD,forEachNameInAccessChainWalkingLeft:()=>mMe,forEachResolvedProjectReference:()=>g0e,forEachReturnStatement:()=>wT,forEachRight:()=>xt,forEachTrailingCommentRange:()=>LD,forEachUnique:()=>SZ,forEachYieldExpression:()=>b_e,forSomeAncestorDirectory:()=>pMe,formatColorAndReset:()=>fE,formatDiagnostic:()=>g$,formatDiagnostics:()=>bBe,formatDiagnosticsWithColorAndContext:()=>h0e,formatGeneratedName:()=>ZT,formatGeneratedNamePart:()=>eL,formatLocation:()=>y$,formatMessage:()=>PJ,formatStringFromArgs:()=>Rh,formatting:()=>Rc,fullTripleSlashAMDReferencePathRegEx:()=>cK,fullTripleSlashReferencePathRegEx:()=>lK,generateDjb2Hash:()=>fD,generateTSConfig:()=>C5e,generatorHelper:()=>C5,getAdjustedReferenceLocation:()=>aZ,getAdjustedRenameLocation:()=>VF,getAliasDeclarationFromName:()=>Zq,getAllAccessorDeclarations:()=>UT,getAllDecoratorsOfClass:()=>jY,getAllDecoratorsOfClassElement:()=>Y9,getAllJSDocTags:()=>Wz,getAllJSDocTagsOfKind:()=>_7e,getAllKeys:()=>JOe,getAllProjectOutputs:()=>Z9,getAllSuperTypeNodes:()=>bk,getAllUnscopedEmitHelpers:()=>BK,getAllowJSCompilerOption:()=>jR,getAllowSyntheticDefaultImports:()=>jT,getAncestor:()=>f1,getAnyExtensionFromPath:()=>hM,getAreDeclarationMapsEnabled:()=>GP,getAssignedExpandoInitializer:()=>wS,getAssignedName:()=>Bz,getAssignmentDeclarationKind:()=>wl,getAssignmentDeclarationPropertyAccessKind:()=>lR,getAssignmentTargetKind:()=>MT,getAutomaticTypeDirectiveNames:()=>S9,getBaseFileName:()=>Eu,getBinaryOperatorPrecedence:()=>CR,getBuildInfo:()=>tF,getBuildInfoFileVersionMap:()=>G$,getBuildInfoText:()=>i0e,getBuildOrderFromAnyBuildOrder:()=>LF,getBuilderCreationParameters:()=>vF,getBuilderFileEmit:()=>a0,getCheckFlags:()=>Dl,getClassExtendsHeritageElement:()=>Wb,getClassLikeDeclarationOfSymbol:()=>Cg,getCombinedLocalAndExportSymbolFlags:()=>Mk,getCombinedModifierFlags:()=>Cy,getCombinedNodeFlags:()=>Ap,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Pz,getCommentRange:()=>Ym,getCommonSourceDirectory:()=>gN,getCommonSourceDirectoryOfConfig:()=>M4,getCompilerOptionValue:()=>UP,getCompilerOptionsDiffValue:()=>A5e,getConditions:()=>sL,getConfigFileParsingDiagnostics:()=>o2,getConstantValue:()=>Gme,getContainerNode:()=>d2,getContainingClass:()=>wc,getContainingClassStaticBlock:()=>F7e,getContainingFunction:()=>Nf,getContainingFunctionDeclaration:()=>I_e,getContainingFunctionOrClassStaticBlock:()=>oP,getContainingNodeArray:()=>ume,getContainingObjectLiteralElement:()=>cO,getContextualTypeFromParent:()=>aB,getContextualTypeFromParentOrAncestorTypeNode:()=>UF,getCurrentTime:()=>wN,getDeclarationDiagnostics:()=>qve,getDeclarationEmitExtensionForPath:()=>fJ,getDeclarationEmitOutputFilePath:()=>npe,getDeclarationEmitOutputFilePathWorker:()=>dJ,getDeclarationFromName:()=>vR,getDeclarationModifierFlagsFromSymbol:()=>a_,getDeclarationOfKind:()=>Il,getDeclarationsOfKind:()=>Xfe,getDeclaredExpandoInitializer:()=>iR,getDecorators:()=>Fv,getDefaultCompilerOptions:()=>GB,getDefaultExportInfoWorker:()=>AB,getDefaultFormatCodeSettings:()=>P1e,getDefaultLibFileName:()=>SM,getDefaultLibFilePath:()=>RVe,getDefaultLikeExportInfo:()=>xB,getDiagnosticText:()=>v5e,getDiagnosticsWithinSpan:()=>Fbe,getDirectoryPath:()=>vi,getDocumentPositionMapper:()=>bEe,getESModuleInterop:()=>$_,getEditsForFileRename:()=>iEe,getEffectiveBaseTypeNode:()=>am,getEffectiveConstraintOfTypeParameter:()=>JA,getEffectiveContainerForJSDocTemplateTag:()=>bP,getEffectiveImplementsTypeNodes:()=>yC,getEffectiveInitializer:()=>rR,getEffectiveJSDocHost:()=>hC,getEffectiveModifierFlags:()=>zu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>hpe,getEffectiveModifierFlagsNoCache:()=>ype,getEffectiveReturnTypeNode:()=>Lp,getEffectiveSetAccessorTypeAnnotationNode:()=>spe,getEffectiveTypeAnnotationNode:()=>iu,getEffectiveTypeParameterDeclarations:()=>Gv,getEffectiveTypeRoots:()=>nN,getElementOrPropertyAccessArgumentExpressionOrName:()=>yP,getElementOrPropertyAccessName:()=>Sg,getElementsOfBindingOrAssignmentPattern:()=>ZC,getEmitDeclarations:()=>Q_,getEmitFlags:()=>Eo,getEmitHelpers:()=>s5,getEmitModuleDetectionKind:()=>zpe,getEmitModuleKind:()=>uu,getEmitModuleResolutionKind:()=>El,getEmitScriptTarget:()=>ns,getEnclosingBlockScopeContainer:()=>Hm,getEncodedSemanticClassifications:()=>ZZ,getEncodedSyntacticClassifications:()=>eee,getEndLinePosition:()=>qD,getEntityNameFromTypeNode:()=>ZD,getEntrypointsFromPackageJsonInfo:()=>d9e,getErrorCountForSummary:()=>bF,getErrorSpanForNode:()=>Gb,getErrorSummaryText:()=>U0e,getEscapedTextOfIdentifierOrLiteral:()=>Tk,getExpandoInitializer:()=>u1,getExportAssignmentExpression:()=>eJ,getExportInfoMap:()=>rO,getExportNeedsImportStarHelper:()=>mve,getExpressionAssociativity:()=>iJ,getExpressionPrecedence:()=>AP,getExternalHelpersModuleName:()=>w6,getExternalModuleImportEqualsDeclarationExpression:()=>gk,getExternalModuleName:()=>fC,getExternalModuleNameFromDeclaration:()=>epe,getExternalModuleNameFromPath:()=>uJ,getExternalModuleNameLiteral:()=>fx,getExternalModuleRequireArgument:()=>Vq,getFallbackOptions:()=>bN,getFileEmitOutput:()=>b0e,getFileMatcherPatterns:()=>Vk,getFileNamesFromConfigSpecs:()=>q6,getFileWatcherEventKind:()=>kde,getFilesInErrorForSummary:()=>EF,getFirstConstructorWithBody:()=>Dh,getFirstIdentifier:()=>Of,getFirstNonSpaceCharacterPosition:()=>Cbe,getFirstProjectOutput:()=>o$,getFixableErrorSpanExpression:()=>VZ,getFormatCodeSettingsForWriting:()=>vB,getFullWidth:()=>HD,getFunctionFlags:()=>Jc,getHeritageClause:()=>TR,getHostSignatureFromJSDoc:()=>d1,getIdentifierAutoGenerate:()=>aPe,getIdentifierGeneratedImportReference:()=>zme,getIdentifierTypeArguments:()=>zT,getImmediatelyInvokedFunctionExpression:()=>RT,getImpliedNodeFormatForFile:()=>lF,getImpliedNodeFormatForFileWorker:()=>x$,getImportNeedsImportDefaultHelper:()=>FY,getImportNeedsImportStarHelper:()=>J9,getIndentSize:()=>TC,getIndentString:()=>CP,getInitializedVariables:()=>Ok,getInitializerOfBinaryExpression:()=>Jq,getInitializerOfBindingOrAssignmentElement:()=>R6,getInterfaceBaseTypeNodes:()=>Ek,getInternalEmitFlags:()=>z_,getInvokedExpression:()=>cP,getIsolatedModules:()=>Y_,getJSDocAugmentsTag:()=>gfe,getJSDocClassTag:()=>Gz,getJSDocCommentRanges:()=>Mq,getJSDocCommentsAndTags:()=>Xq,getJSDocDeprecatedTag:()=>Uz,getJSDocDeprecatedTagNoCache:()=>xfe,getJSDocEnumTag:()=>Vz,getJSDocHost:()=>MS,getJSDocImplementsTags:()=>yfe,getJSDocOverrideTagNoCache:()=>Sfe,getJSDocParameterTags:()=>QI,getJSDocParameterTagsNoCache:()=>ffe,getJSDocPrivateTag:()=>l7e,getJSDocPrivateTagNoCache:()=>bfe,getJSDocProtectedTag:()=>c7e,getJSDocProtectedTagNoCache:()=>Efe,getJSDocPublicTag:()=>s7e,getJSDocPublicTagNoCache:()=>vfe,getJSDocReadonlyTag:()=>u7e,getJSDocReadonlyTagNoCache:()=>Tfe,getJSDocReturnTag:()=>Afe,getJSDocReturnType:()=>RD,getJSDocRoot:()=>vk,getJSDocSatisfiesExpressionType:()=>oK,getJSDocSatisfiesTag:()=>jz,getJSDocTags:()=>Nb,getJSDocTagsNoCache:()=>f7e,getJSDocTemplateTag:()=>d7e,getJSDocThisTag:()=>IM,getJSDocType:()=>Bv,getJSDocTypeAliasName:()=>yX,getJSDocTypeAssertionType:()=>Y5,getJSDocTypeParameterDeclarations:()=>kP,getJSDocTypeParameterTags:()=>pfe,getJSDocTypeParameterTagsNoCache:()=>mfe,getJSDocTypeTag:()=>Rb,getJSXImplicitImportBase:()=>VP,getJSXRuntimeImport:()=>jP,getJSXTransformEnabled:()=>GJ,getKeyForCompilerOptions:()=>oY,getLanguageVariant:()=>GR,getLastChild:()=>RJ,getLeadingCommentRanges:()=>xh,getLeadingCommentRangesOfNode:()=>Oq,getLeftmostAccessExpression:()=>Fk,getLeftmostExpression:()=>Bk,getLineAndCharacterOfPosition:()=>ll,getLineInfo:()=>sve,getLineOfLocalPosition:()=>Ck,getLineOfLocalPositionFromLineMap:()=>BT,getLineStartPositionForPosition:()=>k_,getLineStarts:()=>mg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Dpe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>wpe,getLinesBetweenPositions:()=>qI,getLinesBetweenRangeEndAndRangeStart:()=>IJ,getLinesBetweenRangeEndPositions:()=>uMe,getLiteralText:()=>c_e,getLocalNameForExternalImport:()=>QC,getLocalSymbolForExportDefault:()=>xC,getLocaleSpecificMessage:()=>Po,getLocaleTimeString:()=>IN,getMappedContextSpan:()=>mbe,getMappedDocumentSpan:()=>xZ,getMappedLocation:()=>$N,getMatchedFileSpec:()=>K$,getMatchedIncludeSpec:()=>X$,getMeaningFromDeclaration:()=>MN,getMeaningFromLocation:()=>u2,getMembersOfDeclaration:()=>E_e,getModeForFileReference:()=>TN,getModeForResolutionAtIndex:()=>v$,getModeForUsageLocation:()=>Dp,getModifiedTime:()=>ES,getModifiers:()=>ET,getModuleInstanceState:()=>wg,getModuleNameStringLiteralAt:()=>fF,getModuleSpecifierEndingPreference:()=>JJ,getModuleSpecifierResolverHost:()=>bZ,getNameForExportedSymbol:()=>hB,getNameFromIndexInfo:()=>g_e,getNameFromPropertyName:()=>KN,getNameOfAccessExpression:()=>Ope,getNameOfCompilerOptionValue:()=>MX,getNameOfDeclaration:()=>ka,getNameOfExpando:()=>zq,getNameOfJSDocTypedef:()=>ufe,getNameOrArgument:()=>sR,getNameTable:()=>Iee,getNamesForExportedSymbol:()=>Gbe,getNamespaceDeclarationNode:()=>_C,getNewLineCharacter:()=>m1,getNewLineKind:()=>nO,getNewLineOrDefaultFromHost:()=>x1,getNewTargetContainer:()=>w_e,getNextJSDocCommentLocation:()=>Yq,getNodeForGeneratedName:()=>t9,getNodeId:()=>hs,getNodeKind:()=>_E,getNodeModifiers:()=>W4,getNodeModulePathParts:()=>nK,getNonAssignedNameOfDeclaration:()=>Fz,getNonAssignmentOperatorForCompoundAssignment:()=>w4,getNonAugmentationDeclaration:()=>Aq,getNonDecoratorTokenPosOfNode:()=>vq,getNormalizedAbsolutePath:()=>Ma,getNormalizedAbsolutePathWithoutRoot:()=>Sz,getNormalizedPathComponents:()=>vD,getObjectFlags:()=>ni,getOperator:()=>oJ,getOperatorAssociativity:()=>aJ,getOperatorPrecedence:()=>AR,getOptionFromName:()=>DX,getOptionsNameMap:()=>rL,getOrCreateEmitNode:()=>ud,getOrCreateExternalHelpersModuleNameIfNeeded:()=>khe,getOrUpdate:()=>Eb,getOriginalNode:()=>Cl,getOriginalNodeId:()=>Nl,getOriginalSourceFile:()=>$7e,getOutputDeclarationFileName:()=>O4,getOutputExtension:()=>a$,getOutputFileNames:()=>aBe,getOutputPathsFor:()=>N4,getOutputPathsForBundle:()=>R4,getOwnEmitOutputFilePath:()=>tpe,getOwnKeys:()=>fg,getOwnValues:()=>_S,getPackageJsonInfo:()=>gx,getPackageJsonTypesVersionsPaths:()=>T9,getPackageJsonsVisibleToFile:()=>Nbe,getPackageNameFromTypesPackageName:()=>oN,getPackageScopeForPath:()=>I9,getParameterSymbolFromJSDoc:()=>gR,getParameterTypeNode:()=>UMe,getParentNodeInSpan:()=>YN,getParseTreeNode:()=>Ea,getParsedCommandLineOfConfigFile:()=>G6,getPathComponents:()=>md,getPathComponentsRelativeTo:()=>Lz,getPathFromPathComponents:()=>wb,getPathUpdater:()=>nee,getPathsBasePath:()=>_J,getPatternFromSpec:()=>WJ,getPendingEmitKind:()=>uL,getPositionOfLineAndCharacter:()=>xD,getPossibleGenericSignatures:()=>cZ,getPossibleOriginalInputExtensionForExtension:()=>rpe,getPossibleTypeArgumentsInfo:()=>uZ,getPreEmitDiagnostics:()=>vBe,getPrecedingNonSpaceCharacterPosition:()=>wZ,getPrivateIdentifier:()=>WY,getProperties:()=>UY,getProperty:()=>Qw,getPropertyArrayElementValue:()=>L_e,getPropertyAssignment:()=>lC,getPropertyAssignmentAliasLikeExpression:()=>K_e,getPropertyNameForPropertyNameNode:()=>Hb,getPropertyNameForUniqueESSymbol:()=>X7e,getPropertyNameOfBindingOrAssignmentElement:()=>gX,getPropertySymbolFromBindingElement:()=>tB,getPropertySymbolsFromContextualType:()=>VB,getQuoteFromPreference:()=>_be,getQuotePreference:()=>Np,getRangesWhere:()=>XW,getRefactorContextSpan:()=>Tx,getReferencedFileLocation:()=>P4,getRegexFromPattern:()=>Xv,getRegularExpressionForWildcard:()=>Uk,getRegularExpressionsForWildcards:()=>WP,getRelativePathFromDirectory:()=>Bm,getRelativePathFromFile:()=>bD,getRelativePathToDirectoryOrUrl:()=>TS,getRenameLocation:()=>eO,getReplacementSpanForContextToken:()=>pZ,getResolutionDiagnostic:()=>L$,getResolutionModeOverrideForClause:()=>yx,getResolveJsonModule:()=>WT,getResolvePackageJsonExports:()=>BJ,getResolvePackageJsonImports:()=>CMe,getResolvedExternalModuleName:()=>LP,getResolvedModule:()=>tC,getResolvedTypeReferenceDirective:()=>x7e,getRestIndicatorOfBindingOrAssignmentElement:()=>Q5,getRestParameterElementType:()=>Fq,getRightMostAssignedExpression:()=>aR,getRootDeclaration:()=>zm,getRootLength:()=>nm,getScriptKind:()=>kZ,getScriptKindFromFileName:()=>qJ,getScriptTargetFeatures:()=>bq,getSelectedEffectiveModifierFlags:()=>US,getSelectedSyntacticModifierFlags:()=>mpe,getSemanticClassifications:()=>Ybe,getSemanticJsxChildren:()=>LR,getSetAccessorTypeAnnotationNode:()=>ape,getSetAccessorValueParameter:()=>Lk,getSetExternalModuleIndicator:()=>UR,getShebang:()=>EM,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Kq,getSingleVariableOfVariableStatement:()=>mC,getSnapshotText:()=>XF,getSnippetElement:()=>OK,getSourceFileOfModule:()=>WM,getSourceFileOfNode:()=>Zn,getSourceFilePathInNewDir:()=>IP,getSourceFilePathInNewDirWorker:()=>mJ,getSourceFileVersionAsHashFromText:()=>SF,getSourceFilesToEmit:()=>pJ,getSourceMapRange:()=>y1,getSourceMapper:()=>vEe,getSourceTextOfNodeFromSourceFile:()=>Fb,getSpanOfTokenAtPosition:()=>wy,getSpellingSuggestion:()=>FI,getStartPositionOfLine:()=>Hv,getStartPositionOfRange:()=>Nk,getStartsOnNewLine:()=>l6,getStaticPropertiesAndClassStaticBlock:()=>X9,getStrictOptionValue:()=>A_,getStringComparer:()=>j7,getSuperCallFromStatement:()=>GY,getSuperContainer:()=>$D,getSupportedCodeFixes:()=>sTe,getSupportedExtensions:()=>jk,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>HR,getSwitchedType:()=>PZ,getSymbolId:()=>To,getSymbolNameForPrivateIdentifier:()=>SR,getSymbolTarget:()=>xbe,getSyntacticClassifications:()=>eEe,getSyntacticModifierFlags:()=>Jv,getSyntacticModifierFlagsNoCache:()=>EJ,getSynthesizedDeepClone:()=>Ol,getSynthesizedDeepCloneWithReplacements:()=>ZN,getSynthesizedDeepClones:()=>pE,getSynthesizedDeepClonesWithReplacements:()=>DZ,getSyntheticLeadingComments:()=>MC,getSyntheticTrailingComments:()=>u6,getTargetLabel:()=>MF,getTargetOfBindingOrAssignmentElement:()=>t0,getTemporaryModuleResolutionState:()=>L9,getTextOfConstantValue:()=>u_e,getTextOfIdentifierOrLiteral:()=>K_,getTextOfJSDocComment:()=>ND,getTextOfNode:()=>kc,getTextOfNodeFromSourceText:()=>dk,getTextOfPropertyName:()=>rC,getThisContainer:()=>kd,getThisParameter:()=>zb,getTokenAtPosition:()=>la,getTokenPosOfNode:()=>IT,getTokenSourceMapRange:()=>rPe,getTouchingPropertyName:()=>Bf,getTouchingToken:()=>j4,getTrailingCommentRanges:()=>i1,getTrailingSemicolonDeferringWriter:()=>cJ,getTransformFlagsSubtreeExclusions:()=>Ome,getTransformers:()=>n$,getTsBuildInfoEmitOutputFilePath:()=>Vy,getTsConfigObjectLiteralExpression:()=>pk,getTsConfigPropArray:()=>YD,getTsConfigPropArrayElementValue:()=>aP,getTypeAnnotationNode:()=>ope,getTypeArgumentOrTypeParameterList:()=>rbe,getTypeKeywordOfTypeOnlyImport:()=>TZ,getTypeNode:()=>Wme,getTypeNodeIfAccessible:()=>X4,getTypeParameterFromJsDoc:()=>j_e,getTypeParameterOwner:()=>a7e,getTypesPackageName:()=>D9,getUILocale:()=>Kue,getUniqueName:()=>m2,getUniqueSymbolId:()=>Abe,getUseDefineForClassFields:()=>WR,getWatchErrorSummaryDiagnosticMessage:()=>z$,getWatchFactory:()=>u0e,group:()=>PI,groupBy:()=>jue,guessIndentation:()=>Kfe,handleNoEmitOptions:()=>A$,hasAbstractModifier:()=>Jb,hasAccessorModifier:()=>qm,hasAmbientModifier:()=>vJ,hasChangesInResolutions:()=>hq,hasChildOfKind:()=>VN,hasContextSensitiveParameters:()=>KP,hasDecorators:()=>i_,hasDocComment:()=>nbe,hasDynamicName:()=>qv,hasEffectiveModifier:()=>Hd,hasEffectiveModifiers:()=>wP,hasEffectiveReadonlyModifier:()=>Ik,hasExtension:()=>WA,hasIndexSignature:()=>MZ,hasInitializer:()=>Wv,hasInvalidEscape:()=>sJ,hasJSDocNodes:()=>Df,hasJSDocParameterTags:()=>hfe,hasJSFileExtension:()=>zS,hasJsonModuleEmitEnabled:()=>FP,hasOnlyExpressionInitializer:()=>CT,hasOverrideModifier:()=>yJ,hasPossibleExternalModuleReference:()=>m_e,hasProperty:()=>Fs,hasPropertyAccessExpressionWithName:()=>PN,hasQuestionToken:()=>OS,hasRecordedExternalHelpers:()=>Ihe,hasRestParameter:()=>uq,hasScopeMarker:()=>jfe,hasStaticModifier:()=>Tc,hasSyntacticModifier:()=>Qr,hasSyntacticModifiers:()=>ppe,hasTSFileExtension:()=>zR,hasTabstop:()=>fme,hasTrailingDirectorySeparator:()=>Nv,hasType:()=>UM,hasTypeArguments:()=>z7e,hasZeroOrOneAsteriskCharacter:()=>UJ,helperString:()=>FK,hostGetCanonicalFileName:()=>_1,hostUsesCaseSensitiveFileNames:()=>DR,idText:()=>Pr,identifierIsThisKeyword:()=>gJ,identifierToKeywordKind:()=>o1,identity:()=>gl,identitySourceMapConsumer:()=>q9,ignoreSourceNewlines:()=>PK,ignoredPaths:()=>gD,importDefaultHelper:()=>I5,importFromModuleSpecifier:()=>fR,importNameElisionDisabled:()=>BP,importStarHelper:()=>f6,indexOfAnyCharCode:()=>Lc,indexOfNode:()=>nC,indicesOf:()=>Xw,inferredTypesContainingFile:()=>mF,insertImports:()=>nB,insertLeadingStatement:()=>LPe,insertSorted:()=>Dv,insertStatementAfterCustomPrologue:()=>Pb,insertStatementAfterStandardPrologue:()=>I7e,insertStatementsAfterCustomPrologue:()=>gq,insertStatementsAfterStandardPrologue:()=>Wm,intersperse:()=>sa,introducesArgumentsExoticObject:()=>A_e,inverseJsxOptionMap:()=>b4,isAbstractConstructorSymbol:()=>Rpe,isAbstractModifier:()=>nhe,isAccessExpression:()=>ul,isAccessibilityModifier:()=>_Z,isAccessor:()=>s1,isAccessorModifier:()=>ihe,isAliasSymbolDeclaration:()=>q7e,isAliasableExpression:()=>ER,isAmbientModule:()=>Hu,isAmbientPropertyDeclaration:()=>Lq,isAnonymousFunctionDefinition:()=>Sk,isAnyDirectorySeparator:()=>Ez,isAnyImportOrBareOrAccessedRequire:()=>p_e,isAnyImportOrReExport:()=>JD,isAnyImportSyntax:()=>kT,isAnySupportedFileExtension:()=>MMe,isApplicableVersionedTypesKey:()=>aN,isArgumentExpressionOfElementAccess:()=>ZQ,isArray:()=>ja,isArrayBindingElement:()=>PM,isArrayBindingOrAssignmentElement:()=>BD,isArrayBindingOrAssignmentPattern:()=>tq,isArrayBindingPattern:()=>WC,isArrayLiteralExpression:()=>Ju,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Wy,isArrayTypeNode:()=>zK,isArrowFunction:()=>Xs,isAsExpression:()=>v6,isAssertClause:()=>j5,isAssertEntry:()=>fhe,isAssertionExpression:()=>AT,isAssertionKey:()=>kfe,isAssertsKeyword:()=>ehe,isAssignmentDeclaration:()=>yk,isAssignmentExpression:()=>cd,isAssignmentOperator:()=>Dy,isAssignmentPattern:()=>ak,isAssignmentTarget:()=>wh,isAsteriskToken:()=>m6,isAsyncFunction:()=>bC,isAsyncModifier:()=>t4,isAutoAccessorPropertyDeclaration:()=>df,isAwaitExpression:()=>zC,isAwaitKeyword:()=>HK,isBigIntLiteral:()=>N5,isBinaryExpression:()=>Tr,isBinaryOperatorToken:()=>Bhe,isBindableObjectDefinePropertyCall:()=>DS,isBindableStaticAccessExpression:()=>OT,isBindableStaticElementAccessExpression:()=>gP,isBindableStaticNameExpression:()=>RS,isBindingElement:()=>ms,isBindingElementOfBareOrAccessedRequire:()=>N_e,isBindingName:()=>Ch,isBindingOrAssignmentElement:()=>Ofe,isBindingOrAssignmentPattern:()=>PD,isBindingPattern:()=>$a,isBlock:()=>fo,isBlockOrCatchScoped:()=>Eq,isBlockScope:()=>Iq,isBlockScopedContainerTopLevel:()=>__e,isBooleanLiteral:()=>wfe,isBreakOrContinueStatement:()=>nk,isBreakStatement:()=>pPe,isBuildInfoFile:()=>$ve,isBuilderProgram:()=>V0e,isBundle:()=>ZK,isBundleFileTextLike:()=>Mpe,isCallChain:()=>TT,isCallExpression:()=>io,isCallExpressionTarget:()=>KQ,isCallLikeExpression:()=>LS,isCallOrNewExpression:()=>vg,isCallOrNewExpressionTarget:()=>XQ,isCallSignatureDeclaration:()=>GC,isCallToHelper:()=>e4,isCaseBlock:()=>S6,isCaseClause:()=>f4,isCaseKeyword:()=>ahe,isCaseOrDefaultClause:()=>sq,isCatchClause:()=>JC,isCatchClauseVariableDeclaration:()=>dme,isCatchClauseVariableDeclarationOrBindingElement:()=>Tq,isCheckJsEnabledForFile:()=>YR,isChildOfNodeWithKind:()=>Pq,isCircularBuildOrder:()=>bx,isClassDeclaration:()=>Bc,isClassElement:()=>qc,isClassExpression:()=>Ku,isClassLike:()=>_i,isClassMemberModifier:()=>Qz,isClassOrTypeElement:()=>MM,isClassStaticBlockDeclaration:()=>Rl,isCollapsedRange:()=>cMe,isColonToken:()=>$me,isCommaExpression:()=>k6,isCommaListExpression:()=>c4,isCommaSequence:()=>g4,isCommaToken:()=>Yme,isComment:()=>zF,isCommonJsExportPropertyAssignment:()=>rP,isCommonJsExportedExpression:()=>S_e,isCompoundAssignment:()=>_N,isComputedNonLiteralName:()=>KD,isComputedPropertyName:()=>Cs,isConciseBody:()=>BM,isConditionalExpression:()=>qC,isConditionalTypeNode:()=>VC,isConstTypeReference:()=>yg,isConstructSignatureDeclaration:()=>g6,isConstructorDeclaration:()=>Kl,isConstructorTypeNode:()=>i4,isContextualKeyword:()=>EP,isContinueStatement:()=>_Pe,isCustomPrologue:()=>ZM,isDebuggerStatement:()=>mPe,isDeclaration:()=>Au,isDeclarationBindingElement:()=>MD,isDeclarationFileName:()=>vd,isDeclarationName:()=>xg,isDeclarationNameOfEnumOrNamespace:()=>BR,isDeclarationReadonly:()=>QM,isDeclarationStatement:()=>Hfe,isDeclarationWithTypeParameterChildren:()=>wq,isDeclarationWithTypeParameters:()=>kq,isDecorator:()=>qu,isDecoratorTarget:()=>G1e,isDefaultClause:()=>A6,isDefaultImport:()=>NS,isDefaultModifier:()=>Zme,isDefaultedExpandoInitializer:()=>M_e,isDeleteExpression:()=>lhe,isDeleteTarget:()=>Qq,isDeprecatedDeclaration:()=>gB,isDestructuringAssignment:()=>Ry,isDiagnosticWithLocation:()=>UZ,isDiskPathRoot:()=>j3e,isDoStatement:()=>dPe,isDotDotDotToken:()=>O5,isDottedName:()=>wk,isDynamicName:()=>xP,isESSymbolIdentifier:()=>Y7e,isEffectiveExternalModule:()=>kS,isEffectiveModuleDeclaration:()=>f_e,isEffectiveStrictModeSourceFile:()=>Cq,isElementAccessChain:()=>Hz,isElementAccessExpression:()=>dl,isEmittedFileOfProgram:()=>c0e,isEmptyArrayLiteral:()=>Spe,isEmptyBindingElement:()=>lfe,isEmptyBindingPattern:()=>sfe,isEmptyObjectLiteral:()=>AJ,isEmptyStatement:()=>XK,isEmptyStringLiteral:()=>Uq,isEndOfDeclarationMarker:()=>yPe,isEntityName:()=>uf,isEntityNameExpression:()=>Jl,isEnumConst:()=>Ub,isEnumDeclaration:()=>b1,isEnumMember:()=>nE,isEqualityOperatorKind:()=>oB,isEqualsGreaterThanToken:()=>Qme,isExclamationToken:()=>h6,isExcludedFile:()=>Vge,isExclusivelyTypeOnlyImportOrExport:()=>b$,isExportAssignment:()=>Vl,isExportDeclaration:()=>au,isExportModifier:()=>P5,isExportName:()=>X5,isExportNamespaceAsDefaultDeclaration:()=>JM,isExportOrDefaultModifier:()=>bX,isExportSpecifier:()=>yd,isExportsIdentifier:()=>NT,isExportsOrModuleExportsOrAlias:()=>aE,isExpression:()=>yt,isExpressionNode:()=>Tg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>W1e,isExpressionOfOptionalChainRoot:()=>DM,isExpressionStatement:()=>du,isExpressionWithTypeArguments:()=>Py,isExpressionWithTypeArgumentsInClassExtendsClause:()=>OR,isExternalModule:()=>tc,isExternalModuleAugmentation:()=>Bb,isExternalModuleImportEqualsDeclaration:()=>c1,isExternalModuleIndicator:()=>GD,isExternalModuleNameRelative:()=>zc,isExternalModuleReference:()=>Zm,isExternalModuleSymbol:()=>qN,isExternalOrCommonJsModule:()=>_f,isFileLevelUniqueName:()=>zM,isFileProbablyExternalModule:()=>M6,isFirstDeclarationOfSymbolParameter:()=>AZ,isFixablePromiseHandler:()=>_ee,isForInOrOfStatement:()=>QA,isForInStatement:()=>YK,isForInitializer:()=>rm,isForOfStatement:()=>b6,isForStatement:()=>KT,isFunctionBlock:()=>DT,isFunctionBody:()=>rq,isFunctionDeclaration:()=>Sc,isFunctionExpression:()=>Us,isFunctionExpressionOrArrowFunction:()=>DC,isFunctionLike:()=>Ya,isFunctionLikeDeclaration:()=>el,isFunctionLikeKind:()=>CS,isFunctionLikeOrClassStaticBlockDeclaration:()=>XA,isFunctionOrConstructorTypeNode:()=>Nfe,isFunctionOrModuleBlock:()=>Zz,isFunctionSymbol:()=>F_e,isFunctionTypeNode:()=>Ph,isFutureReservedKeyword:()=>J7e,isGeneratedIdentifier:()=>Ll,isGeneratedPrivateIdentifier:()=>AS,isGetAccessor:()=>jv,isGetAccessorDeclaration:()=>Z_,isGetOrSetAccessorDeclaration:()=>kM,isGlobalDeclaration:()=>fUe,isGlobalScopeAugmentation:()=>im,isGrammarError:()=>i_e,isHeritageClause:()=>Jd,isHoistedFunction:()=>eP,isHoistedVariableStatement:()=>tP,isIdentifier:()=>We,isIdentifierANonContextualKeyword:()=>TP,isIdentifierName:()=>J_e,isIdentifierOrThisTypeNode:()=>Ohe,isIdentifierPart:()=>a1,isIdentifierStart:()=>Ah,isIdentifierText:()=>W_,isIdentifierTypePredicate:()=>C_e,isIdentifierTypeReference:()=>ome,isIfStatement:()=>JT,isIgnoredFileFromWildCardWatching:()=>iF,isImplicitGlob:()=>jJ,isImportCall:()=>pf,isImportClause:()=>Qm,isImportDeclaration:()=>Yc,isImportEqualsDeclaration:()=>fu,isImportKeyword:()=>r4,isImportMeta:()=>oC,isImportOrExportSpecifier:()=>xS,isImportOrExportSpecifierName:()=>Sbe,isImportSpecifier:()=>Nd,isImportTypeAssertionContainer:()=>dhe,isImportTypeNode:()=>Ig,isImportableFile:()=>XZ,isInComment:()=>jy,isInExpressionContext:()=>dP,isInJSDoc:()=>tR,isInJSFile:()=>_r,isInJSXText:()=>ebe,isInJsonFile:()=>_P,isInNonReferenceComment:()=>lbe,isInReferenceComment:()=>sbe,isInRightSideOfInternalImportEqualsDeclaration:()=>RF,isInString:()=>_2,isInTemplateString:()=>lZ,isInTopLevelContext:()=>sP,isIncrementalCompilation:()=>VR,isIndexSignatureDeclaration:()=>ZS,isIndexedAccessTypeNode:()=>rx,isInferTypeNode:()=>jC,isInfinityOrNaNString:()=>Kk,isInitializedProperty:()=>pN,isInitializedVariable:()=>kJ,isInsideJsxElement:()=>WF,isInsideJsxElementOrAttribute:()=>Z1e,isInsideNodeModules:()=>Mbe,isInsideTemplateLiteral:()=>HN,isInstantiatedModule:()=>CY,isInterfaceDeclaration:()=>dd,isInternalDeclaration:()=>ZY,isInternalModuleImportEqualsDeclaration:()=>uC,isInternalName:()=>pX,isIntersectionTypeNode:()=>y6,isIntrinsicJsxName:()=>xk,isIterationStatement:()=>Vv,isJSDoc:()=>eh,isJSDocAllType:()=>ghe,isJSDocAugmentsTag:()=>YC,isJSDocAuthorTag:()=>EPe,isJSDocCallbackTag:()=>tX,isJSDocClassTag:()=>vhe,isJSDocCommentContainingNode:()=>lq,isJSDocConstructSignature:()=>pC,isJSDocDeprecatedTag:()=>oX,isJSDocEnumTag:()=>C6,isJSDocFunctionType:()=>XC,isJSDocImplementsTag:()=>lX,isJSDocIndexSignature:()=>pP,isJSDocLikeText:()=>TX,isJSDocLink:()=>mhe,isJSDocLinkCode:()=>hhe,isJSDocLinkLike:()=>IS,isJSDocLinkPlain:()=>vPe,isJSDocMemberName:()=>E1,isJSDocNameReference:()=>_4,isJSDocNamepathType:()=>bPe,isJSDocNamespaceBody:()=>v7e,isJSDocNode:()=>ZA,isJSDocNonNullableType:()=>W5,isJSDocNullableType:()=>KC,isJSDocOptionalParameter:()=>ZR,isJSDocOptionalType:()=>eX,isJSDocOverloadTag:()=>m4,isJSDocOverrideTag:()=>z5,isJSDocParameterTag:()=>_m,isJSDocPrivateTag:()=>rX,isJSDocPropertyLikeTag:()=>NM,isJSDocPropertyTag:()=>Ehe,isJSDocProtectedTag:()=>iX,isJSDocPublicTag:()=>nX,isJSDocReadonlyTag:()=>aX,isJSDocReturnTag:()=>q5,isJSDocSatisfiesExpression:()=>aK,isJSDocSatisfiesTag:()=>J5,isJSDocSeeTag:()=>TPe,isJSDocSignature:()=>rE,isJSDocTag:()=>sk,isJSDocTemplateTag:()=>wp,isJSDocThisTag:()=>bhe,isJSDocThrowsTag:()=>xPe,isJSDocTypeAlias:()=>T_,isJSDocTypeAssertion:()=>y4,isJSDocTypeExpression:()=>$T,isJSDocTypeLiteral:()=>p4,isJSDocTypeTag:()=>h4,isJSDocTypedefTag:()=>sX,isJSDocUnknownTag:()=>SPe,isJSDocUnknownType:()=>yhe,isJSDocVariadicType:()=>H5,isJSXTagName:()=>hk,isJsonEqual:()=>QJ,isJsonSourceFile:()=>E_,isJsxAttribute:()=>fm,isJsxAttributeLike:()=>GM,isJsxAttributes:()=>tE,isJsxChild:()=>jD,isJsxClosingElement:()=>lx,isJsxClosingFragment:()=>_he,isJsxElement:()=>By,isJsxExpression:()=>d4,isJsxFragment:()=>cx,isJsxOpeningElement:()=>Gh,isJsxOpeningFragment:()=>ux,isJsxOpeningLikeElement:()=>sd,isJsxOpeningLikeElementTagName:()=>U1e,isJsxSelfClosingElement:()=>sx,isJsxSpreadAttribute:()=>XT,isJsxTagNameExpression:()=>ok,isJsxText:()=>YS,isJumpStatementTarget:()=>FN,isKeyword:()=>Dd,isKnownSymbol:()=>xR,isLabelName:()=>$Q,isLabelOfLabeledStatement:()=>YQ,isLabeledStatement:()=>eE,isLateVisibilityPaintedStatement:()=>XM,isLeftHandSideExpression:()=>Id,isLeftHandSideOfAssignment:()=>aMe,isLet:()=>_k,isLineBreak:()=>Tu,isLiteralComputedPropertyDeclarationName:()=>bR,isLiteralExpression:()=>ST,isLiteralExpressionOfObject:()=>Xz,isLiteralImportTypeNode:()=>l1,isLiteralKind:()=>rk,isLiteralLikeAccess:()=>hP,isLiteralLikeElementAccess:()=>oR,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>PF,isLiteralTypeLikeExpression:()=>PPe,isLiteralTypeLiteral:()=>Ufe,isLiteralTypeNode:()=>v1,isLocalName:()=>e0,isLogicalOperator:()=>bpe,isLogicalOrCoalescingAssignmentExpression:()=>TJ,isLogicalOrCoalescingAssignmentOperator:()=>kk,isLogicalOrCoalescingBinaryExpression:()=>NR,isLogicalOrCoalescingBinaryOperator:()=>RR,isMappedTypeNode:()=>s4,isMemberName:()=>gg,isMergeDeclarationMarker:()=>gPe,isMetaProperty:()=>l4,isMethodDeclaration:()=>sc,isMethodOrAccessor:()=>YA,isMethodSignature:()=>Mh,isMinusToken:()=>WK,isMissingDeclaration:()=>hPe,isModifier:()=>po,isModifierKind:()=>Ly,isModifierLike:()=>il,isModuleAugmentationExternal:()=>xq,isModuleBlock:()=>dm,isModuleBody:()=>Wfe,isModuleDeclaration:()=>Xl,isModuleExportsAccessExpression:()=>kh,isModuleIdentifier:()=>qq,isModuleName:()=>Fhe,isModuleOrEnumDeclaration:()=>UD,isModuleReference:()=>qfe,isModuleSpecifierLike:()=>eB,isModuleWithStringLiteralName:()=>KM,isNameOfFunctionDeclaration:()=>tZ,isNameOfModuleDeclaration:()=>eZ,isNamedClassElement:()=>Rfe,isNamedDeclaration:()=>Su,isNamedEvaluation:()=>r_,isNamedEvaluationSource:()=>tJ,isNamedExportBindings:()=>qz,isNamedExports:()=>tp,isNamedImportBindings:()=>iq,isNamedImports:()=>Fy,isNamedImportsOrExports:()=>OJ,isNamedTupleMember:()=>o4,isNamespaceBody:()=>y7e,isNamespaceExport:()=>Bh,isNamespaceExportDeclaration:()=>x6,isNamespaceImport:()=>Zv,isNamespaceReexportDeclaration:()=>R_e,isNewExpression:()=>Zb,isNewExpressionTarget:()=>G4,isNightly:()=>kR,isNoSubstitutionTemplateLiteral:()=>$S,isNode:()=>m7e,isNodeArray:()=>Ob,isNodeArrayMultiLine:()=>kpe,isNodeDescendantOf:()=>PT,isNodeKind:()=>OD,isNodeLikeSystem:()=>lH,isNodeModulesDirectory:()=>gM,isNodeWithPossibleHoistedDeclaration:()=>W_e,isNonContextualKeyword:()=>X_e,isNonExportDefaultModifier:()=>e5e,isNonGlobalAmbientModule:()=>Sq,isNonGlobalDeclaration:()=>Wbe,isNonNullAccess:()=>_me,isNonNullChain:()=>RM,isNonNullExpression:()=>ax,isNonStaticMethodOrAccessorWithPrivateName:()=>gve,isNotEmittedOrPartiallyEmittedNode:()=>g7e,isNotEmittedStatement:()=>QK,isNullishCoalesce:()=>zz,isNumber:()=>Ey,isNumericLiteral:()=>C_,isNumericLiteralName:()=>Oh,isObjectBindingElementWithoutPropertyName:()=>XN,isObjectBindingOrAssignmentElement:()=>FD,isObjectBindingOrAssignmentPattern:()=>eq,isObjectBindingPattern:()=>$m,isObjectLiteralElement:()=>cq,isObjectLiteralElementLike:()=>Iy,isObjectLiteralExpression:()=>Is,isObjectLiteralMethod:()=>q_,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>iP,isObjectTypeDeclaration:()=>jS,isOctalDigit:()=>wz,isOmittedExpression:()=>Fc,isOptionalChain:()=>xu,isOptionalChainRoot:()=>ek,isOptionalDeclaration:()=>iK,isOptionalJSDocPropertyLikeTag:()=>QR,isOptionalTypeNode:()=>qK,isOuterExpression:()=>$5,isOutermostOptionalChain:()=>tk,isOverrideModifier:()=>rhe,isPackedArrayLiteral:()=>eK,isParameter:()=>Ba,isParameterDeclaration:()=>FT,isParameterOrCatchClauseVariable:()=>tK,isParameterPropertyDeclaration:()=>cf,isParameterPropertyModifier:()=>ik,isParenthesizedExpression:()=>qd,isParenthesizedTypeNode:()=>tx,isParseTreeNode:()=>$I,isPartOfTypeNode:()=>Ih,isPartOfTypeQuery:()=>fP,isPartiallyEmittedExpression:()=>V5,isPatternMatch:()=>H7,isPinnedComment:()=>qM,isPlainJsFile:()=>HM,isPlusToken:()=>jK,isPossiblyTypeArgumentPosition:()=>WN,isPostfixUnaryExpression:()=>KK,isPrefixUnaryExpression:()=>Qv,isPrivateIdentifier:()=>Ri,isPrivateIdentifierClassElementDeclaration:()=>od,isPrivateIdentifierPropertyAccessExpression:()=>KA,isPrivateIdentifierSymbol:()=>Y_e,isProgramBundleEmitBuildInfo:()=>k0e,isProgramUptoDate:()=>S$,isPrologueDirective:()=>Cp,isPropertyAccessChain:()=>wM,isPropertyAccessEntityNameExpression:()=>MR,isPropertyAccessExpression:()=>Br,isPropertyAccessOrQualifiedName:()=>Pfe,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Mfe,isPropertyAssignment:()=>$c,isPropertyDeclaration:()=>ro,isPropertyName:()=>bl,isPropertyNameLiteral:()=>J_,isPropertySignature:()=>Mf,isProtoSetter:()=>$_e,isPrototypeAccess:()=>p1,isPrototypePropertyAssignment:()=>cR,isPunctuation:()=>abe,isPushOrUnshiftIdentifier:()=>nJ,isQualifiedName:()=>Rd,isQuestionDotToken:()=>M5,isQuestionOrExclamationToken:()=>Nhe,isQuestionOrPlusOrMinusToken:()=>Phe,isQuestionToken:()=>$v,isRawSourceMap:()=>cve,isReadonlyKeyword:()=>the,isReadonlyKeywordOrPlusOrMinusToken:()=>Mhe,isRecognizedTripleSlashComment:()=>yq,isReferenceFileLocation:()=>cL,isReferencedFile:()=>S1,isRegularExpressionLiteral:()=>UK,isRequireCall:()=>wd,isRequireVariableStatement:()=>Hq,isRestParameter:()=>Lh,isRestTypeNode:()=>JK,isReturnStatement:()=>kp,isReturnStatementWithFixablePromiseHandler:()=>DB,isRightSideOfAccessExpression:()=>Epe,isRightSideOfPropertyAccess:()=>pL,isRightSideOfQualifiedName:()=>j1e,isRightSideOfQualifiedNameOrPropertyAccess:()=>Dk,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Tpe,isRootedDiskPath:()=>Fm,isSameEntityName:()=>dC,isSatisfiesExpression:()=>cPe,isScopeMarker:()=>Vfe,isSemicolonClassElement:()=>che,isSetAccessor:()=>ky,isSetAccessorDeclaration:()=>s_,isShebangTrivia:()=>Dz,isShorthandAmbientModuleSymbol:()=>fk,isShorthandPropertyAssignment:()=>l_,isSignedNumericLiteral:()=>SP,isSimpleCopiableExpression:()=>sE,isSimpleInlineableExpression:()=>pm,isSingleOrDoubleQuote:()=>nR,isSourceFile:()=>Ki,isSourceFileFromLibrary:()=>$4,isSourceFileJS:()=>ld,isSourceFileNotJS:()=>G7e,isSourceFileNotJson:()=>jq,isSourceMapping:()=>uve,isSpecialPropertyDeclaration:()=>P_e,isSpreadAssignment:()=>dx,isSpreadElement:()=>Fh,isStatement:()=>wa,isStatementButNotDeclaration:()=>VD,isStatementOrBlock:()=>zfe,isStatementWithLocals:()=>r_e,isStatic:()=>Xa,isStaticModifier:()=>QS,isString:()=>za,isStringAKeyword:()=>K7e,isStringANonContextualKeyword:()=>PS,isStringAndEmptyAnonymousObjectIntersection:()=>ibe,isStringDoubleQuoted:()=>mP,isStringLiteral:()=>Wo,isStringLiteralLike:()=>As,isStringLiteralOrJsxExpression:()=>Jfe,isStringLiteralOrTemplate:()=>kbe,isStringOrNumericLiteralLike:()=>n_,isStringOrRegularExpressionOrTemplateLiteral:()=>fZ,isStringTextContainingNode:()=>$z,isSuperCall:()=>aC,isSuperKeyword:()=>n4,isSuperOrSuperProperty:()=>B7e,isSuperProperty:()=>gd,isSupportedSourceFileName:()=>tme,isSwitchStatement:()=>E6,isSyntaxList:()=>$C,isSyntheticExpression:()=>uPe,isSyntheticReference:()=>ox,isTagName:()=>QQ,isTaggedTemplateExpression:()=>qT,isTaggedTemplateTag:()=>B1e,isTemplateExpression:()=>G5,isTemplateHead:()=>BC,isTemplateLiteral:()=>$A,isTemplateLiteralKind:()=>Uv,isTemplateLiteralToken:()=>Lfe,isTemplateLiteralTypeNode:()=>lPe,isTemplateLiteralTypeSpan:()=>ohe,isTemplateMiddle:()=>Xme,isTemplateMiddleOrTemplateTail:()=>OM,isTemplateSpan:()=>u4,isTemplateTail:()=>VK,isTextWhiteSpaceLike:()=>pbe,isThis:()=>mL,isThisContainerOrFunctionBlock:()=>k_e,isThisIdentifier:()=>GT,isThisInTypeQuery:()=>GS,isThisInitializedDeclaration:()=>lP,isThisInitializedObjectBindingExpression:()=>D_e,isThisProperty:()=>QD,isThisTypeNode:()=>B5,isThisTypeParameter:()=>Xk,isThisTypePredicate:()=>P7e,isThrowStatement:()=>$K,isToken:()=>SS,isTokenKind:()=>Kz,isTraceEnabled:()=>r0,isTransientSymbol:()=>jm,isTrivia:()=>vC,isTryStatement:()=>T6,isTupleTypeNode:()=>UC,isTypeAlias:()=>pR,isTypeAliasDeclaration:()=>um,isTypeAssertionExpression:()=>she,isTypeDeclaration:()=>RC,isTypeElement:()=>xT,isTypeKeyword:()=>H4,isTypeKeywordToken:()=>gZ,isTypeKeywordTokenOrIdentifier:()=>KF,isTypeLiteralNode:()=>hf,isTypeNode:()=>Bi,isTypeNodeKind:()=>NJ,isTypeOfExpression:()=>HC,isTypeOnlyExportDeclaration:()=>Ife,isTypeOnlyImportDeclaration:()=>Yz,isTypeOnlyImportOrExportDeclaration:()=>Mb,isTypeOperatorNode:()=>nx,isTypeParameterDeclaration:()=>Ul,isTypePredicateNode:()=>F5,isTypeQueryNode:()=>a4,isTypeReferenceNode:()=>ep,isTypeReferenceType:()=>VM,isUMDExportSymbol:()=>OP,isUnaryExpression:()=>nq,isUnaryExpressionWithWrite:()=>Gfe,isUnicodeIdentifierStart:()=>yM,isUnionTypeNode:()=>ex,isUnparsedNode:()=>Jz,isUnparsedPrepend:()=>phe,isUnparsedSource:()=>YT,isUnparsedTextLike:()=>Cfe,isUrl:()=>Mde,isValidBigIntString:()=>JP,isValidESSymbolDeclaration:()=>x_e,isValidTypeOnlyAliasUseSite:()=>qS,isValueSignatureDeclaration:()=>H_e,isVarConst:()=>Eg,isVariableDeclaration:()=>$i,isVariableDeclarationInVariableStatement:()=>nP,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>jb,isVariableDeclarationInitializedToRequire:()=>Wq,isVariableDeclarationList:()=>Xu,isVariableLike:()=>sC,isVariableLikeOrAccessor:()=>T_e,isVariableStatement:()=>pc,isVoidExpression:()=>ix,isWatchSet:()=>fMe,isWhileStatement:()=>fPe,isWhiteSpaceLike:()=>hg,isWhiteSpaceSingleLine:()=>Gm,isWithStatement:()=>uhe,isWriteAccess:()=>Pk,isWriteOnlyAccess:()=>wJ,isYieldExpression:()=>U5,jsxModeNeedsExplicitImport:()=>zZ,keywordPart:()=>Xd,last:()=>Ko,lastOrUndefined:()=>rl,length:()=>ge,libMap:()=>X6,libs:()=>K6,lineBreakPart:()=>vL,linkNamePart:()=>Ebe,linkPart:()=>LZ,linkTextPart:()=>rB,listFiles:()=>q$,loadModuleFromGlobalCache:()=>Dye,loadWithModeAwareCache:()=>SN,makeIdentifierFromModuleName:()=>d_e,makeImport:()=>Hy,makeImportIfNecessary:()=>fbe,makeStringLiteral:()=>$F,mangleScopedPackageName:()=>C4,map:()=>Pt,mapAllOrFail:()=>bb,mapDefined:()=>ua,mapDefinedEntries:()=>M7,mapDefinedIterator:()=>yy,mapEntries:()=>Oue,mapIterator:()=>Ua,mapOneOrMany:()=>Bbe,mapToDisplayParts:()=>s0,matchFiles:()=>zJ,matchPatternOrExact:()=>KJ,matchedText:()=>ede,matchesExclude:()=>f9,maybeBind:()=>Vo,maybeSetLocalizedDiagnosticMessages:()=>Gpe,memoize:()=>Ld,memoizeCached:()=>zue,memoizeOne:()=>Mm,memoizeWeak:()=>$Oe,metadataHelper:()=>c5,min:()=>iH,minAndMax:()=>ime,missingFileModifiedTime:()=>_g,modifierToFlag:()=>VS,modifiersToFlags:()=>Jm,moduleOptionDeclaration:()=>KX,moduleResolutionIsEqualTo:()=>t_e,moduleResolutionNameAndModeGetter:()=>B4,moduleResolutionOptionDeclarations:()=>p9,moduleResolutionSupportsPackageJsonExportsAndImports:()=>HS,moduleResolutionUsesNodeModules:()=>YF,moduleSpecifiers:()=>oE,moveEmitHelpers:()=>Vme,moveRangeEnd:()=>RP,moveRangePastDecorators:()=>Kv,moveRangePastModifiers:()=>sm,moveRangePos:()=>h1,moveSyntheticComments:()=>Bme,mutateMap:()=>CC,mutateMapSkippingNewValues:()=>Ag,needsParentheses:()=>OZ,needsScopeMarker:()=>FM,newCaseClauseTracker:()=>bB,newPrivateEnvironment:()=>bve,noEmitNotification:()=>mN,noEmitSubstitution:()=>D4,noTransformers:()=>r$,noTruncationMaximumTruncationLength:()=>QP,nodeCanBeDecorated:()=>uP,nodeHasName:()=>DD,nodeIsDecorated:()=>cC,nodeIsMissing:()=>kl,nodeIsPresent:()=>b_,nodeIsSynthesized:()=>tl,nodeModuleNameResolver:()=>mye,nodeModulesPathPart:()=>Gy,nodeNextJsonConfigResolver:()=>hye,nodeOrChildIsDecorated:()=>eR,nodeOverlapsWithStartEnd:()=>rZ,nodePosToString:()=>L7e,nodeSeenTracker:()=>hL,nodeStartsNewLexicalEnvironment:()=>rJ,nodeToDisplayParts:()=>aUe,noop:()=>co,noopFileWatcher:()=>dL,noopPush:()=>X7,normalizePath:()=>Xo,normalizeSlashes:()=>ru,not:()=>q7,notImplemented:()=>qa,notImplementedResolver:()=>nF,nullNodeConverters:()=>AK,nullParenthesizerRules:()=>xK,nullTransformationContext:()=>Dg,objectAllocator:()=>Kc,operatorPart:()=>z4,optionDeclarations:()=>kg,optionMapToObject:()=>OX,optionsAffectingProgramStructure:()=>QX,optionsForBuild:()=>eY,optionsForWatch:()=>Y6,optionsHaveChanges:()=>eC,optionsHaveModuleResolutionChanges:()=>Yfe,or:()=>Pm,orderedRemoveItem:()=>W7,orderedRemoveItemAt:()=>Cb,outFile:()=>Ks,packageIdToPackageName:()=>jM,packageIdToString:()=>LT,padLeft:()=>hS,padRight:()=>n3e,paramHelper:()=>u5,parameterIsThisKeyword:()=>qb,parameterNamePart:()=>gbe,parseBaseNodeFactory:()=>LX,parseBigInt:()=>ame,parseBuildCommand:()=>y5e,parseCommandLine:()=>g5e,parseCommandLineWorker:()=>wX,parseConfigFileTextToJson:()=>NX,parseConfigFileWithSystem:()=>KBe,parseConfigHostFromCompilerHostLike:()=>dF,parseCustomTypeOption:()=>s9,parseIsolatedEntityName:()=>mx,parseIsolatedJSDocComment:()=>oge,parseJSDocTypeExpressionForTests:()=>d5e,parseJsonConfigFileContent:()=>I5e,parseJsonSourceFileConfigFileContent:()=>W6,parseJsonText:()=>B6,parseListTypeOption:()=>gge,parseNodeFactory:()=>th,parseNodeModuleFromPath:()=>cY,parsePackageName:()=>_Y,parsePseudoBigInt:()=>Hk,parseValidBigInt:()=>ZJ,patchWriteFileEnsuringDirectory:()=>Ode,pathContainsNodeModules:()=>hx,pathIsAbsolute:()=>jI,pathIsBareSpecifier:()=>Tz,pathIsRelative:()=>wf,patternText:()=>Zue,perfLogger:()=>tm,performIncrementalCompilation:()=>YBe,performance:()=>oD,plainJSErrors:()=>hF,positionBelongsToNode:()=>iZ,positionIsASICandidate:()=>lB,positionIsSynthesized:()=>lm,positionsAreOnSameLine:()=>x_,preProcessFile:()=>yEe,probablyUsesSemicolons:()=>cB,processCommentPragmas:()=>AX,processPragmasIntoFields:()=>CX,processTaggedTemplateExpression:()=>JY,programContainsEsModules:()=>dbe,programContainsModules:()=>ube,projectReferenceIsEqualTo:()=>mq,propKeyHelper:()=>S5,propertyNamePart:()=>ybe,pseudoBigIntToString:()=>Yb,punctuationPart:()=>Iu,pushIfUnique:()=>y_,quote:()=>K4,quotePreferenceFromString:()=>EZ,rangeContainsPosition:()=>BN,rangeContainsPositionExclusive:()=>GN,rangeContainsRange:()=>gf,rangeContainsRangeExclusive:()=>H1e,rangeContainsStartEnd:()=>UN,rangeEndIsOnSameLineAsRangeStart:()=>FR,rangeEndPositionsAreOnSameLine:()=>Lpe,rangeEquals:()=>QW,rangeIsOnSingleLine:()=>VT,rangeOfNode:()=>YJ,rangeOfTypeParameters:()=>$J,rangeOverlapsWithStartEnd:()=>V4,rangeStartIsOnSameLineAsRangeEnd:()=>Ipe,rangeStartPositionsAreOnSameLine:()=>NP,readBuilderProgram:()=>CF,readConfigFile:()=>U6,readHelper:()=>E5,readJson:()=>Rk,readJsonConfigFile:()=>Ege,readJsonOrUndefined:()=>CJ,realizeDiagnostics:()=>Oee,reduceEachLeadingCommentRange:()=>Vde,reduceEachTrailingCommentRange:()=>jde,reduceLeft:()=>Vu,reduceLeftIterator:()=>fr,reducePathComponents:()=>gT,refactor:()=>v8,regExpEscape:()=>kMe,relativeComplement:()=>Pue,removeAllComments:()=>o6,removeEmitHelper:()=>iPe,removeExtension:()=>JR,removeFileExtension:()=>zd,removeIgnoredPath:()=>H$,removeMinAndVersionNumbers:()=>Que,removeOptionality:()=>tbe,removePrefix:()=>BI,removeSuffix:()=>UA,removeTrailingDirectorySeparator:()=>yT,repeatString:()=>JN,replaceElement:()=>eH,resolutionExtensionIsTSOrJson:()=>KR,resolveConfigFileProjectName:()=>rQ,resolveJSModule:()=>fye,resolveModuleName:()=>S4,resolveModuleNameFromCache:()=>r9e,resolvePackageNameToPackageJson:()=>$5e,resolvePath:()=>Ov,resolveProjectReferencePath:()=>F4,resolveTripleslashReference:()=>aF,resolveTypeReferenceDirective:()=>rY,resolvingEmptyArray:()=>$P,restHelper:()=>g5,returnFalse:()=>Sb,returnNoopFileWatcher:()=>kN,returnTrue:()=>xb,returnUndefined:()=>n1,returnsPromise:()=>fee,runInitializersHelper:()=>f5,sameFlatMap:()=>U_,sameMap:()=>Ui,sameMapping:()=>z9e,scanShebangTrivia:()=>Rz,scanTokenAtPosition:()=>v_e,scanner:()=>ku,screenStartingMessageCodes:()=>AF,semanticDiagnosticsOptionDeclarations:()=>XX,serializeCompilerOptions:()=>PX,server:()=>M1e,servicesVersion:()=>kee,setCommentRange:()=>Xc,setConfigFileInOptions:()=>BX,setConstantValue:()=>Ume,setEachParent:()=>wC,setEmitFlags:()=>sr,setFunctionNameHelper:()=>x5,setGetSourceFileAsHashVersioned:()=>xF,setIdentifierAutoGenerate:()=>d6,setIdentifierGeneratedImportReference:()=>Hme,setIdentifierTypeArguments:()=>My,setInternalEmitFlags:()=>s6,setLocalizedDiagnosticMessages:()=>Bpe,setModuleDefaultHelper:()=>L5,setNodeFlags:()=>lme,setObjectAllocator:()=>Fpe,setOriginalNode:()=>zr,setParent:()=>jo,setParentRecursive:()=>Yv,setPrivateIdentifier:()=>r2,setResolvedModule:()=>Zfe,setResolvedTypeReferenceDirective:()=>e_e,setSnippetElement:()=>MK,setSourceMapRange:()=>ps,setStackTraceLimit:()=>D3e,setStartsOnNewLine:()=>NK,setSyntheticLeadingComments:()=>Qb,setSyntheticTrailingComments:()=>PC,setSys:()=>U3e,setSysLog:()=>wde,setTextRange:()=>ht,setTextRangeEnd:()=>kC,setTextRangePos:()=>zk,setTextRangePosEnd:()=>Xm,setTextRangePosWidth:()=>qk,setTokenSourceMapRange:()=>Fme,setTypeNode:()=>jme,setUILocale:()=>Xue,setValueDeclaration:()=>uR,shouldAllowImportingTsExtension:()=>L4,shouldPreserveConstEnums:()=>Kb,shouldUseUriStyleNodeCoreModules:()=>yB,showModuleSpecifier:()=>Npe,signatureHasLiteralTypes:()=>LY,signatureHasRestParameter:()=>Lu,signatureToDisplayParts:()=>IZ,single:()=>ZW,singleElementArray:()=>hT,singleIterator:()=>KW,singleOrMany:()=>Om,singleOrUndefined:()=>Nm,skipAlias:()=>mf,skipAssertions:()=>RPe,skipConstraint:()=>yZ,skipOuterExpressions:()=>Cu,skipParentheses:()=>Hs,skipPartiallyEmittedExpressions:()=>H_,skipTrivia:()=>Yo,skipTypeChecking:()=>Wk,skipTypeParentheses:()=>$q,skipWhile:()=>ide,sliceAfter:()=>XJ,some:()=>Dt,sort:()=>MI,sortAndDeduplicate:()=>Yw,sortAndDeduplicateDiagnostics:()=>zA,sourceFileAffectingCompilerOptions:()=>m9,sourceFileMayBeEmitted:()=>BS,sourceMapCommentRegExp:()=>H9,sourceMapCommentRegExpDontCareLineStart:()=>PY,spacePart:()=>Tl,spanMap:()=>P7,spreadArrayHelper:()=>T5,stableSort:()=>by,startEndContainsRange:()=>nZ,startEndOverlapsWithStartEnd:()=>FF,startOnNewLine:()=>Yu,startTracing:()=>xde,startsWith:()=>xa,startsWithDirectory:()=>Cz,startsWithUnderscore:()=>HZ,startsWithUseStrict:()=>Che,stringContains:()=>bu,stringContainsAt:()=>jbe,stringToToken:()=>bT,stripQuotes:()=>X_,supportedDeclarationExtensions:()=>t5,supportedJSExtensions:()=>TK,supportedJSExtensionsFlat:()=>$k,supportedLocaleDirectories:()=>fq,supportedTSExtensions:()=>OC,supportedTSExtensionsFlat:()=>EK,supportedTSImplementationExtensions:()=>n5,suppressLeadingAndTrailingTrivia:()=>Yd,suppressLeadingTrivia:()=>iB,suppressTrailingTrivia:()=>Ibe,symbolEscapedNameNoDefault:()=>ZF,symbolName:()=>Gl,symbolNameNoDefault:()=>QF,symbolPart:()=>hbe,symbolToDisplayParts:()=>q4,syntaxMayBeASICandidate:()=>KZ,syntaxRequiresTrailingSemicolonOrASI:()=>sB,sys:()=>nu,sysLog:()=>_D,tagNamesAreEquivalent:()=>T1,takeWhile:()=>J7,targetOptionDeclaration:()=>Q6,templateObjectHelper:()=>b5,testFormatSettings:()=>F1e,textChangeRangeIsUnchanged:()=>ofe,textChangeRangeNewSpan:()=>YI,textChanges:()=>vr,textOrKeywordPart:()=>CZ,textPart:()=>Gf,textRangeContainsPositionInclusive:()=>xM,textSpanContainsPosition:()=>Oz,textSpanContainsTextSpan:()=>nfe,textSpanEnd:()=>cu,textSpanIntersection:()=>afe,textSpanIntersectsWith:()=>AM,textSpanIntersectsWithPosition:()=>ife,textSpanIntersectsWithTextSpan:()=>r7e,textSpanIsEmpty:()=>tfe,textSpanOverlap:()=>rfe,textSpanOverlapsWith:()=>n7e,textSpansEqual:()=>yL,textToKeywordObj:()=>ID,timestamp:()=>ol,toArray:()=>tD,toBuilderFileEmit:()=>N0e,toBuilderStateFileInfoForMultiEmit:()=>R0e,toEditorSettings:()=>lO,toFileNameLowerCase:()=>V_,toLowerCase:()=>Hue,toPath:()=>Js,toProgramEmitPending:()=>O0e,tokenIsIdentifierOrKeyword:()=>ad,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Gde,tokenToString:()=>bo,trace:()=>ha,tracing:()=>Ti,tracingEnabled:()=>sD,transform:()=>OVe,transformClassFields:()=>Ave,transformDeclarations:()=>e$,transformECMAScriptModule:()=>QY,transformES2015:()=>Gve,transformES2016:()=>Fve,transformES2017:()=>kve,transformES2018:()=>wve,transformES2019:()=>Dve,transformES2020:()=>Rve,transformES2021:()=>Nve,transformES5:()=>Uve,transformESDecorators:()=>Ive,transformESNext:()=>Ove,transformGenerators:()=>Vve,transformJsx:()=>Mve,transformLegacyDecorators:()=>Lve,transformModule:()=>$Y,transformNodeModule:()=>Hve,transformNodes:()=>hN,transformSystemModule:()=>Wve,transformTypeScript:()=>Sve,transpile:()=>oVe,transpileModule:()=>IEe,transpileOptionValueCompilerOptions:()=>ZX,trimString:()=>Lb,trimStringEnd:()=>iD,trimStringStart:()=>GI,tryAddToSet:()=>wv,tryAndIgnoreErrors:()=>_B,tryCast:()=>li,tryDirectoryExists:()=>fB,tryExtractTSExtension:()=>DP,tryFileExists:()=>dB,tryGetClassExtendingExpressionWithTypeArguments:()=>SJ,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>xJ,tryGetDirectories:()=>uB,tryGetExtensionFromPath:()=>Nh,tryGetImportFromModuleSpecifier:()=>_R,tryGetJSDocSatisfiesTypeNode:()=>YP,tryGetModuleNameFromFile:()=>D6,tryGetModuleSpecifierFromDeclaration:()=>dR,tryGetNativePerformanceHooks:()=>bde,tryGetPropertyAccessOrIdentifierToString:()=>PR,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Z5,tryGetSourceMappingURL:()=>lve,tryGetTextOfPropertyName:()=>YM,tryIOAndConsumeErrors:()=>pB,tryParsePattern:()=>IC,tryParsePatterns:()=>zP,tryParseRawSourceMap:()=>OY,tryReadDirectory:()=>BZ,tryReadFile:()=>V6,tryRemoveDirectoryPrefix:()=>VJ,tryRemoveExtension:()=>rme,tryRemovePrefix:()=>sH,tryRemoveSuffix:()=>$ue,typeAcquisitionDeclarations:()=>g9,typeAliasNamePart:()=>vbe,typeDirectiveIsEqualTo:()=>n_e,typeKeywords:()=>EB,typeParameterNamePart:()=>bbe,typeReferenceResolutionNameAndModeGetter:()=>AN,typeToDisplayParts:()=>QN,unchangedPollThresholds:()=>hD,unchangedTextChangeRange:()=>dq,unescapeLeadingUnderscores:()=>ia,unmangleScopedPackageName:()=>R9,unorderedRemoveItem:()=>rD,unorderedRemoveItemAt:()=>aH,unreachableCodeIsError:()=>qpe,unusedLabelIsError:()=>Jpe,unwrapInnermostStatementOfLabel:()=>Bq,updateErrorForNoInputFiles:()=>UX,updateLanguageServiceSourceFile:()=>Lee,updateMissingFilePathsWatch:()=>l0e,updatePackageJsonWatch:()=>hBe,updateResolutionField:()=>oL,updateSharedExtendedConfigFileWatcher:()=>u$,updateSourceFile:()=>xX,updateWatchingWildcardDirectories:()=>rF,usesExtensionsOnImports:()=>eme,usingSingleLineStringWriter:()=>ck,utf16EncodeAsString:()=>XI,validateLocaleAndSetLanguage:()=>o7e,valuesHelper:()=>A5,version:()=>pe,versionMajorMinor:()=>$,visitArray:()=>NY,visitCommaListElements:()=>fN,visitEachChild:()=>Fn,visitFunctionBody:()=>Ff,visitIterationBody:()=>L_,visitLexicalEnvironment:()=>W9,visitNode:()=>ct,visitNodes:()=>Jn,visitParameterList:()=>Yl,walkUpBindingElementsAndPatterns:()=>qA,walkUpLexicalEnvironments:()=>vve,walkUpOuterExpressions:()=>Lhe,walkUpParenthesizedExpressions:()=>zv,walkUpParenthesizedTypes:()=>yR,walkUpParenthesizedTypesAndGetParentAndChild:()=>q_e,whitespaceOrMapCommentRegExp:()=>z9,writeCommentRange:()=>SC,writeFile:()=>Ak,writeFileEnsuringDirectories:()=>hJ,zipToModeAwareCache:()=>lY,zipWith:()=>zn});var OIe=b({"src/typescript/_namespaces/ts.ts"(){"use strict";Oa(),DF(),Zr(),gV()}}),Net=D({"src/typescript/typescript.ts"(e,t){OIe(),OIe(),typeof console!="undefined"&&(R.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=NIe}});return Net()})();typeof O7!="undefined"&&O7.exports&&(O7.exports=t1);var OOe=t1.createClassifier,Rue=t1.createLanguageService,MOe=t1.displayPartsToString,POe=t1.EndOfLineState,FOe=t1.flattenDiagnosticMessageText,BOe=t1.IndentStyle,FA=t1.ScriptKind,GOe=t1.ScriptTarget,UOe=t1.TokenClass,Nue=t1,ya={};ya["lib.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es5" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
`,ya["lib.decorators.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/**
* The decorator context types provided to class element decorators.
*/
type ClassMemberDecoratorContext =
| ClassMethodDecoratorContext
| ClassGetterDecoratorContext
| ClassSetterDecoratorContext
| ClassFieldDecoratorContext
| ClassAccessorDecoratorContext
;
/**
* The decorator context types provided to any decorator.
*/
type DecoratorContext =
| ClassDecoratorContext
| ClassMemberDecoratorContext
;
/**
* Context provided to a class decorator.
* @template Class The type of the decorated class associated with this context.
*/
interface ClassDecoratorContext<
Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,
> {
/** The kind of element that was decorated. */
readonly kind: "class";
/** The name of the decorated class. */
readonly name: string | undefined;
/**
* Adds a callback to be invoked after the class definition has been finalized.
*
* @example
* \`\`\`ts
* function customElement(name: string): ClassDecoratorFunction {
* return (target, context) => {
* context.addInitializer(function () {
* customElements.define(name, this);
* });
* }
* }
*
* @customElement("my-element")
* class MyElement {}
* \`\`\`
*/
addInitializer(initializer: (this: Class) => void): void;
}
/**
* Context provided to a class method decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of the decorated class method.
*/
interface ClassMethodDecoratorContext<
This = unknown,
Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,
> {
/** The kind of class element that was decorated. */
readonly kind: "method";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Gets the current value of the method from the provided object.
*
* @example
* let fn = context.access.get(instance);
*/
get(object: This): Value;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*
* @example
* \`\`\`ts
* const bound: ClassMethodDecoratorFunction = (value, context) {
* if (context.private) throw new TypeError("Not supported on private methods.");
* context.addInitializer(function () {
* this[context.name] = this[context.name].bind(this);
* });
* }
*
* class C {
* message = "Hello";
*
* @bound
* m() {
* console.log(this.message);
* }
* }
* \`\`\`
*/
addInitializer(initializer: (this: This) => void): void;
}
/**
* Context provided to a class getter decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The property type of the decorated class getter.
*/
interface ClassGetterDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "getter";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Invokes the getter on the provided object.
*
* @example
* let value = context.access.get(instance);
*/
get(object: This): Value;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
}
/**
* Context provided to a class setter decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of the decorated class setter.
*/
interface ClassSetterDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "setter";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Invokes the setter on the provided object.
*
* @example
* context.access.set(instance, value);
*/
set(object: This, value: Value): void;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
}
/**
* Context provided to a class \`accessor\` field decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of decorated class field.
*/
interface ClassAccessorDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "accessor";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Invokes the getter on the provided object.
*
* @example
* let value = context.access.get(instance);
*/
get(object: This): Value;
/**
* Invokes the setter on the provided object.
*
* @example
* context.access.set(instance, value);
*/
set(object: This, value: Value): void;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
}
/**
* Describes the target provided to class \`accessor\` field decorators.
* @template This The \`this\` type to which the target applies.
* @template Value The property type for the class \`accessor\` field.
*/
interface ClassAccessorDecoratorTarget<This, Value> {
/**
* Invokes the getter that was defined prior to decorator application.
*
* @example
* let value = target.get.call(instance);
*/
get(this: This): Value;
/**
* Invokes the setter that was defined prior to decorator application.
*
* @example
* target.set.call(instance, value);
*/
set(this: This, value: Value): void;
}
/**
* Describes the allowed return value from a class \`accessor\` field decorator.
* @template This The \`this\` type to which the target applies.
* @template Value The property type for the class \`accessor\` field.
*/
interface ClassAccessorDecoratorResult<This, Value> {
/**
* An optional replacement getter function. If not provided, the existing getter function is used instead.
*/
get?(this: This): Value;
/**
* An optional replacement setter function. If not provided, the existing setter function is used instead.
*/
set?(this: This, value: Value): void;
/**
* An optional initializer mutator that is invoked when the underlying field initializer is evaluated.
* @param value The incoming initializer value.
* @returns The replacement initializer value.
*/
init?(this: This, value: Value): Value;
}
/**
* Context provided to a class field decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of the decorated class field.
*/
interface ClassFieldDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "field";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Gets the value of the field on the provided object.
*/
get(object: This): Value;
/**
* Sets the value of the field on the provided object.
*/
set(object: This, value: Value): void;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
}
`,ya["lib.decorators.legacy.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
`,ya["lib.dom.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window APIs
/////////////////////////////
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
signal?: AbortSignal;
}
interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
interface AesCtrParams extends Algorithm {
counter: BufferSource;
length: number;
}
interface AesDerivedKeyParams extends Algorithm {
length: number;
}
interface AesGcmParams extends Algorithm {
additionalData?: BufferSource;
iv: BufferSource;
tagLength?: number;
}
interface AesKeyAlgorithm extends KeyAlgorithm {
length: number;
}
interface AesKeyGenParams extends Algorithm {
length: number;
}
interface Algorithm {
name: string;
}
interface AnalyserOptions extends AudioNodeOptions {
fftSize?: number;
maxDecibels?: number;
minDecibels?: number;
smoothingTimeConstant?: number;
}
interface AnimationEventInit extends EventInit {
animationName?: string;
elapsedTime?: number;
pseudoElement?: string;
}
interface AnimationPlaybackEventInit extends EventInit {
currentTime?: CSSNumberish | null;
timelineTime?: CSSNumberish | null;
}
interface AssignedNodesOptions {
flatten?: boolean;
}
interface AudioBufferOptions {
length: number;
numberOfChannels?: number;
sampleRate: number;
}
interface AudioBufferSourceOptions {
buffer?: AudioBuffer | null;
detune?: number;
loop?: boolean;
loopEnd?: number;
loopStart?: number;
playbackRate?: number;
}
interface AudioConfiguration {
bitrate?: number;
channels?: string;
contentType: string;
samplerate?: number;
spatialRendering?: boolean;
}
interface AudioContextOptions {
latencyHint?: AudioContextLatencyCategory | number;
sampleRate?: number;
}
interface AudioNodeOptions {
channelCount?: number;
channelCountMode?: ChannelCountMode;
channelInterpretation?: ChannelInterpretation;
}
interface AudioProcessingEventInit extends EventInit {
inputBuffer: AudioBuffer;
outputBuffer: AudioBuffer;
playbackTime: number;
}
interface AudioTimestamp {
contextTime?: number;
performanceTime?: DOMHighResTimeStamp;
}
interface AudioWorkletNodeOptions extends AudioNodeOptions {
numberOfInputs?: number;
numberOfOutputs?: number;
outputChannelCount?: number[];
parameterData?: Record<string, number>;
processorOptions?: any;
}
interface AuthenticationExtensionsClientInputs {
appid?: string;
credProps?: boolean;
hmacCreateSecret?: boolean;
}
interface AuthenticationExtensionsClientOutputs {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
hmacCreateSecret?: boolean;
}
interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: AuthenticatorAttachment;
requireResidentKey?: boolean;
residentKey?: ResidentKeyRequirement;
userVerification?: UserVerificationRequirement;
}
interface BiquadFilterOptions extends AudioNodeOptions {
Q?: number;
detune?: number;
frequency?: number;
gain?: number;
type?: BiquadFilterType;
}
interface BlobEventInit {
data: Blob;
timecode?: DOMHighResTimeStamp;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface CSSStyleSheetInit {
baseURL?: string;
disabled?: boolean;
media?: MediaList | string;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface CanvasRenderingContext2DSettings {
alpha?: boolean;
colorSpace?: PredefinedColorSpace;
desynchronized?: boolean;
willReadFrequently?: boolean;
}
interface ChannelMergerOptions extends AudioNodeOptions {
numberOfInputs?: number;
}
interface ChannelSplitterOptions extends AudioNodeOptions {
numberOfOutputs?: number;
}
interface CheckVisibilityOptions {
checkOpacity?: boolean;
checkVisibilityCSS?: boolean;
}
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
}
interface ClipboardEventInit extends EventInit {
clipboardData?: DataTransfer | null;
}
interface ClipboardItemOptions {
presentationStyle?: PresentationStyle;
}
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
interface CompositionEventInit extends UIEventInit {
data?: string;
}
interface ComputedEffectTiming extends EffectTiming {
activeDuration?: CSSNumberish;
currentIteration?: number | null;
endTime?: CSSNumberish;
localTime?: CSSNumberish | null;
progress?: number | null;
startTime?: CSSNumberish;
}
interface ComputedKeyframe {
composite: CompositeOperationOrAuto;
computedOffset: number;
easing: string;
offset: number | null;
[property: string]: string | number | null | undefined;
}
interface ConstantSourceOptions {
offset?: number;
}
interface ConstrainBooleanParameters {
exact?: boolean;
ideal?: boolean;
}
interface ConstrainDOMStringParameters {
exact?: string | string[];
ideal?: string | string[];
}
interface ConstrainDoubleRange extends DoubleRange {
exact?: number;
ideal?: number;
}
interface ConstrainULongRange extends ULongRange {
exact?: number;
ideal?: number;
}
interface ConvolverOptions extends AudioNodeOptions {
buffer?: AudioBuffer | null;
disableNormalization?: boolean;
}
interface CredentialCreationOptions {
publicKey?: PublicKeyCredentialCreationOptions;
signal?: AbortSignal;
}
interface CredentialPropertiesOutput {
rk?: boolean;
}
interface CredentialRequestOptions {
mediation?: CredentialMediationRequirement;
publicKey?: PublicKeyCredentialRequestOptions;
signal?: AbortSignal;
}
interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}
interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
interface DOMMatrix2DInit {
a?: number;
b?: number;
c?: number;
d?: number;
e?: number;
f?: number;
m11?: number;
m12?: number;
m21?: number;
m22?: number;
m41?: number;
m42?: number;
}
interface DOMMatrixInit extends DOMMatrix2DInit {
is2D?: boolean;
m13?: number;
m14?: number;
m23?: number;
m24?: number;
m31?: number;
m32?: number;
m33?: number;
m34?: number;
m43?: number;
m44?: number;
}
interface DOMPointInit {
w?: number;
x?: number;
y?: number;
z?: number;
}
interface DOMQuadInit {
p1?: DOMPointInit;
p2?: DOMPointInit;
p3?: DOMPointInit;
p4?: DOMPointInit;
}
interface DOMRectInit {
height?: number;
width?: number;
x?: number;
y?: number;
}
interface DelayOptions extends AudioNodeOptions {
delayTime?: number;
maxDelayTime?: number;
}
interface DeviceMotionEventAccelerationInit {
x?: number | null;
y?: number | null;
z?: number | null;
}
interface DeviceMotionEventInit extends EventInit {
acceleration?: DeviceMotionEventAccelerationInit;
accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;
interval?: number;
rotationRate?: DeviceMotionEventRotationRateInit;
}
interface DeviceMotionEventRotationRateInit {
alpha?: number | null;
beta?: number | null;
gamma?: number | null;
}
interface DeviceOrientationEventInit extends EventInit {
absolute?: boolean;
alpha?: number | null;
beta?: number | null;
gamma?: number | null;
}
interface DisplayMediaStreamOptions {
audio?: boolean | MediaTrackConstraints;
video?: boolean | MediaTrackConstraints;
}
interface DocumentTimelineOptions {
originTime?: DOMHighResTimeStamp;
}
interface DoubleRange {
max?: number;
min?: number;
}
interface DragEventInit extends MouseEventInit {
dataTransfer?: DataTransfer | null;
}
interface DynamicsCompressorOptions extends AudioNodeOptions {
attack?: number;
knee?: number;
ratio?: number;
release?: number;
threshold?: number;
}
interface EcKeyAlgorithm extends KeyAlgorithm {
namedCurve: NamedCurve;
}
interface EcKeyGenParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcKeyImportParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcdhKeyDeriveParams extends Algorithm {
public: CryptoKey;
}
interface EcdsaParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface EffectTiming {
delay?: number;
direction?: PlaybackDirection;
duration?: number | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
playbackRate?: number;
}
interface ElementCreationOptions {
is?: string;
}
interface ElementDefinitionOptions {
extends?: string;
}
interface ErrorEventInit extends EventInit {
colno?: number;
error?: any;
filename?: string;
lineno?: number;
message?: string;
}
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
}
interface EventModifierInit extends UIEventInit {
altKey?: boolean;
ctrlKey?: boolean;
metaKey?: boolean;
modifierAltGraph?: boolean;
modifierCapsLock?: boolean;
modifierFn?: boolean;
modifierFnLock?: boolean;
modifierHyper?: boolean;
modifierNumLock?: boolean;
modifierScrollLock?: boolean;
modifierSuper?: boolean;
modifierSymbol?: boolean;
modifierSymbolLock?: boolean;
shiftKey?: boolean;
}
interface EventSourceInit {
withCredentials?: boolean;
}
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
interface FileSystemFlags {
create?: boolean;
exclusive?: boolean;
}
interface FileSystemGetDirectoryOptions {
create?: boolean;
}
interface FileSystemGetFileOptions {
create?: boolean;
}
interface FileSystemRemoveOptions {
recursive?: boolean;
}
interface FocusEventInit extends UIEventInit {
relatedTarget?: EventTarget | null;
}
interface FocusOptions {
preventScroll?: boolean;
}
interface FontFaceDescriptors {
ascentOverride?: string;
descentOverride?: string;
display?: FontDisplay;
featureSettings?: string;
lineGapOverride?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
variant?: string;
weight?: string;
}
interface FontFaceSetLoadEventInit extends EventInit {
fontfaces?: FontFace[];
}
interface FormDataEventInit extends EventInit {
formData: FormData;
}
interface FullscreenOptions {
navigationUI?: FullscreenNavigationUI;
}
interface GainOptions extends AudioNodeOptions {
gain?: number;
}
interface GamepadEventInit extends EventInit {
gamepad: Gamepad;
}
interface GetAnimationsOptions {
subtree?: boolean;
}
interface GetNotificationOptions {
tag?: string;
}
interface GetRootNodeOptions {
composed?: boolean;
}
interface HashChangeEventInit extends EventInit {
newURL?: string;
oldURL?: string;
}
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface HmacKeyAlgorithm extends KeyAlgorithm {
hash: KeyAlgorithm;
length: number;
}
interface HmacKeyGenParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface IDBDatabaseInfo {
name?: string;
version?: number;
}
interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
}
interface IDBObjectStoreParameters {
autoIncrement?: boolean;
keyPath?: string | string[] | null;
}
interface IDBTransactionOptions {
durability?: IDBTransactionDurability;
}
interface IDBVersionChangeEventInit extends EventInit {
newVersion?: number | null;
oldVersion?: number;
}
interface IIRFilterOptions extends AudioNodeOptions {
feedback: number[];
feedforward: number[];
}
interface IdleRequestOptions {
timeout?: number;
}
interface ImageBitmapOptions {
colorSpaceConversion?: ColorSpaceConversion;
imageOrientation?: ImageOrientation;
premultiplyAlpha?: PremultiplyAlpha;
resizeHeight?: number;
resizeQuality?: ResizeQuality;
resizeWidth?: number;
}
interface ImageBitmapRenderingContextSettings {
alpha?: boolean;
}
interface ImageDataSettings {
colorSpace?: PredefinedColorSpace;
}
interface ImageEncodeOptions {
quality?: number;
type?: string;
}
interface ImportMeta {
url: string;
}
interface InputEventInit extends UIEventInit {
data?: string | null;
dataTransfer?: DataTransfer | null;
inputType?: string;
isComposing?: boolean;
targetRanges?: StaticRange[];
}
interface IntersectionObserverEntryInit {
boundingClientRect: DOMRectInit;
intersectionRatio: number;
intersectionRect: DOMRectInit;
isIntersecting: boolean;
rootBounds: DOMRectInit | null;
target: Element;
time: DOMHighResTimeStamp;
}
interface IntersectionObserverInit {
root?: Element | Document | null;
rootMargin?: string;
threshold?: number | number[];
}
interface JsonWebKey {
alg?: string;
crv?: string;
d?: string;
dp?: string;
dq?: string;
e?: string;
ext?: boolean;
k?: string;
key_ops?: string[];
kty?: string;
n?: string;
oth?: RsaOtherPrimesInfo[];
p?: string;
q?: string;
qi?: string;
use?: string;
x?: string;
y?: string;
}
interface KeyAlgorithm {
name: string;
}
interface KeyboardEventInit extends EventModifierInit {
/** @deprecated */
charCode?: number;
code?: string;
isComposing?: boolean;
key?: string;
/** @deprecated */
keyCode?: number;
location?: number;
repeat?: boolean;
}
interface Keyframe {
composite?: CompositeOperationOrAuto;
easing?: string;
offset?: number | null;
[property: string]: string | number | null | undefined;
}
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
id?: string;
}
interface KeyframeEffectOptions extends EffectTiming {
composite?: CompositeOperation;
iterationComposite?: IterationCompositeOperation;
pseudoElement?: string | null;
}
interface LockInfo {
clientId?: string;
mode?: LockMode;
name?: string;
}
interface LockManagerSnapshot {
held?: LockInfo[];
pending?: LockInfo[];
}
interface LockOptions {
ifAvailable?: boolean;
mode?: LockMode;
signal?: AbortSignal;
steal?: boolean;
}
interface MIDIConnectionEventInit extends EventInit {
port?: MIDIPort;
}
interface MIDIMessageEventInit extends EventInit {
data?: Uint8Array;
}
interface MIDIOptions {
software?: boolean;
sysex?: boolean;
}
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaDecodingConfiguration;
}
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaEncodingConfiguration;
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
type: MediaDecodingType;
}
interface MediaElementAudioSourceOptions {
mediaElement: HTMLMediaElement;
}
interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MediaEncryptedEventInit extends EventInit {
initData?: ArrayBuffer | null;
initDataType?: string;
}
interface MediaImage {
sizes?: string;
src: string;
type?: string;
}
interface MediaKeyMessageEventInit extends EventInit {
message: ArrayBuffer;
messageType: MediaKeyMessageType;
}
interface MediaKeySystemConfiguration {
audioCapabilities?: MediaKeySystemMediaCapability[];
distinctiveIdentifier?: MediaKeysRequirement;
initDataTypes?: string[];
label?: string;
persistentState?: MediaKeysRequirement;
sessionTypes?: string[];
videoCapabilities?: MediaKeySystemMediaCapability[];
}
interface MediaKeySystemMediaCapability {
contentType?: string;
encryptionScheme?: string | null;
robustness?: string;
}
interface MediaMetadataInit {
album?: string;
artist?: string;
artwork?: MediaImage[];
title?: string;
}
interface MediaPositionState {
duration?: number;
playbackRate?: number;
position?: number;
}
interface MediaQueryListEventInit extends EventInit {
matches?: boolean;
media?: string;
}
interface MediaRecorderOptions {
audioBitsPerSecond?: number;
bitsPerSecond?: number;
mimeType?: string;
videoBitsPerSecond?: number;
}
interface MediaSessionActionDetails {
action: MediaSessionAction;
fastSeek?: boolean;
seekOffset?: number;
seekTime?: number;
}
interface MediaStreamAudioSourceOptions {
mediaStream: MediaStream;
}
interface MediaStreamConstraints {
audio?: boolean | MediaTrackConstraints;
peerIdentity?: string;
preferCurrentTab?: boolean;
video?: boolean | MediaTrackConstraints;
}
interface MediaStreamTrackEventInit extends EventInit {
track: MediaStreamTrack;
}
interface MediaTrackCapabilities {
aspectRatio?: DoubleRange;
autoGainControl?: boolean[];
channelCount?: ULongRange;
deviceId?: string;
displaySurface?: string;
echoCancellation?: boolean[];
facingMode?: string[];
frameRate?: DoubleRange;
groupId?: string;
height?: ULongRange;
noiseSuppression?: boolean[];
sampleRate?: ULongRange;
sampleSize?: ULongRange;
width?: ULongRange;
}
interface MediaTrackConstraintSet {
aspectRatio?: ConstrainDouble;
autoGainControl?: ConstrainBoolean;
channelCount?: ConstrainULong;
deviceId?: ConstrainDOMString;
displaySurface?: ConstrainDOMString;
echoCancellation?: ConstrainBoolean;
facingMode?: ConstrainDOMString;
frameRate?: ConstrainDouble;
groupId?: ConstrainDOMString;
height?: ConstrainULong;
noiseSuppression?: ConstrainBoolean;
sampleRate?: ConstrainULong;
sampleSize?: ConstrainULong;
width?: ConstrainULong;
}
interface MediaTrackConstraints extends MediaTrackConstraintSet {
advanced?: MediaTrackConstraintSet[];
}
interface MediaTrackSettings {
aspectRatio?: number;
autoGainControl?: boolean;
channelCount?: number;
deviceId?: string;
displaySurface?: string;
echoCancellation?: boolean;
facingMode?: string;
frameRate?: number;
groupId?: string;
height?: number;
noiseSuppression?: boolean;
sampleRate?: number;
sampleSize?: number;
width?: number;
}
interface MediaTrackSupportedConstraints {
aspectRatio?: boolean;
autoGainControl?: boolean;
channelCount?: boolean;
deviceId?: boolean;
displaySurface?: boolean;
echoCancellation?: boolean;
facingMode?: boolean;
frameRate?: boolean;
groupId?: boolean;
height?: boolean;
noiseSuppression?: boolean;
sampleRate?: boolean;
sampleSize?: boolean;
width?: boolean;
}
interface MessageEventInit<T = any> extends EventInit {
data?: T;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: MessageEventSource | null;
}
interface MouseEventInit extends EventModifierInit {
button?: number;
buttons?: number;
clientX?: number;
clientY?: number;
movementX?: number;
movementY?: number;
relatedTarget?: EventTarget | null;
screenX?: number;
screenY?: number;
}
interface MultiCacheQueryOptions extends CacheQueryOptions {
cacheName?: string;
}
interface MutationObserverInit {
/** 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. */
attributeFilter?: string[];
/** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */
attributeOldValue?: boolean;
/** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */
attributes?: boolean;
/** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */
characterData?: boolean;
/** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */
characterDataOldValue?: boolean;
/** Set to true if mutations to target's children are to be observed. */
childList?: boolean;
/** Set to true if mutations to not just target, but also target's descendants are to be observed. */
subtree?: boolean;
}
interface NavigationPreloadState {
enabled?: boolean;
headerValue?: string;
}
interface NotificationAction {
action: string;
icon?: string;
title: string;
}
interface NotificationOptions {
actions?: NotificationAction[];
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
image?: string;
lang?: string;
renotify?: boolean;
requireInteraction?: boolean;
silent?: boolean;
tag?: string;
timestamp?: EpochTimeStamp;
vibrate?: VibratePattern;
}
interface OfflineAudioCompletionEventInit extends EventInit {
renderedBuffer: AudioBuffer;
}
interface OfflineAudioContextOptions {
length: number;
numberOfChannels?: number;
sampleRate: number;
}
interface OptionalEffectTiming {
delay?: number;
direction?: PlaybackDirection;
duration?: number | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
playbackRate?: number;
}
interface OscillatorOptions extends AudioNodeOptions {
detune?: number;
frequency?: number;
periodicWave?: PeriodicWave;
type?: OscillatorType;
}
interface PageTransitionEventInit extends EventInit {
persisted?: boolean;
}
interface PannerOptions extends AudioNodeOptions {
coneInnerAngle?: number;
coneOuterAngle?: number;
coneOuterGain?: number;
distanceModel?: DistanceModelType;
maxDistance?: number;
orientationX?: number;
orientationY?: number;
orientationZ?: number;
panningModel?: PanningModelType;
positionX?: number;
positionY?: number;
positionZ?: number;
refDistance?: number;
rolloffFactor?: number;
}
interface PaymentCurrencyAmount {
currency: string;
value: string;
}
interface PaymentDetailsBase {
displayItems?: PaymentItem[];
modifiers?: PaymentDetailsModifier[];
}
interface PaymentDetailsInit extends PaymentDetailsBase {
id?: string;
total: PaymentItem;
}
interface PaymentDetailsModifier {
additionalDisplayItems?: PaymentItem[];
data?: any;
supportedMethods: string;
total?: PaymentItem;
}
interface PaymentDetailsUpdate extends PaymentDetailsBase {
paymentMethodErrors?: any;
total?: PaymentItem;
}
interface PaymentItem {
amount: PaymentCurrencyAmount;
label: string;
pending?: boolean;
}
interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
methodDetails?: any;
methodName?: string;
}
interface PaymentMethodData {
data?: any;
supportedMethods: string;
}
interface PaymentRequestUpdateEventInit extends EventInit {
}
interface PaymentValidationErrors {
error?: string;
paymentMethod?: any;
}
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
salt: BufferSource;
}
interface PerformanceMarkOptions {
detail?: any;
startTime?: DOMHighResTimeStamp;
}
interface PerformanceMeasureOptions {
detail?: any;
duration?: DOMHighResTimeStamp;
end?: string | DOMHighResTimeStamp;
start?: string | DOMHighResTimeStamp;
}
interface PerformanceObserverInit {
buffered?: boolean;
entryTypes?: string[];
type?: string;
}
interface PeriodicWaveConstraints {
disableNormalization?: boolean;
}
interface PeriodicWaveOptions extends PeriodicWaveConstraints {
imag?: number[] | Float32Array;
real?: number[] | Float32Array;
}
interface PermissionDescriptor {
name: PermissionName;
}
interface PictureInPictureEventInit extends EventInit {
pictureInPictureWindow: PictureInPictureWindow;
}
interface PointerEventInit extends MouseEventInit {
coalescedEvents?: PointerEvent[];
height?: number;
isPrimary?: boolean;
pointerId?: number;
pointerType?: string;
predictedEvents?: PointerEvent[];
pressure?: number;
tangentialPressure?: number;
tiltX?: number;
tiltY?: number;
twist?: number;
width?: number;
}
interface PopStateEventInit extends EventInit {
state?: any;
}
interface PositionOptions {
enableHighAccuracy?: boolean;
maximumAge?: number;
timeout?: number;
}
interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
total?: number;
}
interface PromiseRejectionEventInit extends EventInit {
promise: Promise<any>;
reason?: any;
}
interface PropertyIndexedKeyframes {
composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
easing?: string | string[];
offset?: number | (number | null)[];
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
}
interface PublicKeyCredentialCreationOptions {
attestation?: AttestationConveyancePreference;
authenticatorSelection?: AuthenticatorSelectionCriteria;
challenge: BufferSource;
excludeCredentials?: PublicKeyCredentialDescriptor[];
extensions?: AuthenticationExtensionsClientInputs;
pubKeyCredParams: PublicKeyCredentialParameters[];
rp: PublicKeyCredentialRpEntity;
timeout?: number;
user: PublicKeyCredentialUserEntity;
}
interface PublicKeyCredentialDescriptor {
id: BufferSource;
transports?: AuthenticatorTransport[];
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialEntity {
name: string;
}
interface PublicKeyCredentialParameters {
alg: COSEAlgorithmIdentifier;
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialRequestOptions {
allowCredentials?: PublicKeyCredentialDescriptor[];
challenge: BufferSource;
extensions?: AuthenticationExtensionsClientInputs;
rpId?: string;
timeout?: number;
userVerification?: UserVerificationRequirement;
}
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
id?: string;
}
interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
displayName: string;
id: BufferSource;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: EpochTimeStamp | null;
keys?: Record<string, string>;
}
interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySize<T>;
}
interface QueuingStrategyInit {
/**
* Creates a new ByteLengthQueuingStrategy with the provided high water mark.
*
* 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.
*/
highWaterMark: number;
}
interface RTCAnswerOptions extends RTCOfferAnswerOptions {
}
interface RTCCertificateExpiration {
expires?: number;
}
interface RTCConfiguration {
bundlePolicy?: RTCBundlePolicy;
certificates?: RTCCertificate[];
iceCandidatePoolSize?: number;
iceServers?: RTCIceServer[];
iceTransportPolicy?: RTCIceTransportPolicy;
rtcpMuxPolicy?: RTCRtcpMuxPolicy;
}
interface RTCDTMFToneChangeEventInit extends EventInit {
tone?: string;
}
interface RTCDataChannelEventInit extends EventInit {
channel: RTCDataChannel;
}
interface RTCDataChannelInit {
id?: number;
maxPacketLifeTime?: number;
maxRetransmits?: number;
negotiated?: boolean;
ordered?: boolean;
protocol?: string;
}
interface RTCDtlsFingerprint {
algorithm?: string;
value?: string;
}
interface RTCEncodedAudioFrameMetadata {
contributingSources?: number[];
synchronizationSource?: number;
}
interface RTCEncodedVideoFrameMetadata {
contributingSources?: number[];
dependencies?: number[];
frameId?: number;
height?: number;
spatialIndex?: number;
synchronizationSource?: number;
temporalIndex?: number;
width?: number;
}
interface RTCErrorEventInit extends EventInit {
error: RTCError;
}
interface RTCErrorInit {
errorDetail: RTCErrorDetailType;
httpRequestStatusCode?: number;
receivedAlert?: number;
sctpCauseCode?: number;
sdpLineNumber?: number;
sentAlert?: number;
}
interface RTCIceCandidateInit {
candidate?: string;
sdpMLineIndex?: number | null;
sdpMid?: string | null;
usernameFragment?: string | null;
}
interface RTCIceCandidatePairStats extends RTCStats {
availableIncomingBitrate?: number;
availableOutgoingBitrate?: number;
bytesReceived?: number;
bytesSent?: number;
currentRoundTripTime?: number;
lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
lastPacketSentTimestamp?: DOMHighResTimeStamp;
localCandidateId: string;
nominated?: boolean;
remoteCandidateId: string;
requestsReceived?: number;
requestsSent?: number;
responsesReceived?: number;
responsesSent?: number;
state: RTCStatsIceCandidatePairState;
totalRoundTripTime?: number;
transportId: string;
}
interface RTCIceServer {
credential?: string;
urls: string | string[];
username?: string;
}
interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
audioLevel?: number;
bytesReceived?: number;
concealedSamples?: number;
concealmentEvents?: number;
decoderImplementation?: string;
estimatedPlayoutTimestamp?: DOMHighResTimeStamp;
fecPacketsDiscarded?: number;
fecPacketsReceived?: number;
firCount?: number;
frameHeight?: number;
frameWidth?: number;
framesDecoded?: number;
framesDropped?: number;
framesPerSecond?: number;
framesReceived?: number;
headerBytesReceived?: number;
insertedSamplesForDeceleration?: number;
jitterBufferDelay?: number;
jitterBufferEmittedCount?: number;
keyFramesDecoded?: number;
kind: string;
lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
nackCount?: number;
packetsDiscarded?: number;
pliCount?: number;
qpSum?: number;
remoteId?: string;
removedSamplesForAcceleration?: number;
silentConcealedSamples?: number;
totalAudioEnergy?: number;
totalDecodeTime?: number;
totalInterFrameDelay?: number;
totalProcessingDelay?: number;
totalSamplesDuration?: number;
totalSamplesReceived?: number;
totalSquaredInterFrameDelay?: number;
}
interface RTCLocalSessionDescriptionInit {
sdp?: string;
type?: RTCSdpType;
}
interface RTCOfferAnswerOptions {
}
interface RTCOfferOptions extends RTCOfferAnswerOptions {
iceRestart?: boolean;
offerToReceiveAudio?: boolean;
offerToReceiveVideo?: boolean;
}
interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
firCount?: number;
frameHeight?: number;
frameWidth?: number;
framesEncoded?: number;
framesPerSecond?: number;
framesSent?: number;
headerBytesSent?: number;
hugeFramesSent?: number;
keyFramesEncoded?: number;
mediaSourceId?: string;
nackCount?: number;
pliCount?: number;
qpSum?: number;
qualityLimitationResolutionChanges?: number;
remoteId?: string;
retransmittedBytesSent?: number;
retransmittedPacketsSent?: number;
rid?: string;
targetBitrate?: number;
totalEncodeTime?: number;
totalEncodedBytesTarget?: number;
totalPacketSendDelay?: number;
}
interface RTCPeerConnectionIceErrorEventInit extends EventInit {
address?: string | null;
errorCode: number;
errorText?: string;
port?: number | null;
url?: string;
}
interface RTCPeerConnectionIceEventInit extends EventInit {
candidate?: RTCIceCandidate | null;
url?: string | null;
}
interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
jitter?: number;
packetsLost?: number;
packetsReceived?: number;
}
interface RTCRtcpParameters {
cname?: string;
reducedSize?: boolean;
}
interface RTCRtpCapabilities {
codecs: RTCRtpCodecCapability[];
headerExtensions: RTCRtpHeaderExtensionCapability[];
}
interface RTCRtpCodecCapability {
channels?: number;
clockRate: number;
mimeType: string;
sdpFmtpLine?: string;
}
interface RTCRtpCodecParameters {
channels?: number;
clockRate: number;
mimeType: string;
payloadType: number;
sdpFmtpLine?: string;
}
interface RTCRtpCodingParameters {
rid?: string;
}
interface RTCRtpContributingSource {
audioLevel?: number;
rtpTimestamp: number;
source: number;
timestamp: DOMHighResTimeStamp;
}
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
active?: boolean;
maxBitrate?: number;
maxFramerate?: number;
networkPriority?: RTCPriorityType;
priority?: RTCPriorityType;
scaleResolutionDownBy?: number;
}
interface RTCRtpHeaderExtensionCapability {
uri?: string;
}
interface RTCRtpHeaderExtensionParameters {
encrypted?: boolean;
id: number;
uri: string;
}
interface RTCRtpParameters {
codecs: RTCRtpCodecParameters[];
headerExtensions: RTCRtpHeaderExtensionParameters[];
rtcp: RTCRtcpParameters;
}
interface RTCRtpReceiveParameters extends RTCRtpParameters {
}
interface RTCRtpSendParameters extends RTCRtpParameters {
degradationPreference?: RTCDegradationPreference;
encodings: RTCRtpEncodingParameters[];
transactionId: string;
}
interface RTCRtpStreamStats extends RTCStats {
codecId?: string;
kind: string;
ssrc: number;
transportId?: string;
}
interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {
}
interface RTCRtpTransceiverInit {
direction?: RTCRtpTransceiverDirection;
sendEncodings?: RTCRtpEncodingParameters[];
streams?: MediaStream[];
}
interface RTCSentRtpStreamStats extends RTCRtpStreamStats {
bytesSent?: number;
packetsSent?: number;
}
interface RTCSessionDescriptionInit {
sdp?: string;
type: RTCSdpType;
}
interface RTCStats {
id: string;
timestamp: DOMHighResTimeStamp;
type: RTCStatsType;
}
interface RTCTrackEventInit extends EventInit {
receiver: RTCRtpReceiver;
streams?: MediaStream[];
track: MediaStreamTrack;
transceiver: RTCRtpTransceiver;
}
interface RTCTransportStats extends RTCStats {
bytesReceived?: number;
bytesSent?: number;
dtlsCipher?: string;
dtlsState: RTCDtlsTransportState;
localCertificateId?: string;
remoteCertificateId?: string;
selectedCandidatePairId?: string;
srtpCipher?: string;
tlsVersion?: string;
}
interface ReadableStreamGetReaderOptions {
/**
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
*
* 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.
*/
mode?: ReadableStreamReaderMode;
}
interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
}
interface ReadableStreamReadValueResult<T> {
done: false;
value: T;
}
interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* 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.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*/
writable: WritableStream<W>;
}
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
updateViaCache?: ServiceWorkerUpdateViaCache;
}
interface RequestInit {
/** A BodyInit object or null to set request's body. */
body?: BodyInit | null;
/** A string indicating how the request will interact with the browser's cache to set request's cache. */
cache?: RequestCache;
/** 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. */
credentials?: RequestCredentials;
/** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
headers?: HeadersInit;
/** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
integrity?: string;
/** A boolean to set request's keepalive. */
keepalive?: boolean;
/** A string to set request's method. */
method?: string;
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
mode?: RequestMode;
/** 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. */
redirect?: RequestRedirect;
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
referrer?: string;
/** A referrer policy to set request's referrerPolicy. */
referrerPolicy?: ReferrerPolicy;
/** An AbortSignal to set request's signal. */
signal?: AbortSignal | null;
/** Can only be null. Used to disassociate request from any Window. */
window?: null;
}
interface ResizeObserverOptions {
box?: ResizeObserverBoxOptions;
}
interface ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
hash: KeyAlgorithm;
}
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
interface RsaKeyAlgorithm extends KeyAlgorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaKeyGenParams extends Algorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaOaepParams extends Algorithm {
label?: BufferSource;
}
interface RsaOtherPrimesInfo {
d?: string;
r?: string;
t?: string;
}
interface RsaPssParams extends Algorithm {
saltLength: number;
}
interface SVGBoundingBoxOptions {
clipped?: boolean;
fill?: boolean;
markers?: boolean;
stroke?: boolean;
}
interface ScrollIntoViewOptions extends ScrollOptions {
block?: ScrollLogicalPosition;
inline?: ScrollLogicalPosition;
}
interface ScrollOptions {
behavior?: ScrollBehavior;
}
interface ScrollToOptions extends ScrollOptions {
left?: number;
top?: number;
}
interface SecurityPolicyViolationEventInit extends EventInit {
blockedURI?: string;
columnNumber?: number;
disposition: SecurityPolicyViolationEventDisposition;
documentURI: string;
effectiveDirective: string;
lineNumber?: number;
originalPolicy: string;
referrer?: string;
sample?: string;
sourceFile?: string;
statusCode: number;
violatedDirective: string;
}
interface ShadowRootInit {
delegatesFocus?: boolean;
mode: ShadowRootMode;
slotAssignment?: SlotAssignmentMode;
}
interface ShareData {
files?: File[];
text?: string;
title?: string;
url?: string;
}
interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
error: SpeechSynthesisErrorCode;
}
interface SpeechSynthesisEventInit extends EventInit {
charIndex?: number;
charLength?: number;
elapsedTime?: number;
name?: string;
utterance: SpeechSynthesisUtterance;
}
interface StaticRangeInit {
endContainer: Node;
endOffset: number;
startContainer: Node;
startOffset: number;
}
interface StereoPannerOptions extends AudioNodeOptions {
pan?: number;
}
interface StorageEstimate {
quota?: number;
usage?: number;
}
interface StorageEventInit extends EventInit {
key?: string | null;
newValue?: string | null;
oldValue?: string | null;
storageArea?: Storage | null;
url?: string;
}
interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
/**
* 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.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*
* Errors and closures of the source and destination streams propagate as follows:
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*/
preventClose?: boolean;
signal?: AbortSignal;
}
interface StructuredSerializeOptions {
transfer?: Transferable[];
}
interface SubmitEventInit extends EventInit {
submitter?: HTMLElement | null;
}
interface TextDecodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
interface TextEncoderEncodeIntoResult {
read?: number;
written?: number;
}
interface TouchEventInit extends EventModifierInit {
changedTouches?: Touch[];
targetTouches?: Touch[];
touches?: Touch[];
}
interface TouchInit {
altitudeAngle?: number;
azimuthAngle?: number;
clientX?: number;
clientY?: number;
force?: number;
identifier: number;
pageX?: number;
pageY?: number;
radiusX?: number;
radiusY?: number;
rotationAngle?: number;
screenX?: number;
screenY?: number;
target: EventTarget;
touchType?: TouchType;
}
interface TrackEventInit extends EventInit {
track?: TextTrack | null;
}
interface Transformer<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
writableType?: undefined;
}
interface TransitionEventInit extends EventInit {
elapsedTime?: number;
propertyName?: string;
pseudoElement?: string;
}
interface UIEventInit extends EventInit {
detail?: number;
view?: Window | null;
/** @deprecated */
which?: number;
}
interface ULongRange {
max?: number;
min?: number;
}
interface UnderlyingByteSource {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
start?: (controller: ReadableByteStreamController) => any;
type: "bytes";
}
interface UnderlyingDefaultSource<R = any> {
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
start?: (controller: ReadableStreamDefaultController<R>) => any;
type?: undefined;
}
interface UnderlyingSink<W = any> {
abort?: UnderlyingSinkAbortCallback;
close?: UnderlyingSinkCloseCallback;
start?: UnderlyingSinkStartCallback;
type?: undefined;
write?: UnderlyingSinkWriteCallback<W>;
}
interface UnderlyingSource<R = any> {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: UnderlyingSourcePullCallback<R>;
start?: UnderlyingSourceStartCallback<R>;
type?: ReadableStreamType;
}
interface ValidityStateFlags {
badInput?: boolean;
customError?: boolean;
patternMismatch?: boolean;
rangeOverflow?: boolean;
rangeUnderflow?: boolean;
stepMismatch?: boolean;
tooLong?: boolean;
tooShort?: boolean;
typeMismatch?: boolean;
valueMissing?: boolean;
}
interface VideoColorSpaceInit {
fullRange?: boolean | null;
matrix?: VideoMatrixCoefficients | null;
primaries?: VideoColorPrimaries | null;
transfer?: VideoTransferCharacteristics | null;
}
interface VideoConfiguration {
bitrate: number;
colorGamut?: ColorGamut;
contentType: string;
framerate: number;
hdrMetadataType?: HdrMetadataType;
height: number;
scalabilityMode?: string;
transferFunction?: TransferFunction;
width: number;
}
interface VideoFrameCallbackMetadata {
captureTime?: DOMHighResTimeStamp;
expectedDisplayTime: DOMHighResTimeStamp;
height: number;
mediaTime: number;
presentationTime: DOMHighResTimeStamp;
presentedFrames: number;
processingDuration?: number;
receiveTime?: DOMHighResTimeStamp;
rtpTimestamp?: number;
width: number;
}
interface WaveShaperOptions extends AudioNodeOptions {
curve?: number[] | Float32Array;
oversample?: OverSampleType;
}
interface WebGLContextAttributes {
alpha?: boolean;
antialias?: boolean;
depth?: boolean;
desynchronized?: boolean;
failIfMajorPerformanceCaveat?: boolean;
powerPreference?: WebGLPowerPreference;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
stencil?: boolean;
}
interface WebGLContextEventInit extends EventInit {
statusMessage?: string;
}
interface WheelEventInit extends MouseEventInit {
deltaMode?: number;
deltaX?: number;
deltaY?: number;
deltaZ?: number;
}
interface WindowPostMessageOptions extends StructuredSerializeOptions {
targetOrigin?: string;
}
interface WorkerOptions {
credentials?: RequestCredentials;
name?: string;
type?: WorkerType;
}
interface WorkletOptions {
credentials?: RequestCredentials;
}
type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
declare var NodeFilter: {
readonly FILTER_ACCEPT: 1;
readonly FILTER_REJECT: 2;
readonly FILTER_SKIP: 3;
readonly SHOW_ALL: 0xFFFFFFFF;
readonly SHOW_ELEMENT: 0x1;
readonly SHOW_ATTRIBUTE: 0x2;
readonly SHOW_TEXT: 0x4;
readonly SHOW_CDATA_SECTION: 0x8;
readonly SHOW_ENTITY_REFERENCE: 0x10;
readonly SHOW_ENTITY: 0x20;
readonly SHOW_PROCESSING_INSTRUCTION: 0x40;
readonly SHOW_COMMENT: 0x80;
readonly SHOW_DOCUMENT: 0x100;
readonly SHOW_DOCUMENT_TYPE: 0x200;
readonly SHOW_DOCUMENT_FRAGMENT: 0x400;
readonly SHOW_NOTATION: 0x800;
};
type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };
/** 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. */
interface ANGLE_instanced_arrays {
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
}
interface ARIAMixin {
ariaAtomic: string | null;
ariaAutoComplete: string | null;
ariaBusy: string | null;
ariaChecked: string | null;
ariaColCount: string | null;
ariaColIndex: string | null;
ariaColSpan: string | null;
ariaCurrent: string | null;
ariaDisabled: string | null;
ariaExpanded: string | null;
ariaHasPopup: string | null;
ariaHidden: string | null;
ariaInvalid: string | null;
ariaKeyShortcuts: string | null;
ariaLabel: string | null;
ariaLevel: string | null;
ariaLive: string | null;
ariaModal: string | null;
ariaMultiLine: string | null;
ariaMultiSelectable: string | null;
ariaOrientation: string | null;
ariaPlaceholder: string | null;
ariaPosInSet: string | null;
ariaPressed: string | null;
ariaReadOnly: string | null;
ariaRequired: string | null;
ariaRoleDescription: string | null;
ariaRowCount: string | null;
ariaRowIndex: string | null;
ariaRowSpan: string | null;
ariaSelected: string | null;
ariaSetSize: string | null;
ariaSort: string | null;
ariaValueMax: string | null;
ariaValueMin: string | null;
ariaValueNow: string | null;
ariaValueText: string | null;
role: string | null;
}
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
interface AbortController {
/** Returns the AbortSignal object associated with this object. */
readonly signal: AbortSignal;
/** 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. */
abort(reason?: any): void;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
interface AbortSignalEventMap {
"abort": Event;
}
/** 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. */
interface AbortSignal extends EventTarget {
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
readonly aborted: boolean;
onabort: ((this: AbortSignal, ev: Event) => any) | null;
readonly reason: any;
throwIfAborted(): void;
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AbortSignal: {
prototype: AbortSignal;
new(): AbortSignal;
abort(reason?: any): AbortSignal;
timeout(milliseconds: number): AbortSignal;
};
interface AbstractRange {
/** Returns true if range is collapsed, and false otherwise. */
readonly collapsed: boolean;
/** Returns range's end node. */
readonly endContainer: Node;
/** Returns range's end offset. */
readonly endOffset: number;
/** Returns range's start node. */
readonly startContainer: Node;
/** Returns range's start offset. */
readonly startOffset: number;
}
declare var AbstractRange: {
prototype: AbstractRange;
new(): AbstractRange;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** 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. */
interface AnalyserNode extends AudioNode {
fftSize: number;
readonly frequencyBinCount: number;
maxDecibels: number;
minDecibels: number;
smoothingTimeConstant: number;
getByteFrequencyData(array: Uint8Array): void;
getByteTimeDomainData(array: Uint8Array): void;
getFloatFrequencyData(array: Float32Array): void;
getFloatTimeDomainData(array: Float32Array): void;
}
declare var AnalyserNode: {
prototype: AnalyserNode;
new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
};
interface Animatable {
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
getAnimations(options?: GetAnimationsOptions): Animation[];
}
interface AnimationEventMap {
"cancel": AnimationPlaybackEvent;
"finish": AnimationPlaybackEvent;
"remove": Event;
}
interface Animation extends EventTarget {
currentTime: CSSNumberish | null;
effect: AnimationEffect | null;
readonly finished: Promise<Animation>;
id: string;
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
onremove: ((this: Animation, ev: Event) => any) | null;
readonly pending: boolean;
readonly playState: AnimationPlayState;
playbackRate: number;
readonly ready: Promise<Animation>;
readonly replaceState: AnimationReplaceState;
startTime: CSSNumberish | null;
timeline: AnimationTimeline | null;
cancel(): void;
commitStyles(): void;
finish(): void;
pause(): void;
persist(): void;
play(): void;
reverse(): void;
updatePlaybackRate(playbackRate: number): void;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Animation: {
prototype: Animation;
new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
};
interface AnimationEffect {
getComputedTiming(): ComputedEffectTiming;
getTiming(): EffectTiming;
updateTiming(timing?: OptionalEffectTiming): void;
}
declare var AnimationEffect: {
prototype: AnimationEffect;
new(): AnimationEffect;
};
/** Events providing information related to animations. */
interface AnimationEvent extends Event {
readonly animationName: string;
readonly elapsedTime: number;
readonly pseudoElement: string;
}
declare var AnimationEvent: {
prototype: AnimationEvent;
new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
};
interface AnimationFrameProvider {
cancelAnimationFrame(handle: number): void;
requestAnimationFrame(callback: FrameRequestCallback): number;
}
interface AnimationPlaybackEvent extends Event {
readonly currentTime: CSSNumberish | null;
readonly timelineTime: CSSNumberish | null;
}
declare var AnimationPlaybackEvent: {
prototype: AnimationPlaybackEvent;
new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
};
interface AnimationTimeline {
readonly currentTime: number | null;
}
declare var AnimationTimeline: {
prototype: AnimationTimeline;
new(): AnimationTimeline;
};
/** 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. */
interface Attr extends Node {
readonly localName: string;
readonly name: string;
readonly namespaceURI: string | null;
readonly ownerDocument: Document;
readonly ownerElement: Element | null;
readonly prefix: string | null;
/** @deprecated */
readonly specified: boolean;
value: string;
}
declare var Attr: {
prototype: Attr;
new(): Attr;
};
/** 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. */
interface AudioBuffer {
readonly duration: number;
readonly length: number;
readonly numberOfChannels: number;
readonly sampleRate: number;
copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;
copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;
getChannelData(channel: number): Float32Array;
}
declare var AudioBuffer: {
prototype: AudioBuffer;
new(options: AudioBufferOptions): AudioBuffer;
};
/** 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. */
interface AudioBufferSourceNode extends AudioScheduledSourceNode {
buffer: AudioBuffer | null;
readonly detune: AudioParam;
loop: boolean;
loopEnd: number;
loopStart: number;
readonly playbackRate: AudioParam;
start(when?: number, offset?: number, duration?: number): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioBufferSourceNode: {
prototype: AudioBufferSourceNode;
new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;
};
/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
interface AudioContext extends BaseAudioContext {
readonly baseLatency: number;
readonly outputLatency: number;
close(): Promise<void>;
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
getOutputTimestamp(): AudioTimestamp;
resume(): Promise<void>;
suspend(): Promise<void>;
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioContext: {
prototype: AudioContext;
new(contextOptions?: AudioContextOptions): AudioContext;
};
/** 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. */
interface AudioDestinationNode extends AudioNode {
readonly maxChannelCount: number;
}
declare var AudioDestinationNode: {
prototype: AudioDestinationNode;
new(): AudioDestinationNode;
};
/** 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. */
interface AudioListener {
readonly forwardX: AudioParam;
readonly forwardY: AudioParam;
readonly forwardZ: AudioParam;
readonly positionX: AudioParam;
readonly positionY: AudioParam;
readonly positionZ: AudioParam;
readonly upX: AudioParam;
readonly upY: AudioParam;
readonly upZ: AudioParam;
/** @deprecated */
setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
/** @deprecated */
setPosition(x: number, y: number, z: number): void;
}
declare var AudioListener: {
prototype: AudioListener;
new(): AudioListener;
};
/** A generic interface for representing an audio processing module. Examples include: */
interface AudioNode extends EventTarget {
channelCount: number;
channelCountMode: ChannelCountMode;
channelInterpretation: ChannelInterpretation;
readonly context: BaseAudioContext;
readonly numberOfInputs: number;
readonly numberOfOutputs: number;
connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
connect(destinationParam: AudioParam, output?: number): void;
disconnect(): void;
disconnect(output: number): void;
disconnect(destinationNode: AudioNode): void;
disconnect(destinationNode: AudioNode, output: number): void;
disconnect(destinationNode: AudioNode, output: number, input: number): void;
disconnect(destinationParam: AudioParam): void;
disconnect(destinationParam: AudioParam, output: number): void;
}
declare var AudioNode: {
prototype: AudioNode;
new(): AudioNode;
};
/** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */
interface AudioParam {
automationRate: AutomationRate;
readonly defaultValue: number;
readonly maxValue: number;
readonly minValue: number;
value: number;
cancelAndHoldAtTime(cancelTime: number): AudioParam;
cancelScheduledValues(cancelTime: number): AudioParam;
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
setValueAtTime(value: number, startTime: number): AudioParam;
setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
}
declare var AudioParam: {
prototype: AudioParam;
new(): AudioParam;
};
interface AudioParamMap {
forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;
}
declare var AudioParamMap: {
prototype: AudioParamMap;
new(): AudioParamMap;
};
/**
* The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
* @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.
*/
interface AudioProcessingEvent extends Event {
/** @deprecated */
readonly inputBuffer: AudioBuffer;
/** @deprecated */
readonly outputBuffer: AudioBuffer;
/** @deprecated */
readonly playbackTime: number;
}
/** @deprecated */
declare var AudioProcessingEvent: {
prototype: AudioProcessingEvent;
new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
};
interface AudioScheduledSourceNodeEventMap {
"ended": Event;
}
interface AudioScheduledSourceNode extends AudioNode {
onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
start(when?: number): void;
stop(when?: number): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioScheduledSourceNode: {
prototype: AudioScheduledSourceNode;
new(): AudioScheduledSourceNode;
};
/** Available only in secure contexts. */
interface AudioWorklet extends Worklet {
}
declare var AudioWorklet: {
prototype: AudioWorklet;
new(): AudioWorklet;
};
interface AudioWorkletNodeEventMap {
"processorerror": Event;
}
/** Available only in secure contexts. */
interface AudioWorkletNode extends AudioNode {
onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
readonly parameters: AudioParamMap;
readonly port: MessagePort;
addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioWorkletNode: {
prototype: AudioWorkletNode;
new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
};
/** Available only in secure contexts. */
interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
readonly authenticatorData: ArrayBuffer;
readonly signature: ArrayBuffer;
readonly userHandle: ArrayBuffer | null;
}
declare var AuthenticatorAssertionResponse: {
prototype: AuthenticatorAssertionResponse;
new(): AuthenticatorAssertionResponse;
};
/** Available only in secure contexts. */
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
readonly attestationObject: ArrayBuffer;
getAuthenticatorData(): ArrayBuffer;
getPublicKey(): ArrayBuffer | null;
getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
getTransports(): string[];
}
declare var AuthenticatorAttestationResponse: {
prototype: AuthenticatorAttestationResponse;
new(): AuthenticatorAttestationResponse;
};
/** Available only in secure contexts. */
interface AuthenticatorResponse {
readonly clientDataJSON: ArrayBuffer;
}
declare var AuthenticatorResponse: {
prototype: AuthenticatorResponse;
new(): AuthenticatorResponse;
};
interface BarProp {
readonly visible: boolean;
}
declare var BarProp: {
prototype: BarProp;
new(): BarProp;
};
interface BaseAudioContextEventMap {
"statechange": Event;
}
interface BaseAudioContext extends EventTarget {
/** Available only in secure contexts. */
readonly audioWorklet: AudioWorklet;
readonly currentTime: number;
readonly destination: AudioDestinationNode;
readonly listener: AudioListener;
onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
readonly sampleRate: number;
readonly state: AudioContextState;
createAnalyser(): AnalyserNode;
createBiquadFilter(): BiquadFilterNode;
createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
createBufferSource(): AudioBufferSourceNode;
createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
createConstantSource(): ConstantSourceNode;
createConvolver(): ConvolverNode;
createDelay(maxDelayTime?: number): DelayNode;
createDynamicsCompressor(): DynamicsCompressorNode;
createGain(): GainNode;
createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
createOscillator(): OscillatorNode;
createPanner(): PannerNode;
createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
/** @deprecated */
createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
createStereoPanner(): StereoPannerNode;
createWaveShaper(): WaveShaperNode;
decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BaseAudioContext: {
prototype: BaseAudioContext;
new(): BaseAudioContext;
};
/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */
interface BeforeUnloadEvent extends Event {
returnValue: any;
}
declare var BeforeUnloadEvent: {
prototype: BeforeUnloadEvent;
new(): BeforeUnloadEvent;
};
/** 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. */
interface BiquadFilterNode extends AudioNode {
readonly Q: AudioParam;
readonly detune: AudioParam;
readonly frequency: AudioParam;
readonly gain: AudioParam;
type: BiquadFilterType;
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var BiquadFilterNode: {
prototype: BiquadFilterNode;
new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
};
/** 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. */
interface Blob {
readonly size: number;
readonly type: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream<Uint8Array>;
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
interface BlobEvent extends Event {
readonly data: Blob;
readonly timecode: DOMHighResTimeStamp;
}
declare var BlobEvent: {
prototype: BlobEvent;
new(type: string, eventInitDict: BlobEventInit): BlobEvent;
};
interface Body {
readonly body: ReadableStream<Uint8Array> | null;
readonly bodyUsed: boolean;
arrayBuffer(): Promise<ArrayBuffer>;
blob(): Promise<Blob>;
formData(): Promise<FormData>;
json(): Promise<any>;
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
interface BroadcastChannel extends EventTarget {
/** Returns the channel name (as passed to the constructor). */
readonly name: string;
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/** Closes the BroadcastChannel object, opening it up to garbage collection. */
close(): void;
/** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */
postMessage(message: any): void;
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BroadcastChannel: {
prototype: BroadcastChannel;
new(name: string): BroadcastChannel;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
readonly highWaterMark: number;
readonly size: QueuingStrategySize<ArrayBufferView>;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};
/** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section. */
interface CDATASection extends Text {
}
declare var CDATASection: {
prototype: CDATASection;
new(): CDATASection;
};
interface CSSAnimation extends Animation {
readonly animationName: string;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var CSSAnimation: {
prototype: CSSAnimation;
new(): CSSAnimation;
};
/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */
interface CSSConditionRule extends CSSGroupingRule {
readonly conditionText: string;
}
declare var CSSConditionRule: {
prototype: CSSConditionRule;
new(): CSSConditionRule;
};
interface CSSContainerRule extends CSSConditionRule {
}
declare var CSSContainerRule: {
prototype: CSSContainerRule;
new(): CSSContainerRule;
};
interface CSSCounterStyleRule extends CSSRule {
additiveSymbols: string;
fallback: string;
name: string;
negative: string;
pad: string;
prefix: string;
range: string;
speakAs: string;
suffix: string;
symbols: string;
system: string;
}
declare var CSSCounterStyleRule: {
prototype: CSSCounterStyleRule;
new(): CSSCounterStyleRule;
};
interface CSSFontFaceRule extends CSSRule {
readonly style: CSSStyleDeclaration;
}
declare var CSSFontFaceRule: {
prototype: CSSFontFaceRule;
new(): CSSFontFaceRule;
};
interface CSSFontFeatureValuesRule extends CSSRule {
fontFamily: string;
}
declare var CSSFontFeatureValuesRule: {
prototype: CSSFontFeatureValuesRule;
new(): CSSFontFeatureValuesRule;
};
interface CSSFontPaletteValuesRule extends CSSRule {
readonly basePalette: string;
readonly fontFamily: string;
readonly name: string;
readonly overrideColors: string;
}
declare var CSSFontPaletteValuesRule: {
prototype: CSSFontPaletteValuesRule;
new(): CSSFontPaletteValuesRule;
};
/** Any CSS at-rule that contains other rules nested within it. */
interface CSSGroupingRule extends CSSRule {
readonly cssRules: CSSRuleList;
deleteRule(index: number): void;
insertRule(rule: string, index?: number): number;
}
declare var CSSGroupingRule: {
prototype: CSSGroupingRule;
new(): CSSGroupingRule;
};
interface CSSImportRule extends CSSRule {
readonly href: string;
readonly layerName: string | null;
readonly media: MediaList;
readonly styleSheet: CSSStyleSheet;
}
declare var CSSImportRule: {
prototype: CSSImportRule;
new(): CSSImportRule;
};
/** 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). */
interface CSSKeyframeRule extends CSSRule {
keyText: string;
readonly style: CSSStyleDeclaration;
}
declare var CSSKeyframeRule: {
prototype: CSSKeyframeRule;
new(): CSSKeyframeRule;
};
/** 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). */
interface CSSKeyframesRule extends CSSRule {
readonly cssRules: CSSRuleList;
name: string;
appendRule(rule: string): void;
deleteRule(select: string): void;
findRule(select: string): CSSKeyframeRule | null;
[index: number]: CSSKeyframeRule;
}
declare var CSSKeyframesRule: {
prototype: CSSKeyframesRule;
new(): CSSKeyframesRule;
};
interface CSSLayerBlockRule extends CSSGroupingRule {
readonly name: string;
}
declare var CSSLayerBlockRule: {
prototype: CSSLayerBlockRule;
new(): CSSLayerBlockRule;
};
interface CSSLayerStatementRule extends CSSRule {
readonly nameList: ReadonlyArray<string>;
}
declare var CSSLayerStatementRule: {
prototype: CSSLayerStatementRule;
new(): CSSLayerStatementRule;
};
/** 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). */
interface CSSMediaRule extends CSSConditionRule {
readonly media: MediaList;
}
declare var CSSMediaRule: {
prototype: CSSMediaRule;
new(): CSSMediaRule;
};
/** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */
interface CSSNamespaceRule extends CSSRule {
readonly namespaceURI: string;
readonly prefix: string;
}
declare var CSSNamespaceRule: {
prototype: CSSNamespaceRule;
new(): CSSNamespaceRule;
};
/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */
interface CSSPageRule extends CSSGroupingRule {
selectorText: string;
readonly style: CSSStyleDeclaration;
}
declare var CSSPageRule: {
prototype: CSSPageRule;
new(): CSSPageRule;
};
/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */
interface CSSRule {
cssText: string;
readonly parentRule: CSSRule | null;
readonly parentStyleSheet: CSSStyleSheet | null;
/** @deprecated */
readonly type: number;
readonly STYLE_RULE: 1;
readonly CHARSET_RULE: 2;
readonly IMPORT_RULE: 3;
readonly MEDIA_RULE: 4;
readonly FONT_FACE_RULE: 5;
readonly PAGE_RULE: 6;
readonly NAMESPACE_RULE: 10;
readonly KEYFRAMES_RULE: 7;
readonly KEYFRAME_RULE: 8;
readonly SUPPORTS_RULE: 12;
}
declare var CSSRule: {
prototype: CSSRule;
new(): CSSRule;
readonly STYLE_RULE: 1;
readonly CHARSET_RULE: 2;
readonly IMPORT_RULE: 3;
readonly MEDIA_RULE: 4;
readonly FONT_FACE_RULE: 5;
readonly PAGE_RULE: 6;
readonly NAMESPACE_RULE: 10;
readonly KEYFRAMES_RULE: 7;
readonly KEYFRAME_RULE: 8;
readonly SUPPORTS_RULE: 12;
};
/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */
interface CSSRuleList {
readonly length: number;
item(index: number): CSSRule | null;
[index: number]: CSSRule;
}
declare var CSSRuleList: {
prototype: CSSRuleList;
new(): CSSRuleList;
};
/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */
interface CSSStyleDeclaration {
accentColor: string;
alignContent: string;
alignItems: string;
alignSelf: string;
alignmentBaseline: string;
all: string;
animation: string;
animationDelay: string;
animationDirection: string;
animationDuration: string;
animationFillMode: string;
animationIterationCount: string;
animationName: string;
animationPlayState: string;
animationTimingFunction: string;
appearance: string;
aspectRatio: string;
backdropFilter: string;
backfaceVisibility: string;
background: string;
backgroundAttachment: string;
backgroundBlendMode: string;
backgroundClip: string;
backgroundColor: string;
backgroundImage: string;
backgroundOrigin: string;
backgroundPosition: string;
backgroundPositionX: string;
backgroundPositionY: string;
backgroundRepeat: string;
backgroundSize: string;
baselineShift: string;
blockSize: string;
border: string;
borderBlock: string;
borderBlockColor: string;
borderBlockEnd: string;
borderBlockEndColor: string;
borderBlockEndStyle: string;
borderBlockEndWidth: string;
borderBlockStart: string;
borderBlockStartColor: string;
borderBlockStartStyle: string;
borderBlockStartWidth: string;
borderBlockStyle: string;
borderBlockWidth: string;
borderBottom: string;
borderBottomColor: string;
borderBottomLeftRadius: string;
borderBottomRightRadius: string;
borderBottomStyle: string;
borderBottomWidth: string;
borderCollapse: string;
borderColor: string;
borderEndEndRadius: string;
borderEndStartRadius: string;
borderImage: string;
borderImageOutset: string;
borderImageRepeat: string;
borderImageSlice: string;
borderImageSource: string;
borderImageWidth: string;
borderInline: string;
borderInlineColor: string;
borderInlineEnd: string;
borderInlineEndColor: string;
borderInlineEndStyle: string;
borderInlineEndWidth: string;
borderInlineStart: string;
borderInlineStartColor: string;
borderInlineStartStyle: string;
borderInlineStartWidth: string;
borderInlineStyle: string;
borderInlineWidth: string;
borderLeft: string;
borderLeftColor: string;
borderLeftStyle: string;
borderLeftWidth: string;
borderRadius: string;
borderRight: string;
borderRightColor: string;
borderRightStyle: string;
borderRightWidth: string;
borderSpacing: string;
borderStartEndRadius: string;
borderStartStartRadius: string;
borderStyle: string;
borderTop: string;
borderTopColor: string;
borderTopLeftRadius: string;
borderTopRightRadius: string;
borderTopStyle: string;
borderTopWidth: string;
borderWidth: string;
bottom: string;
boxShadow: string;
boxSizing: string;
breakAfter: string;
breakBefore: string;
breakInside: string;
captionSide: string;
caretColor: string;
clear: string;
/** @deprecated */
clip: string;
clipPath: string;
clipRule: string;
color: string;
colorInterpolation: string;
colorInterpolationFilters: string;
colorScheme: string;
columnCount: string;
columnFill: string;
columnGap: string;
columnRule: string;
columnRuleColor: string;
columnRuleStyle: string;
columnRuleWidth: string;
columnSpan: string;
columnWidth: string;
columns: string;
contain: string;
containIntrinsicBlockSize: string;
containIntrinsicHeight: string;
containIntrinsicInlineSize: string;
containIntrinsicSize: string;
containIntrinsicWidth: string;
container: string;
containerName: string;
containerType: string;
content: string;
contentVisibility: string;
counterIncrement: string;
counterReset: string;
counterSet: string;
cssFloat: string;
cssText: string;
cursor: string;
direction: string;
display: string;
dominantBaseline: string;
emptyCells: string;
fill: string;
fillOpacity: string;
fillRule: string;
filter: string;
flex: string;
flexBasis: string;
flexDirection: string;
flexFlow: string;
flexGrow: string;
flexShrink: string;
flexWrap: string;
float: string;
floodColor: string;
floodOpacity: string;
font: string;
fontFamily: string;
fontFeatureSettings: string;
fontKerning: string;
fontOpticalSizing: string;
fontPalette: string;
fontSize: string;
fontSizeAdjust: string;
fontStretch: string;
fontStyle: string;
fontSynthesis: string;
fontVariant: string;
fontVariantAlternates: string;
fontVariantCaps: string;
fontVariantEastAsian: string;
fontVariantLigatures: string;
fontVariantNumeric: string;
fontVariantPosition: string;
fontVariationSettings: string;
fontWeight: string;
gap: string;
grid: string;
gridArea: string;
gridAutoColumns: string;
gridAutoFlow: string;
gridAutoRows: string;
gridColumn: string;
gridColumnEnd: string;
/** @deprecated This is a legacy alias of \`columnGap\`. */
gridColumnGap: string;
gridColumnStart: string;
/** @deprecated This is a legacy alias of \`gap\`. */
gridGap: string;
gridRow: string;
gridRowEnd: string;
/** @deprecated This is a legacy alias of \`rowGap\`. */
gridRowGap: string;
gridRowStart: string;
gridTemplate: string;
gridTemplateAreas: string;
gridTemplateColumns: string;
gridTemplateRows: string;
height: string;
hyphenateCharacter: string;
hyphens: string;
/** @deprecated */
imageOrientation: string;
imageRendering: string;
inlineSize: string;
inset: string;
insetBlock: string;
insetBlockEnd: string;
insetBlockStart: string;
insetInline: string;
insetInlineEnd: string;
insetInlineStart: string;
isolation: string;
justifyContent: string;
justifyItems: string;
justifySelf: string;
left: string;
readonly length: number;
letterSpacing: string;
lightingColor: string;
lineBreak: string;
lineHeight: string;
listStyle: string;
listStyleImage: string;
listStylePosition: string;
listStyleType: string;
margin: string;
marginBlock: string;
marginBlockEnd: string;
marginBlockStart: string;
marginBottom: string;
marginInline: string;
marginInlineEnd: string;
marginInlineStart: string;
marginLeft: string;
marginRight: string;
marginTop: string;
marker: string;
markerEnd: string;
markerMid: string;
markerStart: string;
mask: string;
maskClip: string;
maskComposite: string;
maskImage: string;
maskMode: string;
maskOrigin: string;
maskPosition: string;
maskRepeat: string;
maskSize: string;
maskType: string;
mathStyle: string;
maxBlockSize: string;
maxHeight: string;
maxInlineSize: string;
maxWidth: string;
minBlockSize: string;
minHeight: string;
minInlineSize: string;
minWidth: string;
mixBlendMode: string;
objectFit: string;
objectPosition: string;
offset: string;
offsetDistance: string;
offsetPath: string;
offsetRotate: string;
opacity: string;
order: string;
orphans: string;
outline: string;
outlineColor: string;
outlineOffset: string;
outlineStyle: string;
outlineWidth: string;
overflow: string;
overflowAnchor: string;
overflowClipMargin: string;
overflowWrap: string;
overflowX: string;
overflowY: string;
overscrollBehavior: string;
overscrollBehaviorBlock: string;
overscrollBehaviorInline: string;
overscrollBehaviorX: string;
overscrollBehaviorY: string;
padding: string;
paddingBlock: string;
paddingBlockEnd: string;
paddingBlockStart: string;
paddingBottom: string;
paddingInline: string;
paddingInlineEnd: string;
paddingInlineStart: string;
paddingLeft: string;
paddingRight: string;
paddingTop: string;
pageBreakAfter: string;
pageBreakBefore: string;
pageBreakInside: string;
paintOrder: string;
readonly parentRule: CSSRule | null;
perspective: string;
perspectiveOrigin: string;
placeContent: string;
placeItems: string;
placeSelf: string;
pointerEvents: string;
position: string;
printColorAdjust: string;
quotes: string;
resize: string;
right: string;
rotate: string;
rowGap: string;
rubyPosition: string;
scale: string;
scrollBehavior: string;
scrollMargin: string;
scrollMarginBlock: string;
scrollMarginBlockEnd: string;
scrollMarginBlockStart: string;
scrollMarginBottom: string;
scrollMarginInline: string;
scrollMarginInlineEnd: string;
scrollMarginInlineStart: string;
scrollMarginLeft: string;
scrollMarginRight: string;
scrollMarginTop: string;
scrollPadding: string;
scrollPaddingBlock: string;
scrollPaddingBlockEnd: string;
scrollPaddingBlockStart: string;
scrollPaddingBottom: string;
scrollPaddingInline: string;
scrollPaddingInlineEnd: string;
scrollPaddingInlineStart: string;
scrollPaddingLeft: string;
scrollPaddingRight: string;
scrollPaddingTop: string;
scrollSnapAlign: string;
scrollSnapStop: string;
scrollSnapType: string;
scrollbarGutter: string;
shapeImageThreshold: string;
shapeMargin: string;
shapeOutside: string;
shapeRendering: string;
stopColor: string;
stopOpacity: string;
stroke: string;
strokeDasharray: string;
strokeDashoffset: string;
strokeLinecap: string;
strokeLinejoin: string;
strokeMiterlimit: string;
strokeOpacity: string;
strokeWidth: string;
tabSize: string;
tableLayout: string;
textAlign: string;
textAlignLast: string;
textAnchor: string;
textCombineUpright: string;
textDecoration: string;
textDecorationColor: string;
textDecorationLine: string;
textDecorationSkipInk: string;
textDecorationStyle: string;
textDecorationThickness: string;
textEmphasis: string;
textEmphasisColor: string;
textEmphasisPosition: string;
textEmphasisStyle: string;
textIndent: string;
textOrientation: string;
textOverflow: string;
textRendering: string;
textShadow: string;
textTransform: string;
textUnderlineOffset: string;
textUnderlinePosition: string;
top: string;
touchAction: string;
transform: string;
transformBox: string;
transformOrigin: string;
transformStyle: string;
transition: string;
transitionDelay: string;
transitionDuration: string;
transitionProperty: string;
transitionTimingFunction: string;
translate: string;
unicodeBidi: string;
userSelect: string;
verticalAlign: string;
visibility: string;
/** @deprecated This is a legacy alias of \`alignContent\`. */
webkitAlignContent: string;
/** @deprecated This is a legacy alias of \`alignItems\`. */
webkitAlignItems: string;
/** @deprecated This is a legacy alias of \`alignSelf\`. */
webkitAlignSelf: string;
/** @deprecated This is a legacy alias of \`animation\`. */
webkitAnimation: string;
/** @deprecated This is a legacy alias of \`animationDelay\`. */
webkitAnimationDelay: string;
/** @deprecated This is a legacy alias of \`animationDirection\`. */
webkitAnimationDirection: string;
/** @deprecated This is a legacy alias of \`animationDuration\`. */
webkitAnimationDuration: string;
/** @deprecated This is a legacy alias of \`animationFillMode\`. */
webkitAnimationFillMode: string;
/** @deprecated This is a legacy alias of \`animationIterationCount\`. */
webkitAnimationIterationCount: string;
/** @deprecated This is a legacy alias of \`animationName\`. */
webkitAnimationName: string;
/** @deprecated This is a legacy alias of \`animationPlayState\`. */
webkitAnimationPlayState: string;
/** @deprecated This is a legacy alias of \`animationTimingFunction\`. */
webkitAnimationTimingFunction: string;
/** @deprecated This is a legacy alias of \`appearance\`. */
webkitAppearance: string;
/** @deprecated This is a legacy alias of \`backfaceVisibility\`. */
webkitBackfaceVisibility: string;
/** @deprecated This is a legacy alias of \`backgroundClip\`. */
webkitBackgroundClip: string;
/** @deprecated This is a legacy alias of \`backgroundOrigin\`. */
webkitBackgroundOrigin: string;
/** @deprecated This is a legacy alias of \`backgroundSize\`. */
webkitBackgroundSize: string;
/** @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. */
webkitBorderBottomLeftRadius: string;
/** @deprecated This is a legacy alias of \`borderBottomRightRadius\`. */
webkitBorderBottomRightRadius: string;
/** @deprecated This is a legacy alias of \`borderRadius\`. */
webkitBorderRadius: string;
/** @deprecated This is a legacy alias of \`borderTopLeftRadius\`. */
webkitBorderTopLeftRadius: string;
/** @deprecated This is a legacy alias of \`borderTopRightRadius\`. */
webkitBorderTopRightRadius: string;
/** @deprecated This is a legacy alias of \`boxAlign\`. */
webkitBoxAlign: string;
/** @deprecated This is a legacy alias of \`boxFlex\`. */
webkitBoxFlex: string;
/** @deprecated This is a legacy alias of \`boxOrdinalGroup\`. */
webkitBoxOrdinalGroup: string;
/** @deprecated This is a legacy alias of \`boxOrient\`. */
webkitBoxOrient: string;
/** @deprecated This is a legacy alias of \`boxPack\`. */
webkitBoxPack: string;
/** @deprecated This is a legacy alias of \`boxShadow\`. */
webkitBoxShadow: string;
/** @deprecated This is a legacy alias of \`boxSizing\`. */
webkitBoxSizing: string;
/** @deprecated This is a legacy alias of \`filter\`. */
webkitFilter: string;
/** @deprecated This is a legacy alias of \`flex\`. */
webkitFlex: string;
/** @deprecated This is a legacy alias of \`flexBasis\`. */
webkitFlexBasis: string;
/** @deprecated This is a legacy alias of \`flexDirection\`. */
webkitFlexDirection: string;
/** @deprecated This is a legacy alias of \`flexFlow\`. */
webkitFlexFlow: string;
/** @deprecated This is a legacy alias of \`flexGrow\`. */
webkitFlexGrow: string;
/** @deprecated This is a legacy alias of \`flexShrink\`. */
webkitFlexShrink: string;
/** @deprecated This is a legacy alias of \`flexWrap\`. */
webkitFlexWrap: string;
/** @deprecated This is a legacy alias of \`justifyContent\`. */
webkitJustifyContent: string;
webkitLineClamp: string;
/** @deprecated This is a legacy alias of \`mask\`. */
webkitMask: string;
/** @deprecated This is a legacy alias of \`maskBorder\`. */
webkitMaskBoxImage: string;
/** @deprecated This is a legacy alias of \`maskBorderOutset\`. */
webkitMaskBoxImageOutset: string;
/** @deprecated This is a legacy alias of \`maskBorderRepeat\`. */
webkitMaskBoxImageRepeat: string;
/** @deprecated This is a legacy alias of \`maskBorderSlice\`. */
webkitMaskBoxImageSlice: string;
/** @deprecated This is a legacy alias of \`maskBorderSource\`. */
webkitMaskBoxImageSource: string;
/** @deprecated This is a legacy alias of \`maskBorderWidth\`. */
webkitMaskBoxImageWidth: string;
/** @deprecated This is a legacy alias of \`maskClip\`. */
webkitMaskClip: string;
webkitMaskComposite: string;
/** @deprecated This is a legacy alias of \`maskImage\`. */
webkitMaskImage: string;
/** @deprecated This is a legacy alias of \`maskOrigin\`. */
webkitMaskOrigin: string;
/** @deprecated This is a legacy alias of \`maskPosition\`. */
webkitMaskPosition: string;
/** @deprecated This is a legacy alias of \`maskRepeat\`. */
webkitMaskRepeat: string;
/** @deprecated This is a legacy alias of \`maskSize\`. */
webkitMaskSize: string;
/** @deprecated This is a legacy alias of \`order\`. */
webkitOrder: string;
/** @deprecated This is a legacy alias of \`perspective\`. */
webkitPerspective: string;
/** @deprecated This is a legacy alias of \`perspectiveOrigin\`. */
webkitPerspectiveOrigin: string;
webkitTextFillColor: string;
/** @deprecated This is a legacy alias of \`textSizeAdjust\`. */
webkitTextSizeAdjust: string;
webkitTextStroke: string;
webkitTextStrokeColor: string;
webkitTextStrokeWidth: string;
/** @deprecated This is a legacy alias of \`transform\`. */
webkitTransform: string;
/** @deprecated This is a legacy alias of \`transformOrigin\`. */
webkitTransformOrigin: string;
/** @deprecated This is a legacy alias of \`transformStyle\`. */
webkitTransformStyle: string;
/** @deprecated This is a legacy alias of \`transition\`. */
webkitTransition: string;
/** @deprecated This is a legacy alias of \`transitionDelay\`. */
webkitTransitionDelay: string;
/** @deprecated This is a legacy alias of \`transitionDuration\`. */
webkitTransitionDuration: string;
/** @deprecated This is a legacy alias of \`transitionProperty\`. */
webkitTransitionProperty: string;
/** @deprecated This is a legacy alias of \`transitionTimingFunction\`. */
webkitTransitionTimingFunction: string;
/** @deprecated This is a legacy alias of \`userSelect\`. */
webkitUserSelect: string;
whiteSpace: string;
widows: string;
width: string;
willChange: string;
wordBreak: string;
wordSpacing: string;
/** @deprecated */
wordWrap: string;
writingMode: string;
zIndex: string;
getPropertyPriority(property: string): string;
getPropertyValue(property: string): string;
item(index: number): string;
removeProperty(property: string): string;
setProperty(property: string, value: string | null, priority?: string): void;
[index: number]: string;
}
declare var CSSStyleDeclaration: {
prototype: CSSStyleDeclaration;
new(): CSSStyleDeclaration;
};
/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */
interface CSSStyleRule extends CSSRule {
selectorText: string;
readonly style: CSSStyleDeclaration;
}
declare var CSSStyleRule: {
prototype: CSSStyleRule;
new(): CSSStyleRule;
};
/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */
interface CSSStyleSheet extends StyleSheet {
readonly cssRules: CSSRuleList;
readonly ownerRule: CSSRule | null;
/** @deprecated */
readonly rules: CSSRuleList;
/** @deprecated */
addRule(selector?: string, style?: string, index?: number): number;
deleteRule(index: number): void;
insertRule(rule: string, index?: number): number;
/** @deprecated */
removeRule(index?: number): void;
replace(text: string): Promise<CSSStyleSheet>;
replaceSync(text: string): void;
}
declare var CSSStyleSheet: {
prototype: CSSStyleSheet;
new(options?: CSSStyleSheetInit): CSSStyleSheet;
};
/** 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). */
interface CSSSupportsRule extends CSSConditionRule {
}
declare var CSSSupportsRule: {
prototype: CSSSupportsRule;
new(): CSSSupportsRule;
};
interface CSSTransition extends Animation {
readonly transitionProperty: string;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var CSSTransition: {
prototype: CSSTransition;
new(): CSSTransition;
};
/**
* 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.
* Available only in secure contexts.
*/
interface Cache {
add(request: RequestInfo | URL): Promise<void>;
addAll(requests: RequestInfo[]): Promise<void>;
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
put(request: RequestInfo | URL, response: Response): Promise<void>;
}
declare var Cache: {
prototype: Cache;
new(): Cache;
};
/**
* The storage for Cache objects.
* Available only in secure contexts.
*/
interface CacheStorage {
delete(cacheName: string): Promise<boolean>;
has(cacheName: string): Promise<boolean>;
keys(): Promise<string[]>;
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
readonly canvas: HTMLCanvasElement;
requestFrame(): void;
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var CanvasCaptureMediaStreamTrack: {
prototype: CanvasCaptureMediaStreamTrack;
new(): CanvasCaptureMediaStreamTrack;
};
interface CanvasCompositing {
globalAlpha: number;
globalCompositeOperation: GlobalCompositeOperation;
}
interface CanvasDrawImage {
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
}
interface CanvasDrawPath {
beginPath(): void;
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
stroke(): void;
stroke(path: Path2D): void;
}
interface CanvasFillStrokeStyles {
fillStyle: string | CanvasGradient | CanvasPattern;
strokeStyle: string | CanvasGradient | CanvasPattern;
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
interface CanvasFilters {
filter: string;
}
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
interface CanvasGradient {
/**
* 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.
*
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasImageData {
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
putImageData(imagedata: ImageData, dx: number, dy: number): void;
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}
interface CanvasImageSmoothing {
imageSmoothingEnabled: boolean;
imageSmoothingQuality: ImageSmoothingQuality;
}
interface CanvasPath {
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
closePath(): void;
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
lineTo(x: number, y: number): void;
moveTo(x: number, y: number): void;
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
rect(x: number, y: number, w: number, h: number): void;
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
}
interface CanvasPathDrawingStyles {
lineCap: CanvasLineCap;
lineDashOffset: number;
lineJoin: CanvasLineJoin;
lineWidth: number;
miterLimit: number;
getLineDash(): number[];
setLineDash(segments: number[]): void;
}
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
interface CanvasPattern {
/** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
interface CanvasRect {
clearRect(x: number, y: number, w: number, h: number): void;
fillRect(x: number, y: number, w: number, h: number): void;
strokeRect(x: number, y: number, w: number, h: number): void;
}
/** 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. */
interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
readonly canvas: HTMLCanvasElement;
getContextAttributes(): CanvasRenderingContext2DSettings;
}
declare var CanvasRenderingContext2D: {
prototype: CanvasRenderingContext2D;
new(): CanvasRenderingContext2D;
};
interface CanvasShadowStyles {
shadowBlur: number;
shadowColor: string;
shadowOffsetX: number;
shadowOffsetY: number;
}
interface CanvasState {
restore(): void;
save(): void;
}
interface CanvasText {
fillText(text: string, x: number, y: number, maxWidth?: number): void;
measureText(text: string): TextMetrics;
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
interface CanvasTextDrawingStyles {
direction: CanvasDirection;
font: string;
fontKerning: CanvasFontKerning;
textAlign: CanvasTextAlign;
textBaseline: CanvasTextBaseline;
}
interface CanvasTransform {
getTransform(): DOMMatrix;
resetTransform(): void;
rotate(angle: number): void;
scale(x: number, y: number): void;
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
setTransform(transform?: DOMMatrix2DInit): void;
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
translate(x: number, y: number): void;
}
interface CanvasUserInterface {
drawFocusIfNeeded(element: Element): void;
drawFocusIfNeeded(path: Path2D, element: Element): void;
}
/** 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. */
interface ChannelMergerNode extends AudioNode {
}
declare var ChannelMergerNode: {
prototype: ChannelMergerNode;
new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;
};
/** 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. */
interface ChannelSplitterNode extends AudioNode {
}
declare var ChannelSplitterNode: {
prototype: ChannelSplitterNode;
new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;
};
/** 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. */
interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
data: string;
readonly length: number;
readonly ownerDocument: Document;
appendData(data: string): void;
deleteData(offset: number, count: number): void;
insertData(offset: number, data: string): void;
replaceData(offset: number, count: number, data: string): void;
substringData(offset: number, count: number): string;
}
declare var CharacterData: {
prototype: CharacterData;
new(): CharacterData;
};
interface ChildNode extends Node {
/**
* Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
after(...nodes: (Node | string)[]): void;
/**
* Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
before(...nodes: (Node | string)[]): void;
/** Removes node. */
remove(): void;
/**
* Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
replaceWith(...nodes: (Node | string)[]): void;
}
/** @deprecated */
interface ClientRect extends DOMRect {
}
/** Available only in secure contexts. */
interface Clipboard extends EventTarget {
read(): Promise<ClipboardItems>;
readText(): Promise<string>;
write(data: ClipboardItems): Promise<void>;
writeText(data: string): Promise<void>;
}
declare var Clipboard: {
prototype: Clipboard;
new(): Clipboard;
};
/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */
interface ClipboardEvent extends Event {
readonly clipboardData: DataTransfer | null;
}
declare var ClipboardEvent: {
prototype: ClipboardEvent;
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
};
/** Available only in secure contexts. */
interface ClipboardItem {
readonly presentationStyle: PresentationStyle;
readonly types: ReadonlyArray<string>;
getType(type: string): Promise<Blob>;
}
declare var ClipboardItem: {
prototype: ClipboardItem;
new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;
};
/** 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. */
interface CloseEvent extends Event {
/** Returns the WebSocket connection close code provided by the server. */
readonly code: number;
/** Returns the WebSocket connection close reason provided by the server. */
readonly reason: string;
/** Returns true if the connection closed cleanly; false otherwise. */
readonly wasClean: boolean;
}
declare var CloseEvent: {
prototype: CloseEvent;
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */
interface Comment extends CharacterData {
}
declare var Comment: {
prototype: Comment;
new(data?: string): Comment;
};
/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */
interface CompositionEvent extends UIEvent {
readonly data: string;
/** @deprecated */
initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;
}
declare var CompositionEvent: {
prototype: CompositionEvent;
new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
};
interface ConstantSourceNode extends AudioScheduledSourceNode {
readonly offset: AudioParam;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ConstantSourceNode: {
prototype: ConstantSourceNode;
new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
};
/** 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. */
interface ConvolverNode extends AudioNode {
buffer: AudioBuffer | null;
normalize: boolean;
}
declare var ConvolverNode: {
prototype: ConvolverNode;
new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface CountQueuingStrategy extends QueuingStrategy {
readonly highWaterMark: number;
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
/** Available only in secure contexts. */
interface Credential {
readonly id: string;
readonly type: string;
}
declare var Credential: {
prototype: Credential;
new(): Credential;
};
/** Available only in secure contexts. */
interface CredentialsContainer {
create(options?: CredentialCreationOptions): Promise<Credential | null>;
get(options?: CredentialRequestOptions): Promise<Credential | null>;
preventSilentAccess(): Promise<void>;
store(credential: Credential): Promise<Credential>;
}
declare var CredentialsContainer: {
prototype: CredentialsContainer;
new(): CredentialsContainer;
};
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
interface Crypto {
/** Available only in secure contexts. */
readonly subtle: SubtleCrypto;
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
/** Available only in secure contexts. */
randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
}
declare var Crypto: {
prototype: Crypto;
new(): Crypto;
};
/**
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
* Available only in secure contexts.
*/
interface CryptoKey {
readonly algorithm: KeyAlgorithm;
readonly extractable: boolean;
readonly type: KeyType;
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
interface CustomElementRegistry {
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
get(name: string): CustomElementConstructor | undefined;
upgrade(root: Node): void;
whenDefined(name: string): Promise<CustomElementConstructor>;
}
declare var CustomElementRegistry: {
prototype: CustomElementRegistry;
new(): CustomElementRegistry;
};
interface CustomEvent<T = any> extends Event {
/** Returns any custom data event was created with. Typically used for synthetic events. */
readonly detail: T;
/** @deprecated */
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
interface DOMException extends Error {
/** @deprecated */
readonly code: number;
readonly message: string;
readonly name: string;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
};
/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */
interface DOMImplementation {
createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
createHTMLDocument(title?: string): Document;
/** @deprecated */
hasFeature(...args: any[]): true;
}
declare var DOMImplementation: {
prototype: DOMImplementation;
new(): DOMImplementation;
};
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
invertSelf(): DOMMatrix;
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
setMatrixValue(transformList: string): DOMMatrix;
skewXSelf(sx?: number): DOMMatrix;
skewYSelf(sy?: number): DOMMatrix;
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrix: {
prototype: DOMMatrix;
new(init?: string | number[]): DOMMatrix;
fromFloat32Array(array32: Float32Array): DOMMatrix;
fromFloat64Array(array64: Float64Array): DOMMatrix;
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};
type SVGMatrix = DOMMatrix;
declare var SVGMatrix: typeof DOMMatrix;
type WebKitCSSMatrix = DOMMatrix;
declare var WebKitCSSMatrix: typeof DOMMatrix;
interface DOMMatrixReadOnly {
readonly a: number;
readonly b: number;
readonly c: number;
readonly d: number;
readonly e: number;
readonly f: number;
readonly is2D: boolean;
readonly isIdentity: boolean;
readonly m11: number;
readonly m12: number;
readonly m13: number;
readonly m14: number;
readonly m21: number;
readonly m22: number;
readonly m23: number;
readonly m24: number;
readonly m31: number;
readonly m32: number;
readonly m33: number;
readonly m34: number;
readonly m41: number;
readonly m42: number;
readonly m43: number;
readonly m44: number;
flipX(): DOMMatrix;
flipY(): DOMMatrix;
inverse(): DOMMatrix;
multiply(other?: DOMMatrixInit): DOMMatrix;
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVector(x?: number, y?: number): DOMMatrix;
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** @deprecated */
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
skewX(sx?: number): DOMMatrix;
skewY(sy?: number): DOMMatrix;
toFloat32Array(): Float32Array;
toFloat64Array(): Float64Array;
toJSON(): any;
transformPoint(point?: DOMPointInit): DOMPoint;
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
toString(): string;
}
declare var DOMMatrixReadOnly: {
prototype: DOMMatrixReadOnly;
new(init?: string | number[]): DOMMatrixReadOnly;
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
toString(): string;
};
/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
interface DOMParser {
/**
* 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).
*
* For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.
*
* Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.
*
* Values other than the above for type will cause a TypeError exception to be thrown.
*/
parseFromString(string: string, type: DOMParserSupportedType): Document;
}
declare var DOMParser: {
prototype: DOMParser;
new(): DOMParser;
};
interface DOMPoint extends DOMPointReadOnly {
w: number;
x: number;
y: number;
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
fromPoint(other?: DOMPointInit): DOMPoint;
};
type SVGPoint = DOMPoint;
declare var SVGPoint: typeof DOMPoint;
interface DOMPointReadOnly {
readonly w: number;
readonly x: number;
readonly y: number;
readonly z: number;
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
interface DOMQuad {
readonly p1: DOMPoint;
readonly p2: DOMPoint;
readonly p3: DOMPoint;
readonly p4: DOMPoint;
getBounds(): DOMRect;
toJSON(): any;
}
declare var DOMQuad: {
prototype: DOMQuad;
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
fromQuad(other?: DOMQuadInit): DOMQuad;
fromRect(other?: DOMRectInit): DOMQuad;
};
interface DOMRect extends DOMRectReadOnly {
height: number;
width: number;
x: number;
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
};
type SVGRect = DOMRect;
declare var SVGRect: typeof DOMRect;
interface DOMRectList {
readonly length: number;
item(index: number): DOMRect | null;
[index: number]: DOMRect;
}
declare var DOMRectList: {
prototype: DOMRectList;
new(): DOMRectList;
};
interface DOMRectReadOnly {
readonly bottom: number;
readonly height: number;
readonly left: number;
readonly right: number;
readonly top: number;
readonly width: number;
readonly x: number;
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/** A type returned by some APIs which contains a list of DOMString (strings). */
interface DOMStringList {
/** Returns the number of strings in strings. */
readonly length: number;
/** Returns true if strings contains string, and false otherwise. */
contains(string: string): boolean;
/** Returns the string with index index from strings. */
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
/** Used by the dataset\xA0HTML\xA0attribute to represent data for custom attributes added to elements. */
interface DOMStringMap {
[name: string]: string | undefined;
}
declare var DOMStringMap: {
prototype: DOMStringMap;
new(): DOMStringMap;
};
/** 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. */
interface DOMTokenList {
/** Returns the number of tokens. */
readonly length: number;
/**
* Returns the associated set as string.
*
* Can be set, to change the associated attribute.
*/
value: string;
toString(): string;
/**
* Adds all arguments passed, except those already present.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*/
add(...tokens: string[]): void;
/** Returns true if token is present, and false otherwise. */
contains(token: string): boolean;
/** Returns the token with index index. */
item(index: number): string | null;
/**
* Removes arguments passed, if they are present.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*/
remove(...tokens: string[]): void;
/**
* Replaces token with newToken.
*
* Returns true if token was replaced with newToken, and false otherwise.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*/
replace(token: string, newToken: string): boolean;
/**
* Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
*
* Throws a TypeError if the associated attribute has no supported tokens defined.
*/
supports(token: string): boolean;
/**
* 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()).
*
* Returns true if token is now present, and false otherwise.
*
* Throws a "SyntaxError" DOMException if token is empty.
*
* Throws an "InvalidCharacterError" DOMException if token contains any spaces.
*/
toggle(token: string, force?: boolean): boolean;
forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;
[index: number]: string;
}
declare var DOMTokenList: {
prototype: DOMTokenList;
new(): DOMTokenList;
};
/** 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. */
interface DataTransfer {
/**
* 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.
*
* Can be set, to change the selected operation.
*
* The possible values are "none", "copy", "link", and "move".
*/
dropEffect: "none" | "copy" | "link" | "move";
/**
* Returns the kinds of operations that are to be allowed.
*
* Can be set (during the dragstart event), to change the allowed operations.
*
* The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",
*/
effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
/** Returns a FileList of the files being dragged, if any. */
readonly files: FileList;
/** Returns a DataTransferItemList object, with the drag data. */
readonly items: DataTransferItemList;
/** 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". */
readonly types: ReadonlyArray<string>;
/** Removes the data of the specified formats. Removes all data if the argument is omitted. */
clearData(format?: string): void;
/** Returns the specified data. If there is no such data, returns the empty string. */
getData(format: string): string;
/** Adds the specified data. */
setData(format: string, data: string): void;
/** Uses the given element to update the drag feedback, replacing any previously specified feedback. */
setDragImage(image: Element, x: number, y: number): void;
}
declare var DataTransfer: {
prototype: DataTransfer;
new(): DataTransfer;
};
/** 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. */
interface DataTransferItem {
/** Returns the drag data item kind, one of: "string", "file". */
readonly kind: string;
/** Returns the drag data item type string. */
readonly type: string;
/** Returns a File object, if the drag data item kind is File. */
getAsFile(): File | null;
/** Invokes the callback with the string data as the argument, if the drag data item kind is text. */
getAsString(callback: FunctionStringCallback | null): void;
webkitGetAsEntry(): FileSystemEntry | null;
}
declare var DataTransferItem: {
prototype: DataTransferItem;
new(): DataTransferItem;
};
/** 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. */
interface DataTransferItemList {
/** Returns the number of items in the drag data store. */
readonly length: number;
/** 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. */
add(data: string, type: string): DataTransferItem | null;
add(data: File): DataTransferItem | null;
/** Removes all the entries in the drag data store. */
clear(): void;
/** Removes the indexth entry in the drag data store. */
remove(index: number): void;
[index: number]: DataTransferItem;
}
declare var DataTransferItemList: {
prototype: DataTransferItemList;
new(): DataTransferItemList;
};
/** 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. */
interface DelayNode extends AudioNode {
readonly delayTime: AudioParam;
}
declare var DelayNode: {
prototype: DelayNode;
new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
};
/**
* The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation.
* Available only in secure contexts.
*/
interface DeviceMotionEvent extends Event {
readonly acceleration: DeviceMotionEventAcceleration | null;
readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
readonly interval: number;
readonly rotationRate: DeviceMotionEventRotationRate | null;
}
declare var DeviceMotionEvent: {
prototype: DeviceMotionEvent;
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
};
/** Available only in secure contexts. */
interface DeviceMotionEventAcceleration {
readonly x: number | null;
readonly y: number | null;
readonly z: number | null;
}
/** Available only in secure contexts. */
interface DeviceMotionEventRotationRate {
readonly alpha: number | null;
readonly beta: number | null;
readonly gamma: number | null;
}
/**
* The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.
* Available only in secure contexts.
*/
interface DeviceOrientationEvent extends Event {
readonly absolute: boolean;
readonly alpha: number | null;
readonly beta: number | null;
readonly gamma: number | null;
}
declare var DeviceOrientationEvent: {
prototype: DeviceOrientationEvent;
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
};
interface DocumentEventMap extends GlobalEventHandlersEventMap {
"DOMContentLoaded": Event;
"fullscreenchange": Event;
"fullscreenerror": Event;
"pointerlockchange": Event;
"pointerlockerror": Event;
"readystatechange": Event;
"visibilitychange": Event;
}
/** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */
interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
/** Sets or gets the URL for the current document. */
readonly URL: string;
/**
* Sets or gets the color of all active links in the document.
* @deprecated
*/
alinkColor: string;
/**
* Returns a reference to the collection of elements contained by the object.
* @deprecated
*/
readonly all: HTMLAllCollection;
/**
* Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
* @deprecated
*/
readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
/**
* Retrieves a collection of all applet objects in the document.
* @deprecated
*/
readonly applets: HTMLCollection;
/**
* Deprecated. Sets or retrieves a value that indicates the background color behind the object.
* @deprecated
*/
bgColor: string;
/** Specifies the beginning and end of the document body. */
body: HTMLElement;
/** Returns document's encoding. */
readonly characterSet: string;
/**
* Gets or sets the character set used to encode the object.
* @deprecated This is a legacy alias of \`characterSet\`.
*/
readonly charset: string;
/** Gets a value that indicates whether standards-compliant mode is switched on for the object. */
readonly compatMode: string;
/** Returns document's content type. */
readonly contentType: string;
/**
* 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.
*
* Can be set, to add a new cookie to the element's set of HTTP cookies.
*
* 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.
*/
cookie: string;
/**
* 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.
*
* 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.
*/
readonly currentScript: HTMLOrSVGScriptElement | null;
/** Returns the Window object of the active document. */
readonly defaultView: (WindowProxy & typeof globalThis) | null;
/** Sets or gets a value that indicates whether the document can be edited. */
designMode: string;
/** Sets or retrieves a value that indicates the reading order of the object. */
dir: string;
/** Gets an object representing the document type declaration associated with the current document. */
readonly doctype: DocumentType | null;
/** Gets a reference to the root node of the document. */
readonly documentElement: HTMLElement;
/** Returns document's URL. */
readonly documentURI: string;
/**
* Sets or gets the security domain of the document.
* @deprecated
*/
domain: string;
/** Retrieves a collection of all embed objects in the document. */
readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
/**
* Sets or gets the foreground (text) color of the document.
* @deprecated
*/
fgColor: string;
/** Retrieves a collection, in source order, of all form objects in the document. */
readonly forms: HTMLCollectionOf<HTMLFormElement>;
/** @deprecated */
readonly fullscreen: boolean;
/** Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. */
readonly fullscreenEnabled: boolean;
/** Returns the head element. */
readonly head: HTMLHeadElement;
readonly hidden: boolean;
/** Retrieves a collection, in source order, of img objects in the document. */
readonly images: HTMLCollectionOf<HTMLImageElement>;
/** Gets the implementation object of the current document. */
readonly implementation: DOMImplementation;
/**
* Returns the character encoding used to create the webpage that is loaded into the document object.
* @deprecated This is a legacy alias of \`characterSet\`.
*/
readonly inputEncoding: string;
/** Gets the date that the page was last modified, if the page supplies one. */
readonly lastModified: string;
/**
* Sets or gets the color of the document links.
* @deprecated
*/
linkColor: string;
/** Retrieves a collection of all a objects that specify the href property and all area objects in the document. */
readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
/** Contains information about the current URL. */
get location(): Location;
set location(href: string | Location);
onfullscreenchange: ((this: Document, ev: Event) => any) | null;
onfullscreenerror: ((this: Document, ev: Event) => any) | null;
onpointerlockchange: ((this: Document, ev: Event) => any) | null;
onpointerlockerror: ((this: Document, ev: Event) => any) | null;
/**
* Fires when the state of the object has changed.
* @param ev The event
*/
onreadystatechange: ((this: Document, ev: Event) => any) | null;
onvisibilitychange: ((this: Document, ev: Event) => any) | null;
readonly ownerDocument: null;
readonly pictureInPictureEnabled: boolean;
/** Return an HTMLCollection of the embed elements in the Document. */
readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
/** Retrieves a value that indicates the current state of the object. */
readonly readyState: DocumentReadyState;
/** Gets the URL of the location that referred the user to the current page. */
readonly referrer: string;
/** @deprecated */
readonly rootElement: SVGSVGElement | null;
/** Retrieves a collection of all script objects in the document. */
readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
readonly scrollingElement: Element | null;
readonly timeline: DocumentTimeline;
/** Contains the title of the document. */
title: string;
readonly visibilityState: DocumentVisibilityState;
/**
* Sets or gets the color of the links that the user has visited.
* @deprecated
*/
vlinkColor: string;
/**
* Moves node from another document and returns it.
*
* If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
*/
adoptNode<T extends Node>(node: T): T;
/** @deprecated */
captureEvents(): void;
/** @deprecated */
caretRangeFromPoint(x: number, y: number): Range | null;
/** @deprecated */
clear(): void;
/** Closes an output stream and forces the sent data to display. */
close(): void;
/**
* Creates an attribute object with a specified name.
* @param name String that sets the attribute object's name.
*/
createAttribute(localName: string): Attr;
createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
/** Returns a CDATASection node whose data is data. */
createCDATASection(data: string): CDATASection;
/**
* Creates a comment object with the specified data.
* @param data Sets the comment object's data.
*/
createComment(data: string): Comment;
/** Creates a new document. */
createDocumentFragment(): DocumentFragment;
/**
* Creates an instance of the element for the specified tag.
* @param tagName The name of an element.
*/
createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
/** @deprecated */
createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];
createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
/**
* 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.
*
* If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
*
* If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
*
* localName does not match the QName production.
* Namespace prefix is not null and namespace is the empty string.
* Namespace prefix is "xml" and namespace is not the XML namespace.
* qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.
* namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
*
* When supplied, options's is can be used to create a customized built-in element.
*/
createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
createElementNS<K extends keyof MathMLElementTagNameMap>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K];
createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement;
createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
createEvent(eventInterface: "BlobEvent"): BlobEvent;
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
createEvent(eventInterface: "Event"): Event;
createEvent(eventInterface: "Events"): Event;
createEvent(eventInterface: "FocusEvent"): FocusEvent;
createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
createEvent(eventInterface: "InputEvent"): InputEvent;
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
createEvent(eventInterface: "MessageEvent"): MessageEvent;
createEvent(eventInterface: "MouseEvent"): MouseEvent;
createEvent(eventInterface: "MouseEvents"): MouseEvent;
createEvent(eventInterface: "MutationEvent"): MutationEvent;
createEvent(eventInterface: "MutationEvents"): MutationEvent;
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;
createEvent(eventInterface: "PointerEvent"): PointerEvent;
createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
createEvent(eventInterface: "StorageEvent"): StorageEvent;
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
createEvent(eventInterface: "TouchEvent"): TouchEvent;
createEvent(eventInterface: "TrackEvent"): TrackEvent;
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
createEvent(eventInterface: "UIEvent"): UIEvent;
createEvent(eventInterface: "UIEvents"): UIEvent;
createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
createEvent(eventInterface: "WheelEvent"): WheelEvent;
createEvent(eventInterface: string): Event;
/**
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list
* @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
*/
createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
/** 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. */
createProcessingInstruction(target: string, data: string): ProcessingInstruction;
/** Returns an empty range object that has both of its boundary points positioned at the beginning of the document. */
createRange(): Range;
/**
* Creates a text string from the specified value.
* @param data String that specifies the nodeValue property of the text node.
*/
createTextNode(data: string): Text;
/**
* Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
* @param filter A custom NodeFilter function to use.
*/
createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
/**
* Executes a command on the current document, current selection, or the given range.
* @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
* @param showUI Display the user interface, defaults to false.
* @param value Value to assign.
* @deprecated
*/
execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
/** Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. */
exitFullscreen(): Promise<void>;
exitPictureInPicture(): Promise<void>;
exitPointerLock(): void;
/**
* Returns a reference to the first object with the specified value of the ID attribute.
* @param elementId String that specifies the ID value.
*/
getElementById(elementId: string): HTMLElement | null;
/** 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. */
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
/**
* Gets a collection of objects based on the value of the NAME or ID attribute.
* @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
*/
getElementsByName(elementName: string): NodeListOf<HTMLElement>;
/**
* Retrieves a collection of objects based on the specified element name.
* @param name Specifies the name of an element.
*/
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
/** @deprecated */
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
/**
* If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
*
* If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
*
* If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
*
* Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
*/
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/** Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */
getSelection(): Selection | null;
/** Gets a value indicating whether the object currently has focus. */
hasFocus(): boolean;
hasStorageAccess(): Promise<boolean>;
/**
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
*
* If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
*/
importNode<T extends Node>(node: T, deep?: boolean): T;
/**
* 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.
* @param url Specifies a MIME type for the document.
* @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.
* @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.
* @param replace Specifies whether the existing entry for the document is replaced in the history list.
*/
open(unused1?: string, unused2?: string): Document;
open(url: string | URL, name: string, features: string): WindowProxy | null;
/**
* Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
* @param commandId Specifies a command identifier.
* @deprecated
*/
queryCommandEnabled(commandId: string): boolean;
/**
* Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
* @param commandId String that specifies a command identifier.
* @deprecated
*/
queryCommandIndeterm(commandId: string): boolean;
/**
* Returns a Boolean value that indicates the current state of the command.
* @param commandId String that specifies a command identifier.
* @deprecated
*/
queryCommandState(commandId: string): boolean;
/**
* Returns a Boolean value that indicates whether the current command is supported on the current range.
* @param commandId Specifies a command identifier.
* @deprecated
*/
queryCommandSupported(commandId: string): boolean;
/**
* Returns the current value of the document, range, or current selection for the given command.
* @param commandId String that specifies a command identifier.
* @deprecated
*/
queryCommandValue(commandId: string): string;
/** @deprecated */
releaseEvents(): void;
requestStorageAccess(): Promise<void>;
/**
* Writes one or more HTML expressions to a document in the specified window.
* @param content Specifies the text and HTML tags to write.
*/
write(...text: string[]): void;
/**
* Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
* @param content The text and HTML tags to write.
*/
writeln(...text: string[]): void;
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Document: {
prototype: Document;
new(): Document;
};
/** 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. */
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
readonly ownerDocument: Document;
getElementById(elementId: string): HTMLElement | null;
}
declare var DocumentFragment: {
prototype: DocumentFragment;
new(): DocumentFragment;
};
interface DocumentOrShadowRoot {
/**
* 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.
*
* 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.
*
* 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.
*/
readonly activeElement: Element | null;
adoptedStyleSheets: CSSStyleSheet[];
/** Returns document's fullscreen element. */
readonly fullscreenElement: Element | null;
readonly pictureInPictureElement: Element | null;
readonly pointerLockElement: Element | null;
/** Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. */
readonly styleSheets: StyleSheetList;
/**
* Returns the element for the specified x coordinate and the specified y coordinate.
* @param x The x-offset
* @param y The y-offset
*/
elementFromPoint(x: number, y: number): Element | null;
elementsFromPoint(x: number, y: number): Element[];
getAnimations(): Animation[];
}
interface DocumentTimeline extends AnimationTimeline {
}
declare var DocumentTimeline: {
prototype: DocumentTimeline;
new(options?: DocumentTimelineOptions): DocumentTimeline;
};
/** A Node containing a doctype. */
interface DocumentType extends Node, ChildNode {
readonly name: string;
readonly ownerDocument: Document;
readonly publicId: string;
readonly systemId: string;
}
declare var DocumentType: {
prototype: DocumentType;
new(): DocumentType;
};
/** 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. */
interface DragEvent extends MouseEvent {
/** Returns the DataTransfer object for the event. */
readonly dataTransfer: DataTransfer | null;
}
declare var DragEvent: {
prototype: DragEvent;
new(type: string, eventInitDict?: DragEventInit): DragEvent;
};
/** Inherits properties from its parent, AudioNode. */
interface DynamicsCompressorNode extends AudioNode {
readonly attack: AudioParam;
readonly knee: AudioParam;
readonly ratio: AudioParam;
readonly reduction: number;
readonly release: AudioParam;
readonly threshold: AudioParam;
}
declare var DynamicsCompressorNode: {
prototype: DynamicsCompressorNode;
new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
};
interface EXT_blend_minmax {
readonly MIN_EXT: 0x8007;
readonly MAX_EXT: 0x8008;
}
interface EXT_color_buffer_float {
}
interface EXT_color_buffer_half_float {
readonly RGBA16F_EXT: 0x881A;
readonly RGB16F_EXT: 0x881B;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
interface EXT_float_blend {
}
/** 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. */
interface EXT_frag_depth {
}
interface EXT_sRGB {
readonly SRGB_EXT: 0x8C40;
readonly SRGB_ALPHA_EXT: 0x8C42;
readonly SRGB8_ALPHA8_EXT: 0x8C43;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
}
interface EXT_shader_texture_lod {
}
interface EXT_texture_compression_bptc {
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
}
interface EXT_texture_compression_rgtc {
readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
}
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
interface EXT_texture_filter_anisotropic {
readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
}
interface EXT_texture_norm16 {
readonly R16_EXT: 0x822A;
readonly RG16_EXT: 0x822C;
readonly RGB16_EXT: 0x8054;
readonly RGBA16_EXT: 0x805B;
readonly R16_SNORM_EXT: 0x8F98;
readonly RG16_SNORM_EXT: 0x8F99;
readonly RGB16_SNORM_EXT: 0x8F9A;
readonly RGBA16_SNORM_EXT: 0x8F9B;
}
interface ElementEventMap {
"fullscreenchange": Event;
"fullscreenerror": Event;
}
/** 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. */
interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
readonly attributes: NamedNodeMap;
/** Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. */
readonly classList: DOMTokenList;
/** Returns the value of element's class content attribute. Can be set to change it. */
className: string;
readonly clientHeight: number;
readonly clientLeft: number;
readonly clientTop: number;
readonly clientWidth: number;
/** Returns the value of element's id content attribute. Can be set to change it. */
id: string;
/** Returns the local name. */
readonly localName: string;
/** Returns the namespace. */
readonly namespaceURI: string | null;
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
outerHTML: string;
readonly ownerDocument: Document;
readonly part: DOMTokenList;
/** Returns the namespace prefix. */
readonly prefix: string | null;
readonly scrollHeight: number;
scrollLeft: number;
scrollTop: number;
readonly scrollWidth: number;
/** Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. */
readonly shadowRoot: ShadowRoot | null;
/** Returns the value of element's slot content attribute. Can be set to change it. */
slot: string;
/** Returns the HTML-uppercased qualified name. */
readonly tagName: string;
/** Creates a shadow root for element and returns it. */
attachShadow(init: ShadowRootInit): ShadowRoot;
checkVisibility(options?: CheckVisibilityOptions): boolean;
/** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
closest<E extends Element = Element>(selectors: string): E | null;
/** Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */
getAttribute(qualifiedName: string): string | null;
/** Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. */
getAttributeNS(namespace: string | null, localName: string): string | null;
/** Returns the qualified names of all element's attributes. Can contain duplicates. */
getAttributeNames(): string[];
getAttributeNode(qualifiedName: string): Attr | null;
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
getBoundingClientRect(): DOMRect;
getClientRects(): DOMRectList;
/** 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. */
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
/** @deprecated */
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. */
hasAttribute(qualifiedName: string): boolean;
/** Returns true if element has an attribute whose namespace is namespace and local name is localName. */
hasAttributeNS(namespace: string | null, localName: string): boolean;
/** Returns true if element has attributes, and false otherwise. */
hasAttributes(): boolean;
hasPointerCapture(pointerId: number): boolean;
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
insertAdjacentHTML(position: InsertPosition, text: string): void;
insertAdjacentText(where: InsertPosition, data: string): void;
/** Returns true if matching selectors against element's root yields element, and false otherwise. */
matches(selectors: string): boolean;
releasePointerCapture(pointerId: number): void;
/** Removes element's first attribute whose qualified name is qualifiedName. */
removeAttribute(qualifiedName: string): void;
/** Removes element's attribute whose namespace is namespace and local name is localName. */
removeAttributeNS(namespace: string | null, localName: string): void;
removeAttributeNode(attr: Attr): Attr;
/**
* Displays element fullscreen and resolves promise when done.
*
* 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.
*/
requestFullscreen(options?: FullscreenOptions): Promise<void>;
requestPointerLock(): void;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/** Sets the value of element's first attribute whose qualified name is qualifiedName to value. */
setAttribute(qualifiedName: string, value: string): void;
/** Sets the value of element's attribute whose namespace is namespace and local name is localName to value. */
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
setAttributeNode(attr: Attr): Attr | null;
setAttributeNodeNS(attr: Attr): Attr | null;
setPointerCapture(pointerId: number): void;
/**
* 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.
*
* Returns true if qualifiedName is now present, and false otherwise.
*/
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
/** @deprecated This is a legacy alias of \`matches\`. */
webkitMatchesSelector(selectors: string): boolean;
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Element: {
prototype: Element;
new(): Element;
};
interface ElementCSSInlineStyle {
readonly style: CSSStyleDeclaration;
}
interface ElementContentEditable {
contentEditable: string;
enterKeyHint: string;
inputMode: string;
readonly isContentEditable: boolean;
}
interface ElementInternals extends ARIAMixin {
/** Returns the form owner of internals's target element. */
readonly form: HTMLFormElement | null;
/** Returns a NodeList of all the label elements that internals's target element is associated with. */
readonly labels: NodeList;
/** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
readonly shadowRoot: ShadowRoot | null;
/** Returns the error message that would be shown to the user if internals's target element was to be checked for validity. */
readonly validationMessage: string;
/** Returns the ValidityState object for internals's target element. */
readonly validity: ValidityState;
/** Returns true if internals's target element will be validated when the form is submitted; false otherwise. */
readonly willValidate: boolean;
/** Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. */
checkValidity(): boolean;
/** 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. */
reportValidity(): boolean;
/**
* Sets both the state and submission value of internals's target element to value.
*
* If value is null, the element won't participate in form submission.
*/
setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
/** 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. */
setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;
}
declare var ElementInternals: {
prototype: ElementInternals;
new(): ElementInternals;
};
/** Events providing information related to errors in scripts or in files. */
interface ErrorEvent extends Event {
readonly colno: number;
readonly error: any;
readonly filename: string;
readonly lineno: number;
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/** An event which takes place in the DOM. */
interface Event {
/** 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. */
readonly bubbles: boolean;
/** @deprecated */
cancelBubble: boolean;
/** 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. */
readonly cancelable: boolean;
/** 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. */
readonly composed: boolean;
/** Returns the object whose event listener's callback is currently being invoked. */
readonly currentTarget: EventTarget | null;
/** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
readonly defaultPrevented: boolean;
/** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
readonly eventPhase: number;
/** Returns true if event was dispatched by the user agent, and false otherwise. */
readonly isTrusted: boolean;
/** @deprecated */
returnValue: boolean;
/** @deprecated */
readonly srcElement: EventTarget | null;
/** Returns the object to which event is dispatched (its target). */
readonly target: EventTarget | null;
/** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
readonly timeStamp: DOMHighResTimeStamp;
/** Returns the type of event, e.g. "click", "hashchange", or "submit". */
readonly type: string;
/** 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. */
composedPath(): EventTarget[];
/** @deprecated */
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/** 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. */
preventDefault(): void;
/** 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. */
stopImmediatePropagation(): void;
/** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
stopPropagation(): void;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}
declare var Event: {
prototype: Event;
new(type: string, eventInitDict?: EventInit): Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
};
interface EventCounts {
forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;
}
declare var EventCounts: {
prototype: EventCounts;
new(): EventCounts;
};
interface EventListener {
(evt: Event): void;
}
interface EventListenerObject {
handleEvent(object: Event): void;
}
interface EventSourceEventMap {
"error": Event;
"message": MessageEvent;
"open": Event;
}
interface EventSource extends EventTarget {
onerror: ((this: EventSource, ev: Event) => any) | null;
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
onopen: ((this: EventSource, ev: Event) => any) | null;
/** Returns the state of this EventSource object's connection. It can have the values described below. */
readonly readyState: number;
/** Returns the URL providing the event stream. */
readonly url: string;
/** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */
readonly withCredentials: boolean;
/** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
close(): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var EventSource: {
prototype: EventSource;
new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
};
/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
interface EventTarget {
/**
* 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.
*
* 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.
*
* 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.
*
* 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 \xA7 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
*
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/** 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. */
dispatchEvent(event: Event): boolean;
/** Removes the event listener in target's event listener list with the same type, callback, and options. */
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
};
/** @deprecated */
interface External {
/** @deprecated */
AddSearchProvider(): void;
/** @deprecated */
IsSearchProviderInstalled(): void;
}
/** @deprecated */
declare var External: {
prototype: External;
new(): External;
};
/** Provides information about files and allows JavaScript in a web page to access their content. */
interface File extends Blob {
readonly lastModified: number;
readonly name: string;
readonly webkitRelativePath: string;
}
declare var File: {
prototype: File;
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
/** 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. */
interface FileList {
readonly length: number;
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<FileReader>;
"error": ProgressEvent<FileReader>;
"load": ProgressEvent<FileReader>;
"loadend": ProgressEvent<FileReader>;
"loadstart": ProgressEvent<FileReader>;
"progress": ProgressEvent<FileReader>;
}
/** 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. */
interface FileReader extends EventTarget {
readonly error: DOMException | null;
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
readonly result: string | ArrayBuffer | null;
abort(): void;
readAsArrayBuffer(blob: Blob): void;
readAsBinaryString(blob: Blob): void;
readAsDataURL(blob: Blob): void;
readAsText(blob: Blob, encoding?: string): void;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FileReader: {
prototype: FileReader;
new(): FileReader;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
};
interface FileSystem {
readonly name: string;
readonly root: FileSystemDirectoryEntry;
}
declare var FileSystem: {
prototype: FileSystem;
new(): FileSystem;
};
interface FileSystemDirectoryEntry extends FileSystemEntry {
createReader(): FileSystemDirectoryReader;
getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryEntry: {
prototype: FileSystemDirectoryEntry;
new(): FileSystemDirectoryEntry;
};
/** Available only in secure contexts. */
interface FileSystemDirectoryHandle extends FileSystemHandle {
readonly kind: "directory";
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}
declare var FileSystemDirectoryHandle: {
prototype: FileSystemDirectoryHandle;
new(): FileSystemDirectoryHandle;
};
interface FileSystemDirectoryReader {
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryReader: {
prototype: FileSystemDirectoryReader;
new(): FileSystemDirectoryReader;
};
interface FileSystemEntry {
readonly filesystem: FileSystem;
readonly fullPath: string;
readonly isDirectory: boolean;
readonly isFile: boolean;
readonly name: string;
getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemEntry: {
prototype: FileSystemEntry;
new(): FileSystemEntry;
};
interface FileSystemFileEntry extends FileSystemEntry {
file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemFileEntry: {
prototype: FileSystemFileEntry;
new(): FileSystemFileEntry;
};
/** Available only in secure contexts. */
interface FileSystemFileHandle extends FileSystemHandle {
readonly kind: "file";
getFile(): Promise<File>;
}
declare var FileSystemFileHandle: {
prototype: FileSystemFileHandle;
new(): FileSystemFileHandle;
};
/** Available only in secure contexts. */
interface FileSystemHandle {
readonly kind: FileSystemHandleKind;
readonly name: string;
isSameEntry(other: FileSystemHandle): Promise<boolean>;
}
declare var FileSystemHandle: {
prototype: FileSystemHandle;
new(): FileSystemHandle;
};
/** Focus-related events like focus, blur, focusin, or focusout. */
interface FocusEvent extends UIEvent {
readonly relatedTarget: EventTarget | null;
}
declare var FocusEvent: {
prototype: FocusEvent;
new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
};
interface FontFace {
ascentOverride: string;
descentOverride: string;
display: FontDisplay;
family: string;
featureSettings: string;
lineGapOverride: string;
readonly loaded: Promise<FontFace>;
readonly status: FontFaceLoadStatus;
stretch: string;
style: string;
unicodeRange: string;
variant: string;
weight: string;
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
interface FontFaceSet extends EventTarget {
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
readonly ready: Promise<FontFaceSet>;
readonly status: FontFaceSetLoadStatus;
check(font: string, text?: string): boolean;
load(font: string, text?: string): Promise<FontFace[]>;
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FontFaceSet: {
prototype: FontFaceSet;
new(initialFaces: FontFace[]): FontFaceSet;
};
interface FontFaceSetLoadEvent extends Event {
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
readonly fonts: FontFaceSet;
}
/** 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". */
interface FormData {
append(name: string, value: string | Blob, fileName?: string): void;
delete(name: string): void;
get(name: string): FormDataEntryValue | null;
getAll(name: string): FormDataEntryValue[];
has(name: string): boolean;
set(name: string, value: string | Blob, fileName?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(form?: HTMLFormElement): FormData;
};
interface FormDataEvent extends Event {
/** 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. */
readonly formData: FormData;
}
declare var FormDataEvent: {
prototype: FormDataEvent;
new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;
};
/** 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. */
interface GainNode extends AudioNode {
readonly gain: AudioParam;
}
declare var GainNode: {
prototype: GainNode;
new(context: BaseAudioContext, options?: GainOptions): GainNode;
};
/**
* This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
* Available only in secure contexts.
*/
interface Gamepad {
readonly axes: ReadonlyArray<number>;
readonly buttons: ReadonlyArray<GamepadButton>;
readonly connected: boolean;
readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;
readonly id: string;
readonly index: number;
readonly mapping: GamepadMappingType;
readonly timestamp: DOMHighResTimeStamp;
}
declare var Gamepad: {
prototype: Gamepad;
new(): Gamepad;
};
/**
* 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.
* Available only in secure contexts.
*/
interface GamepadButton {
readonly pressed: boolean;
readonly touched: boolean;
readonly value: number;
}
declare var GamepadButton: {
prototype: GamepadButton;
new(): GamepadButton;
};
/**
* 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.
* Available only in secure contexts.
*/
interface GamepadEvent extends Event {
readonly gamepad: Gamepad;
}
declare var GamepadEvent: {
prototype: GamepadEvent;
new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;
};
/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */
interface GamepadHapticActuator {
readonly type: GamepadHapticActuatorType;
}
declare var GamepadHapticActuator: {
prototype: GamepadHapticActuator;
new(): GamepadHapticActuator;
};
interface GenericTransformStream {
readonly readable: ReadableStream;
readonly writable: WritableStream;
}
/** 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. */
interface Geolocation {
clearWatch(watchId: number): void;
getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
}
declare var Geolocation: {
prototype: Geolocation;
new(): Geolocation;
};
/** Available only in secure contexts. */
interface GeolocationCoordinates {
readonly accuracy: number;
readonly altitude: number | null;
readonly altitudeAccuracy: number | null;
readonly heading: number | null;
readonly latitude: number;
readonly longitude: number;
readonly speed: number | null;
}
declare var GeolocationCoordinates: {
prototype: GeolocationCoordinates;
new(): GeolocationCoordinates;
};
/** Available only in secure contexts. */
interface GeolocationPosition {
readonly coords: GeolocationCoordinates;
readonly timestamp: EpochTimeStamp;
}
declare var GeolocationPosition: {
prototype: GeolocationPosition;
new(): GeolocationPosition;
};
interface GeolocationPositionError {
readonly code: number;
readonly message: string;
readonly PERMISSION_DENIED: 1;
readonly POSITION_UNAVAILABLE: 2;
readonly TIMEOUT: 3;
}
declare var GeolocationPositionError: {
prototype: GeolocationPositionError;
new(): GeolocationPositionError;
readonly PERMISSION_DENIED: 1;
readonly POSITION_UNAVAILABLE: 2;
readonly TIMEOUT: 3;
};
interface GlobalEventHandlersEventMap {
"abort": UIEvent;
"animationcancel": AnimationEvent;
"animationend": AnimationEvent;
"animationiteration": AnimationEvent;
"animationstart": AnimationEvent;
"auxclick": MouseEvent;
"beforeinput": InputEvent;
"blur": FocusEvent;
"cancel": Event;
"canplay": Event;
"canplaythrough": Event;
"change": Event;
"click": MouseEvent;
"close": Event;
"compositionend": CompositionEvent;
"compositionstart": CompositionEvent;
"compositionupdate": CompositionEvent;
"contextmenu": MouseEvent;
"copy": ClipboardEvent;
"cuechange": Event;
"cut": ClipboardEvent;
"dblclick": MouseEvent;
"drag": DragEvent;
"dragend": DragEvent;
"dragenter": DragEvent;
"dragleave": DragEvent;
"dragover": DragEvent;
"dragstart": DragEvent;
"drop": DragEvent;
"durationchange": Event;
"emptied": Event;
"ended": Event;
"error": ErrorEvent;
"focus": FocusEvent;
"focusin": FocusEvent;
"focusout": FocusEvent;
"formdata": FormDataEvent;
"gotpointercapture": PointerEvent;
"input": Event;
"invalid": Event;
"keydown": KeyboardEvent;
"keypress": KeyboardEvent;
"keyup": KeyboardEvent;
"load": Event;
"loadeddata": Event;
"loadedmetadata": Event;
"loadstart": Event;
"lostpointercapture": PointerEvent;
"mousedown": MouseEvent;
"mouseenter": MouseEvent;
"mouseleave": MouseEvent;
"mousemove": MouseEvent;
"mouseout": MouseEvent;
"mouseover": MouseEvent;
"mouseup": MouseEvent;
"paste": ClipboardEvent;
"pause": Event;
"play": Event;
"playing": Event;
"pointercancel": PointerEvent;
"pointerdown": PointerEvent;
"pointerenter": PointerEvent;
"pointerleave": PointerEvent;
"pointermove": PointerEvent;
"pointerout": PointerEvent;
"pointerover": PointerEvent;
"pointerup": PointerEvent;
"progress": ProgressEvent;
"ratechange": Event;
"reset": Event;
"resize": UIEvent;
"scroll": Event;
"securitypolicyviolation": SecurityPolicyViolationEvent;
"seeked": Event;
"seeking": Event;
"select": Event;
"selectionchange": Event;
"selectstart": Event;
"slotchange": Event;
"stalled": Event;
"submit": SubmitEvent;
"suspend": Event;
"timeupdate": Event;
"toggle": Event;
"touchcancel": TouchEvent;
"touchend": TouchEvent;
"touchmove": TouchEvent;
"touchstart": TouchEvent;
"transitioncancel": TransitionEvent;
"transitionend": TransitionEvent;
"transitionrun": TransitionEvent;
"transitionstart": TransitionEvent;
"volumechange": Event;
"waiting": Event;
"webkitanimationend": Event;
"webkitanimationiteration": Event;
"webkitanimationstart": Event;
"webkittransitionend": Event;
"wheel": WheelEvent;
}
interface GlobalEventHandlers {
/**
* Fires when the user aborts the download.
* @param ev The event.
*/
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*/
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*/
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*/
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*/
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*/
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*/
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*/
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user releases the mouse at the close of a drag operation.
* @param ev The event.
*/
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element when the user drags the object to a valid drop target.
* @param ev The drag event.
*/
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
*/
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element continuously while the user drags the object over a valid drop target.
* @param ev The event.
*/
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user starts to drag a text selection or selected object.
* @param ev The event.
*/
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*/
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*/
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*/
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*/
onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*/
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*/
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*/
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*/
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*/
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*/
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*/
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*/
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*/
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*/
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*/
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*/
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*/
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*/
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*/
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*/
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*/
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*/
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*/
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*/
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*/
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*/
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*/
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*/
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*/
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*/
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*/
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*/
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationend\`. */
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationiteration\`. */
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationstart\`. */
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`ontransitionend\`. */
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface HTMLAllCollection {
/** Returns the number of elements in the collection. */
readonly length: number;
/** Returns the item with index index from the collection (determined by tree order). */
item(nameOrIndex?: string): HTMLCollection | Element | null;
/**
* Returns the item with ID or name name from the collection.
*
* If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
*
* 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.
*/
namedItem(name: string): HTMLCollection | Element | null;
[index: number]: Element;
}
declare var HTMLAllCollection: {
prototype: HTMLAllCollection;
new(): HTMLAllCollection;
};
/** 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. */
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
/**
* Sets or retrieves the coordinates of the object.
* @deprecated
*/
coords: string;
download: string;
/** Sets or retrieves the language code of the object. */
hreflang: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*/
name: string;
ping: string;
referrerPolicy: string;
/** Sets or retrieves the relationship between the object and the destination of the link. */
rel: string;
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*/
rev: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*/
shape: string;
/** Sets or retrieves the window or frame at which to target content. */
target: string;
/** Retrieves or sets the text of the object as a string. */
text: string;
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAnchorElement: {
prototype: HTMLAnchorElement;
new(): HTMLAnchorElement;
};
/** 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. */
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
/** Sets or retrieves a text alternative to the graphic. */
alt: string;
/** Sets or retrieves the coordinates of the object. */
coords: string;
download: string;
/**
* Sets or gets whether clicks in this region cause action.
* @deprecated
*/
noHref: boolean;
ping: string;
referrerPolicy: string;
rel: string;
readonly relList: DOMTokenList;
/** Sets or retrieves the shape of the object. */
shape: string;
/** Sets or retrieves the window or frame at which to target content. */
target: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAreaElement: {
prototype: HTMLAreaElement;
new(): HTMLAreaElement;
};
/** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */
interface HTMLAudioElement extends HTMLMediaElement {
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAudioElement: {
prototype: HTMLAudioElement;
new(): HTMLAudioElement;
};
/** A HTML line break element (<br>). It inherits from HTMLElement. */
interface HTMLBRElement extends HTMLElement {
/**
* Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
* @deprecated
*/
clear: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBRElement: {
prototype: HTMLBRElement;
new(): HTMLBRElement;
};
/** Contains the base URI\xA0for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */
interface HTMLBaseElement extends HTMLElement {
/** Gets or sets the baseline URL on which relative links are based. */
href: string;
/** Sets or retrieves the window or frame at which to target content. */
target: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBaseElement: {
prototype: HTMLBaseElement;
new(): HTMLBaseElement;
};
interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}
/** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */
interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
/** @deprecated */
aLink: string;
/** @deprecated */
background: string;
/** @deprecated */
bgColor: string;
/** @deprecated */
link: string;
/** @deprecated */
text: string;
/** @deprecated */
vLink: string;
addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBodyElement: {
prototype: HTMLBodyElement;
new(): HTMLBodyElement;
};
/** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */
interface HTMLButtonElement extends HTMLElement {
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
formAction: string;
/** Used to override the encoding (formEnctype attribute) specified on the form element. */
formEnctype: string;
/** Overrides the submit method attribute previously specified on a form element. */
formMethod: string;
/** 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. */
formNoValidate: boolean;
/** Overrides the target attribute on a form element. */
formTarget: string;
readonly labels: NodeListOf<HTMLLabelElement>;
/** Sets or retrieves the name of the object. */
name: string;
/** Gets the classification and default behavior of the button. */
type: string;
/** 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. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Sets or retrieves the default or selected value of the control. */
value: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLButtonElement: {
prototype: HTMLButtonElement;
new(): HTMLButtonElement;
};
/** 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. */
interface HTMLCanvasElement extends HTMLElement {
/** Gets or sets the height of a canvas element on a document. */
height: number;
/** Gets or sets the width of a canvas element on a document. */
width: number;
captureStream(frameRequestRate?: number): MediaStream;
/**
* 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.
* @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");
*/
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
getContext(contextId: string, options?: any): RenderingContext | null;
toBlob(callback: BlobCallback, type?: string, quality?: any): void;
/**
* Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
* @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.
*/
toDataURL(type?: string, quality?: any): string;
transferControlToOffscreen(): OffscreenCanvas;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLCanvasElement: {
prototype: HTMLCanvasElement;
new(): HTMLCanvasElement;
};
/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */
interface HTMLCollectionBase {
/** Sets or retrieves the number of objects in a collection. */
readonly length: number;
/** Retrieves an object from various collections. */
item(index: number): Element | null;
[index: number]: Element;
}
interface HTMLCollection extends HTMLCollectionBase {
/** Retrieves a select object or an object from an options collection. */
namedItem(name: string): Element | null;
}
declare var HTMLCollection: {
prototype: HTMLCollection;
new(): HTMLCollection;
};
interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
item(index: number): T | null;
namedItem(name: string): T | null;
[index: number]: T;
}
/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */
interface HTMLDListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDListElement: {
prototype: HTMLDListElement;
new(): HTMLDListElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */
interface HTMLDataElement extends HTMLElement {
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataElement: {
prototype: HTMLDataElement;
new(): HTMLDataElement;
};
/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */
interface HTMLDataListElement extends HTMLElement {
/** Returns an HTMLCollection of the option elements of the datalist element. */
readonly options: HTMLCollectionOf<HTMLOptionElement>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataListElement: {
prototype: HTMLDataListElement;
new(): HTMLDataListElement;
};
interface HTMLDetailsElement extends HTMLElement {
open: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDetailsElement: {
prototype: HTMLDetailsElement;
new(): HTMLDetailsElement;
};
interface HTMLDialogElement extends HTMLElement {
open: boolean;
returnValue: string;
/**
* Closes the dialog element.
*
* The argument, if provided, provides a return value.
*/
close(returnValue?: string): void;
/** Displays the dialog element. */
show(): void;
showModal(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDialogElement: {
prototype: HTMLDialogElement;
new(): HTMLDialogElement;
};
/** @deprecated */
interface HTMLDirectoryElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLDirectoryElement: {
prototype: HTMLDirectoryElement;
new(): HTMLDirectoryElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */
interface HTMLDivElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDivElement: {
prototype: HTMLDivElement;
new(): HTMLDivElement;
};
/** @deprecated use Document */
interface HTMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLDocument: {
prototype: HTMLDocument;
new(): HTMLDocument;
};
interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
accessKey: string;
readonly accessKeyLabel: string;
autocapitalize: string;
dir: string;
draggable: boolean;
hidden: boolean;
inert: boolean;
innerText: string;
lang: string;
readonly offsetHeight: number;
readonly offsetLeft: number;
readonly offsetParent: Element | null;
readonly offsetTop: number;
readonly offsetWidth: number;
outerText: string;
spellcheck: boolean;
title: string;
translate: boolean;
attachInternals(): ElementInternals;
click(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLElement: {
prototype: HTMLElement;
new(): HTMLElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */
interface HTMLEmbedElement extends HTMLElement {
/** @deprecated */
align: string;
/** Sets or retrieves the height of the object. */
height: string;
/**
* Sets or retrieves the name of the object.
* @deprecated
*/
name: string;
/** Sets or retrieves a URL to be loaded by the object. */
src: string;
type: string;
/** Sets or retrieves the width of the object. */
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLEmbedElement: {
prototype: HTMLEmbedElement;
new(): HTMLEmbedElement;
};
/** 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. */
interface HTMLFieldSetElement extends HTMLElement {
disabled: boolean;
/** Returns an HTMLCollection of the form controls in the element. */
readonly elements: HTMLCollection;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
name: string;
/** Returns the string "fieldset". */
readonly type: string;
/** 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. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLFieldSetElement: {
prototype: HTMLFieldSetElement;
new(): HTMLFieldSetElement;
};
/**
* 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.
* @deprecated
*/
interface HTMLFontElement extends HTMLElement {
/** @deprecated */
color: string;
/**
* Sets or retrieves the current typeface family.
* @deprecated
*/
face: string;
/** @deprecated */
size: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFontElement: {
prototype: HTMLFontElement;
new(): HTMLFontElement;
};
/** A collection of HTML form control elements. */
interface HTMLFormControlsCollection extends HTMLCollectionBase {
/**
* Returns the item with ID or name name from the collection.
*
* If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
*/
namedItem(name: string): RadioNodeList | Element | null;
}
declare var HTMLFormControlsCollection: {
prototype: HTMLFormControlsCollection;
new(): HTMLFormControlsCollection;
};
/** 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. */
interface HTMLFormElement extends HTMLElement {
/** Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. */
acceptCharset: string;
/** Sets or retrieves the URL to which the form content is sent for processing. */
action: string;
/** Specifies whether autocomplete is applied to an editable text field. */
autocomplete: string;
/** Retrieves a collection, in source order, of all controls in a given form. */
readonly elements: HTMLFormControlsCollection;
/** Sets or retrieves the MIME encoding for the form. */
encoding: string;
/** Sets or retrieves the encoding type for the form. */
enctype: string;
/** Sets or retrieves the number of objects in a collection. */
readonly length: number;
/** Sets or retrieves how to send the form data to the server. */
method: string;
/** Sets or retrieves the name of the object. */
name: string;
/** Designates a form that is not validated when submitted. */
noValidate: boolean;
rel: string;
readonly relList: DOMTokenList;
/** Sets or retrieves the window or frame at which to target content. */
target: string;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
requestSubmit(submitter?: HTMLElement | null): void;
/** Fires when the user resets a form. */
reset(): void;
/** Fires when a FORM is about to be submitted. */
submit(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: Element;
[name: string]: any;
}
declare var HTMLFormElement: {
prototype: HTMLFormElement;
new(): HTMLFormElement;
};
/** @deprecated */
interface HTMLFrameElement extends HTMLElement {
/**
* Retrieves the document object of the page or frame.
* @deprecated
*/
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
* @deprecated
*/
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*/
frameBorder: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*/
marginWidth: string;
/**
* Sets or retrieves the frame name.
* @deprecated
*/
name: string;
/**
* Sets or retrieves whether the user can resize the frame.
* @deprecated
*/
noResize: boolean;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*/
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
* @deprecated
*/
src: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFrameElement: {
prototype: HTMLFrameElement;
new(): HTMLFrameElement;
};
interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}
/**
* Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.
* @deprecated
*/
interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
/**
* Sets or retrieves the frame widths of the object.
* @deprecated
*/
cols: string;
/**
* Sets or retrieves the frame heights of the object.
* @deprecated
*/
rows: string;
addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFrameSetElement: {
prototype: HTMLFrameSetElement;
new(): HTMLFrameSetElement;
};
/** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */
interface HTMLHRElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** @deprecated */
color: string;
/**
* Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
* @deprecated
*/
noShade: boolean;
/** @deprecated */
size: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHRElement: {
prototype: HTMLHRElement;
new(): HTMLHRElement;
};
/** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */
interface HTMLHeadElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHeadElement: {
prototype: HTMLHeadElement;
new(): HTMLHeadElement;
};
/** The different heading elements. It inherits methods and properties from the HTMLElement interface. */
interface HTMLHeadingElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHeadingElement: {
prototype: HTMLHeadingElement;
new(): HTMLHeadingElement;
};
/** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */
interface HTMLHtmlElement extends HTMLElement {
/**
* Sets or retrieves the DTD version that governs the current document.
* @deprecated
*/
version: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHtmlElement: {
prototype: HTMLHtmlElement;
new(): HTMLHtmlElement;
};
interface HTMLHyperlinkElementUtils {
/**
* Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
*
* Can be set, to change the URL's fragment (ignores leading "#").
*/
hash: string;
/**
* Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
*
* Can be set, to change the URL's host and port.
*/
host: string;
/**
* Returns the hyperlink's URL's host.
*
* Can be set, to change the URL's host.
*/
hostname: string;
/**
* Returns the hyperlink's URL.
*
* Can be set, to change the URL.
*/
href: string;
toString(): string;
/** Returns the hyperlink's URL's origin. */
readonly origin: string;
/**
* Returns the hyperlink's URL's password.
*
* Can be set, to change the URL's password.
*/
password: string;
/**
* Returns the hyperlink's URL's path.
*
* Can be set, to change the URL's path.
*/
pathname: string;
/**
* Returns the hyperlink's URL's port.
*
* Can be set, to change the URL's port.
*/
port: string;
/**
* Returns the hyperlink's URL's scheme.
*
* Can be set, to change the URL's scheme.
*/
protocol: string;
/**
* Returns the hyperlink's URL's query (includes leading "?" if non-empty).
*
* Can be set, to change the URL's query (ignores leading "?").
*/
search: string;
/**
* Returns the hyperlink's URL's username.
*
* Can be set, to change the URL's username.
*/
username: string;
}
/** 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. */
interface HTMLIFrameElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
allow: string;
allowFullscreen: boolean;
/** Retrieves the document object of the page or frame. */
readonly contentDocument: Document | null;
/** Retrieves the object of the specified. */
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*/
frameBorder: string;
/** Sets or retrieves the height of the object. */
height: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*/
marginWidth: string;
/** Sets or retrieves the frame name. */
name: string;
referrerPolicy: ReferrerPolicy;
readonly sandbox: DOMTokenList;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*/
scrolling: string;
/** Sets or retrieves a URL to be loaded by the object. */
src: string;
/** Sets or retrives the content of the page that is to contain. */
srcdoc: string;
/** Sets or retrieves the width of the object. */
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLIFrameElement: {
prototype: HTMLIFrameElement;
new(): HTMLIFrameElement;
};
/** Provides special properties and methods for manipulating <img> elements. */
interface HTMLImageElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** Sets or retrieves a text alternative to the graphic. */
alt: string;
/**
* Specifies the properties of a border drawn around an object.
* @deprecated
*/
border: string;
/** Retrieves whether the object is fully loaded. */
readonly complete: boolean;
crossOrigin: string | null;
readonly currentSrc: string;
decoding: "async" | "sync" | "auto";
/** Sets or retrieves the height of the object. */
height: number;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*/
hspace: number;
/** Sets or retrieves whether the image is a server-side image map. */
isMap: boolean;
/** Sets or retrieves the policy for loading image elements that are outside the viewport. */
loading: "eager" | "lazy";
/**
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
* @deprecated
*/
longDesc: string;
/** @deprecated */
lowsrc: string;
/**
* Sets or retrieves the name of the object.
* @deprecated
*/
name: string;
/** The original height of the image resource before sizing. */
readonly naturalHeight: number;
/** The original width of the image resource before sizing. */
readonly naturalWidth: number;
referrerPolicy: string;
sizes: string;
/** The address or URL of the a media resource that is to be considered. */
src: string;
srcset: string;
/** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */
useMap: string;
/**
* Sets or retrieves the vertical margin for the object.
* @deprecated
*/
vspace: number;
/** Sets or retrieves the width of the object. */
width: number;
readonly x: number;
readonly y: number;
decode(): Promise<void>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLImageElement: {
prototype: HTMLImageElement;
new(): HTMLImageElement;
};
/** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */
interface HTMLInputElement extends HTMLElement {
/** Sets or retrieves a comma-separated list of content types. */
accept: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** Sets or retrieves a text alternative to the graphic. */
alt: string;
/** Specifies whether autocomplete is applied to an editable text field. */
autocomplete: string;
capture: string;
/** Sets or retrieves the state of the check box or radio button. */
checked: boolean;
/** Sets or retrieves the state of the check box or radio button. */
defaultChecked: boolean;
/** Sets or retrieves the initial contents of the object. */
defaultValue: string;
dirName: string;
disabled: boolean;
/** Returns a FileList object on a file type input object. */
files: FileList | null;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
formAction: string;
/** Used to override the encoding (formEnctype attribute) specified on the form element. */
formEnctype: string;
/** Overrides the submit method attribute previously specified on a form element. */
formMethod: string;
/** 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. */
formNoValidate: boolean;
/** Overrides the target attribute on a form element. */
formTarget: string;
/** Sets or retrieves the height of the object. */
height: number;
/** When set, overrides the rendering of checkbox controls so that the current value is not visible. */
indeterminate: boolean;
readonly labels: NodeListOf<HTMLLabelElement> | null;
/** Specifies the ID of a pre-defined datalist of options for an input element. */
readonly list: HTMLDataListElement | null;
/** 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. */
max: string;
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
maxLength: number;
/** 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. */
min: string;
minLength: number;
/** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
multiple: boolean;
/** Sets or retrieves the name of the object. */
name: string;
/** Gets or sets a string containing a regular expression that the user's input must match. */
pattern: string;
/** 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. */
placeholder: string;
readOnly: boolean;
/** When present, marks an element that can't be submitted without a value. */
required: boolean;
selectionDirection: "forward" | "backward" | "none" | null;
/** Gets or sets the end position or offset of a text selection. */
selectionEnd: number | null;
/** Gets or sets the starting position or offset of a text selection. */
selectionStart: number | null;
size: number;
/** The address or URL of the a media resource that is to be considered. */
src: string;
/** 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. */
step: string;
/** Returns the content type of the object. */
type: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
* @deprecated
*/
useMap: string;
/** 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. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Returns the value of the data at the cursor's current position. */
value: string;
/** 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. */
valueAsDate: Date | null;
/** Returns the input field value as a number. */
valueAsNumber: number;
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
webkitdirectory: boolean;
/** Sets or retrieves the width of the object. */
width: number;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
/** Makes the selection equal to the current object. */
select(): void;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
setRangeText(replacement: string): void;
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
/**
* Sets the start and end positions of a selection in a text field.
* @param start The offset into the text field for the start of the selection.
* @param end The offset into the text field for the end of the selection.
* @param direction The direction in which the selection is performed.
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
showPicker(): void;
/**
* 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.
* @param n Value to decrement the value by.
*/
stepDown(n?: number): void;
/**
* 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.
* @param n Value to increment the value by.
*/
stepUp(n?: number): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLInputElement: {
prototype: HTMLInputElement;
new(): HTMLInputElement;
};
/** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */
interface HTMLLIElement extends HTMLElement {
/** @deprecated */
type: string;
/** Sets or retrieves the value of a list item. */
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLIElement: {
prototype: HTMLLIElement;
new(): HTMLLIElement;
};
/** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */
interface HTMLLabelElement extends HTMLElement {
/** Returns the form control that is associated with this element. */
readonly control: HTMLElement | null;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Sets or retrieves the object to which the given label object is assigned. */
htmlFor: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLabelElement: {
prototype: HTMLLabelElement;
new(): HTMLLabelElement;
};
/** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */
interface HTMLLegendElement extends HTMLElement {
/** @deprecated */
align: string;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLegendElement: {
prototype: HTMLLegendElement;
new(): HTMLLegendElement;
};
/** 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. */
interface HTMLLinkElement extends HTMLElement, LinkStyle {
as: string;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
crossOrigin: string | null;
disabled: boolean;
/** Sets or retrieves a destination URL or an anchor point. */
href: string;
/** Sets or retrieves the language code of the object. */
hreflang: string;
imageSizes: string;
imageSrcset: string;
integrity: string;
/** Sets or retrieves the media type. */
media: string;
referrerPolicy: string;
/** Sets or retrieves the relationship between the object and the destination of the link. */
rel: string;
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*/
rev: string;
readonly sizes: DOMTokenList;
/**
* Sets or retrieves the window or frame at which to target content.
* @deprecated
*/
target: string;
/** Sets or retrieves the MIME type of the object. */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLinkElement: {
prototype: HTMLLinkElement;
new(): HTMLLinkElement;
};
/** 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. */
interface HTMLMapElement extends HTMLElement {
/** Retrieves a collection of the area objects defined for the given map object. */
readonly areas: HTMLCollection;
/** Sets or retrieves the name of the object. */
name: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMapElement: {
prototype: HTMLMapElement;
new(): HTMLMapElement;
};
/**
* Provides methods to manipulate <marquee> elements.
* @deprecated
*/
interface HTMLMarqueeElement extends HTMLElement {
/** @deprecated */
behavior: string;
/** @deprecated */
bgColor: string;
/** @deprecated */
direction: string;
/** @deprecated */
height: string;
/** @deprecated */
hspace: number;
/** @deprecated */
loop: number;
/** @deprecated */
scrollAmount: number;
/** @deprecated */
scrollDelay: number;
/** @deprecated */
trueSpeed: boolean;
/** @deprecated */
vspace: number;
/** @deprecated */
width: string;
/** @deprecated */
start(): void;
/** @deprecated */
stop(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLMarqueeElement: {
prototype: HTMLMarqueeElement;
new(): HTMLMarqueeElement;
};
interface HTMLMediaElementEventMap extends HTMLElementEventMap {
"encrypted": MediaEncryptedEvent;
"waitingforkey": Event;
}
/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities\xA0that are\xA0common to audio and video. */
interface HTMLMediaElement extends HTMLElement {
/** Gets or sets a value that indicates whether to start playing the media automatically. */
autoplay: boolean;
/** Gets a collection of buffered time ranges. */
readonly buffered: TimeRanges;
/** 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). */
controls: boolean;
crossOrigin: string | null;
/** Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. */
readonly currentSrc: string;
/** Gets or sets the current playback position, in seconds. */
currentTime: number;
defaultMuted: boolean;
/** Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. */
defaultPlaybackRate: number;
disableRemotePlayback: boolean;
/** 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. */
readonly duration: number;
/** Gets information about whether the playback has ended or not. */
readonly ended: boolean;
/** Returns an object representing the current error state of the audio or video element. */
readonly error: MediaError | null;
/** Gets or sets a flag to specify whether playback should restart after it completes. */
loop: boolean;
/** Available only in secure contexts. */
readonly mediaKeys: MediaKeys | null;
/** Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. */
muted: boolean;
/** Gets the current network activity for the element. */
readonly networkState: number;
onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
/** Gets a flag that specifies whether playback is paused. */
readonly paused: boolean;
/** 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. */
playbackRate: number;
/** Gets TimeRanges for the current media resource that has been played. */
readonly played: TimeRanges;
/** Gets or sets a value indicating what data should be preloaded, if any. */
preload: "none" | "metadata" | "auto" | "";
preservesPitch: boolean;
readonly readyState: number;
readonly remote: RemotePlayback;
/** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */
readonly seekable: TimeRanges;
/** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */
readonly seeking: boolean;
/** The address or URL of the a media resource that is to be considered. */
src: string;
srcObject: MediaProvider | null;
readonly textTracks: TextTrackList;
/** Gets or sets the volume level for audio portions of the media element. */
volume: number;
addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
/** Returns a string that specifies whether the client can play a given media resource type. */
canPlayType(type: string): CanPlayTypeResult;
fastSeek(time: number): void;
/** Resets the audio or video object and loads a new media resource. */
load(): void;
/** Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. */
pause(): void;
/** Loads and starts playback of a media resource. */
play(): Promise<void>;
/** Available only in secure contexts. */
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
readonly NETWORK_EMPTY: 0;
readonly NETWORK_IDLE: 1;
readonly NETWORK_LOADING: 2;
readonly NETWORK_NO_SOURCE: 3;
readonly HAVE_NOTHING: 0;
readonly HAVE_METADATA: 1;
readonly HAVE_CURRENT_DATA: 2;
readonly HAVE_FUTURE_DATA: 3;
readonly HAVE_ENOUGH_DATA: 4;
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMediaElement: {
prototype: HTMLMediaElement;
new(): HTMLMediaElement;
readonly NETWORK_EMPTY: 0;
readonly NETWORK_IDLE: 1;
readonly NETWORK_LOADING: 2;
readonly NETWORK_NO_SOURCE: 3;
readonly HAVE_NOTHING: 0;
readonly HAVE_METADATA: 1;
readonly HAVE_CURRENT_DATA: 2;
readonly HAVE_FUTURE_DATA: 3;
readonly HAVE_ENOUGH_DATA: 4;
};
interface HTMLMenuElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMenuElement: {
prototype: HTMLMenuElement;
new(): HTMLMenuElement;
};
/** Contains descriptive metadata about a document. It\xA0inherits all of the properties and methods described in the HTMLElement interface. */
interface HTMLMetaElement extends HTMLElement {
/** Gets or sets meta-information to associate with httpEquiv or name. */
content: string;
/** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
httpEquiv: string;
media: string;
/** Sets or retrieves the value specified in the content attribute of the meta object. */
name: string;
/**
* Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
* @deprecated
*/
scheme: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMetaElement: {
prototype: HTMLMetaElement;
new(): HTMLMetaElement;
};
/** 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. */
interface HTMLMeterElement extends HTMLElement {
high: number;
readonly labels: NodeListOf<HTMLLabelElement>;
low: number;
max: number;
min: number;
optimum: number;
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMeterElement: {
prototype: HTMLMeterElement;
new(): HTMLMeterElement;
};
/** 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>. */
interface HTMLModElement extends HTMLElement {
/** Sets or retrieves reference information about the object. */
cite: string;
/** Sets or retrieves the date and time of a modification to the object. */
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLModElement: {
prototype: HTMLModElement;
new(): HTMLModElement;
};
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */
interface HTMLOListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
reversed: boolean;
/** The starting number. */
start: number;
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOListElement: {
prototype: HTMLOListElement;
new(): HTMLOListElement;
};
/** 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. */
interface HTMLObjectElement extends HTMLElement {
/** @deprecated */
align: string;
/**
* Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
* @deprecated
*/
archive: string;
/** @deprecated */
border: string;
/**
* Sets or retrieves the URL of the file containing the compiled Java class.
* @deprecated
*/
code: string;
/**
* Sets or retrieves the URL of the component.
* @deprecated
*/
codeBase: string;
/**
* Sets or retrieves the Internet media type for the code associated with the object.
* @deprecated
*/
codeType: string;
/** Retrieves the document object of the page or frame. */
readonly contentDocument: Document | null;
readonly contentWindow: WindowProxy | null;
/** Sets or retrieves the URL that references the data of the object. */
data: string;
/** @deprecated */
declare: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Sets or retrieves the height of the object. */
height: string;
/** @deprecated */
hspace: number;
/** Sets or retrieves the name of the object. */
name: string;
/**
* Sets or retrieves a message to be displayed while an object is loading.
* @deprecated
*/
standby: string;
/** Sets or retrieves the MIME type of the object. */
type: string;
/** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */
useMap: string;
/** 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. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** @deprecated */
vspace: number;
/** Sets or retrieves the width of the object. */
width: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
getSVGDocument(): Document | null;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLObjectElement: {
prototype: HTMLObjectElement;
new(): HTMLObjectElement;
};
/** 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. */
interface HTMLOptGroupElement extends HTMLElement {
disabled: boolean;
/** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
label: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptGroupElement: {
prototype: HTMLOptGroupElement;
new(): HTMLOptGroupElement;
};
/** <option> elements and inherits all classes and methods of the HTMLElement interface. */
interface HTMLOptionElement extends HTMLElement {
/** Sets or retrieves the status of an option. */
defaultSelected: boolean;
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Sets or retrieves the ordinal position of an option in a list box. */
readonly index: number;
/** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
label: string;
/** Sets or retrieves whether the option in the list box is the default item. */
selected: boolean;
/** Sets or retrieves the text string specified by the option tag. */
text: string;
/** Sets or retrieves the value which is returned to the server when the form control is submitted. */
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptionElement: {
prototype: HTMLOptionElement;
new(): HTMLOptionElement;
};
/** 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. */
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
/**
* Returns the number of elements in the collection.
*
* When set to a smaller number, truncates the number of option elements in the corresponding container.
*
* When set to a greater number, adds new blank option elements to that container.
*/
length: number;
/**
* Returns the index of the first selected item, if any, or \u22121 if there is no selected item.
*
* Can be set, to change the selection.
*/
selectedIndex: number;
/**
* Inserts element before the node given by before.
*
* 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.
*
* If before is omitted, null, or a number out of range, then element will be added at the end of the list.
*
* This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/** Removes the item with index index from the collection. */
remove(index: number): void;
}
declare var HTMLOptionsCollection: {
prototype: HTMLOptionsCollection;
new(): HTMLOptionsCollection;
};
interface HTMLOrSVGElement {
autofocus: boolean;
readonly dataset: DOMStringMap;
nonce?: string;
tabIndex: number;
blur(): void;
focus(options?: FocusOptions): void;
}
/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */
interface HTMLOutputElement extends HTMLElement {
defaultValue: string;
readonly form: HTMLFormElement | null;
readonly htmlFor: DOMTokenList;
readonly labels: NodeListOf<HTMLLabelElement>;
name: string;
/** Returns the string "output". */
readonly type: string;
readonly validationMessage: string;
readonly validity: ValidityState;
/**
* Returns the element's current value.
*
* Can be set, to change the value.
*/
value: string;
readonly willValidate: boolean;
checkValidity(): boolean;
reportValidity(): boolean;
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOutputElement: {
prototype: HTMLOutputElement;
new(): HTMLOutputElement;
};
/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */
interface HTMLParagraphElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLParagraphElement: {
prototype: HTMLParagraphElement;
new(): HTMLParagraphElement;
};
/**
* 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.
* @deprecated
*/
interface HTMLParamElement extends HTMLElement {
/**
* Sets or retrieves the name of an input parameter for an element.
* @deprecated
*/
name: string;
/**
* Sets or retrieves the content type of the resource designated by the value attribute.
* @deprecated
*/
type: string;
/**
* Sets or retrieves the value of an input parameter for an element.
* @deprecated
*/
value: string;
/**
* Sets or retrieves the data type of the value attribute.
* @deprecated
*/
valueType: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLParamElement: {
prototype: HTMLParamElement;
new(): HTMLParamElement;
};
/** A <picture> HTML element. It doesn't implement specific properties or methods. */
interface HTMLPictureElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLPictureElement: {
prototype: HTMLPictureElement;
new(): HTMLPictureElement;
};
/** 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>). */
interface HTMLPreElement extends HTMLElement {
/**
* Sets or gets a value that you can use to implement your own width functionality for the object.
* @deprecated
*/
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLPreElement: {
prototype: HTMLPreElement;
new(): HTMLPreElement;
};
/** 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. */
interface HTMLProgressElement extends HTMLElement {
readonly labels: NodeListOf<HTMLLabelElement>;
/** Defines the maximum, or "done" value for a progress element. */
max: number;
/** 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). */
readonly position: number;
/** Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. */
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLProgressElement: {
prototype: HTMLProgressElement;
new(): HTMLProgressElement;
};
/** 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. */
interface HTMLQuoteElement extends HTMLElement {
/** Sets or retrieves reference information about the object. */
cite: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLQuoteElement: {
prototype: HTMLQuoteElement;
new(): HTMLQuoteElement;
};
/** 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). */
interface HTMLScriptElement extends HTMLElement {
async: boolean;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
crossOrigin: string | null;
/** Sets or retrieves the status of the script. */
defer: boolean;
/**
* Sets or retrieves the event for which the script is written.
* @deprecated
*/
event: string;
/**
* Sets or retrieves the object that is bound to the event script.
* @deprecated
*/
htmlFor: string;
integrity: string;
noModule: boolean;
referrerPolicy: string;
/** Retrieves the URL to an external file that contains the source code or data. */
src: string;
/** Retrieves or sets the text of the object as a string. */
text: string;
/** Sets or retrieves the MIME type for the associated scripting engine. */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLScriptElement: {
prototype: HTMLScriptElement;
new(): HTMLScriptElement;
supports(type: string): boolean;
};
/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
interface HTMLSelectElement extends HTMLElement {
autocomplete: string;
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
readonly labels: NodeListOf<HTMLLabelElement>;
/** Sets or retrieves the number of objects in a collection. */
length: number;
/** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
multiple: boolean;
/** Sets or retrieves the name of the object. */
name: string;
/** Returns an HTMLOptionsCollection of the list of options. */
readonly options: HTMLOptionsCollection;
/** When present, marks an element that can't be submitted without a value. */
required: boolean;
/** Sets or retrieves the index of the selected option in a select object. */
selectedIndex: number;
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
/** Sets or retrieves the number of rows in the list box. */
size: number;
/** Retrieves the type of select control based on the value of the MULTIPLE attribute. */
readonly type: string;
/** 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. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Sets or retrieves the value which is returned to the server when the form control is submitted. */
value: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/**
* Adds an element to the areas, controlRange, or options collection.
* @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.
* @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
/**
* Retrieves a select object or an object from an options collection.
* @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.
* @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
*/
item(index: number): HTMLOptionElement | null;
/**
* Retrieves a select object or an object from an options collection.
* @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.
*/
namedItem(name: string): HTMLOptionElement | null;
/**
* Removes an element from the collection.
* @param index Number that specifies the zero-based index of the element to remove from the collection.
*/
remove(): void;
remove(index: number): void;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[name: number]: HTMLOptionElement | HTMLOptGroupElement;
}
declare var HTMLSelectElement: {
prototype: HTMLSelectElement;
new(): HTMLSelectElement;
};
interface HTMLSlotElement extends HTMLElement {
name: string;
assign(...nodes: (Element | Text)[]): void;
assignedElements(options?: AssignedNodesOptions): Element[];
assignedNodes(options?: AssignedNodesOptions): Node[];
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSlotElement: {
prototype: HTMLSlotElement;
new(): HTMLSlotElement;
};
/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
interface HTMLSourceElement extends HTMLElement {
height: number;
/** Gets or sets the intended media type of the media source. */
media: string;
sizes: string;
/** The address or URL of the a media resource that is to be considered. */
src: string;
srcset: string;
/** Gets or sets the MIME type of a media resource. */
type: string;
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSourceElement: {
prototype: HTMLSourceElement;
new(): HTMLSourceElement;
};
/** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
interface HTMLSpanElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSpanElement: {
prototype: HTMLSpanElement;
new(): HTMLSpanElement;
};
/** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */
interface HTMLStyleElement extends HTMLElement, LinkStyle {
/** Enables or disables the style sheet. */
disabled: boolean;
/** Sets or retrieves the media type. */
media: string;
/**
* Retrieves the CSS language in which the style sheet is written.
* @deprecated
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLStyleElement: {
prototype: HTMLStyleElement;
new(): HTMLStyleElement;
};
/** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */
interface HTMLTableCaptionElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the caption or legend.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCaptionElement: {
prototype: HTMLTableCaptionElement;
new(): HTMLTableCaptionElement;
};
/** 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. */
interface HTMLTableCellElement extends HTMLElement {
/** Sets or retrieves abbreviated text for the object. */
abbr: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/**
* Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
* @deprecated
*/
axis: string;
/** @deprecated */
bgColor: string;
/** Retrieves the position of the object in the cells collection of a row. */
readonly cellIndex: number;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/** Sets or retrieves the number columns in the table that the object should span. */
colSpan: number;
/** Sets or retrieves a list of header cells that provide information for the object. */
headers: string;
/**
* Sets or retrieves the height of the object.
* @deprecated
*/
height: string;
/**
* Sets or retrieves whether the browser automatically performs wordwrap.
* @deprecated
*/
noWrap: boolean;
/** Sets or retrieves how many rows in a table the cell should span. */
rowSpan: number;
/** Sets or retrieves the group of cells in a table to which the object's information applies. */
scope: string;
/** @deprecated */
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCellElement: {
prototype: HTMLTableCellElement;
new(): HTMLTableCellElement;
};
/** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */
interface HTMLTableColElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the object relative to the display or table.
* @deprecated
*/
align: string;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/** Sets or retrieves the number of columns in the group. */
span: number;
/** @deprecated */
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableColElement: {
prototype: HTMLTableColElement;
new(): HTMLTableColElement;
};
/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableDataCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** 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. */
interface HTMLTableElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*/
align: string;
/** @deprecated */
bgColor: string;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*/
border: string;
/** Retrieves the caption object of a table. */
caption: HTMLTableCaptionElement | null;
/**
* Sets or retrieves the amount of space between the border of the cell and the content of the cell.
* @deprecated
*/
cellPadding: string;
/**
* Sets or retrieves the amount of space between cells in a table.
* @deprecated
*/
cellSpacing: string;
/**
* Sets or retrieves the way the border frame around the table is displayed.
* @deprecated
*/
frame: string;
/** Sets or retrieves the number of horizontal rows contained in the object. */
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/**
* Sets or retrieves which dividing lines (inner borders) are displayed.
* @deprecated
*/
rules: string;
/**
* Sets or retrieves a description and/or structure of the object.
* @deprecated
*/
summary: string;
/** Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. */
readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
/** Retrieves the tFoot object of the table. */
tFoot: HTMLTableSectionElement | null;
/** Retrieves the tHead object of the table. */
tHead: HTMLTableSectionElement | null;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
/** Creates an empty caption element in the table. */
createCaption(): HTMLTableCaptionElement;
/** Creates an empty tBody element in the table. */
createTBody(): HTMLTableSectionElement;
/** Creates an empty tFoot element in the table. */
createTFoot(): HTMLTableSectionElement;
/** Returns the tHead element object if successful, or null otherwise. */
createTHead(): HTMLTableSectionElement;
/** Deletes the caption element and its contents from the table. */
deleteCaption(): void;
/**
* Removes the specified row (tr) from the element and from the rows collection.
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
*/
deleteRow(index: number): void;
/** Deletes the tFoot element and its contents from the table. */
deleteTFoot(): void;
/** Deletes the tHead element and its contents from the table. */
deleteTHead(): void;
/**
* Creates a new row (tr) in the table, and adds the row to the rows collection.
* @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.
*/
insertRow(index?: number): HTMLTableRowElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableElement: {
prototype: HTMLTableElement;
new(): HTMLTableElement;
};
/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** 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. */
interface HTMLTableRowElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** @deprecated */
bgColor: string;
/** Retrieves a collection of all cells in the table row. */
readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/** Retrieves the position of the object in the rows collection for the table. */
readonly rowIndex: number;
/** Retrieves the position of the object in the collection. */
readonly sectionRowIndex: number;
/** @deprecated */
vAlign: string;
/**
* Removes the specified cell from the table row, as well as from the cells collection.
* @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.
*/
deleteCell(index: number): void;
/**
* Creates a new cell in the table row, and adds the cell to the cells collection.
* @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.
*/
insertCell(index?: number): HTMLTableCellElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableRowElement: {
prototype: HTMLTableRowElement;
new(): HTMLTableRowElement;
};
/** 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. */
interface HTMLTableSectionElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*/
align: string;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/** Sets or retrieves the number of horizontal rows contained in the object. */
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/** @deprecated */
vAlign: string;
/**
* Removes the specified row (tr) from the element and from the rows collection.
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
*/
deleteRow(index: number): void;
/**
* Creates a new row (tr) in the table, and adds the row to the rows collection.
* @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.
*/
insertRow(index?: number): HTMLTableRowElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableSectionElement: {
prototype: HTMLTableSectionElement;
new(): HTMLTableSectionElement;
};
/** Enables access to the contents of an HTML <template> element. */
interface HTMLTemplateElement extends HTMLElement {
/** Returns the template contents (a DocumentFragment). */
readonly content: DocumentFragment;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTemplateElement: {
prototype: HTMLTemplateElement;
new(): HTMLTemplateElement;
};
/** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */
interface HTMLTextAreaElement extends HTMLElement {
autocomplete: string;
/** Sets or retrieves the width of the object. */
cols: number;
/** Sets or retrieves the initial contents of the object. */
defaultValue: string;
dirName: string;
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
readonly labels: NodeListOf<HTMLLabelElement>;
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
maxLength: number;
minLength: number;
/** Sets or retrieves the name of the object. */
name: string;
/** 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. */
placeholder: string;
/** Sets or retrieves the value indicated whether the content of the object is read-only. */
readOnly: boolean;
/** When present, marks an element that can't be submitted without a value. */
required: boolean;
/** Sets or retrieves the number of horizontal rows contained in the object. */
rows: number;
selectionDirection: "forward" | "backward" | "none";
/** Gets or sets the end position or offset of a text selection. */
selectionEnd: number;
/** Gets or sets the starting position or offset of a text selection. */
selectionStart: number;
readonly textLength: number;
/** Retrieves the type of control. */
readonly type: string;
/** 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. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Retrieves or sets the text in the entry field of the textArea element. */
value: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Sets or retrieves how to handle wordwrapping in the object. */
wrap: string;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
/** Highlights the input area of a form element. */
select(): void;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
setRangeText(replacement: string): void;
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
/**
* Sets the start and end positions of a selection in a text field.
* @param start The offset into the text field for the start of the selection.
* @param end The offset into the text field for the end of the selection.
* @param direction The direction in which the selection is performed.
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTextAreaElement: {
prototype: HTMLTextAreaElement;
new(): HTMLTextAreaElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */
interface HTMLTimeElement extends HTMLElement {
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTimeElement: {
prototype: HTMLTimeElement;
new(): HTMLTimeElement;
};
/** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */
interface HTMLTitleElement extends HTMLElement {
/** Retrieves or sets the text of the object as a string. */
text: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTitleElement: {
prototype: HTMLTitleElement;
new(): HTMLTitleElement;
};
/** The HTMLTrackElement */
interface HTMLTrackElement extends HTMLElement {
default: boolean;
kind: string;
label: string;
readonly readyState: number;
src: string;
srclang: string;
/** Returns the TextTrack object corresponding to the text track of the track element. */
readonly track: TextTrack;
readonly NONE: 0;
readonly LOADING: 1;
readonly LOADED: 2;
readonly ERROR: 3;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTrackElement: {
prototype: HTMLTrackElement;
new(): HTMLTrackElement;
readonly NONE: 0;
readonly LOADING: 1;
readonly LOADED: 2;
readonly ERROR: 3;
};
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */
interface HTMLUListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
/** @deprecated */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLUListElement: {
prototype: HTMLUListElement;
new(): HTMLUListElement;
};
/** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
interface HTMLUnknownElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLUnknownElement: {
prototype: HTMLUnknownElement;
new(): HTMLUnknownElement;
};
interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
"enterpictureinpicture": Event;
"leavepictureinpicture": Event;
}
/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */
interface HTMLVideoElement extends HTMLMediaElement {
disablePictureInPicture: boolean;
/** Gets or sets the height of the video element. */
height: number;
onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
/** 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. */
playsInline: boolean;
/** 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. */
poster: string;
/** Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. */
readonly videoHeight: number;
/** Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. */
readonly videoWidth: number;
/** Gets or sets the width of the video element. */
width: number;
cancelVideoFrameCallback(handle: number): void;
getVideoPlaybackQuality(): VideoPlaybackQuality;
requestPictureInPicture(): Promise<PictureInPictureWindow>;
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLVideoElement: {
prototype: HTMLVideoElement;
new(): HTMLVideoElement;
};
/** Events that fire when the fragment identifier of the URL has changed. */
interface HashChangeEvent extends Event {
/** Returns the URL of the session history entry that is now current. */
readonly newURL: string;
/** Returns the URL of the session history entry that was previously current. */
readonly oldURL: string;
}
declare var HashChangeEvent: {
prototype: HashChangeEvent;
new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
};
/** 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\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */
interface Headers {
append(name: string, value: string): void;
delete(name: string): void;
get(name: string): string | null;
has(name: string): boolean;
set(name: string, value: string): void;
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}
declare var Headers: {
prototype: Headers;
new(init?: HeadersInit): Headers;
};
/** Allows\xA0manipulation of\xA0the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */
interface History {
readonly length: number;
scrollRestoration: ScrollRestoration;
readonly state: any;
back(): void;
forward(): void;
go(delta?: number): void;
pushState(data: any, unused: string, url?: string | URL | null): void;
replaceState(data: any, unused: string, url?: string | URL | null): void;
}
declare var History: {
prototype: History;
new(): History;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
interface IDBCursor {
/** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
readonly direction: IDBCursorDirection;
/** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
readonly key: IDBValidKey;
/** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
readonly primaryKey: IDBValidKey;
readonly request: IDBRequest;
/** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
readonly source: IDBObjectStore | IDBIndex;
/** Advances the cursor through the next count records in range. */
advance(count: number): void;
/** Advances the cursor to the next record in range. */
continue(key?: IDBValidKey): void;
/** 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. */
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
*
* If successful, request's result will be undefined.
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
*
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
*
* If successful, request's result will be the record's key.
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/** 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. */
interface IDBCursorWithValue extends IDBCursor {
/** Returns the cursor's current value. */
readonly value: any;
}
declare var IDBCursorWithValue: {
prototype: IDBCursorWithValue;
new(): IDBCursorWithValue;
};
interface IDBDatabaseEventMap {
"abort": Event;
"close": Event;
"error": Event;
"versionchange": IDBVersionChangeEvent;
}
/** 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. */
interface IDBDatabase extends EventTarget {
/** Returns the name of the database. */
readonly name: string;
/** Returns a list of the names of object stores in the database. */
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/** Returns the version of the database. */
readonly version: number;
/** Closes the connection once all running transactions have finished. */
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteObjectStore(name: string): void;
/** 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. */
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBDatabase: {
prototype: IDBDatabase;
new(): IDBDatabase;
};
/** 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.) */
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*/
cmp(first: any, second: any): number;
databases(): Promise<IDBDatabaseInfo[]>;
/** 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. */
deleteDatabase(name: string): IDBOpenDBRequest;
/** 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. */
open(name: string, version?: number): IDBOpenDBRequest;
}
declare var IDBFactory: {
prototype: IDBFactory;
new(): IDBFactory;
};
/** 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. */
interface IDBIndex {
readonly keyPath: string | string[];
readonly multiEntry: boolean;
/** Returns the name of the index. */
name: string;
/** Returns the IDBObjectStore the index belongs to. */
readonly objectStore: IDBObjectStore;
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* 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.
*
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}
declare var IDBIndex: {
prototype: IDBIndex;
new(): IDBIndex;
};
/** 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: */
interface IDBKeyRange {
/** Returns lower bound, or undefined if none. */
readonly lower: any;
/** Returns true if the lower open flag is set, and false otherwise. */
readonly lowerOpen: boolean;
/** Returns upper bound, or undefined if none. */
readonly upper: any;
/** Returns true if the upper open flag is set, and false otherwise. */
readonly upperOpen: boolean;
/** Returns true if key is included in the range, and false otherwise. */
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/** 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. */
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/** Returns a new IDBKeyRange spanning only key. */
only(value: any): IDBKeyRange;
/** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.) */
interface IDBObjectStore {
/** Returns true if the store has a key generator, and false otherwise. */
readonly autoIncrement: boolean;
/** Returns a list of the names of indexes in the store. */
readonly indexNames: DOMStringList;
/** Returns the key path of the store, or null if none. */
readonly keyPath: string | string[];
/** Returns the name of the store. */
name: string;
/** Returns the associated transaction. */
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* 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.
*
* If successful, request's result will be the record's key.
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* 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.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
*
* If successful, request's result will be undefined.
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* 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.
*
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* 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.
*
* If successful, request's result will be the record's key.
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}
declare var IDBObjectStore: {
prototype: IDBObjectStore;
new(): IDBObjectStore;
};
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
"blocked": IDBVersionChangeEvent;
"upgradeneeded": IDBVersionChangeEvent;
}
/** Also inherits methods from its parents IDBRequest and EventTarget. */
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBOpenDBRequest: {
prototype: IDBOpenDBRequest;
new(): IDBOpenDBRequest;
};
interface IDBRequestEventMap {
"error": Event;
"success": Event;
}
/** 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. */
interface IDBRequest<T = any> extends EventTarget {
/** 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. */
readonly error: DOMException | null;
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/** Returns "pending" until a request is complete, then returns "done". */
readonly readyState: IDBRequestReadyState;
/** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
readonly result: T;
/** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/** 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. */
readonly transaction: IDBTransaction | null;
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBRequest: {
prototype: IDBRequest;
new(): IDBRequest;
};
interface IDBTransactionEventMap {
"abort": Event;
"complete": Event;
"error": Event;
}
interface IDBTransaction extends EventTarget {
/** Returns the transaction's connection. */
readonly db: IDBDatabase;
readonly durability: IDBTransactionDurability;
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
readonly error: DOMException | null;
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
readonly mode: IDBTransactionMode;
/** 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. */
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
/** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
abort(): void;
commit(): void;
/** Returns an IDBObjectStore in the transaction's scope. */
objectStore(name: string): IDBObjectStore;
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBTransaction: {
prototype: IDBTransaction;
new(): IDBTransaction;
};
/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
interface IDBVersionChangeEvent extends Event {
readonly newVersion: number | null;
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
/** The\xA0IIRFilterNode\xA0interface of the\xA0Web Audio API\xA0is a AudioNode processor which implements a general infinite impulse response (IIR)\xA0 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. */
interface IIRFilterNode extends AudioNode {
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var IIRFilterNode: {
prototype: IIRFilterNode;
new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
};
interface IdleDeadline {
readonly didTimeout: boolean;
timeRemaining(): DOMHighResTimeStamp;
}
declare var IdleDeadline: {
prototype: IdleDeadline;
new(): IdleDeadline;
};
interface ImageBitmap {
/** Returns the intrinsic height of the image, in CSS pixels. */
readonly height: number;
/** Returns the intrinsic width of the image, in CSS pixels. */
readonly width: number;
/** Releases imageBitmap's underlying bitmap data. */
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
interface ImageBitmapRenderingContext {
/** Returns the canvas element that the context is bound to. */
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
/** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/** 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(). */
interface ImageData {
readonly colorSpace: PredefinedColorSpace;
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
readonly data: Uint8ClampedArray;
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
readonly height: number;
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
readonly width: number;
}
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
interface InnerHTML {
innerHTML: string;
}
/** Available only in secure contexts. */
interface InputDeviceInfo extends MediaDeviceInfo {
}
declare var InputDeviceInfo: {
prototype: InputDeviceInfo;
new(): InputDeviceInfo;
};
interface InputEvent extends UIEvent {
readonly data: string | null;
readonly dataTransfer: DataTransfer | null;
readonly inputType: string;
readonly isComposing: boolean;
getTargetRanges(): StaticRange[];
}
declare var InputEvent: {
prototype: InputEvent;
new(type: string, eventInitDict?: InputEventInit): InputEvent;
};
/** 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. */
interface IntersectionObserver {
readonly root: Element | Document | null;
readonly rootMargin: string;
readonly thresholds: ReadonlyArray<number>;
disconnect(): void;
observe(target: Element): void;
takeRecords(): IntersectionObserverEntry[];
unobserve(target: Element): void;
}
declare var IntersectionObserver: {
prototype: IntersectionObserver;
new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;
};
/** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */
interface IntersectionObserverEntry {
readonly boundingClientRect: DOMRectReadOnly;
readonly intersectionRatio: number;
readonly intersectionRect: DOMRectReadOnly;
readonly isIntersecting: boolean;
readonly rootBounds: DOMRectReadOnly | null;
readonly target: Element;
readonly time: DOMHighResTimeStamp;
}
declare var IntersectionObserverEntry: {
prototype: IntersectionObserverEntry;
new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
};
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: 0x91B1;
}
/** 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. */
interface KeyboardEvent extends UIEvent {
readonly altKey: boolean;
/** @deprecated */
readonly charCode: number;
readonly code: string;
readonly ctrlKey: boolean;
readonly isComposing: boolean;
readonly key: string;
/** @deprecated */
readonly keyCode: number;
readonly location: number;
readonly metaKey: boolean;
readonly repeat: boolean;
readonly shiftKey: boolean;
getModifierState(keyArg: string): boolean;
/** @deprecated */
initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;
readonly DOM_KEY_LOCATION_STANDARD: 0x00;
readonly DOM_KEY_LOCATION_LEFT: 0x01;
readonly DOM_KEY_LOCATION_RIGHT: 0x02;
readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
}
declare var KeyboardEvent: {
prototype: KeyboardEvent;
new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
readonly DOM_KEY_LOCATION_STANDARD: 0x00;
readonly DOM_KEY_LOCATION_LEFT: 0x01;
readonly DOM_KEY_LOCATION_RIGHT: 0x02;
readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
};
interface KeyframeEffect extends AnimationEffect {
composite: CompositeOperation;
iterationComposite: IterationCompositeOperation;
pseudoElement: string | null;
target: Element | null;
getKeyframes(): ComputedKeyframe[];
setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;
}
declare var KeyframeEffect: {
prototype: KeyframeEffect;
new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;
new(source: KeyframeEffect): KeyframeEffect;
};
interface LinkStyle {
readonly sheet: CSSStyleSheet | null;
}
/** 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. */
interface Location {
/** Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. */
readonly ancestorOrigins: DOMStringList;
/**
* Returns the Location object's URL's fragment (includes leading "#" if non-empty).
*
* Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
*/
hash: string;
/**
* Returns the Location object's URL's host and port (if different from the default port for the scheme).
*
* Can be set, to navigate to the same URL with a changed host and port.
*/
host: string;
/**
* Returns the Location object's URL's host.
*
* Can be set, to navigate to the same URL with a changed host.
*/
hostname: string;
/**
* Returns the Location object's URL.
*
* Can be set, to navigate to the given URL.
*/
href: string;
toString(): string;
/** Returns the Location object's URL's origin. */
readonly origin: string;
/**
* Returns the Location object's URL's path.
*
* Can be set, to navigate to the same URL with a changed path.
*/
pathname: string;
/**
* Returns the Location object's URL's port.
*
* Can be set, to navigate to the same URL with a changed port.
*/
port: string;
/**
* Returns the Location object's URL's scheme.
*
* Can be set, to navigate to the same URL with a changed scheme.
*/
protocol: string;
/**
* Returns the Location object's URL's query (includes leading "?" if non-empty).
*
* Can be set, to navigate to the same URL with a changed query (ignores leading "?").
*/
search: string;
/** Navigates to the given URL. */
assign(url: string | URL): void;
/** Reloads the current page. */
reload(): void;
/** Removes the current page from the session history and navigates to the given URL. */
replace(url: string | URL): void;
}
declare var Location: {
prototype: Location;
new(): Location;
};
/** Available only in secure contexts. */
interface Lock {
readonly mode: LockMode;
readonly name: string;
}
declare var Lock: {
prototype: Lock;
new(): Lock;
};
/** Available only in secure contexts. */
interface LockManager {
query(): Promise<LockManagerSnapshot>;
request(name: string, callback: LockGrantedCallback): Promise<any>;
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
}
declare var LockManager: {
prototype: LockManager;
new(): LockManager;
};
interface MIDIAccessEventMap {
"statechange": Event;
}
/** Available only in secure contexts. */
interface MIDIAccess extends EventTarget {
readonly inputs: MIDIInputMap;
onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
readonly outputs: MIDIOutputMap;
readonly sysexEnabled: boolean;
addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIAccess: {
prototype: MIDIAccess;
new(): MIDIAccess;
};
/** Available only in secure contexts. */
interface MIDIConnectionEvent extends Event {
readonly port: MIDIPort;
}
declare var MIDIConnectionEvent: {
prototype: MIDIConnectionEvent;
new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
};
interface MIDIInputEventMap extends MIDIPortEventMap {
"midimessage": Event;
}
/** Available only in secure contexts. */
interface MIDIInput extends MIDIPort {
onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIInput: {
prototype: MIDIInput;
new(): MIDIInput;
};
/** Available only in secure contexts. */
interface MIDIInputMap {
forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
}
declare var MIDIInputMap: {
prototype: MIDIInputMap;
new(): MIDIInputMap;
};
/** Available only in secure contexts. */
interface MIDIMessageEvent extends Event {
readonly data: Uint8Array;
}
declare var MIDIMessageEvent: {
prototype: MIDIMessageEvent;
new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
};
/** Available only in secure contexts. */
interface MIDIOutput extends MIDIPort {
send(data: number[], timestamp?: DOMHighResTimeStamp): void;
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIOutput: {
prototype: MIDIOutput;
new(): MIDIOutput;
};
/** Available only in secure contexts. */
interface MIDIOutputMap {
forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
}
declare var MIDIOutputMap: {
prototype: MIDIOutputMap;
new(): MIDIOutputMap;
};
interface MIDIPortEventMap {
"statechange": Event;
}
/** Available only in secure contexts. */
interface MIDIPort extends EventTarget {
readonly connection: MIDIPortConnectionState;
readonly id: string;
readonly manufacturer: string | null;
readonly name: string | null;
onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
readonly state: MIDIPortDeviceState;
readonly type: MIDIPortType;
readonly version: string | null;
close(): Promise<MIDIPort>;
open(): Promise<MIDIPort>;
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIPort: {
prototype: MIDIPort;
new(): MIDIPort;
};
interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MathMLElement: {
prototype: MathMLElement;
new(): MathMLElement;
};
interface MediaCapabilities {
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/**
* The MediaDevicesInfo interface contains information that describes a single media input or output device.
* Available only in secure contexts.
*/
interface MediaDeviceInfo {
readonly deviceId: string;
readonly groupId: string;
readonly kind: MediaDeviceKind;
readonly label: string;
toJSON(): any;
}
declare var MediaDeviceInfo: {
prototype: MediaDeviceInfo;
new(): MediaDeviceInfo;
};
interface MediaDevicesEventMap {
"devicechange": Event;
}
/**
* 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.
* Available only in secure contexts.
*/
interface MediaDevices extends EventTarget {
ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
enumerateDevices(): Promise<MediaDeviceInfo[]>;
getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;
getSupportedConstraints(): MediaTrackSupportedConstraints;
getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaDevices: {
prototype: MediaDevices;
new(): MediaDevices;
};
/** 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. */
interface MediaElementAudioSourceNode extends AudioNode {
readonly mediaElement: HTMLMediaElement;
}
declare var MediaElementAudioSourceNode: {
prototype: MediaElementAudioSourceNode;
new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;
};
interface MediaEncryptedEvent extends Event {
readonly initData: ArrayBuffer | null;
readonly initDataType: string;
}
declare var MediaEncryptedEvent: {
prototype: MediaEncryptedEvent;
new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;
};
/** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */
interface MediaError {
readonly code: number;
readonly message: string;
readonly MEDIA_ERR_ABORTED: 1;
readonly MEDIA_ERR_NETWORK: 2;
readonly MEDIA_ERR_DECODE: 3;
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
}
declare var MediaError: {
prototype: MediaError;
new(): MediaError;
readonly MEDIA_ERR_ABORTED: 1;
readonly MEDIA_ERR_NETWORK: 2;
readonly MEDIA_ERR_DECODE: 3;
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
};
/**
* This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.
* Available only in secure contexts.
*/
interface MediaKeyMessageEvent extends Event {
readonly message: ArrayBuffer;
readonly messageType: MediaKeyMessageType;
}
declare var MediaKeyMessageEvent: {
prototype: MediaKeyMessageEvent;
new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
};
interface MediaKeySessionEventMap {
"keystatuseschange": Event;
"message": MediaKeyMessageEvent;
}
/**
* This EncryptedMediaExtensions API interface represents a\xA0context for message exchange with a content decryption module (CDM).
* Available only in secure contexts.
*/
interface MediaKeySession extends EventTarget {
readonly closed: Promise<MediaKeySessionClosedReason>;
readonly expiration: number;
readonly keyStatuses: MediaKeyStatusMap;
onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
readonly sessionId: string;
close(): Promise<void>;
generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
load(sessionId: string): Promise<boolean>;
remove(): Promise<void>;
update(response: BufferSource): Promise<void>;
addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaKeySession: {
prototype: MediaKeySession;
new(): MediaKeySession;
};
/**
* This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.
* Available only in secure contexts.
*/
interface MediaKeyStatusMap {
readonly size: number;
get(keyId: BufferSource): MediaKeyStatus | undefined;
has(keyId: BufferSource): boolean;
forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
}
declare var MediaKeyStatusMap: {
prototype: MediaKeyStatusMap;
new(): MediaKeyStatusMap;
};
/**
* 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.
* Available only in secure contexts.
*/
interface MediaKeySystemAccess {
readonly keySystem: string;
createMediaKeys(): Promise<MediaKeys>;
getConfiguration(): MediaKeySystemConfiguration;
}
declare var MediaKeySystemAccess: {
prototype: MediaKeySystemAccess;
new(): MediaKeySystemAccess;
};
/**
* This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.
* Available only in secure contexts.
*/
interface MediaKeys {
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
}
declare var MediaKeys: {
prototype: MediaKeys;
new(): MediaKeys;
};
interface MediaList {
readonly length: number;
mediaText: string;
toString(): string;
appendMedium(medium: string): void;
deleteMedium(medium: string): void;
item(index: number): string | null;
[index: number]: string;
}
declare var MediaList: {
prototype: MediaList;
new(): MediaList;
};
interface MediaMetadata {
album: string;
artist: string;
artwork: ReadonlyArray<MediaImage>;
title: string;
}
declare var MediaMetadata: {
prototype: MediaMetadata;
new(init?: MediaMetadataInit): MediaMetadata;
};
interface MediaQueryListEventMap {
"change": MediaQueryListEvent;
}
/** 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). */
interface MediaQueryList extends EventTarget {
readonly matches: boolean;
readonly media: string;
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
/** @deprecated */
addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
/** @deprecated */
removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaQueryList: {
prototype: MediaQueryList;
new(): MediaQueryList;
};
interface MediaQueryListEvent extends Event {
readonly matches: boolean;
readonly media: string;
}
declare var MediaQueryListEvent: {
prototype: MediaQueryListEvent;
new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
};
interface MediaRecorderEventMap {
"dataavailable": BlobEvent;
"error": Event;
"pause": Event;
"resume": Event;
"start": Event;
"stop": Event;
}
interface MediaRecorder extends EventTarget {
readonly audioBitsPerSecond: number;
readonly mimeType: string;
ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
onerror: ((this: MediaRecorder, ev: Event) => any) | null;
onpause: ((this: MediaRecorder, ev: Event) => any) | null;
onresume: ((this: MediaRecorder, ev: Event) => any) | null;
onstart: ((this: MediaRecorder, ev: Event) => any) | null;
onstop: ((this: MediaRecorder, ev: Event) => any) | null;
readonly state: RecordingState;
readonly stream: MediaStream;
readonly videoBitsPerSecond: number;
pause(): void;
requestData(): void;
resume(): void;
start(timeslice?: number): void;
stop(): void;
addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaRecorder: {
prototype: MediaRecorder;
new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
isTypeSupported(type: string): boolean;
};
interface MediaSession {
metadata: MediaMetadata | null;
playbackState: MediaSessionPlaybackState;
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
setPositionState(state?: MediaPositionState): void;
}
declare var MediaSession: {
prototype: MediaSession;
new(): MediaSession;
};
interface MediaSourceEventMap {
"sourceclose": Event;
"sourceended": Event;
"sourceopen": Event;
}
/** 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. */
interface MediaSource extends EventTarget {
readonly activeSourceBuffers: SourceBufferList;
duration: number;
onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
onsourceended: ((this: MediaSource, ev: Event) => any) | null;
onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
readonly readyState: ReadyState;
readonly sourceBuffers: SourceBufferList;
addSourceBuffer(type: string): SourceBuffer;
clearLiveSeekableRange(): void;
endOfStream(error?: EndOfStreamError): void;
removeSourceBuffer(sourceBuffer: SourceBuffer): void;
setLiveSeekableRange(start: number, end: number): void;
addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaSource: {
prototype: MediaSource;
new(): MediaSource;
isTypeSupported(type: string): boolean;
};
interface MediaStreamEventMap {
"addtrack": MediaStreamTrackEvent;
"removetrack": MediaStreamTrackEvent;
}
/** A stream of media content. A stream consists of several tracks such as\xA0video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */
interface MediaStream extends EventTarget {
readonly active: boolean;
readonly id: string;
onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
addTrack(track: MediaStreamTrack): void;
clone(): MediaStream;
getAudioTracks(): MediaStreamTrack[];
getTrackById(trackId: string): MediaStreamTrack | null;
getTracks(): MediaStreamTrack[];
getVideoTracks(): MediaStreamTrack[];
removeTrack(track: MediaStreamTrack): void;
addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaStream: {
prototype: MediaStream;
new(): MediaStream;
new(stream: MediaStream): MediaStream;
new(tracks: MediaStreamTrack[]): MediaStream;
};
interface MediaStreamAudioDestinationNode extends AudioNode {
readonly stream: MediaStream;
}
declare var MediaStreamAudioDestinationNode: {
prototype: MediaStreamAudioDestinationNode;
new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;
};
/** 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. */
interface MediaStreamAudioSourceNode extends AudioNode {
readonly mediaStream: MediaStream;
}
declare var MediaStreamAudioSourceNode: {
prototype: MediaStreamAudioSourceNode;
new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;
};
interface MediaStreamTrackEventMap {
"ended": Event;
"mute": Event;
"unmute": Event;
}
/** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */
interface MediaStreamTrack extends EventTarget {
contentHint: string;
enabled: boolean;
readonly id: string;
readonly kind: string;
readonly label: string;
readonly muted: boolean;
onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
readonly readyState: MediaStreamTrackState;
applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
clone(): MediaStreamTrack;
getCapabilities(): MediaTrackCapabilities;
getConstraints(): MediaTrackConstraints;
getSettings(): MediaTrackSettings;
stop(): void;
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaStreamTrack: {
prototype: MediaStreamTrack;
new(): MediaStreamTrack;
};
/** 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. */
interface MediaStreamTrackEvent extends Event {
readonly track: MediaStreamTrack;
}
declare var MediaStreamTrackEvent: {
prototype: MediaStreamTrackEvent;
new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;
};
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
interface MessageChannel {
/** Returns the first MessagePort object. */
readonly port1: MessagePort;
/** Returns the second MessagePort object. */
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/** A message received by a target object. */
interface MessageEvent<T = any> extends Event {
/** Returns the data of the message. */
readonly data: T;
/** Returns the last event ID string, for server-sent events. */
readonly lastEventId: string;
/** Returns the origin of the message, for server-sent events and cross-document messaging. */
readonly origin: string;
/** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
readonly ports: ReadonlyArray<MessagePort>;
/** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
readonly source: MessageEventSource | null;
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** 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. */
interface MessagePort extends EventTarget {
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/** Disconnects the port, so that it is no longer active. */
close(): void;
/**
* 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.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/** Begins dispatching messages received on the port. */
start(): void;
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MessagePort: {
prototype: MessagePort;
new(): MessagePort;
};
/**
* Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.
* @deprecated
*/
interface MimeType {
/**
* Returns the MIME type's description.
* @deprecated
*/
readonly description: string;
/**
* Returns the Plugin object that implements this MIME type.
* @deprecated
*/
readonly enabledPlugin: Plugin;
/**
* Returns the MIME type's typical file extensions, in a comma-separated list.
* @deprecated
*/
readonly suffixes: string;
/**
* Returns the MIME type.
* @deprecated
*/
readonly type: string;
}
/** @deprecated */
declare var MimeType: {
prototype: MimeType;
new(): MimeType;
};
/**
* Returns an array of MimeType instances, each of which contains information\xA0about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.
* @deprecated
*/
interface MimeTypeArray {
/** @deprecated */
readonly length: number;
/** @deprecated */
item(index: number): MimeType | null;
/** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var MimeTypeArray: {
prototype: MimeTypeArray;
new(): MimeTypeArray;
};
/** 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. */
interface MouseEvent extends UIEvent {
readonly altKey: boolean;
readonly button: number;
readonly buttons: number;
readonly clientX: number;
readonly clientY: number;
readonly ctrlKey: boolean;
readonly metaKey: boolean;
readonly movementX: number;
readonly movementY: number;
readonly offsetX: number;
readonly offsetY: number;
readonly pageX: number;
readonly pageY: number;
readonly relatedTarget: EventTarget | null;
readonly screenX: number;
readonly screenY: number;
readonly shiftKey: boolean;
readonly x: number;
readonly y: number;
getModifierState(keyArg: string): boolean;
/** @deprecated */
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;
}
declare var MouseEvent: {
prototype: MouseEvent;
new(type: string, eventInitDict?: MouseEventInit): MouseEvent;
};
/**
* Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.
* @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.
*/
interface MutationEvent extends Event {
/** @deprecated */
readonly attrChange: number;
/** @deprecated */
readonly attrName: string;
/** @deprecated */
readonly newValue: string;
/** @deprecated */
readonly prevValue: string;
/** @deprecated */
readonly relatedNode: Node | null;
/** @deprecated */
initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;
readonly MODIFICATION: 1;
readonly ADDITION: 2;
readonly REMOVAL: 3;
}
/** @deprecated */
declare var MutationEvent: {
prototype: MutationEvent;
new(): MutationEvent;
readonly MODIFICATION: 1;
readonly ADDITION: 2;
readonly REMOVAL: 3;
};
/** 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. */
interface MutationObserver {
/** Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked. */
disconnect(): void;
/**
* Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).
*
* The options argument allows for setting mutation observation options via object members.
*/
observe(target: Node, options?: MutationObserverInit): void;
/** Empties the record queue and returns what was in there. */
takeRecords(): MutationRecord[];
}
declare var MutationObserver: {
prototype: MutationObserver;
new(callback: MutationCallback): MutationObserver;
};
/** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. */
interface MutationRecord {
/** Return the nodes added and removed respectively. */
readonly addedNodes: NodeList;
/** Returns the local name of the changed attribute, and null otherwise. */
readonly attributeName: string | null;
/** Returns the namespace of the changed attribute, and null otherwise. */
readonly attributeNamespace: string | null;
/** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */
readonly nextSibling: Node | null;
/** 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. */
readonly oldValue: string | null;
/** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */
readonly previousSibling: Node | null;
/** Return the nodes added and removed respectively. */
readonly removedNodes: NodeList;
/** 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. */
readonly target: Node;
/** 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. */
readonly type: MutationRecordType;
}
declare var MutationRecord: {
prototype: MutationRecord;
new(): MutationRecord;
};
/** 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. */
interface NamedNodeMap {
readonly length: number;
getNamedItem(qualifiedName: string): Attr | null;
getNamedItemNS(namespace: string | null, localName: string): Attr | null;
item(index: number): Attr | null;
removeNamedItem(qualifiedName: string): Attr;
removeNamedItemNS(namespace: string | null, localName: string): Attr;
setNamedItem(attr: Attr): Attr | null;
setNamedItemNS(attr: Attr): Attr | null;
[index: number]: Attr;
}
declare var NamedNodeMap: {
prototype: NamedNodeMap;
new(): NamedNodeMap;
};
/** Available only in secure contexts. */
interface NavigationPreloadManager {
disable(): Promise<void>;
enable(): Promise<void>;
getState(): Promise<NavigationPreloadState>;
setHeaderValue(value: string): Promise<void>;
}
declare var NavigationPreloadManager: {
prototype: NavigationPreloadManager;
new(): NavigationPreloadManager;
};
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
/** Available only in secure contexts. */
readonly clipboard: Clipboard;
/** Available only in secure contexts. */
readonly credentials: CredentialsContainer;
readonly doNotTrack: string | null;
readonly geolocation: Geolocation;
readonly maxTouchPoints: number;
readonly mediaCapabilities: MediaCapabilities;
/** Available only in secure contexts. */
readonly mediaDevices: MediaDevices;
readonly mediaSession: MediaSession;
readonly permissions: Permissions;
/** Available only in secure contexts. */
readonly serviceWorker: ServiceWorkerContainer;
/** Available only in secure contexts. */
canShare(data?: ShareData): boolean;
getGamepads(): (Gamepad | null)[];
/** Available only in secure contexts. */
requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
/** Available only in secure contexts. */
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
/** Available only in secure contexts. */
share(data?: ShareData): Promise<void>;
vibrate(pattern: VibratePattern): boolean;
}
declare var Navigator: {
prototype: Navigator;
new(): Navigator;
};
interface NavigatorAutomationInformation {
readonly webdriver: boolean;
}
interface NavigatorConcurrentHardware {
readonly hardwareConcurrency: number;
}
interface NavigatorContentUtils {
/** Available only in secure contexts. */
registerProtocolHandler(scheme: string, url: string | URL): void;
}
interface NavigatorCookies {
readonly cookieEnabled: boolean;
}
interface NavigatorID {
/** @deprecated */
readonly appCodeName: string;
/** @deprecated */
readonly appName: string;
/** @deprecated */
readonly appVersion: string;
/** @deprecated */
readonly platform: string;
/** @deprecated */
readonly product: string;
/** @deprecated */
readonly productSub: string;
readonly userAgent: string;
/** @deprecated */
readonly vendor: string;
/** @deprecated */
readonly vendorSub: string;
}
interface NavigatorLanguage {
readonly language: string;
readonly languages: ReadonlyArray<string>;
}
/** Available only in secure contexts. */
interface NavigatorLocks {
readonly locks: LockManager;
}
interface NavigatorOnLine {
readonly onLine: boolean;
}
interface NavigatorPlugins {
/** @deprecated */
readonly mimeTypes: MimeTypeArray;
readonly pdfViewerEnabled: boolean;
/** @deprecated */
readonly plugins: PluginArray;
/** @deprecated */
javaEnabled(): boolean;
}
/** Available only in secure contexts. */
interface NavigatorStorage {
readonly storage: StorageManager;
}
/** 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. */
interface Node extends EventTarget {
/** Returns node's node document's document base URL. */
readonly baseURI: string;
/** Returns the children. */
readonly childNodes: NodeListOf<ChildNode>;
/** Returns the first child. */
readonly firstChild: ChildNode | null;
/** Returns true if node is connected and false otherwise. */
readonly isConnected: boolean;
/** Returns the last child. */
readonly lastChild: ChildNode | null;
/** Returns the next sibling. */
readonly nextSibling: ChildNode | null;
/** Returns a string appropriate for the type of node. */
readonly nodeName: string;
/** Returns the type of node. */
readonly nodeType: number;
nodeValue: string | null;
/** Returns the node document. Returns null for documents. */
readonly ownerDocument: Document | null;
/** Returns the parent element. */
readonly parentElement: HTMLElement | null;
/** Returns the parent. */
readonly parentNode: ParentNode | null;
/** Returns the previous sibling. */
readonly previousSibling: ChildNode | null;
textContent: string | null;
appendChild<T extends Node>(node: T): T;
/** Returns a copy of node. If deep is true, the copy also includes the node's descendants. */
cloneNode(deep?: boolean): Node;
/** Returns a bitmask indicating the position of other relative to node. */
compareDocumentPosition(other: Node): number;
/** Returns true if other is an inclusive descendant of node, and false otherwise. */
contains(other: Node | null): boolean;
/** Returns node's root. */
getRootNode(options?: GetRootNodeOptions): Node;
/** Returns whether node has children. */
hasChildNodes(): boolean;
insertBefore<T extends Node>(node: T, child: Node | null): T;
isDefaultNamespace(namespace: string | null): boolean;
/** Returns whether node and otherNode have the same properties. */
isEqualNode(otherNode: Node | null): boolean;
isSameNode(otherNode: Node | null): boolean;
lookupNamespaceURI(prefix: string | null): string | null;
lookupPrefix(namespace: string | null): string | null;
/** Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. */
normalize(): void;
removeChild<T extends Node>(child: T): T;
replaceChild<T extends Node>(node: Node, child: T): T;
/** node is an element. */
readonly ELEMENT_NODE: 1;
readonly ATTRIBUTE_NODE: 2;
/** node is a Text node. */
readonly TEXT_NODE: 3;
/** node is a CDATASection node. */
readonly CDATA_SECTION_NODE: 4;
readonly ENTITY_REFERENCE_NODE: 5;
readonly ENTITY_NODE: 6;
/** node is a ProcessingInstruction node. */
readonly PROCESSING_INSTRUCTION_NODE: 7;
/** node is a Comment node. */
readonly COMMENT_NODE: 8;
/** node is a document. */
readonly DOCUMENT_NODE: 9;
/** node is a doctype. */
readonly DOCUMENT_TYPE_NODE: 10;
/** node is a DocumentFragment node. */
readonly DOCUMENT_FRAGMENT_NODE: 11;
readonly NOTATION_NODE: 12;
/** Set when node and other are not in the same tree. */
readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
/** Set when other is preceding node. */
readonly DOCUMENT_POSITION_PRECEDING: 0x02;
/** Set when other is following node. */
readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
/** Set when other is an ancestor of node. */
readonly DOCUMENT_POSITION_CONTAINS: 0x08;
/** Set when other is a descendant of node. */
readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
}
declare var Node: {
prototype: Node;
new(): Node;
/** node is an element. */
readonly ELEMENT_NODE: 1;
readonly ATTRIBUTE_NODE: 2;
/** node is a Text node. */
readonly TEXT_NODE: 3;
/** node is a CDATASection node. */
readonly CDATA_SECTION_NODE: 4;
readonly ENTITY_REFERENCE_NODE: 5;
readonly ENTITY_NODE: 6;
/** node is a ProcessingInstruction node. */
readonly PROCESSING_INSTRUCTION_NODE: 7;
/** node is a Comment node. */
readonly COMMENT_NODE: 8;
/** node is a document. */
readonly DOCUMENT_NODE: 9;
/** node is a doctype. */
readonly DOCUMENT_TYPE_NODE: 10;
/** node is a DocumentFragment node. */
readonly DOCUMENT_FRAGMENT_NODE: 11;
readonly NOTATION_NODE: 12;
/** Set when node and other are not in the same tree. */
readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
/** Set when other is preceding node. */
readonly DOCUMENT_POSITION_PRECEDING: 0x02;
/** Set when other is following node. */
readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
/** Set when other is an ancestor of node. */
readonly DOCUMENT_POSITION_CONTAINS: 0x08;
/** Set when other is a descendant of node. */
readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
};
/** 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. */
interface NodeIterator {
readonly filter: NodeFilter | null;
readonly pointerBeforeReferenceNode: boolean;
readonly referenceNode: Node;
readonly root: Node;
readonly whatToShow: number;
/** @deprecated */
detach(): void;
nextNode(): Node | null;
previousNode(): Node | null;
}
declare var NodeIterator: {
prototype: NodeIterator;
new(): NodeIterator;
};
/** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */
interface NodeList {
/** Returns the number of nodes in the collection. */
readonly length: number;
/** Returns the node with index index from the collection. The nodes are sorted in tree order. */
item(index: number): Node | null;
/**
* Performs the specified action for each node in an list.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
* @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.
*/
forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;
[index: number]: Node;
}
declare var NodeList: {
prototype: NodeList;
new(): NodeList;
};
interface NodeListOf<TNode extends Node> extends NodeList {
item(index: number): TNode;
/**
* Performs the specified action for each node in an list.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
* @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.
*/
forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;
[index: number]: TNode;
}
interface NonDocumentTypeChildNode {
/** Returns the first following sibling that is an element, and null otherwise. */
readonly nextElementSibling: Element | null;
/** Returns the first preceding sibling that is an element, and null otherwise. */
readonly previousElementSibling: Element | null;
}
interface NonElementParentNode {
/** Returns the first element within node's descendants whose ID is elementId. */
getElementById(elementId: string): Element | null;
}
interface NotificationEventMap {
"click": Event;
"close": Event;
"error": Event;
"show": Event;
}
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
interface Notification extends EventTarget {
readonly body: string;
readonly data: any;
readonly dir: NotificationDirection;
readonly icon: string;
readonly lang: string;
onclick: ((this: Notification, ev: Event) => any) | null;
onclose: ((this: Notification, ev: Event) => any) | null;
onerror: ((this: Notification, ev: Event) => any) | null;
onshow: ((this: Notification, ev: Event) => any) | null;
readonly tag: string;
readonly title: string;
close(): void;
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Notification: {
prototype: Notification;
new(title: string, options?: NotificationOptions): Notification;
readonly permission: NotificationPermission;
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
};
interface OES_draw_buffers_indexed {
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
blendEquationiOES(buf: GLuint, mode: GLenum): void;
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
disableiOES(target: GLenum, index: GLuint): void;
enableiOES(target: GLenum, index: GLuint): void;
}
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
interface OES_element_index_uint {
}
interface OES_fbo_render_mipmap {
}
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
}
/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
interface OES_texture_float {
}
/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
interface OES_texture_float_linear {
}
/** 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. */
interface OES_texture_half_float {
readonly HALF_FLOAT_OES: 0x8D61;
}
/** 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. */
interface OES_texture_half_float_linear {
}
interface OES_vertex_array_object {
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
}
interface OVR_multiview2 {
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
readonly MAX_VIEWS_OVR: 0x9631;
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
}
/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */
interface OfflineAudioCompletionEvent extends Event {
readonly renderedBuffer: AudioBuffer;
}
declare var OfflineAudioCompletionEvent: {
prototype: OfflineAudioCompletionEvent;
new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;
};
interface OfflineAudioContextEventMap extends BaseAudioContextEventMap {
"complete": OfflineAudioCompletionEvent;
}
/** 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. */
interface OfflineAudioContext extends BaseAudioContext {
readonly length: number;
oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
resume(): Promise<void>;
startRendering(): Promise<AudioBuffer>;
suspend(suspendTime: number): Promise<void>;
addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OfflineAudioContext: {
prototype: OfflineAudioContext;
new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
};
interface OffscreenCanvasEventMap {
"contextlost": Event;
"contextrestored": Event;
}
interface OffscreenCanvas extends EventTarget {
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
height: number;
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
width: number;
/**
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
*
* 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.
*/
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
/**
* 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.
*
* 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]
*
* 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).
*/
getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
/** 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. */
transferToImageBitmap(): ImageBitmap;
addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OffscreenCanvas: {
prototype: OffscreenCanvas;
new(width: number, height: number): OffscreenCanvas;
};
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
commit(): void;
}
declare var OffscreenCanvasRenderingContext2D: {
prototype: OffscreenCanvasRenderingContext2D;
new(): OffscreenCanvasRenderingContext2D;
};
/** The OscillatorNode\xA0interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency\xA0of a given wave to be created\u2014in effect, a constant tone. */
interface OscillatorNode extends AudioScheduledSourceNode {
readonly detune: AudioParam;
readonly frequency: AudioParam;
type: OscillatorType;
setPeriodicWave(periodicWave: PeriodicWave): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OscillatorNode: {
prototype: OscillatorNode;
new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;
};
interface OverconstrainedError extends Error {
readonly constraint: string;
}
declare var OverconstrainedError: {
prototype: OverconstrainedError;
new(constraint: string, message?: string): OverconstrainedError;
};
/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */
interface PageTransitionEvent extends Event {
/**
* For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.
*
* 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.
*
* Things that can cause the page to be unsalvageable include:
*
* The user agent decided to not keep the Document alive in a session history entry after unload
* Having iframes that are not salvageable
* Active WebSocket objects
* Aborting a Document
*/
readonly persisted: boolean;
}
declare var PageTransitionEvent: {
prototype: PageTransitionEvent;
new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
};
/** 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! */
interface PannerNode extends AudioNode {
coneInnerAngle: number;
coneOuterAngle: number;
coneOuterGain: number;
distanceModel: DistanceModelType;
maxDistance: number;
readonly orientationX: AudioParam;
readonly orientationY: AudioParam;
readonly orientationZ: AudioParam;
panningModel: PanningModelType;
readonly positionX: AudioParam;
readonly positionY: AudioParam;
readonly positionZ: AudioParam;
refDistance: number;
rolloffFactor: number;
/** @deprecated */
setOrientation(x: number, y: number, z: number): void;
/** @deprecated */
setPosition(x: number, y: number, z: number): void;
}
declare var PannerNode: {
prototype: PannerNode;
new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
};
interface ParentNode extends Node {
readonly childElementCount: number;
/** Returns the child elements. */
readonly children: HTMLCollection;
/** Returns the first child that is an element, and null otherwise. */
readonly firstElementChild: Element | null;
/** Returns the last child that is an element, and null otherwise. */
readonly lastElementChild: Element | null;
/**
* Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
append(...nodes: (Node | string)[]): void;
/**
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
prepend(...nodes: (Node | string)[]): void;
/** Returns the first element that is a descendant of node that matches selectors. */
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
/** @deprecated */
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
querySelector<E extends Element = Element>(selectors: string): E | null;
/** Returns all element descendants of node that match selectors. */
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
/** @deprecated */
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
/**
* Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
replaceChildren(...nodes: (Node | string)[]): void;
}
/** 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. */
interface Path2D extends CanvasPath {
/** Adds to the path the path given by the argument. */
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
/** Available only in secure contexts. */
interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
readonly methodDetails: any;
readonly methodName: string;
}
declare var PaymentMethodChangeEvent: {
prototype: PaymentMethodChangeEvent;
new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
};
interface PaymentRequestEventMap {
"paymentmethodchange": Event;
}
/**
* 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.
* Available only in secure contexts.
*/
interface PaymentRequest extends EventTarget {
readonly id: string;
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
abort(): Promise<void>;
canMakePayment(): Promise<boolean>;
show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PaymentRequest: {
prototype: PaymentRequest;
new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
};
/**
* This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.
* Available only in secure contexts.
*/
interface PaymentRequestUpdateEvent extends Event {
updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
}
declare var PaymentRequestUpdateEvent: {
prototype: PaymentRequestUpdateEvent;
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
};
/**
* This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
* Available only in secure contexts.
*/
interface PaymentResponse extends EventTarget {
readonly details: any;
readonly methodName: string;
readonly requestId: string;
complete(result?: PaymentComplete): Promise<void>;
retry(errorFields?: PaymentValidationErrors): Promise<void>;
toJSON(): any;
}
declare var PaymentResponse: {
prototype: PaymentResponse;
new(): PaymentResponse;
};
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
/** 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. */
interface Performance extends EventTarget {
readonly eventCounts: EventCounts;
/** @deprecated */
readonly navigation: PerformanceNavigation;
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
readonly timeOrigin: DOMHighResTimeStamp;
/** @deprecated */
readonly timing: PerformanceTiming;
clearMarks(markName?: string): void;
clearMeasures(measureName?: string): void;
clearResourceTimings(): void;
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
now(): DOMHighResTimeStamp;
setResourceTimingBufferSize(maxSize: number): void;
toJSON(): any;
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Performance: {
prototype: Performance;
new(): Performance;
};
/** 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). */
interface PerformanceEntry {
readonly duration: DOMHighResTimeStamp;
readonly entryType: string;
readonly name: string;
readonly startTime: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
interface PerformanceEventTiming extends PerformanceEntry {
readonly cancelable: boolean;
readonly processingEnd: DOMHighResTimeStamp;
readonly processingStart: DOMHighResTimeStamp;
readonly target: Node | null;
toJSON(): any;
}
declare var PerformanceEventTiming: {
prototype: PerformanceEventTiming;
new(): PerformanceEventTiming;
};
/** PerformanceMark\xA0is 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. */
interface PerformanceMark extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMark: {
prototype: PerformanceMark;
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};
/** 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. */
interface PerformanceMeasure extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
/**
* The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*/
interface PerformanceNavigation {
/** @deprecated */
readonly redirectCount: number;
/** @deprecated */
readonly type: number;
/** @deprecated */
toJSON(): any;
readonly TYPE_NAVIGATE: 0;
readonly TYPE_RELOAD: 1;
readonly TYPE_BACK_FORWARD: 2;
readonly TYPE_RESERVED: 255;
}
/** @deprecated */
declare var PerformanceNavigation: {
prototype: PerformanceNavigation;
new(): PerformanceNavigation;
readonly TYPE_NAVIGATE: 0;
readonly TYPE_RELOAD: 1;
readonly TYPE_BACK_FORWARD: 2;
readonly TYPE_RESERVED: 255;
};
/** 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. */
interface PerformanceNavigationTiming extends PerformanceResourceTiming {
readonly domComplete: DOMHighResTimeStamp;
readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
readonly domContentLoadedEventStart: DOMHighResTimeStamp;
readonly domInteractive: DOMHighResTimeStamp;
readonly loadEventEnd: DOMHighResTimeStamp;
readonly loadEventStart: DOMHighResTimeStamp;
readonly redirectCount: number;
readonly type: NavigationTimingType;
readonly unloadEventEnd: DOMHighResTimeStamp;
readonly unloadEventStart: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceNavigationTiming: {
prototype: PerformanceNavigationTiming;
new(): PerformanceNavigationTiming;
};
interface PerformanceObserver {
disconnect(): void;
observe(options?: PerformanceObserverInit): void;
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
readonly supportedEntryTypes: ReadonlyArray<string>;
};
interface PerformanceObserverEntryList {
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
interface PerformancePaintTiming extends PerformanceEntry {
}
declare var PerformancePaintTiming: {
prototype: PerformancePaintTiming;
new(): PerformancePaintTiming;
};
/** 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. */
interface PerformanceResourceTiming extends PerformanceEntry {
readonly connectEnd: DOMHighResTimeStamp;
readonly connectStart: DOMHighResTimeStamp;
readonly decodedBodySize: number;
readonly domainLookupEnd: DOMHighResTimeStamp;
readonly domainLookupStart: DOMHighResTimeStamp;
readonly encodedBodySize: number;
readonly fetchStart: DOMHighResTimeStamp;
readonly initiatorType: string;
readonly nextHopProtocol: string;
readonly redirectEnd: DOMHighResTimeStamp;
readonly redirectStart: DOMHighResTimeStamp;
readonly requestStart: DOMHighResTimeStamp;
readonly responseEnd: DOMHighResTimeStamp;
readonly responseStart: DOMHighResTimeStamp;
readonly secureConnectionStart: DOMHighResTimeStamp;
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
readonly transferSize: number;
readonly workerStart: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
interface PerformanceServerTiming {
readonly description: string;
readonly duration: DOMHighResTimeStamp;
readonly name: string;
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
/**
* 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.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*/
interface PerformanceTiming {
/** @deprecated */
readonly connectEnd: number;
/** @deprecated */
readonly connectStart: number;
/** @deprecated */
readonly domComplete: number;
/** @deprecated */
readonly domContentLoadedEventEnd: number;
/** @deprecated */
readonly domContentLoadedEventStart: number;
/** @deprecated */
readonly domInteractive: number;
/** @deprecated */
readonly domLoading: number;
/** @deprecated */
readonly domainLookupEnd: number;
/** @deprecated */
readonly domainLookupStart: number;
/** @deprecated */
readonly fetchStart: number;
/** @deprecated */
readonly loadEventEnd: number;
/** @deprecated */
readonly loadEventStart: number;
/** @deprecated */
readonly navigationStart: number;
/** @deprecated */
readonly redirectEnd: number;
/** @deprecated */
readonly redirectStart: number;
/** @deprecated */
readonly requestStart: number;
/** @deprecated */
readonly responseEnd: number;
/** @deprecated */
readonly responseStart: number;
/** @deprecated */
readonly secureConnectionStart: number;
/** @deprecated */
readonly unloadEventEnd: number;
/** @deprecated */
readonly unloadEventStart: number;
/** @deprecated */
toJSON(): any;
}
/** @deprecated */
declare var PerformanceTiming: {
prototype: PerformanceTiming;
new(): PerformanceTiming;
};
/** 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(). */
interface PeriodicWave {
}
declare var PeriodicWave: {
prototype: PeriodicWave;
new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
};
interface PermissionStatusEventMap {
"change": Event;
}
interface PermissionStatus extends EventTarget {
readonly name: string;
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
readonly state: PermissionState;
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PermissionStatus: {
prototype: PermissionStatus;
new(): PermissionStatus;
};
interface Permissions {
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
interface PictureInPictureEvent extends Event {
readonly pictureInPictureWindow: PictureInPictureWindow;
}
declare var PictureInPictureEvent: {
prototype: PictureInPictureEvent;
new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;
};
interface PictureInPictureWindowEventMap {
"resize": Event;
}
interface PictureInPictureWindow extends EventTarget {
readonly height: number;
onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;
readonly width: number;
addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PictureInPictureWindow: {
prototype: PictureInPictureWindow;
new(): PictureInPictureWindow;
};
/**
* Provides information about a browser plugin.
* @deprecated
*/
interface Plugin {
/**
* Returns the plugin's description.
* @deprecated
*/
readonly description: string;
/**
* Returns the plugin library's filename, if applicable on the current platform.
* @deprecated
*/
readonly filename: string;
/**
* Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
* @deprecated
*/
readonly length: number;
/**
* Returns the plugin's name.
* @deprecated
*/
readonly name: string;
/**
* Returns the specified MimeType object.
* @deprecated
*/
item(index: number): MimeType | null;
/** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var Plugin: {
prototype: Plugin;
new(): Plugin;
};
/**
* Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins\xA0property. 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.
* @deprecated
*/
interface PluginArray {
/** @deprecated */
readonly length: number;
/** @deprecated */
item(index: number): Plugin | null;
/** @deprecated */
namedItem(name: string): Plugin | null;
/** @deprecated */
refresh(): void;
[index: number]: Plugin;
}
/** @deprecated */
declare var PluginArray: {
prototype: PluginArray;
new(): PluginArray;
};
/** 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. */
interface PointerEvent extends MouseEvent {
readonly height: number;
readonly isPrimary: boolean;
readonly pointerId: number;
readonly pointerType: string;
readonly pressure: number;
readonly tangentialPressure: number;
readonly tiltX: number;
readonly tiltY: number;
readonly twist: number;
readonly width: number;
/** Available only in secure contexts. */
getCoalescedEvents(): PointerEvent[];
getPredictedEvents(): PointerEvent[];
}
declare var PointerEvent: {
prototype: PointerEvent;
new(type: string, eventInitDict?: PointerEventInit): PointerEvent;
};
/** PopStateEvent is an event handler for the popstate event on the window. */
interface PopStateEvent extends Event {
/** Returns a copy of the information that was provided to pushState() or replaceState(). */
readonly state: any;
}
declare var PopStateEvent: {
prototype: PopStateEvent;
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
};
/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */
interface ProcessingInstruction extends CharacterData, LinkStyle {
readonly ownerDocument: Document;
readonly target: string;
}
declare var ProcessingInstruction: {
prototype: ProcessingInstruction;
new(): ProcessingInstruction;
};
/** 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>). */
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
readonly lengthComputable: boolean;
readonly loaded: number;
readonly target: T | null;
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
interface PromiseRejectionEvent extends Event {
readonly promise: Promise<any>;
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
/** Available only in secure contexts. */
interface PublicKeyCredential extends Credential {
readonly authenticatorAttachment: string | null;
readonly rawId: ArrayBuffer;
readonly response: AuthenticatorResponse;
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
}
declare var PublicKeyCredential: {
prototype: PublicKeyCredential;
new(): PublicKeyCredential;
isConditionalMediationAvailable(): Promise<boolean>;
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
};
/**
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
* Available only in secure contexts.
*/
interface PushManager {
getSubscription(): Promise<PushSubscription | null>;
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/**
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
* Available only in secure contexts.
*/
interface PushSubscription {
readonly endpoint: string;
readonly expirationTime: EpochTimeStamp | null;
readonly options: PushSubscriptionOptions;
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
toJSON(): PushSubscriptionJSON;
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
/** Available only in secure contexts. */
interface PushSubscriptionOptions {
readonly applicationServerKey: ArrayBuffer | null;
readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
interface RTCCertificate {
readonly expires: EpochTimeStamp;
getFingerprints(): RTCDtlsFingerprint[];
}
declare var RTCCertificate: {
prototype: RTCCertificate;
new(): RTCCertificate;
};
interface RTCDTMFSenderEventMap {
"tonechange": RTCDTMFToneChangeEvent;
}
interface RTCDTMFSender extends EventTarget {
readonly canInsertDTMF: boolean;
ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;
readonly toneBuffer: string;
insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDTMFSender: {
prototype: RTCDTMFSender;
new(): RTCDTMFSender;
};
/** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */
interface RTCDTMFToneChangeEvent extends Event {
readonly tone: string;
}
declare var RTCDTMFToneChangeEvent: {
prototype: RTCDTMFToneChangeEvent;
new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
};
interface RTCDataChannelEventMap {
"bufferedamountlow": Event;
"close": Event;
"closing": Event;
"error": Event;
"message": MessageEvent;
"open": Event;
}
interface RTCDataChannel extends EventTarget {
binaryType: BinaryType;
readonly bufferedAmount: number;
bufferedAmountLowThreshold: number;
readonly id: number | null;
readonly label: string;
readonly maxPacketLifeTime: number | null;
readonly maxRetransmits: number | null;
readonly negotiated: boolean;
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
readonly ordered: boolean;
readonly protocol: string;
readonly readyState: RTCDataChannelState;
close(): void;
send(data: string): void;
send(data: Blob): void;
send(data: ArrayBuffer): void;
send(data: ArrayBufferView): void;
addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDataChannel: {
prototype: RTCDataChannel;
new(): RTCDataChannel;
};
interface RTCDataChannelEvent extends Event {
readonly channel: RTCDataChannel;
}
declare var RTCDataChannelEvent: {
prototype: RTCDataChannelEvent;
new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
};
interface RTCDtlsTransportEventMap {
"error": Event;
"statechange": Event;
}
interface RTCDtlsTransport extends EventTarget {
readonly iceTransport: RTCIceTransport;
onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
readonly state: RTCDtlsTransportState;
getRemoteCertificates(): ArrayBuffer[];
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDtlsTransport: {
prototype: RTCDtlsTransport;
new(): RTCDtlsTransport;
};
interface RTCEncodedAudioFrame {
data: ArrayBuffer;
readonly timestamp: number;
getMetadata(): RTCEncodedAudioFrameMetadata;
}
declare var RTCEncodedAudioFrame: {
prototype: RTCEncodedAudioFrame;
new(): RTCEncodedAudioFrame;
};
interface RTCEncodedVideoFrame {
data: ArrayBuffer;
readonly timestamp: number;
readonly type: RTCEncodedVideoFrameType;
getMetadata(): RTCEncodedVideoFrameMetadata;
}
declare var RTCEncodedVideoFrame: {
prototype: RTCEncodedVideoFrame;
new(): RTCEncodedVideoFrame;
};
interface RTCError extends DOMException {
readonly errorDetail: RTCErrorDetailType;
readonly receivedAlert: number | null;
readonly sctpCauseCode: number | null;
readonly sdpLineNumber: number | null;
readonly sentAlert: number | null;
}
declare var RTCError: {
prototype: RTCError;
new(init: RTCErrorInit, message?: string): RTCError;
};
interface RTCErrorEvent extends Event {
readonly error: RTCError;
}
declare var RTCErrorEvent: {
prototype: RTCErrorEvent;
new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
};
/** The RTCIceCandidate interface\u2014part of the WebRTC API\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
interface RTCIceCandidate {
readonly address: string | null;
readonly candidate: string;
readonly component: RTCIceComponent | null;
readonly foundation: string | null;
readonly port: number | null;
readonly priority: number | null;
readonly protocol: RTCIceProtocol | null;
readonly relatedAddress: string | null;
readonly relatedPort: number | null;
readonly sdpMLineIndex: number | null;
readonly sdpMid: string | null;
readonly tcpType: RTCIceTcpCandidateType | null;
readonly type: RTCIceCandidateType | null;
readonly usernameFragment: string | null;
toJSON(): RTCIceCandidateInit;
}
declare var RTCIceCandidate: {
prototype: RTCIceCandidate;
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
};
interface RTCIceTransportEventMap {
"gatheringstatechange": Event;
"statechange": Event;
}
/** Provides access to information about the ICE transport layer over which the data is being sent and received. */
interface RTCIceTransport extends EventTarget {
readonly gatheringState: RTCIceGathererState;
ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
readonly state: RTCIceTransportState;
addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCIceTransport: {
prototype: RTCIceTransport;
new(): RTCIceTransport;
};
interface RTCPeerConnectionEventMap {
"connectionstatechange": Event;
"datachannel": RTCDataChannelEvent;
"icecandidate": RTCPeerConnectionIceEvent;
"icecandidateerror": Event;
"iceconnectionstatechange": Event;
"icegatheringstatechange": Event;
"negotiationneeded": Event;
"signalingstatechange": Event;
"track": RTCTrackEvent;
}
/** 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. */
interface RTCPeerConnection extends EventTarget {
readonly canTrickleIceCandidates: boolean | null;
readonly connectionState: RTCPeerConnectionState;
readonly currentLocalDescription: RTCSessionDescription | null;
readonly currentRemoteDescription: RTCSessionDescription | null;
readonly iceConnectionState: RTCIceConnectionState;
readonly iceGatheringState: RTCIceGatheringState;
readonly localDescription: RTCSessionDescription | null;
onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;
oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
readonly pendingLocalDescription: RTCSessionDescription | null;
readonly pendingRemoteDescription: RTCSessionDescription | null;
readonly remoteDescription: RTCSessionDescription | null;
readonly sctp: RTCSctpTransport | null;
readonly signalingState: RTCSignalingState;
addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
/** @deprecated */
addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
close(): void;
createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
getConfiguration(): RTCConfiguration;
getReceivers(): RTCRtpReceiver[];
getSenders(): RTCRtpSender[];
getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
getTransceivers(): RTCRtpTransceiver[];
removeTrack(sender: RTCRtpSender): void;
restartIce(): void;
setConfiguration(configuration?: RTCConfiguration): void;
setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;
/** @deprecated */
setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
/** @deprecated */
setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCPeerConnection: {
prototype: RTCPeerConnection;
new(configuration?: RTCConfiguration): RTCPeerConnection;
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
};
interface RTCPeerConnectionIceErrorEvent extends Event {
readonly address: string | null;
readonly errorCode: number;
readonly errorText: string;
readonly port: number | null;
readonly url: string;
}
declare var RTCPeerConnectionIceErrorEvent: {
prototype: RTCPeerConnectionIceErrorEvent;
new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
};
/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */
interface RTCPeerConnectionIceEvent extends Event {
readonly candidate: RTCIceCandidate | null;
}
declare var RTCPeerConnectionIceEvent: {
prototype: RTCPeerConnectionIceEvent;
new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;
};
/** This WebRTC API interface manages the reception and decoding of data for a\xA0MediaStreamTrack on an\xA0RTCPeerConnection. */
interface RTCRtpReceiver {
readonly track: MediaStreamTrack;
readonly transport: RTCDtlsTransport | null;
getContributingSources(): RTCRtpContributingSource[];
getParameters(): RTCRtpReceiveParameters;
getStats(): Promise<RTCStatsReport>;
getSynchronizationSources(): RTCRtpSynchronizationSource[];
}
declare var RTCRtpReceiver: {
prototype: RTCRtpReceiver;
new(): RTCRtpReceiver;
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */
interface RTCRtpSender {
readonly dtmf: RTCDTMFSender | null;
readonly track: MediaStreamTrack | null;
readonly transport: RTCDtlsTransport | null;
getParameters(): RTCRtpSendParameters;
getStats(): Promise<RTCStatsReport>;
replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
setParameters(parameters: RTCRtpSendParameters): Promise<void>;
setStreams(...streams: MediaStream[]): void;
}
declare var RTCRtpSender: {
prototype: RTCRtpSender;
new(): RTCRtpSender;
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
interface RTCRtpTransceiver {
readonly currentDirection: RTCRtpTransceiverDirection | null;
direction: RTCRtpTransceiverDirection;
readonly mid: string | null;
readonly receiver: RTCRtpReceiver;
readonly sender: RTCRtpSender;
setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
stop(): void;
}
declare var RTCRtpTransceiver: {
prototype: RTCRtpTransceiver;
new(): RTCRtpTransceiver;
};
interface RTCSctpTransportEventMap {
"statechange": Event;
}
interface RTCSctpTransport extends EventTarget {
readonly maxChannels: number | null;
readonly maxMessageSize: number;
onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
readonly state: RTCSctpTransportState;
readonly transport: RTCDtlsTransport;
addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCSctpTransport: {
prototype: RTCSctpTransport;
new(): RTCSctpTransport;
};
/** One end of a connection\u2014or potential connection\u2014and 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. */
interface RTCSessionDescription {
readonly sdp: string;
readonly type: RTCSdpType;
toJSON(): any;
}
declare var RTCSessionDescription: {
prototype: RTCSessionDescription;
new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
};
interface RTCStatsReport {
forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
}
declare var RTCStatsReport: {
prototype: RTCStatsReport;
new(): RTCStatsReport;
};
interface RTCTrackEvent extends Event {
readonly receiver: RTCRtpReceiver;
readonly streams: ReadonlyArray<MediaStream>;
readonly track: MediaStreamTrack;
readonly transceiver: RTCRtpTransceiver;
}
declare var RTCTrackEvent: {
prototype: RTCTrackEvent;
new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;
};
interface RadioNodeList extends NodeList {
value: string;
}
declare var RadioNodeList: {
prototype: RadioNodeList;
new(): RadioNodeList;
};
/** A fragment of a document that can contain nodes and parts of text nodes. */
interface Range extends AbstractRange {
/** Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node. */
readonly commonAncestorContainer: Node;
cloneContents(): DocumentFragment;
cloneRange(): Range;
collapse(toStart?: boolean): void;
compareBoundaryPoints(how: number, sourceRange: Range): number;
/** Returns \u22121 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range. */
comparePoint(node: Node, offset: number): number;
createContextualFragment(fragment: string): DocumentFragment;
deleteContents(): void;
detach(): void;
extractContents(): DocumentFragment;
getBoundingClientRect(): DOMRect;
getClientRects(): DOMRectList;
insertNode(node: Node): void;
/** Returns whether range intersects node. */
intersectsNode(node: Node): boolean;
isPointInRange(node: Node, offset: number): boolean;
selectNode(node: Node): void;
selectNodeContents(node: Node): void;
setEnd(node: Node, offset: number): void;
setEndAfter(node: Node): void;
setEndBefore(node: Node): void;
setStart(node: Node, offset: number): void;
setStartAfter(node: Node): void;
setStartBefore(node: Node): void;
surroundContents(newParent: Node): void;
toString(): string;
readonly START_TO_START: 0;
readonly START_TO_END: 1;
readonly END_TO_END: 2;
readonly END_TO_START: 3;
}
declare var Range: {
prototype: Range;
new(): Range;
readonly START_TO_START: 0;
readonly START_TO_END: 1;
readonly END_TO_END: 2;
readonly END_TO_START: 3;
toString(): string;
};
interface ReadableByteStreamController {
readonly byobRequest: ReadableStreamBYOBRequest | null;
readonly desiredSize: number | null;
close(): void;
enqueue(chunk: ArrayBufferView): void;
error(e?: any): void;
}
declare var ReadableByteStreamController: {
prototype: ReadableByteStreamController;
new(): ReadableByteStreamController;
};
/** 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. */
interface ReadableStream<R = any> {
readonly locked: boolean;
cancel(reason?: any): Promise<void>;
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
tee(): [ReadableStream<R>, ReadableStream<R>];
}
declare var ReadableStream: {
prototype: ReadableStream;
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream): ReadableStreamBYOBReader;
};
interface ReadableStreamBYOBRequest {
readonly view: ArrayBufferView | null;
respond(bytesWritten: number): void;
respondWithNewView(view: ArrayBufferView): void;
}
declare var ReadableStreamBYOBRequest: {
prototype: ReadableStreamBYOBRequest;
new(): ReadableStreamBYOBRequest;
};
interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
enqueue(chunk?: R): void;
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
read(): Promise<ReadableStreamReadResult<R>>;
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
readonly closed: Promise<undefined>;
cancel(reason?: any): Promise<void>;
}
interface RemotePlaybackEventMap {
"connect": Event;
"connecting": Event;
"disconnect": Event;
}
interface RemotePlayback extends EventTarget {
onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
readonly state: RemotePlaybackState;
cancelWatchAvailability(id?: number): Promise<void>;
prompt(): Promise<void>;
watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;
addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RemotePlayback: {
prototype: RemotePlayback;
new(): RemotePlayback;
};
/** This Fetch API interface represents a resource request. */
interface Request extends Body {
/** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
readonly cache: RequestCache;
/** 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. */
readonly credentials: RequestCredentials;
/** Returns the kind of resource requested by request, e.g., "document" or "script". */
readonly destination: RequestDestination;
/** 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. */
readonly headers: Headers;
/** 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] */
readonly integrity: string;
/** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
readonly keepalive: boolean;
/** Returns request's HTTP method, which is "GET" by default. */
readonly method: string;
/** 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. */
readonly mode: RequestMode;
/** 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. */
readonly redirect: RequestRedirect;
/** 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. */
readonly referrer: string;
/** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
readonly referrerPolicy: ReferrerPolicy;
/** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
readonly signal: AbortSignal;
/** Returns the URL of request as a string. */
readonly url: string;
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
};
interface ResizeObserver {
disconnect(): void;
observe(target: Element, options?: ResizeObserverOptions): void;
unobserve(target: Element): void;
}
declare var ResizeObserver: {
prototype: ResizeObserver;
new(callback: ResizeObserverCallback): ResizeObserver;
};
interface ResizeObserverEntry {
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
readonly contentRect: DOMRectReadOnly;
readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
readonly target: Element;
}
declare var ResizeObserverEntry: {
prototype: ResizeObserverEntry;
new(): ResizeObserverEntry;
};
interface ResizeObserverSize {
readonly blockSize: number;
readonly inlineSize: number;
}
declare var ResizeObserverSize: {
prototype: ResizeObserverSize;
new(): ResizeObserverSize;
};
/** This Fetch API interface represents the response to a request. */
interface Response extends Body {
readonly headers: Headers;
readonly ok: boolean;
readonly redirected: boolean;
readonly status: number;
readonly statusText: string;
readonly type: ResponseType;
readonly url: string;
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
error(): Response;
redirect(url: string | URL, status?: number): Response;
};
/** Provides access to the properties of <a> element, as well as methods to manipulate them. */
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
rel: string;
readonly relList: DOMTokenList;
readonly target: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAElement: {
prototype: SVGAElement;
new(): SVGAElement;
};
/** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */
interface SVGAngle {
readonly unitType: number;
value: number;
valueAsString: string;
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
readonly SVG_ANGLETYPE_UNKNOWN: 0;
readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
readonly SVG_ANGLETYPE_DEG: 2;
readonly SVG_ANGLETYPE_RAD: 3;
readonly SVG_ANGLETYPE_GRAD: 4;
}
declare var SVGAngle: {
prototype: SVGAngle;
new(): SVGAngle;
readonly SVG_ANGLETYPE_UNKNOWN: 0;
readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
readonly SVG_ANGLETYPE_DEG: 2;
readonly SVG_ANGLETYPE_RAD: 3;
readonly SVG_ANGLETYPE_GRAD: 4;
};
interface SVGAnimateElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateElement: {
prototype: SVGAnimateElement;
new(): SVGAnimateElement;
};
interface SVGAnimateMotionElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateMotionElement: {
prototype: SVGAnimateMotionElement;
new(): SVGAnimateMotionElement;
};
interface SVGAnimateTransformElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateTransformElement: {
prototype: SVGAnimateTransformElement;
new(): SVGAnimateTransformElement;
};
/** Used for attributes of basic type <angle> which can be animated. */
interface SVGAnimatedAngle {
readonly animVal: SVGAngle;
readonly baseVal: SVGAngle;
}
declare var SVGAnimatedAngle: {
prototype: SVGAnimatedAngle;
new(): SVGAnimatedAngle;
};
/** Used for attributes of type boolean which can be animated. */
interface SVGAnimatedBoolean {
readonly animVal: boolean;
baseVal: boolean;
}
declare var SVGAnimatedBoolean: {
prototype: SVGAnimatedBoolean;
new(): SVGAnimatedBoolean;
};
/** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */
interface SVGAnimatedEnumeration {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedEnumeration: {
prototype: SVGAnimatedEnumeration;
new(): SVGAnimatedEnumeration;
};
/** Used for attributes of basic type <integer> which can be animated. */
interface SVGAnimatedInteger {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedInteger: {
prototype: SVGAnimatedInteger;
new(): SVGAnimatedInteger;
};
/** Used for attributes of basic type <length> which can be animated. */
interface SVGAnimatedLength {
readonly animVal: SVGLength;
readonly baseVal: SVGLength;
}
declare var SVGAnimatedLength: {
prototype: SVGAnimatedLength;
new(): SVGAnimatedLength;
};
/** Used for attributes of type SVGLengthList which can be animated. */
interface SVGAnimatedLengthList {
readonly animVal: SVGLengthList;
readonly baseVal: SVGLengthList;
}
declare var SVGAnimatedLengthList: {
prototype: SVGAnimatedLengthList;
new(): SVGAnimatedLengthList;
};
/** Used for attributes of basic type <Number> which can be animated. */
interface SVGAnimatedNumber {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedNumber: {
prototype: SVGAnimatedNumber;
new(): SVGAnimatedNumber;
};
/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */
interface SVGAnimatedNumberList {
readonly animVal: SVGNumberList;
readonly baseVal: SVGNumberList;
}
declare var SVGAnimatedNumberList: {
prototype: SVGAnimatedNumberList;
new(): SVGAnimatedNumberList;
};
interface SVGAnimatedPoints {
readonly animatedPoints: SVGPointList;
readonly points: SVGPointList;
}
/** Used for attributes of type SVGPreserveAspectRatio which can be animated. */
interface SVGAnimatedPreserveAspectRatio {
readonly animVal: SVGPreserveAspectRatio;
readonly baseVal: SVGPreserveAspectRatio;
}
declare var SVGAnimatedPreserveAspectRatio: {
prototype: SVGAnimatedPreserveAspectRatio;
new(): SVGAnimatedPreserveAspectRatio;
};
/** Used for attributes of basic SVGRect which can be animated. */
interface SVGAnimatedRect {
readonly animVal: DOMRectReadOnly;
readonly baseVal: DOMRect;
}
declare var SVGAnimatedRect: {
prototype: SVGAnimatedRect;
new(): SVGAnimatedRect;
};
/** The SVGAnimatedString\xA0interface 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\xA0inside this. */
interface SVGAnimatedString {
readonly animVal: string;
baseVal: string;
}
declare var SVGAnimatedString: {
prototype: SVGAnimatedString;
new(): SVGAnimatedString;
};
/** Used for attributes which take a list of numbers and which can be animated. */
interface SVGAnimatedTransformList {
readonly animVal: SVGTransformList;
readonly baseVal: SVGTransformList;
}
declare var SVGAnimatedTransformList: {
prototype: SVGAnimatedTransformList;
new(): SVGAnimatedTransformList;
};
interface SVGAnimationElement extends SVGElement, SVGTests {
readonly targetElement: SVGElement | null;
beginElement(): void;
beginElementAt(offset: number): void;
endElement(): void;
endElementAt(offset: number): void;
getCurrentTime(): number;
getSimpleDuration(): number;
getStartTime(): number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimationElement: {
prototype: SVGAnimationElement;
new(): SVGAnimationElement;
};
/** 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. */
interface SVGCircleElement extends SVGGeometryElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly r: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGCircleElement: {
prototype: SVGCircleElement;
new(): SVGCircleElement;
};
/** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */
interface SVGClipPathElement extends SVGElement {
readonly clipPathUnits: SVGAnimatedEnumeration;
readonly transform: SVGAnimatedTransformList;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGClipPathElement: {
prototype: SVGClipPathElement;
new(): SVGClipPathElement;
};
/** A base interface used by the component transfer function interfaces. */
interface SVGComponentTransferFunctionElement extends SVGElement {
readonly amplitude: SVGAnimatedNumber;
readonly exponent: SVGAnimatedNumber;
readonly intercept: SVGAnimatedNumber;
readonly offset: SVGAnimatedNumber;
readonly slope: SVGAnimatedNumber;
readonly tableValues: SVGAnimatedNumberList;
readonly type: SVGAnimatedEnumeration;
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGComponentTransferFunctionElement: {
prototype: SVGComponentTransferFunctionElement;
new(): SVGComponentTransferFunctionElement;
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
};
/** Corresponds to the <defs> element. */
interface SVGDefsElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDefsElement: {
prototype: SVGDefsElement;
new(): SVGDefsElement;
};
/** Corresponds to the <desc> element. */
interface SVGDescElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDescElement: {
prototype: SVGDescElement;
new(): SVGDescElement;
};
interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
/** @deprecated */
readonly className: any;
readonly ownerSVGElement: SVGSVGElement | null;
readonly viewportElement: SVGElement | null;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGElement: {
prototype: SVGElement;
new(): SVGElement;
};
/** Provides access to the properties of <ellipse> elements. */
interface SVGEllipseElement extends SVGGeometryElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly rx: SVGAnimatedLength;
readonly ry: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGEllipseElement: {
prototype: SVGEllipseElement;
new(): SVGEllipseElement;
};
/** Corresponds to the <feBlend> element. */
interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly mode: SVGAnimatedEnumeration;
readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
readonly SVG_FEBLEND_MODE_NORMAL: 1;
readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
readonly SVG_FEBLEND_MODE_SCREEN: 3;
readonly SVG_FEBLEND_MODE_DARKEN: 4;
readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
readonly SVG_FEBLEND_MODE_OVERLAY: 6;
readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
readonly SVG_FEBLEND_MODE_HUE: 13;
readonly SVG_FEBLEND_MODE_SATURATION: 14;
readonly SVG_FEBLEND_MODE_COLOR: 15;
readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEBlendElement: {
prototype: SVGFEBlendElement;
new(): SVGFEBlendElement;
readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
readonly SVG_FEBLEND_MODE_NORMAL: 1;
readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
readonly SVG_FEBLEND_MODE_SCREEN: 3;
readonly SVG_FEBLEND_MODE_DARKEN: 4;
readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
readonly SVG_FEBLEND_MODE_OVERLAY: 6;
readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
readonly SVG_FEBLEND_MODE_HUE: 13;
readonly SVG_FEBLEND_MODE_SATURATION: 14;
readonly SVG_FEBLEND_MODE_COLOR: 15;
readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
};
/** Corresponds to the <feColorMatrix> element. */
interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly type: SVGAnimatedEnumeration;
readonly values: SVGAnimatedNumberList;
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEColorMatrixElement: {
prototype: SVGFEColorMatrixElement;
new(): SVGFEColorMatrixElement;
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
};
/** Corresponds to the <feComponentTransfer> element. */
interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEComponentTransferElement: {
prototype: SVGFEComponentTransferElement;
new(): SVGFEComponentTransferElement;
};
/** Corresponds to the <feComposite> element. */
interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly k1: SVGAnimatedNumber;
readonly k2: SVGAnimatedNumber;
readonly k3: SVGAnimatedNumber;
readonly k4: SVGAnimatedNumber;
readonly operator: SVGAnimatedEnumeration;
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFECompositeElement: {
prototype: SVGFECompositeElement;
new(): SVGFECompositeElement;
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
};
/** Corresponds to the <feConvolveMatrix> element. */
interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly bias: SVGAnimatedNumber;
readonly divisor: SVGAnimatedNumber;
readonly edgeMode: SVGAnimatedEnumeration;
readonly in1: SVGAnimatedString;
readonly kernelMatrix: SVGAnimatedNumberList;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly orderX: SVGAnimatedInteger;
readonly orderY: SVGAnimatedInteger;
readonly preserveAlpha: SVGAnimatedBoolean;
readonly targetX: SVGAnimatedInteger;
readonly targetY: SVGAnimatedInteger;
readonly SVG_EDGEMODE_UNKNOWN: 0;
readonly SVG_EDGEMODE_DUPLICATE: 1;
readonly SVG_EDGEMODE_WRAP: 2;
readonly SVG_EDGEMODE_NONE: 3;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEConvolveMatrixElement: {
prototype: SVGFEConvolveMatrixElement;
new(): SVGFEConvolveMatrixElement;
readonly SVG_EDGEMODE_UNKNOWN: 0;
readonly SVG_EDGEMODE_DUPLICATE: 1;
readonly SVG_EDGEMODE_WRAP: 2;
readonly SVG_EDGEMODE_NONE: 3;
};
/** Corresponds to the <feDiffuseLighting> element. */
interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly diffuseConstant: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly surfaceScale: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDiffuseLightingElement: {
prototype: SVGFEDiffuseLightingElement;
new(): SVGFEDiffuseLightingElement;
};
/** Corresponds to the <feDisplacementMap> element. */
interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly scale: SVGAnimatedNumber;
readonly xChannelSelector: SVGAnimatedEnumeration;
readonly yChannelSelector: SVGAnimatedEnumeration;
readonly SVG_CHANNEL_UNKNOWN: 0;
readonly SVG_CHANNEL_R: 1;
readonly SVG_CHANNEL_G: 2;
readonly SVG_CHANNEL_B: 3;
readonly SVG_CHANNEL_A: 4;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDisplacementMapElement: {
prototype: SVGFEDisplacementMapElement;
new(): SVGFEDisplacementMapElement;
readonly SVG_CHANNEL_UNKNOWN: 0;
readonly SVG_CHANNEL_R: 1;
readonly SVG_CHANNEL_G: 2;
readonly SVG_CHANNEL_B: 3;
readonly SVG_CHANNEL_A: 4;
};
/** Corresponds to the <feDistantLight> element. */
interface SVGFEDistantLightElement extends SVGElement {
readonly azimuth: SVGAnimatedNumber;
readonly elevation: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDistantLightElement: {
prototype: SVGFEDistantLightElement;
new(): SVGFEDistantLightElement;
};
interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly dx: SVGAnimatedNumber;
readonly dy: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
readonly stdDeviationX: SVGAnimatedNumber;
readonly stdDeviationY: SVGAnimatedNumber;
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDropShadowElement: {
prototype: SVGFEDropShadowElement;
new(): SVGFEDropShadowElement;
};
/** Corresponds to the <feFlood> element. */
interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFloodElement: {
prototype: SVGFEFloodElement;
new(): SVGFEFloodElement;
};
/** Corresponds to the <feFuncA> element. */
interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncAElement: {
prototype: SVGFEFuncAElement;
new(): SVGFEFuncAElement;
};
/** Corresponds to the <feFuncB> element. */
interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncBElement: {
prototype: SVGFEFuncBElement;
new(): SVGFEFuncBElement;
};
/** Corresponds to the <feFuncG> element. */
interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncGElement: {
prototype: SVGFEFuncGElement;
new(): SVGFEFuncGElement;
};
/** Corresponds to the <feFuncR> element. */
interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncRElement: {
prototype: SVGFEFuncRElement;
new(): SVGFEFuncRElement;
};
/** Corresponds to the <feGaussianBlur> element. */
interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly stdDeviationX: SVGAnimatedNumber;
readonly stdDeviationY: SVGAnimatedNumber;
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEGaussianBlurElement: {
prototype: SVGFEGaussianBlurElement;
new(): SVGFEGaussianBlurElement;
};
/** Corresponds to the <feImage> element. */
interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEImageElement: {
prototype: SVGFEImageElement;
new(): SVGFEImageElement;
};
/** Corresponds to the <feMerge> element. */
interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMergeElement: {
prototype: SVGFEMergeElement;
new(): SVGFEMergeElement;
};
/** Corresponds to the <feMergeNode> element. */
interface SVGFEMergeNodeElement extends SVGElement {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMergeNodeElement: {
prototype: SVGFEMergeNodeElement;
new(): SVGFEMergeNodeElement;
};
/** Corresponds to the <feMorphology> element. */
interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly operator: SVGAnimatedEnumeration;
readonly radiusX: SVGAnimatedNumber;
readonly radiusY: SVGAnimatedNumber;
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMorphologyElement: {
prototype: SVGFEMorphologyElement;
new(): SVGFEMorphologyElement;
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
};
/** Corresponds to the <feOffset> element. */
interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly dx: SVGAnimatedNumber;
readonly dy: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEOffsetElement: {
prototype: SVGFEOffsetElement;
new(): SVGFEOffsetElement;
};
/** Corresponds to the <fePointLight> element. */
interface SVGFEPointLightElement extends SVGElement {
readonly x: SVGAnimatedNumber;
readonly y: SVGAnimatedNumber;
readonly z: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEPointLightElement: {
prototype: SVGFEPointLightElement;
new(): SVGFEPointLightElement;
};
/** Corresponds to the <feSpecularLighting> element. */
interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly specularConstant: SVGAnimatedNumber;
readonly specularExponent: SVGAnimatedNumber;
readonly surfaceScale: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFESpecularLightingElement: {
prototype: SVGFESpecularLightingElement;
new(): SVGFESpecularLightingElement;
};
/** Corresponds to the <feSpotLight> element. */
interface SVGFESpotLightElement extends SVGElement {
readonly limitingConeAngle: SVGAnimatedNumber;
readonly pointsAtX: SVGAnimatedNumber;
readonly pointsAtY: SVGAnimatedNumber;
readonly pointsAtZ: SVGAnimatedNumber;
readonly specularExponent: SVGAnimatedNumber;
readonly x: SVGAnimatedNumber;
readonly y: SVGAnimatedNumber;
readonly z: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFESpotLightElement: {
prototype: SVGFESpotLightElement;
new(): SVGFESpotLightElement;
};
/** Corresponds to the <feTile> element. */
interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFETileElement: {
prototype: SVGFETileElement;
new(): SVGFETileElement;
};
/** Corresponds to the <feTurbulence> element. */
interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly baseFrequencyX: SVGAnimatedNumber;
readonly baseFrequencyY: SVGAnimatedNumber;
readonly numOctaves: SVGAnimatedInteger;
readonly seed: SVGAnimatedNumber;
readonly stitchTiles: SVGAnimatedEnumeration;
readonly type: SVGAnimatedEnumeration;
readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
readonly SVG_STITCHTYPE_UNKNOWN: 0;
readonly SVG_STITCHTYPE_STITCH: 1;
readonly SVG_STITCHTYPE_NOSTITCH: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFETurbulenceElement: {
prototype: SVGFETurbulenceElement;
new(): SVGFETurbulenceElement;
readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
readonly SVG_STITCHTYPE_UNKNOWN: 0;
readonly SVG_STITCHTYPE_STITCH: 1;
readonly SVG_STITCHTYPE_NOSTITCH: 2;
};
/** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */
interface SVGFilterElement extends SVGElement, SVGURIReference {
readonly filterUnits: SVGAnimatedEnumeration;
readonly height: SVGAnimatedLength;
readonly primitiveUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFilterElement: {
prototype: SVGFilterElement;
new(): SVGFilterElement;
};
interface SVGFilterPrimitiveStandardAttributes {
readonly height: SVGAnimatedLength;
readonly result: SVGAnimatedString;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
}
interface SVGFitToViewBox {
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
readonly viewBox: SVGAnimatedRect;
}
/** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */
interface SVGForeignObjectElement extends SVGGraphicsElement {
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGForeignObjectElement: {
prototype: SVGForeignObjectElement;
new(): SVGForeignObjectElement;
};
/** Corresponds to the <g> element. */
interface SVGGElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGElement: {
prototype: SVGGElement;
new(): SVGGElement;
};
interface SVGGeometryElement extends SVGGraphicsElement {
readonly pathLength: SVGAnimatedNumber;
getPointAtLength(distance: number): DOMPoint;
getTotalLength(): number;
isPointInFill(point?: DOMPointInit): boolean;
isPointInStroke(point?: DOMPointInit): boolean;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGeometryElement: {
prototype: SVGGeometryElement;
new(): SVGGeometryElement;
};
/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */
interface SVGGradientElement extends SVGElement, SVGURIReference {
readonly gradientTransform: SVGAnimatedTransformList;
readonly gradientUnits: SVGAnimatedEnumeration;
readonly spreadMethod: SVGAnimatedEnumeration;
readonly SVG_SPREADMETHOD_UNKNOWN: 0;
readonly SVG_SPREADMETHOD_PAD: 1;
readonly SVG_SPREADMETHOD_REFLECT: 2;
readonly SVG_SPREADMETHOD_REPEAT: 3;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGradientElement: {
prototype: SVGGradientElement;
new(): SVGGradientElement;
readonly SVG_SPREADMETHOD_UNKNOWN: 0;
readonly SVG_SPREADMETHOD_PAD: 1;
readonly SVG_SPREADMETHOD_REFLECT: 2;
readonly SVG_SPREADMETHOD_REPEAT: 3;
};
/** SVG elements whose primary purpose is to directly render graphics into a group. */
interface SVGGraphicsElement extends SVGElement, SVGTests {
readonly transform: SVGAnimatedTransformList;
getBBox(options?: SVGBoundingBoxOptions): DOMRect;
getCTM(): DOMMatrix | null;
getScreenCTM(): DOMMatrix | null;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGraphicsElement: {
prototype: SVGGraphicsElement;
new(): SVGGraphicsElement;
};
/** Corresponds to the <image> element. */
interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGImageElement: {
prototype: SVGImageElement;
new(): SVGImageElement;
};
/** Correspond to the <length> basic data type. */
interface SVGLength {
readonly unitType: number;
value: number;
valueAsString: string;
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
readonly SVG_LENGTHTYPE_UNKNOWN: 0;
readonly SVG_LENGTHTYPE_NUMBER: 1;
readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
readonly SVG_LENGTHTYPE_EMS: 3;
readonly SVG_LENGTHTYPE_EXS: 4;
readonly SVG_LENGTHTYPE_PX: 5;
readonly SVG_LENGTHTYPE_CM: 6;
readonly SVG_LENGTHTYPE_MM: 7;
readonly SVG_LENGTHTYPE_IN: 8;
readonly SVG_LENGTHTYPE_PT: 9;
readonly SVG_LENGTHTYPE_PC: 10;
}
declare var SVGLength: {
prototype: SVGLength;
new(): SVGLength;
readonly SVG_LENGTHTYPE_UNKNOWN: 0;
readonly SVG_LENGTHTYPE_NUMBER: 1;
readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
readonly SVG_LENGTHTYPE_EMS: 3;
readonly SVG_LENGTHTYPE_EXS: 4;
readonly SVG_LENGTHTYPE_PX: 5;
readonly SVG_LENGTHTYPE_CM: 6;
readonly SVG_LENGTHTYPE_MM: 7;
readonly SVG_LENGTHTYPE_IN: 8;
readonly SVG_LENGTHTYPE_PT: 9;
readonly SVG_LENGTHTYPE_PC: 10;
};
/** The SVGLengthList defines a list of SVGLength objects. */
interface SVGLengthList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGLength): SVGLength;
clear(): void;
getItem(index: number): SVGLength;
initialize(newItem: SVGLength): SVGLength;
insertItemBefore(newItem: SVGLength, index: number): SVGLength;
removeItem(index: number): SVGLength;
replaceItem(newItem: SVGLength, index: number): SVGLength;
[index: number]: SVGLength;
}
declare var SVGLengthList: {
prototype: SVGLengthList;
new(): SVGLengthList;
};
/** Provides access to the properties of <line> elements, as well as methods to manipulate them. */
interface SVGLineElement extends SVGGeometryElement {
readonly x1: SVGAnimatedLength;
readonly x2: SVGAnimatedLength;
readonly y1: SVGAnimatedLength;
readonly y2: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGLineElement: {
prototype: SVGLineElement;
new(): SVGLineElement;
};
/** Corresponds to the <linearGradient> element. */
interface SVGLinearGradientElement extends SVGGradientElement {
readonly x1: SVGAnimatedLength;
readonly x2: SVGAnimatedLength;
readonly y1: SVGAnimatedLength;
readonly y2: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGLinearGradientElement: {
prototype: SVGLinearGradientElement;
new(): SVGLinearGradientElement;
};
interface SVGMPathElement extends SVGElement, SVGURIReference {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMPathElement: {
prototype: SVGMPathElement;
new(): SVGMPathElement;
};
interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
readonly markerHeight: SVGAnimatedLength;
readonly markerUnits: SVGAnimatedEnumeration;
readonly markerWidth: SVGAnimatedLength;
readonly orientAngle: SVGAnimatedAngle;
readonly orientType: SVGAnimatedEnumeration;
readonly refX: SVGAnimatedLength;
readonly refY: SVGAnimatedLength;
setOrientToAngle(angle: SVGAngle): void;
setOrientToAuto(): void;
readonly SVG_MARKERUNITS_UNKNOWN: 0;
readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
readonly SVG_MARKER_ORIENT_AUTO: 1;
readonly SVG_MARKER_ORIENT_ANGLE: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMarkerElement: {
prototype: SVGMarkerElement;
new(): SVGMarkerElement;
readonly SVG_MARKERUNITS_UNKNOWN: 0;
readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
readonly SVG_MARKER_ORIENT_AUTO: 1;
readonly SVG_MARKER_ORIENT_ANGLE: 2;
};
/** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */
interface SVGMaskElement extends SVGElement {
readonly height: SVGAnimatedLength;
readonly maskContentUnits: SVGAnimatedEnumeration;
readonly maskUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMaskElement: {
prototype: SVGMaskElement;
new(): SVGMaskElement;
};
/** Corresponds to the <metadata> element. */
interface SVGMetadataElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMetadataElement: {
prototype: SVGMetadataElement;
new(): SVGMetadataElement;
};
/** Corresponds to the <number> basic data type. */
interface SVGNumber {
value: number;
}
declare var SVGNumber: {
prototype: SVGNumber;
new(): SVGNumber;
};
/** The SVGNumberList defines a list of SVGNumber objects. */
interface SVGNumberList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGNumber): SVGNumber;
clear(): void;
getItem(index: number): SVGNumber;
initialize(newItem: SVGNumber): SVGNumber;
insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
removeItem(index: number): SVGNumber;
replaceItem(newItem: SVGNumber, index: number): SVGNumber;
[index: number]: SVGNumber;
}
declare var SVGNumberList: {
prototype: SVGNumberList;
new(): SVGNumberList;
};
/** Corresponds to the <path> element. */
interface SVGPathElement extends SVGGeometryElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPathElement: {
prototype: SVGPathElement;
new(): SVGPathElement;
};
/** Corresponds to the <pattern> element. */
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly patternContentUnits: SVGAnimatedEnumeration;
readonly patternTransform: SVGAnimatedTransformList;
readonly patternUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPatternElement: {
prototype: SVGPatternElement;
new(): SVGPatternElement;
};
interface SVGPointList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: DOMPoint): DOMPoint;
clear(): void;
getItem(index: number): DOMPoint;
initialize(newItem: DOMPoint): DOMPoint;
insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
removeItem(index: number): DOMPoint;
replaceItem(newItem: DOMPoint, index: number): DOMPoint;
[index: number]: DOMPoint;
}
declare var SVGPointList: {
prototype: SVGPointList;
new(): SVGPointList;
};
/** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */
interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPolygonElement: {
prototype: SVGPolygonElement;
new(): SVGPolygonElement;
};
/** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */
interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPolylineElement: {
prototype: SVGPolylineElement;
new(): SVGPolylineElement;
};
/** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. */
interface SVGPreserveAspectRatio {
align: number;
meetOrSlice: number;
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
readonly SVG_MEETORSLICE_UNKNOWN: 0;
readonly SVG_MEETORSLICE_MEET: 1;
readonly SVG_MEETORSLICE_SLICE: 2;
}
declare var SVGPreserveAspectRatio: {
prototype: SVGPreserveAspectRatio;
new(): SVGPreserveAspectRatio;
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
readonly SVG_MEETORSLICE_UNKNOWN: 0;
readonly SVG_MEETORSLICE_MEET: 1;
readonly SVG_MEETORSLICE_SLICE: 2;
};
/** Corresponds to the <RadialGradient> element. */
interface SVGRadialGradientElement extends SVGGradientElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly fr: SVGAnimatedLength;
readonly fx: SVGAnimatedLength;
readonly fy: SVGAnimatedLength;
readonly r: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGRadialGradientElement: {
prototype: SVGRadialGradientElement;
new(): SVGRadialGradientElement;
};
/** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */
interface SVGRectElement extends SVGGeometryElement {
readonly height: SVGAnimatedLength;
readonly rx: SVGAnimatedLength;
readonly ry: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGRectElement: {
prototype: SVGRectElement;
new(): SVGRectElement;
};
interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {
}
/** 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. */
interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
currentScale: number;
readonly currentTranslate: DOMPointReadOnly;
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
animationsPaused(): boolean;
checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
createSVGAngle(): SVGAngle;
createSVGLength(): SVGLength;
createSVGMatrix(): DOMMatrix;
createSVGNumber(): SVGNumber;
createSVGPoint(): DOMPoint;
createSVGRect(): DOMRect;
createSVGTransform(): SVGTransform;
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
deselectAll(): void;
/** @deprecated */
forceRedraw(): void;
getCurrentTime(): number;
getElementById(elementId: string): Element;
getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
pauseAnimations(): void;
setCurrentTime(seconds: number): void;
/** @deprecated */
suspendRedraw(maxWaitMilliseconds: number): number;
unpauseAnimations(): void;
/** @deprecated */
unsuspendRedraw(suspendHandleID: number): void;
/** @deprecated */
unsuspendRedrawAll(): void;
addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSVGElement: {
prototype: SVGSVGElement;
new(): SVGSVGElement;
};
/** Corresponds to the SVG <script> element. */
interface SVGScriptElement extends SVGElement, SVGURIReference {
type: string;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGScriptElement: {
prototype: SVGScriptElement;
new(): SVGScriptElement;
};
interface SVGSetElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSetElement: {
prototype: SVGSetElement;
new(): SVGSetElement;
};
/** Corresponds to the <stop> element. */
interface SVGStopElement extends SVGElement {
readonly offset: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGStopElement: {
prototype: SVGStopElement;
new(): SVGStopElement;
};
/** The SVGStringList defines a list of DOMString objects. */
interface SVGStringList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: string): string;
clear(): void;
getItem(index: number): string;
initialize(newItem: string): string;
insertItemBefore(newItem: string, index: number): string;
removeItem(index: number): string;
replaceItem(newItem: string, index: number): string;
[index: number]: string;
}
declare var SVGStringList: {
prototype: SVGStringList;
new(): SVGStringList;
};
/** Corresponds to the SVG <style> element. */
interface SVGStyleElement extends SVGElement, LinkStyle {
disabled: boolean;
media: string;
title: string;
/** @deprecated */
type: string;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGStyleElement: {
prototype: SVGStyleElement;
new(): SVGStyleElement;
};
/** Corresponds to the <switch> element. */
interface SVGSwitchElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSwitchElement: {
prototype: SVGSwitchElement;
new(): SVGSwitchElement;
};
/** Corresponds to the <symbol> element. */
interface SVGSymbolElement extends SVGElement, SVGFitToViewBox {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSymbolElement: {
prototype: SVGSymbolElement;
new(): SVGSymbolElement;
};
/** A <tspan> element. */
interface SVGTSpanElement extends SVGTextPositioningElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTSpanElement: {
prototype: SVGTSpanElement;
new(): SVGTSpanElement;
};
interface SVGTests {
readonly requiredExtensions: SVGStringList;
readonly systemLanguage: SVGStringList;
}
/** 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. */
interface SVGTextContentElement extends SVGGraphicsElement {
readonly lengthAdjust: SVGAnimatedEnumeration;
readonly textLength: SVGAnimatedLength;
getCharNumAtPosition(point?: DOMPointInit): number;
getComputedTextLength(): number;
getEndPositionOfChar(charnum: number): DOMPoint;
getExtentOfChar(charnum: number): DOMRect;
getNumberOfChars(): number;
getRotationOfChar(charnum: number): number;
getStartPositionOfChar(charnum: number): DOMPoint;
getSubStringLength(charnum: number, nchars: number): number;
/** @deprecated */
selectSubString(charnum: number, nchars: number): void;
readonly LENGTHADJUST_UNKNOWN: 0;
readonly LENGTHADJUST_SPACING: 1;
readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextContentElement: {
prototype: SVGTextContentElement;
new(): SVGTextContentElement;
readonly LENGTHADJUST_UNKNOWN: 0;
readonly LENGTHADJUST_SPACING: 1;
readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
};
/** Corresponds to the <text> elements. */
interface SVGTextElement extends SVGTextPositioningElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextElement: {
prototype: SVGTextElement;
new(): SVGTextElement;
};
/** Corresponds to the <textPath> element. */
interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
readonly method: SVGAnimatedEnumeration;
readonly spacing: SVGAnimatedEnumeration;
readonly startOffset: SVGAnimatedLength;
readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
readonly TEXTPATH_METHODTYPE_ALIGN: 1;
readonly TEXTPATH_METHODTYPE_STRETCH: 2;
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextPathElement: {
prototype: SVGTextPathElement;
new(): SVGTextPathElement;
readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
readonly TEXTPATH_METHODTYPE_ALIGN: 1;
readonly TEXTPATH_METHODTYPE_STRETCH: 2;
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
};
/** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */
interface SVGTextPositioningElement extends SVGTextContentElement {
readonly dx: SVGAnimatedLengthList;
readonly dy: SVGAnimatedLengthList;
readonly rotate: SVGAnimatedNumberList;
readonly x: SVGAnimatedLengthList;
readonly y: SVGAnimatedLengthList;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextPositioningElement: {
prototype: SVGTextPositioningElement;
new(): SVGTextPositioningElement;
};
/** Corresponds to the <title> element. */
interface SVGTitleElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTitleElement: {
prototype: SVGTitleElement;
new(): SVGTitleElement;
};
/** 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(\u2026) or matrix(\u2026)) within a transform attribute. */
interface SVGTransform {
readonly angle: number;
readonly matrix: DOMMatrix;
readonly type: number;
setMatrix(matrix?: DOMMatrix2DInit): void;
setRotate(angle: number, cx: number, cy: number): void;
setScale(sx: number, sy: number): void;
setSkewX(angle: number): void;
setSkewY(angle: number): void;
setTranslate(tx: number, ty: number): void;
readonly SVG_TRANSFORM_UNKNOWN: 0;
readonly SVG_TRANSFORM_MATRIX: 1;
readonly SVG_TRANSFORM_TRANSLATE: 2;
readonly SVG_TRANSFORM_SCALE: 3;
readonly SVG_TRANSFORM_ROTATE: 4;
readonly SVG_TRANSFORM_SKEWX: 5;
readonly SVG_TRANSFORM_SKEWY: 6;
}
declare var SVGTransform: {
prototype: SVGTransform;
new(): SVGTransform;
readonly SVG_TRANSFORM_UNKNOWN: 0;
readonly SVG_TRANSFORM_MATRIX: 1;
readonly SVG_TRANSFORM_TRANSLATE: 2;
readonly SVG_TRANSFORM_SCALE: 3;
readonly SVG_TRANSFORM_ROTATE: 4;
readonly SVG_TRANSFORM_SKEWX: 5;
readonly SVG_TRANSFORM_SKEWY: 6;
};
/** The SVGTransformList defines a list of SVGTransform objects. */
interface SVGTransformList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGTransform): SVGTransform;
clear(): void;
consolidate(): SVGTransform | null;
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
getItem(index: number): SVGTransform;
initialize(newItem: SVGTransform): SVGTransform;
insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
removeItem(index: number): SVGTransform;
replaceItem(newItem: SVGTransform, index: number): SVGTransform;
[index: number]: SVGTransform;
}
declare var SVGTransformList: {
prototype: SVGTransformList;
new(): SVGTransformList;
};
interface SVGURIReference {
readonly href: SVGAnimatedString;
}
/** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */
interface SVGUnitTypes {
readonly SVG_UNIT_TYPE_UNKNOWN: 0;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
}
declare var SVGUnitTypes: {
prototype: SVGUnitTypes;
new(): SVGUnitTypes;
readonly SVG_UNIT_TYPE_UNKNOWN: 0;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
};
/** Corresponds to the <use> element. */
interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGUseElement: {
prototype: SVGUseElement;
new(): SVGUseElement;
};
/** Provides access to the properties of <view> elements, as well as methods to manipulate them. */
interface SVGViewElement extends SVGElement, SVGFitToViewBox {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGViewElement: {
prototype: SVGViewElement;
new(): SVGViewElement;
};
/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */
interface Screen {
readonly availHeight: number;
readonly availWidth: number;
readonly colorDepth: number;
readonly height: number;
readonly orientation: ScreenOrientation;
readonly pixelDepth: number;
readonly width: number;
}
declare var Screen: {
prototype: Screen;
new(): Screen;
};
interface ScreenOrientationEventMap {
"change": Event;
}
interface ScreenOrientation extends EventTarget {
readonly angle: number;
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
readonly type: OrientationType;
lock(orientation: OrientationLockType): Promise<void>;
unlock(): void;
addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ScreenOrientation: {
prototype: ScreenOrientation;
new(): ScreenOrientation;
};
interface ScriptProcessorNodeEventMap {
"audioprocess": AudioProcessingEvent;
}
/**
* Allows the generation, processing, or analyzing of audio using JavaScript.
* @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).
*/
interface ScriptProcessorNode extends AudioNode {
/** @deprecated */
readonly bufferSize: number;
/** @deprecated */
onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;
addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var ScriptProcessorNode: {
prototype: ScriptProcessorNode;
new(): ScriptProcessorNode;
};
/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
interface SecurityPolicyViolationEvent extends Event {
readonly blockedURI: string;
readonly columnNumber: number;
readonly disposition: SecurityPolicyViolationEventDisposition;
readonly documentURI: string;
readonly effectiveDirective: string;
readonly lineNumber: number;
readonly originalPolicy: string;
readonly referrer: string;
readonly sample: string;
readonly sourceFile: string;
readonly statusCode: number;
readonly violatedDirective: string;
}
declare var SecurityPolicyViolationEvent: {
prototype: SecurityPolicyViolationEvent;
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};
/** A Selection object\xA0represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or\xA0modification, call Window.getSelection(). */
interface Selection {
readonly anchorNode: Node | null;
readonly anchorOffset: number;
readonly focusNode: Node | null;
readonly focusOffset: number;
readonly isCollapsed: boolean;
readonly rangeCount: number;
readonly type: string;
addRange(range: Range): void;
collapse(node: Node | null, offset?: number): void;
collapseToEnd(): void;
collapseToStart(): void;
containsNode(node: Node, allowPartialContainment?: boolean): boolean;
deleteFromDocument(): void;
empty(): void;
extend(node: Node, offset?: number): void;
getRangeAt(index: number): Range;
modify(alter?: string, direction?: string, granularity?: string): void;
removeAllRanges(): void;
removeRange(range: Range): void;
selectAllChildren(node: Node): void;
setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
setPosition(node: Node | null, offset?: number): void;
toString(): string;
}
declare var Selection: {
prototype: Selection;
new(): Selection;
toString(): string;
};
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/**
* 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.
* Available only in secure contexts.
*/
interface ServiceWorker extends EventTarget, AbstractWorker {
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
readonly scriptURL: string;
readonly state: ServiceWorkerState;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorker: {
prototype: ServiceWorker;
new(): ServiceWorker;
};
interface ServiceWorkerContainerEventMap {
"controllerchange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides 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.
* Available only in secure contexts.
*/
interface ServiceWorkerContainer extends EventTarget {
readonly controller: ServiceWorker | null;
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
readonly ready: Promise<ServiceWorkerRegistration>;
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
startMessages(): void;
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerContainer: {
prototype: ServiceWorkerContainer;
new(): ServiceWorkerContainer;
};
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
/**
* 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.
* Available only in secure contexts.
*/
interface ServiceWorkerRegistration extends EventTarget {
readonly active: ServiceWorker | null;
readonly installing: ServiceWorker | null;
readonly navigationPreload: NavigationPreloadManager;
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
readonly pushManager: PushManager;
readonly scope: string;
readonly updateViaCache: ServiceWorkerUpdateViaCache;
readonly waiting: ServiceWorker | null;
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
showNotification(title: string, options?: NotificationOptions): Promise<void>;
unregister(): Promise<boolean>;
update(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerRegistration: {
prototype: ServiceWorkerRegistration;
new(): ServiceWorkerRegistration;
};
interface ShadowRootEventMap {
"slotchange": Event;
}
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
readonly delegatesFocus: boolean;
readonly host: Element;
readonly mode: ShadowRootMode;
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
readonly slotAssignment: SlotAssignmentMode;
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ShadowRoot: {
prototype: ShadowRoot;
new(): ShadowRoot;
};
interface SharedWorker extends EventTarget, AbstractWorker {
/** Returns sharedWorker's MessagePort object which can be used to communicate with the global environment. */
readonly port: MessagePort;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SharedWorker: {
prototype: SharedWorker;
new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;
};
interface Slottable {
readonly assignedSlot: HTMLSlotElement | null;
}
interface SourceBufferEventMap {
"abort": Event;
"error": Event;
"update": Event;
"updateend": Event;
"updatestart": Event;
}
/** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource\xA0object. This can be made up of one or several media segments. */
interface SourceBuffer extends EventTarget {
appendWindowEnd: number;
appendWindowStart: number;
readonly buffered: TimeRanges;
mode: AppendMode;
onabort: ((this: SourceBuffer, ev: Event) => any) | null;
onerror: ((this: SourceBuffer, ev: Event) => any) | null;
onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
timestampOffset: number;
readonly updating: boolean;
abort(): void;
appendBuffer(data: BufferSource): void;
changeType(type: string): void;
remove(start: number, end: number): void;
addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SourceBuffer: {
prototype: SourceBuffer;
new(): SourceBuffer;
};
interface SourceBufferListEventMap {
"addsourcebuffer": Event;
"removesourcebuffer": Event;
}
/** A simple container list for multiple SourceBuffer objects. */
interface SourceBufferList extends EventTarget {
readonly length: number;
onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: SourceBuffer;
}
declare var SourceBufferList: {
prototype: SourceBufferList;
new(): SourceBufferList;
};
interface SpeechRecognitionAlternative {
readonly confidence: number;
readonly transcript: string;
}
declare var SpeechRecognitionAlternative: {
prototype: SpeechRecognitionAlternative;
new(): SpeechRecognitionAlternative;
};
interface SpeechRecognitionResult {
readonly isFinal: boolean;
readonly length: number;
item(index: number): SpeechRecognitionAlternative;
[index: number]: SpeechRecognitionAlternative;
}
declare var SpeechRecognitionResult: {
prototype: SpeechRecognitionResult;
new(): SpeechRecognitionResult;
};
interface SpeechRecognitionResultList {
readonly length: number;
item(index: number): SpeechRecognitionResult;
[index: number]: SpeechRecognitionResult;
}
declare var SpeechRecognitionResultList: {
prototype: SpeechRecognitionResultList;
new(): SpeechRecognitionResultList;
};
interface SpeechSynthesisEventMap {
"voiceschanged": Event;
}
/** 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. */
interface SpeechSynthesis extends EventTarget {
onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;
readonly paused: boolean;
readonly pending: boolean;
readonly speaking: boolean;
cancel(): void;
getVoices(): SpeechSynthesisVoice[];
pause(): void;
resume(): void;
speak(utterance: SpeechSynthesisUtterance): void;
addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SpeechSynthesis: {
prototype: SpeechSynthesis;
new(): SpeechSynthesis;
};
interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
readonly error: SpeechSynthesisErrorCode;
}
declare var SpeechSynthesisErrorEvent: {
prototype: SpeechSynthesisErrorEvent;
new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;
};
/** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */
interface SpeechSynthesisEvent extends Event {
readonly charIndex: number;
readonly charLength: number;
readonly elapsedTime: number;
readonly name: string;
readonly utterance: SpeechSynthesisUtterance;
}
declare var SpeechSynthesisEvent: {
prototype: SpeechSynthesisEvent;
new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;
};
interface SpeechSynthesisUtteranceEventMap {
"boundary": SpeechSynthesisEvent;
"end": SpeechSynthesisEvent;
"error": SpeechSynthesisErrorEvent;
"mark": SpeechSynthesisEvent;
"pause": SpeechSynthesisEvent;
"resume": SpeechSynthesisEvent;
"start": SpeechSynthesisEvent;
}
/** 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.) */
interface SpeechSynthesisUtterance extends EventTarget {
lang: string;
onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;
onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
pitch: number;
rate: number;
text: string;
voice: SpeechSynthesisVoice | null;
volume: number;
addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SpeechSynthesisUtterance: {
prototype: SpeechSynthesisUtterance;
new(text?: string): SpeechSynthesisUtterance;
};
/** 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. */
interface SpeechSynthesisVoice {
readonly default: boolean;
readonly lang: string;
readonly localService: boolean;
readonly name: string;
readonly voiceURI: string;
}
declare var SpeechSynthesisVoice: {
prototype: SpeechSynthesisVoice;
new(): SpeechSynthesisVoice;
};
interface StaticRange extends AbstractRange {
}
declare var StaticRange: {
prototype: StaticRange;
new(init: StaticRangeInit): StaticRange;
};
/** 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. */
interface StereoPannerNode extends AudioNode {
readonly pan: AudioParam;
}
declare var StereoPannerNode: {
prototype: StereoPannerNode;
new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;
};
/** 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. */
interface Storage {
/** Returns the number of key/value pairs. */
readonly length: number;
/**
* Removes all key/value pairs, if there are any.
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
clear(): void;
/** Returns the current value associated with the given key, or null if the given key does not exist. */
getItem(key: string): string | null;
/** Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. */
key(index: number): string | null;
/**
* Removes the key/value pair with the given key, if a key/value pair with the given key exists.
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
removeItem(key: string): void;
/**
* Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
*
* 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.)
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
setItem(key: string, value: string): void;
[name: string]: any;
}
declare var Storage: {
prototype: Storage;
new(): Storage;
};
/** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */
interface StorageEvent extends Event {
/** Returns the key of the storage item being changed. */
readonly key: string | null;
/** Returns the new value of the key of the storage item whose value is being changed. */
readonly newValue: string | null;
/** Returns the old value of the key of the storage item whose value is being changed. */
readonly oldValue: string | null;
/** Returns the Storage object that was affected. */
readonly storageArea: Storage | null;
/** Returns the URL of the document whose storage item changed. */
readonly url: string;
/** @deprecated */
initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;
}
declare var StorageEvent: {
prototype: StorageEvent;
new(type: string, eventInitDict?: StorageEventInit): StorageEvent;
};
/** Available only in secure contexts. */
interface StorageManager {
estimate(): Promise<StorageEstimate>;
getDirectory(): Promise<FileSystemDirectoryHandle>;
persist(): Promise<boolean>;
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/** @deprecated */
interface StyleMedia {
type: string;
matchMedium(mediaquery: string): boolean;
}
/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */
interface StyleSheet {
disabled: boolean;
readonly href: string | null;
readonly media: MediaList;
readonly ownerNode: Element | ProcessingInstruction | null;
readonly parentStyleSheet: CSSStyleSheet | null;
readonly title: string | null;
readonly type: string;
}
declare var StyleSheet: {
prototype: StyleSheet;
new(): StyleSheet;
};
/** A list of StyleSheet. */
interface StyleSheetList {
readonly length: number;
item(index: number): CSSStyleSheet | null;
[index: number]: CSSStyleSheet;
}
declare var StyleSheetList: {
prototype: StyleSheetList;
new(): StyleSheetList;
};
interface SubmitEvent extends Event {
/** Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. */
readonly submitter: HTMLElement | null;
}
declare var SubmitEvent: {
prototype: SubmitEvent;
new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;
};
/**
* 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).
* Available only in secure contexts.
*/
interface SubtleCrypto {
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
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>;
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}
declare var SubtleCrypto: {
prototype: SubtleCrypto;
new(): SubtleCrypto;
};
/** 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. */
interface Text extends CharacterData, Slottable {
/** Returns the combined data of all direct Text node siblings. */
readonly wholeText: string;
/** Splits data at the given offset and returns the remainder as Text node. */
splitText(offset: number): Text;
}
declare var Text: {
prototype: Text;
new(data?: string): Text;
};
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextDecoder extends TextDecoderCommon {
/**
* 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.
*
* \`\`\`
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
* string += decoder.decode(buffer, {stream:true});
* }
* string += decoder.decode(); // end-of-queue
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*/
decode(input?: BufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/** Returns encoding's name, lowercased. */
readonly encoding: string;
/** Returns true if error mode is "fatal", otherwise false. */
readonly fatal: boolean;
/** Returns the value of ignore BOM. */
readonly ignoreBOM: boolean;
}
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
readonly readable: ReadableStream<string>;
readonly writable: WritableStream<BufferSource>;
}
declare var TextDecoderStream: {
prototype: TextDecoderStream;
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextEncoder extends TextEncoderCommon {
/** Returns the result of running UTF-8's encoder. */
encode(input?: string): Uint8Array;
/** 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. */
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/** Returns "utf-8". */
readonly encoding: string;
}
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
interface TextMetrics {
/** Returns the measurement described below. */
readonly actualBoundingBoxAscent: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxDescent: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxLeft: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxRight: number;
/** Returns the measurement described below. */
readonly fontBoundingBoxAscent: number;
/** Returns the measurement described below. */
readonly fontBoundingBoxDescent: number;
/** Returns the measurement described below. */
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
interface TextTrackEventMap {
"cuechange": Event;
}
/** This interface also inherits properties from EventTarget. */
interface TextTrack extends EventTarget {
/** 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. */
readonly activeCues: TextTrackCueList | null;
/** Returns the text track list of cues, as a TextTrackCueList object. */
readonly cues: TextTrackCueList | null;
/**
* Returns the ID of the given track.
*
* 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.
*
* For TextTrack objects corresponding to track elements, this is the ID of the track element.
*/
readonly id: string;
/** Returns the text track in-band metadata track dispatch type string. */
readonly inBandMetadataTrackDispatchType: string;
/** Returns the text track kind string. */
readonly kind: TextTrackKind;
/** 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). */
readonly label: string;
/** Returns the text track language string. */
readonly language: string;
/**
* Returns the text track mode, represented by a string from the following list:
*
* Can be set, to change the mode.
*/
mode: TextTrackMode;
oncuechange: ((this: TextTrack, ev: Event) => any) | null;
/** Adds the given cue to textTrack's text track list of cues. */
addCue(cue: TextTrackCue): void;
/** Removes the given cue from textTrack's text track list of cues. */
removeCue(cue: TextTrackCue): void;
addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var TextTrack: {
prototype: TextTrack;
new(): TextTrack;
};
interface TextTrackCueEventMap {
"enter": Event;
"exit": Event;
}
/** 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. */
interface TextTrackCue extends EventTarget {
/**
* Returns the text track cue end time, in seconds.
*
* Can be set.
*/
endTime: number;
/**
* Returns the text track cue identifier.
*
* Can be set.
*/
id: string;
onenter: ((this: TextTrackCue, ev: Event) => any) | null;
onexit: ((this: TextTrackCue, ev: Event) => any) | null;
/**
* Returns true if the text track cue pause-on-exit flag is set, false otherwise.
*
* Can be set.
*/
pauseOnExit: boolean;
/**
* Returns the text track cue start time, in seconds.
*
* Can be set.
*/
startTime: number;
/** Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. */
readonly track: TextTrack | null;
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var TextTrackCue: {
prototype: TextTrackCue;
new(): TextTrackCue;
};
interface TextTrackCueList {
/** Returns the number of cues in the list. */
readonly length: number;
/**
* Returns the first text track cue (in text track cue order) with text track cue identifier id.
*
* Returns null if none of the cues have the given identifier or if the argument is the empty string.
*/
getCueById(id: string): TextTrackCue | null;
[index: number]: TextTrackCue;
}
declare var TextTrackCueList: {
prototype: TextTrackCueList;
new(): TextTrackCueList;
};
interface TextTrackListEventMap {
"addtrack": TrackEvent;
"change": Event;
"removetrack": TrackEvent;
}
interface TextTrackList extends EventTarget {
readonly length: number;
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
onchange: ((this: TextTrackList, ev: Event) => any) | null;
onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
getTrackById(id: string): TextTrack | null;
addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: TextTrack;
}
declare var TextTrackList: {
prototype: TextTrackList;
new(): TextTrackList;
};
/** 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>\xA0elements. */
interface TimeRanges {
/** Returns the number of ranges in the object. */
readonly length: number;
/**
* Returns the time for the end of the range with the given index.
*
* Throws an "IndexSizeError" DOMException if the index is out of range.
*/
end(index: number): number;
/**
* Returns the time for the start of the range with the given index.
*
* Throws an "IndexSizeError" DOMException if the index is out of range.
*/
start(index: number): number;
}
declare var TimeRanges: {
prototype: TimeRanges;
new(): TimeRanges;
};
/** 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. */
interface Touch {
readonly clientX: number;
readonly clientY: number;
readonly force: number;
readonly identifier: number;
readonly pageX: number;
readonly pageY: number;
readonly radiusX: number;
readonly radiusY: number;
readonly rotationAngle: number;
readonly screenX: number;
readonly screenY: number;
readonly target: EventTarget;
}
declare var Touch: {
prototype: Touch;
new(touchInitDict: TouchInit): Touch;
};
/** 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. */
interface TouchEvent extends UIEvent {
readonly altKey: boolean;
readonly changedTouches: TouchList;
readonly ctrlKey: boolean;
readonly metaKey: boolean;
readonly shiftKey: boolean;
readonly targetTouches: TouchList;
readonly touches: TouchList;
}
declare var TouchEvent: {
prototype: TouchEvent;
new(type: string, eventInitDict?: TouchEventInit): TouchEvent;
};
/** 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. */
interface TouchList {
readonly length: number;
item(index: number): Touch | null;
[index: number]: Touch;
}
declare var TouchList: {
prototype: TouchList;
new(): TouchList;
};
/** 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. */
interface TrackEvent extends Event {
/** Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. */
readonly track: TextTrack | null;
}
declare var TrackEvent: {
prototype: TrackEvent;
new(type: string, eventInitDict?: TrackEventInit): TrackEvent;
};
interface TransformStream<I = any, O = any> {
readonly readable: ReadableStream<O>;
readonly writable: WritableStream<I>;
}
declare var TransformStream: {
prototype: TransformStream;
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};
interface TransformStreamDefaultController<O = any> {
readonly desiredSize: number | null;
enqueue(chunk?: O): void;
error(reason?: any): void;
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/** Events providing information related to transitions. */
interface TransitionEvent extends Event {
readonly elapsedTime: number;
readonly propertyName: string;
readonly pseudoElement: string;
}
declare var TransitionEvent: {
prototype: TransitionEvent;
new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;
};
/** The nodes of a document subtree and a position within them. */
interface TreeWalker {
currentNode: Node;
readonly filter: NodeFilter | null;
readonly root: Node;
readonly whatToShow: number;
firstChild(): Node | null;
lastChild(): Node | null;
nextNode(): Node | null;
nextSibling(): Node | null;
parentNode(): Node | null;
previousNode(): Node | null;
previousSibling(): Node | null;
}
declare var TreeWalker: {
prototype: TreeWalker;
new(): TreeWalker;
};
/** Simple user interface events. */
interface UIEvent extends Event {
readonly detail: number;
readonly view: Window | null;
/** @deprecated */
readonly which: number;
/** @deprecated */
initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;
}
declare var UIEvent: {
prototype: UIEvent;
new(type: string, eventInitDict?: UIEventInit): UIEvent;
};
/** The URL\xA0interface represents an object providing static methods used for creating object URLs. */
interface URL {
hash: string;
host: string;
hostname: string;
href: string;
toString(): string;
readonly origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
readonly searchParams: URLSearchParams;
username: string;
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
createObjectURL(obj: Blob | MediaSource): string;
revokeObjectURL(url: string): void;
};
type webkitURL = URL;
declare var webkitURL: typeof URL;
interface URLSearchParams {
/** Appends a specified key/value pair as a new search parameter. */
append(name: string, value: string): void;
/** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
delete(name: string): void;
/** Returns the first value associated to the given search parameter. */
get(name: string): string | null;
/** Returns all the values association with a given search parameter. */
getAll(name: string): string[];
/** Returns a Boolean indicating if such a search parameter exists. */
has(name: string): boolean;
/** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
set(name: string, value: string): void;
sort(): void;
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
toString(): string;
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}
declare var URLSearchParams: {
prototype: URLSearchParams;
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
toString(): string;
};
interface VTTCue extends TextTrackCue {
align: AlignSetting;
line: LineAndPositionSetting;
lineAlign: LineAlignSetting;
position: LineAndPositionSetting;
positionAlign: PositionAlignSetting;
region: VTTRegion | null;
size: number;
snapToLines: boolean;
text: string;
vertical: DirectionSetting;
getCueAsHTML(): DocumentFragment;
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VTTCue: {
prototype: VTTCue;
new(startTime: number, endTime: number, text: string): VTTCue;
};
interface VTTRegion {
id: string;
lines: number;
regionAnchorX: number;
regionAnchorY: number;
scroll: ScrollSetting;
viewportAnchorX: number;
viewportAnchorY: number;
width: number;
}
declare var VTTRegion: {
prototype: VTTRegion;
new(): VTTRegion;
};
/** 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. */
interface ValidityState {
readonly badInput: boolean;
readonly customError: boolean;
readonly patternMismatch: boolean;
readonly rangeOverflow: boolean;
readonly rangeUnderflow: boolean;
readonly stepMismatch: boolean;
readonly tooLong: boolean;
readonly tooShort: boolean;
readonly typeMismatch: boolean;
readonly valid: boolean;
readonly valueMissing: boolean;
}
declare var ValidityState: {
prototype: ValidityState;
new(): ValidityState;
};
interface VideoColorSpace {
readonly fullRange: boolean | null;
readonly matrix: VideoMatrixCoefficients | null;
readonly primaries: VideoColorPrimaries | null;
readonly transfer: VideoTransferCharacteristics | null;
toJSON(): VideoColorSpaceInit;
}
declare var VideoColorSpace: {
prototype: VideoColorSpace;
new(init?: VideoColorSpaceInit): VideoColorSpace;
};
/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
interface VideoPlaybackQuality {
/** @deprecated */
readonly corruptedVideoFrames: number;
readonly creationTime: DOMHighResTimeStamp;
readonly droppedVideoFrames: number;
readonly totalVideoFrames: number;
}
declare var VideoPlaybackQuality: {
prototype: VideoPlaybackQuality;
new(): VideoPlaybackQuality;
};
interface VisualViewportEventMap {
"resize": Event;
"scroll": Event;
}
interface VisualViewport extends EventTarget {
readonly height: number;
readonly offsetLeft: number;
readonly offsetTop: number;
onresize: ((this: VisualViewport, ev: Event) => any) | null;
onscroll: ((this: VisualViewport, ev: Event) => any) | null;
readonly pageLeft: number;
readonly pageTop: number;
readonly scale: number;
readonly width: number;
addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VisualViewport: {
prototype: VisualViewport;
new(): VisualViewport;
};
interface WEBGL_color_buffer_float {
readonly RGBA32F_EXT: 0x8814;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
interface WEBGL_compressed_texture_astc {
getSupportedProfiles(): string[];
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
}
interface WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: 0x9270;
readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
readonly COMPRESSED_RG11_EAC: 0x9272;
readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
readonly COMPRESSED_RGB8_ETC2: 0x9274;
readonly COMPRESSED_SRGB8_ETC2: 0x9275;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
}
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
}
interface WEBGL_compressed_texture_s3tc_srgb {
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
}
/** 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. */
interface WEBGL_debug_renderer_info {
readonly UNMASKED_VENDOR_WEBGL: 0x9245;
readonly UNMASKED_RENDERER_WEBGL: 0x9246;
}
interface WEBGL_debug_shaders {
getTranslatedShaderSource(shader: WebGLShader): string;
}
/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: GLenum[]): void;
readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
readonly DRAW_BUFFER0_WEBGL: 0x8825;
readonly DRAW_BUFFER1_WEBGL: 0x8826;
readonly DRAW_BUFFER2_WEBGL: 0x8827;
readonly DRAW_BUFFER3_WEBGL: 0x8828;
readonly DRAW_BUFFER4_WEBGL: 0x8829;
readonly DRAW_BUFFER5_WEBGL: 0x882A;
readonly DRAW_BUFFER6_WEBGL: 0x882B;
readonly DRAW_BUFFER7_WEBGL: 0x882C;
readonly DRAW_BUFFER8_WEBGL: 0x882D;
readonly DRAW_BUFFER9_WEBGL: 0x882E;
readonly DRAW_BUFFER10_WEBGL: 0x882F;
readonly DRAW_BUFFER11_WEBGL: 0x8830;
readonly DRAW_BUFFER12_WEBGL: 0x8831;
readonly DRAW_BUFFER13_WEBGL: 0x8832;
readonly DRAW_BUFFER14_WEBGL: 0x8833;
readonly DRAW_BUFFER15_WEBGL: 0x8834;
readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
}
interface WEBGL_lose_context {
loseContext(): void;
restoreContext(): void;
}
interface WEBGL_multi_draw {
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
}
/** A WaveShaperNode always has exactly one input and one output. */
interface WaveShaperNode extends AudioNode {
curve: Float32Array | null;
oversample: OverSampleType;
}
declare var WaveShaperNode: {
prototype: WaveShaperNode;
new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
};
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGBA8: 0x8058;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGL2RenderingContextBase {
beginQuery(target: GLenum, query: WebGLQuery): void;
beginTransformFeedback(primitiveMode: GLenum): void;
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
bindVertexArray(array: WebGLVertexArrayObject | null): void;
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createQuery(): WebGLQuery | null;
createSampler(): WebGLSampler | null;
createTransformFeedback(): WebGLTransformFeedback | null;
createVertexArray(): WebGLVertexArrayObject | null;
deleteQuery(query: WebGLQuery | null): void;
deleteSampler(sampler: WebGLSampler | null): void;
deleteSync(sync: WebGLSync | null): void;
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
drawBuffers(buffers: GLenum[]): void;
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
endQuery(target: GLenum): void;
endTransformFeedback(): void;
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
getFragDataLocation(program: WebGLProgram, name: string): GLint;
getIndexedParameter(target: GLenum, index: GLuint): any;
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
isQuery(query: WebGLQuery | null): GLboolean;
isSampler(sampler: WebGLSampler | null): GLboolean;
isSync(sync: WebGLSync | null): GLboolean;
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
pauseTransformFeedback(): void;
readBuffer(src: GLenum): void;
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
resumeTransformFeedback(): void;
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
vertexAttribI4iv(index: GLuint, values: Int32List): void;
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGBA8: 0x8058;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
}
interface WebGL2RenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
}
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
interface WebGLActiveInfo {
readonly name: string;
readonly size: GLint;
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
interface WebGLBuffer {
}
declare var WebGLBuffer: {
prototype: WebGLBuffer;
new(): WebGLBuffer;
};
/** 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. */
interface WebGLContextEvent extends Event {
readonly statusMessage: string;
}
declare var WebGLContextEvent: {
prototype: WebGLContextEvent;
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};
/** 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). */
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}
declare var WebGLRenderingContext: {
prototype: WebGLRenderingContext;
new(): WebGLRenderingContext;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGLRenderingContextBase {
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
readonly drawingBufferHeight: GLsizei;
readonly drawingBufferWidth: GLsizei;
activeTexture(texture: GLenum): void;
attachShader(program: WebGLProgram, shader: WebGLShader): void;
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
blendEquation(mode: GLenum): void;
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
checkFramebufferStatus(target: GLenum): GLenum;
clear(mask: GLbitfield): void;
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
clearDepth(depth: GLclampf): void;
clearStencil(s: GLint): void;
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
compileShader(shader: WebGLShader): void;
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createBuffer(): WebGLBuffer | null;
createFramebuffer(): WebGLFramebuffer | null;
createProgram(): WebGLProgram | null;
createRenderbuffer(): WebGLRenderbuffer | null;
createShader(type: GLenum): WebGLShader | null;
createTexture(): WebGLTexture | null;
cullFace(mode: GLenum): void;
deleteBuffer(buffer: WebGLBuffer | null): void;
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
deleteProgram(program: WebGLProgram | null): void;
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
deleteShader(shader: WebGLShader | null): void;
deleteTexture(texture: WebGLTexture | null): void;
depthFunc(func: GLenum): void;
depthMask(flag: GLboolean): void;
depthRange(zNear: GLclampf, zFar: GLclampf): void;
detachShader(program: WebGLProgram, shader: WebGLShader): void;
disable(cap: GLenum): void;
disableVertexAttribArray(index: GLuint): void;
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
enable(cap: GLenum): void;
enableVertexAttribArray(index: GLuint): void;
finish(): void;
flush(): void;
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
frontFace(mode: GLenum): void;
generateMipmap(target: GLenum): void;
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
getAttribLocation(program: WebGLProgram, name: string): GLint;
getBufferParameter(target: GLenum, pname: GLenum): any;
getContextAttributes(): WebGLContextAttributes | null;
getError(): GLenum;
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
getExtension(name: string): any;
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
getParameter(pname: GLenum): any;
getProgramInfoLog(program: WebGLProgram): string | null;
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
getShaderInfoLog(shader: WebGLShader): string | null;
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
getShaderSource(shader: WebGLShader): string | null;
getSupportedExtensions(): string[] | null;
getTexParameter(target: GLenum, pname: GLenum): any;
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
getVertexAttrib(index: GLuint, pname: GLenum): any;
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
hint(target: GLenum, mode: GLenum): void;
isBuffer(buffer: WebGLBuffer | null): GLboolean;
isContextLost(): boolean;
isEnabled(cap: GLenum): GLboolean;
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
isProgram(program: WebGLProgram | null): GLboolean;
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
isShader(shader: WebGLShader | null): GLboolean;
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
linkProgram(program: WebGLProgram): void;
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
polygonOffset(factor: GLfloat, units: GLfloat): void;
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
sampleCoverage(value: GLclampf, invert: GLboolean): void;
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
shaderSource(shader: WebGLShader, source: string): void;
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
stencilMask(mask: GLuint): void;
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
useProgram(program: WebGLProgram | null): void;
validateProgram(program: WebGLProgram): void;
vertexAttrib1f(index: GLuint, x: GLfloat): void;
vertexAttrib1fv(index: GLuint, values: Float32List): void;
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
vertexAttrib2fv(index: GLuint, values: Float32List): void;
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
vertexAttrib3fv(index: GLuint, values: Float32List): void;
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
vertexAttrib4fv(index: GLuint, values: Float32List): void;
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
}
interface WebGLRenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
interface WebGLSampler {
}
declare var WebGLSampler: {
prototype: WebGLSampler;
new(): WebGLSampler;
};
/** 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. */
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
interface WebGLShaderPrecisionFormat {
readonly precision: GLint;
readonly rangeMax: GLint;
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
*
* Can be set, to change how binary data is returned. The default is "blob".
*/
binaryType: BinaryType;
/**
* 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.
*
* 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.)
*/
readonly bufferedAmount: number;
/** Returns the extensions selected by the server, if any. */
readonly extensions: string;
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
onerror: ((this: WebSocket, ev: Event) => any) | null;
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
onopen: ((this: WebSocket, ev: Event) => any) | null;
/** 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. */
readonly protocol: string;
/** Returns the state of the WebSocket object's connection. It can have the values described below. */
readonly readyState: number;
/** Returns the URL that was used to establish the WebSocket connection. */
readonly url: string;
/** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
close(code?: number, reason?: string): void;
/** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WebSocket: {
prototype: WebSocket;
new(url: string | URL, protocols?: string | string[]): WebSocket;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
};
/** Events that occur due to the user moving a mouse wheel or similar input device. */
interface WheelEvent extends MouseEvent {
readonly deltaMode: number;
readonly deltaX: number;
readonly deltaY: number;
readonly deltaZ: number;
readonly DOM_DELTA_PIXEL: 0x00;
readonly DOM_DELTA_LINE: 0x01;
readonly DOM_DELTA_PAGE: 0x02;
}
declare var WheelEvent: {
prototype: WheelEvent;
new(type: string, eventInitDict?: WheelEventInit): WheelEvent;
readonly DOM_DELTA_PIXEL: 0x00;
readonly DOM_DELTA_LINE: 0x01;
readonly DOM_DELTA_PAGE: 0x02;
};
interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
"DOMContentLoaded": Event;
"devicemotion": DeviceMotionEvent;
"deviceorientation": DeviceOrientationEvent;
"gamepadconnected": GamepadEvent;
"gamepaddisconnected": GamepadEvent;
"orientationchange": Event;
}
/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
/** @deprecated This is a legacy alias of \`navigator\`. */
readonly clientInformation: Navigator;
/** Returns true if the window has been closed, false otherwise. */
readonly closed: boolean;
/** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */
readonly customElements: CustomElementRegistry;
readonly devicePixelRatio: number;
readonly document: Document;
/** @deprecated */
readonly event: Event | undefined;
/** @deprecated */
readonly external: External;
readonly frameElement: Element | null;
readonly frames: WindowProxy;
readonly history: History;
readonly innerHeight: number;
readonly innerWidth: number;
readonly length: number;
get location(): Location;
set location(href: string | Location);
/** Returns true if the location bar is visible; otherwise, returns false. */
readonly locationbar: BarProp;
/** Returns true if the menu bar is visible; otherwise, returns false. */
readonly menubar: BarProp;
name: string;
readonly navigator: Navigator;
/** Available only in secure contexts. */
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
/** Available only in secure contexts. */
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/** @deprecated */
onorientationchange: ((this: Window, ev: Event) => any) | null;
opener: any;
/** @deprecated */
readonly orientation: number;
readonly outerHeight: number;
readonly outerWidth: number;
/** @deprecated This is a legacy alias of \`scrollX\`. */
readonly pageXOffset: number;
/** @deprecated This is a legacy alias of \`scrollY\`. */
readonly pageYOffset: number;
/**
* Refers to either the parent WindowProxy, or itself.
*
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
*/
readonly parent: WindowProxy;
/** Returns true if the personal bar is visible; otherwise, returns false. */
readonly personalbar: BarProp;
readonly screen: Screen;
readonly screenLeft: number;
readonly screenTop: number;
readonly screenX: number;
readonly screenY: number;
readonly scrollX: number;
readonly scrollY: number;
/** Returns true if the scrollbars are visible; otherwise, returns false. */
readonly scrollbars: BarProp;
readonly self: Window & typeof globalThis;
readonly speechSynthesis: SpeechSynthesis;
/** @deprecated */
status: string;
/** Returns true if the status bar is visible; otherwise, returns false. */
readonly statusbar: BarProp;
/** Returns true if the toolbar is visible; otherwise, returns false. */
readonly toolbar: BarProp;
readonly top: WindowProxy | null;
readonly visualViewport: VisualViewport | null;
readonly window: Window & typeof globalThis;
alert(message?: any): void;
blur(): void;
cancelIdleCallback(handle: number): void;
/** @deprecated */
captureEvents(): void;
/** Closes the window. */
close(): void;
confirm(message?: string): boolean;
/** Moves the focus to the window's browsing context, if any. */
focus(): void;
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
getSelection(): Selection | null;
matchMedia(query: string): MediaQueryList;
moveBy(x: number, y: number): void;
moveTo(x: number, y: number): void;
open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* 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.
*
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* 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.
*
* 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 "*".
*
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
*/
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
postMessage(message: any, options?: WindowPostMessageOptions): void;
print(): void;
prompt(message?: string, _default?: string): string | null;
/** @deprecated */
releaseEvents(): void;
requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
resizeBy(x: number, y: number): void;
resizeTo(width: number, height: number): void;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/** Cancels the document load. */
stop(): void;
addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: Window;
}
declare var Window: {
prototype: Window;
new(): Window;
};
interface WindowEventHandlersEventMap {
"afterprint": Event;
"beforeprint": Event;
"beforeunload": BeforeUnloadEvent;
"gamepadconnected": GamepadEvent;
"gamepaddisconnected": GamepadEvent;
"hashchange": HashChangeEvent;
"languagechange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
"offline": Event;
"online": Event;
"pagehide": PageTransitionEvent;
"pageshow": PageTransitionEvent;
"popstate": PopStateEvent;
"rejectionhandled": PromiseRejectionEvent;
"storage": StorageEvent;
"unhandledrejection": PromiseRejectionEvent;
"unload": Event;
}
interface WindowEventHandlers {
onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface WindowLocalStorage {
readonly localStorage: Storage;
}
interface WindowOrWorkerGlobalScope {
/** Available only in secure contexts. */
readonly caches: CacheStorage;
readonly crossOriginIsolated: boolean;
readonly crypto: Crypto;
readonly indexedDB: IDBFactory;
readonly isSecureContext: boolean;
readonly origin: string;
readonly performance: Performance;
atob(data: string): string;
btoa(data: string): string;
clearInterval(id: number | undefined): void;
clearTimeout(id: number | undefined): void;
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
queueMicrotask(callback: VoidFunction): void;
reportError(e: any): void;
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
structuredClone(value: any, options?: StructuredSerializeOptions): any;
}
interface WindowSessionStorage {
readonly sessionStorage: Storage;
}
interface WorkerEventMap extends AbstractWorkerEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** 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. */
interface Worker extends EventTarget, AbstractWorker {
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
/** 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. */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/** Aborts worker's associated global environment. */
terminate(): void;
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Worker: {
prototype: Worker;
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};
/** Available only in secure contexts. */
interface Worklet {
/**
* 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.
*
* The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".
*
* 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.
*/
addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
}
declare var Worklet: {
prototype: Worklet;
new(): Worklet;
};
/** This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
interface WritableStream<W = any> {
readonly locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<W>;
}
declare var WritableStream: {
prototype: WritableStream;
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};
/** This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
interface WritableStreamDefaultController {
readonly signal: AbortSignal;
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/** 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. */
interface WritableStreamDefaultWriter<W = any> {
readonly closed: Promise<undefined>;
readonly desiredSize: number | null;
readonly ready: Promise<undefined>;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
releaseLock(): void;
write(chunk?: W): Promise<void>;
}
declare var WritableStreamDefaultWriter: {
prototype: WritableStreamDefaultWriter;
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};
/** 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. */
interface XMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLDocument: {
prototype: XMLDocument;
new(): XMLDocument;
};
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
"readystatechange": Event;
}
/** 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. */
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/** Returns client's state. */
readonly readyState: number;
/** Returns the response body. */
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*/
readonly responseText: string;
/**
* Returns the response type.
*
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
*
* When set: setting to "document" is ignored if current global object is not a Window object.
*
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
responseType: XMLHttpRequestResponseType;
readonly responseURL: string;
/**
* Returns the response as document.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
*/
readonly responseXML: Document | null;
readonly status: number;
readonly statusText: string;
/**
* 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).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
timeout: number;
/** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
readonly upload: XMLHttpRequestUpload;
/**
* 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.
*
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*/
withCredentials: boolean;
/** Cancels any network activity. */
abort(): void;
getAllResponseHeaders(): string;
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
*
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
*
* 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.
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*/
send(body?: Document | XMLHttpRequestBodyInit | null): void;
/**
* Combines a header in author request headers.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*/
setRequestHeader(name: string, value: string): void;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequest: {
prototype: XMLHttpRequest;
new(): XMLHttpRequest;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
};
interface XMLHttpRequestEventTargetEventMap {
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
"error": ProgressEvent<XMLHttpRequestEventTarget>;
"load": ProgressEvent<XMLHttpRequestEventTarget>;
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}
interface XMLHttpRequestEventTarget extends EventTarget {
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestEventTarget: {
prototype: XMLHttpRequestEventTarget;
new(): XMLHttpRequestEventTarget;
};
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestUpload: {
prototype: XMLHttpRequestUpload;
new(): XMLHttpRequestUpload;
};
/** Provides the serializeToString() method to construct an XML string representing a DOM tree. */
interface XMLSerializer {
serializeToString(root: Node): string;
}
declare var XMLSerializer: {
prototype: XMLSerializer;
new(): XMLSerializer;
};
/** The\xA0XPathEvaluator interface allows to compile and evaluate XPath expressions. */
interface XPathEvaluator extends XPathEvaluatorBase {
}
declare var XPathEvaluator: {
prototype: XPathEvaluator;
new(): XPathEvaluator;
};
interface XPathEvaluatorBase {
createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
createNSResolver(nodeResolver: Node): XPathNSResolver;
evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
}
/** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */
interface XPathExpression {
evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;
}
declare var XPathExpression: {
prototype: XPathExpression;
new(): XPathExpression;
};
/** The results generated by evaluating an XPath expression within the context of a given node. */
interface XPathResult {
readonly booleanValue: boolean;
readonly invalidIteratorState: boolean;
readonly numberValue: number;
readonly resultType: number;
readonly singleNodeValue: Node | null;
readonly snapshotLength: number;
readonly stringValue: string;
iterateNext(): Node | null;
snapshotItem(index: number): Node | null;
readonly ANY_TYPE: 0;
readonly NUMBER_TYPE: 1;
readonly STRING_TYPE: 2;
readonly BOOLEAN_TYPE: 3;
readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
readonly ORDERED_NODE_ITERATOR_TYPE: 5;
readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
readonly ANY_UNORDERED_NODE_TYPE: 8;
readonly FIRST_ORDERED_NODE_TYPE: 9;
}
declare var XPathResult: {
prototype: XPathResult;
new(): XPathResult;
readonly ANY_TYPE: 0;
readonly NUMBER_TYPE: 1;
readonly STRING_TYPE: 2;
readonly BOOLEAN_TYPE: 3;
readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
readonly ORDERED_NODE_ITERATOR_TYPE: 5;
readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
readonly ANY_UNORDERED_NODE_TYPE: 8;
readonly FIRST_ORDERED_NODE_TYPE: 9;
};
/** 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. */
interface XSLTProcessor {
clearParameters(): void;
getParameter(namespaceURI: string | null, localName: string): any;
importStylesheet(style: Node): void;
removeParameter(namespaceURI: string | null, localName: string): void;
reset(): void;
setParameter(namespaceURI: string | null, localName: string, value: any): void;
transformToDocument(source: Node): Document;
transformToFragment(source: Node, output: Document): DocumentFragment;
}
declare var XSLTProcessor: {
prototype: XSLTProcessor;
new(): XSLTProcessor;
};
interface Console {
assert(condition?: boolean, ...data: any[]): void;
clear(): void;
count(label?: string): void;
countReset(label?: string): void;
debug(...data: any[]): void;
dir(item?: any, options?: any): void;
dirxml(...data: any[]): void;
error(...data: any[]): void;
group(...data: any[]): void;
groupCollapsed(...data: any[]): void;
groupEnd(): void;
info(...data: any[]): void;
log(...data: any[]): void;
table(tabularData?: any, properties?: string[]): void;
time(label?: string): void;
timeEnd(label?: string): void;
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
trace(...data: any[]): void;
warn(...data: any[]): void;
}
declare var console: Console;
/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
declare namespace CSS {
function escape(ident: string): string;
function supports(property: string, value: string): boolean;
function supports(conditionText: string): boolean;
}
declare namespace WebAssembly {
interface CompileError extends Error {
}
var CompileError: {
prototype: CompileError;
new(message?: string): CompileError;
(message?: string): CompileError;
};
interface Global {
value: any;
valueOf(): any;
}
var Global: {
prototype: Global;
new(descriptor: GlobalDescriptor, v?: any): Global;
};
interface Instance {
readonly exports: Exports;
}
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
interface LinkError extends Error {
}
var LinkError: {
prototype: LinkError;
new(message?: string): LinkError;
(message?: string): LinkError;
};
interface Memory {
readonly buffer: ArrayBuffer;
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
exports(moduleObject: Module): ModuleExportDescriptor[];
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(message?: string): RuntimeError;
(message?: string): RuntimeError;
};
interface Table {
readonly length: number;
get(index: number): any;
grow(delta: number, value?: any): number;
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor {
mutable?: boolean;
value: ValueType;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
shared?: boolean;
}
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type Imports = Record<string, ModuleImports>;
type ModuleImports = Record<string, ImportValue>;
function compile(bytes: BufferSource): Promise<Module>;
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function validate(bytes: BufferSource): boolean;
}
interface BlobCallback {
(blob: Blob | null): void;
}
interface CustomElementConstructor {
new (...params: any[]): HTMLElement;
}
interface DecodeErrorCallback {
(error: DOMException): void;
}
interface DecodeSuccessCallback {
(decodedData: AudioBuffer): void;
}
interface ErrorCallback {
(err: DOMException): void;
}
interface FileCallback {
(file: File): void;
}
interface FileSystemEntriesCallback {
(entries: FileSystemEntry[]): void;
}
interface FileSystemEntryCallback {
(entry: FileSystemEntry): void;
}
interface FrameRequestCallback {
(time: DOMHighResTimeStamp): void;
}
interface FunctionStringCallback {
(data: string): void;
}
interface IdleRequestCallback {
(deadline: IdleDeadline): void;
}
interface IntersectionObserverCallback {
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
}
interface LockGrantedCallback {
(lock: Lock | null): any;
}
interface MediaSessionActionHandler {
(details: MediaSessionActionDetails): void;
}
interface MutationCallback {
(mutations: MutationRecord[], observer: MutationObserver): void;
}
interface NotificationPermissionCallback {
(permission: NotificationPermission): void;
}
interface OnBeforeUnloadEventHandlerNonNull {
(event: Event): string | null;
}
interface OnErrorEventHandlerNonNull {
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}
interface PerformanceObserverCallback {
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}
interface PositionCallback {
(position: GeolocationPosition): void;
}
interface PositionErrorCallback {
(positionError: GeolocationPositionError): void;
}
interface QueuingStrategySize<T = any> {
(chunk: T): number;
}
interface RTCPeerConnectionErrorCallback {
(error: DOMException): void;
}
interface RTCSessionDescriptionCallback {
(description: RTCSessionDescriptionInit): void;
}
interface RemotePlaybackAvailabilityCallback {
(available: boolean): void;
}
interface ResizeObserverCallback {
(entries: ResizeObserverEntry[], observer: ResizeObserver): void;
}
interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformerStartCallback<O> {
(controller: TransformStreamDefaultController<O>): any;
}
interface TransformerTransformCallback<I, O> {
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface UnderlyingSinkAbortCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSinkCloseCallback {
(): void | PromiseLike<void>;
}
interface UnderlyingSinkStartCallback {
(controller: WritableStreamDefaultController): any;
}
interface UnderlyingSinkWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface UnderlyingSourceCancelCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSourcePullCallback<R> {
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
}
interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}
interface VideoFrameRequestCallback {
(now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;
}
interface VoidFunction {
(): void;
}
interface HTMLElementTagNameMap {
"a": HTMLAnchorElement;
"abbr": HTMLElement;
"address": HTMLElement;
"area": HTMLAreaElement;
"article": HTMLElement;
"aside": HTMLElement;
"audio": HTMLAudioElement;
"b": HTMLElement;
"base": HTMLBaseElement;
"bdi": HTMLElement;
"bdo": HTMLElement;
"blockquote": HTMLQuoteElement;
"body": HTMLBodyElement;
"br": HTMLBRElement;
"button": HTMLButtonElement;
"canvas": HTMLCanvasElement;
"caption": HTMLTableCaptionElement;
"cite": HTMLElement;
"code": HTMLElement;
"col": HTMLTableColElement;
"colgroup": HTMLTableColElement;
"data": HTMLDataElement;
"datalist": HTMLDataListElement;
"dd": HTMLElement;
"del": HTMLModElement;
"details": HTMLDetailsElement;
"dfn": HTMLElement;
"dialog": HTMLDialogElement;
"div": HTMLDivElement;
"dl": HTMLDListElement;
"dt": HTMLElement;
"em": HTMLElement;
"embed": HTMLEmbedElement;
"fieldset": HTMLFieldSetElement;
"figcaption": HTMLElement;
"figure": HTMLElement;
"footer": HTMLElement;
"form": HTMLFormElement;
"h1": HTMLHeadingElement;
"h2": HTMLHeadingElement;
"h3": HTMLHeadingElement;
"h4": HTMLHeadingElement;
"h5": HTMLHeadingElement;
"h6": HTMLHeadingElement;
"head": HTMLHeadElement;
"header": HTMLElement;
"hgroup": HTMLElement;
"hr": HTMLHRElement;
"html": HTMLHtmlElement;
"i": HTMLElement;
"iframe": HTMLIFrameElement;
"img": HTMLImageElement;
"input": HTMLInputElement;
"ins": HTMLModElement;
"kbd": HTMLElement;
"label": HTMLLabelElement;
"legend": HTMLLegendElement;
"li": HTMLLIElement;
"link": HTMLLinkElement;
"main": HTMLElement;
"map": HTMLMapElement;
"mark": HTMLElement;
"menu": HTMLMenuElement;
"meta": HTMLMetaElement;
"meter": HTMLMeterElement;
"nav": HTMLElement;
"noscript": HTMLElement;
"object": HTMLObjectElement;
"ol": HTMLOListElement;
"optgroup": HTMLOptGroupElement;
"option": HTMLOptionElement;
"output": HTMLOutputElement;
"p": HTMLParagraphElement;
"picture": HTMLPictureElement;
"pre": HTMLPreElement;
"progress": HTMLProgressElement;
"q": HTMLQuoteElement;
"rp": HTMLElement;
"rt": HTMLElement;
"ruby": HTMLElement;
"s": HTMLElement;
"samp": HTMLElement;
"script": HTMLScriptElement;
"section": HTMLElement;
"select": HTMLSelectElement;
"slot": HTMLSlotElement;
"small": HTMLElement;
"source": HTMLSourceElement;
"span": HTMLSpanElement;
"strong": HTMLElement;
"style": HTMLStyleElement;
"sub": HTMLElement;
"summary": HTMLElement;
"sup": HTMLElement;
"table": HTMLTableElement;
"tbody": HTMLTableSectionElement;
"td": HTMLTableCellElement;
"template": HTMLTemplateElement;
"textarea": HTMLTextAreaElement;
"tfoot": HTMLTableSectionElement;
"th": HTMLTableCellElement;
"thead": HTMLTableSectionElement;
"time": HTMLTimeElement;
"title": HTMLTitleElement;
"tr": HTMLTableRowElement;
"track": HTMLTrackElement;
"u": HTMLElement;
"ul": HTMLUListElement;
"var": HTMLElement;
"video": HTMLVideoElement;
"wbr": HTMLElement;
}
interface HTMLElementDeprecatedTagNameMap {
"acronym": HTMLElement;
"applet": HTMLUnknownElement;
"basefont": HTMLElement;
"bgsound": HTMLUnknownElement;
"big": HTMLElement;
"blink": HTMLUnknownElement;
"center": HTMLElement;
"dir": HTMLDirectoryElement;
"font": HTMLFontElement;
"frame": HTMLFrameElement;
"frameset": HTMLFrameSetElement;
"isindex": HTMLUnknownElement;
"keygen": HTMLUnknownElement;
"listing": HTMLPreElement;
"marquee": HTMLMarqueeElement;
"menuitem": HTMLElement;
"multicol": HTMLUnknownElement;
"nextid": HTMLUnknownElement;
"nobr": HTMLElement;
"noembed": HTMLElement;
"noframes": HTMLElement;
"param": HTMLParamElement;
"plaintext": HTMLElement;
"rb": HTMLElement;
"rtc": HTMLElement;
"spacer": HTMLUnknownElement;
"strike": HTMLElement;
"tt": HTMLElement;
"xmp": HTMLPreElement;
}
interface SVGElementTagNameMap {
"a": SVGAElement;
"animate": SVGAnimateElement;
"animateMotion": SVGAnimateMotionElement;
"animateTransform": SVGAnimateTransformElement;
"circle": SVGCircleElement;
"clipPath": SVGClipPathElement;
"defs": SVGDefsElement;
"desc": SVGDescElement;
"ellipse": SVGEllipseElement;
"feBlend": SVGFEBlendElement;
"feColorMatrix": SVGFEColorMatrixElement;
"feComponentTransfer": SVGFEComponentTransferElement;
"feComposite": SVGFECompositeElement;
"feConvolveMatrix": SVGFEConvolveMatrixElement;
"feDiffuseLighting": SVGFEDiffuseLightingElement;
"feDisplacementMap": SVGFEDisplacementMapElement;
"feDistantLight": SVGFEDistantLightElement;
"feDropShadow": SVGFEDropShadowElement;
"feFlood": SVGFEFloodElement;
"feFuncA": SVGFEFuncAElement;
"feFuncB": SVGFEFuncBElement;
"feFuncG": SVGFEFuncGElement;
"feFuncR": SVGFEFuncRElement;
"feGaussianBlur": SVGFEGaussianBlurElement;
"feImage": SVGFEImageElement;
"feMerge": SVGFEMergeElement;
"feMergeNode": SVGFEMergeNodeElement;
"feMorphology": SVGFEMorphologyElement;
"feOffset": SVGFEOffsetElement;
"fePointLight": SVGFEPointLightElement;
"feSpecularLighting": SVGFESpecularLightingElement;
"feSpotLight": SVGFESpotLightElement;
"feTile": SVGFETileElement;
"feTurbulence": SVGFETurbulenceElement;
"filter": SVGFilterElement;
"foreignObject": SVGForeignObjectElement;
"g": SVGGElement;
"image": SVGImageElement;
"line": SVGLineElement;
"linearGradient": SVGLinearGradientElement;
"marker": SVGMarkerElement;
"mask": SVGMaskElement;
"metadata": SVGMetadataElement;
"mpath": SVGMPathElement;
"path": SVGPathElement;
"pattern": SVGPatternElement;
"polygon": SVGPolygonElement;
"polyline": SVGPolylineElement;
"radialGradient": SVGRadialGradientElement;
"rect": SVGRectElement;
"script": SVGScriptElement;
"set": SVGSetElement;
"stop": SVGStopElement;
"style": SVGStyleElement;
"svg": SVGSVGElement;
"switch": SVGSwitchElement;
"symbol": SVGSymbolElement;
"text": SVGTextElement;
"textPath": SVGTextPathElement;
"title": SVGTitleElement;
"tspan": SVGTSpanElement;
"use": SVGUseElement;
"view": SVGViewElement;
}
interface MathMLElementTagNameMap {
"annotation": MathMLElement;
"annotation-xml": MathMLElement;
"maction": MathMLElement;
"math": MathMLElement;
"merror": MathMLElement;
"mfrac": MathMLElement;
"mi": MathMLElement;
"mmultiscripts": MathMLElement;
"mn": MathMLElement;
"mo": MathMLElement;
"mover": MathMLElement;
"mpadded": MathMLElement;
"mphantom": MathMLElement;
"mprescripts": MathMLElement;
"mroot": MathMLElement;
"mrow": MathMLElement;
"ms": MathMLElement;
"mspace": MathMLElement;
"msqrt": MathMLElement;
"mstyle": MathMLElement;
"msub": MathMLElement;
"msubsup": MathMLElement;
"msup": MathMLElement;
"mtable": MathMLElement;
"mtd": MathMLElement;
"mtext": MathMLElement;
"mtr": MathMLElement;
"munder": MathMLElement;
"munderover": MathMLElement;
"semantics": MathMLElement;
}
/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;
declare var Audio: {
new(src?: string): HTMLAudioElement;
};
declare var Image: {
new(width?: number, height?: number): HTMLImageElement;
};
declare var Option: {
new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
};
/** @deprecated This is a legacy alias of \`navigator\`. */
declare var clientInformation: Navigator;
/** Returns true if the window has been closed, false otherwise. */
declare var closed: boolean;
/** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */
declare var customElements: CustomElementRegistry;
declare var devicePixelRatio: number;
declare var document: Document;
/** @deprecated */
declare var event: Event | undefined;
/** @deprecated */
declare var external: External;
declare var frameElement: Element | null;
declare var frames: WindowProxy;
declare var history: History;
declare var innerHeight: number;
declare var innerWidth: number;
declare var length: number;
declare var location: Location;
/** Returns true if the location bar is visible; otherwise, returns false. */
declare var locationbar: BarProp;
/** Returns true if the menu bar is visible; otherwise, returns false. */
declare var menubar: BarProp;
/** @deprecated */
declare const name: void;
declare var navigator: Navigator;
/** Available only in secure contexts. */
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
/** Available only in secure contexts. */
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/** @deprecated */
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
declare var opener: any;
/** @deprecated */
declare var orientation: number;
declare var outerHeight: number;
declare var outerWidth: number;
/** @deprecated This is a legacy alias of \`scrollX\`. */
declare var pageXOffset: number;
/** @deprecated This is a legacy alias of \`scrollY\`. */
declare var pageYOffset: number;
/**
* Refers to either the parent WindowProxy, or itself.
*
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
*/
declare var parent: WindowProxy;
/** Returns true if the personal bar is visible; otherwise, returns false. */
declare var personalbar: BarProp;
declare var screen: Screen;
declare var screenLeft: number;
declare var screenTop: number;
declare var screenX: number;
declare var screenY: number;
declare var scrollX: number;
declare var scrollY: number;
/** Returns true if the scrollbars are visible; otherwise, returns false. */
declare var scrollbars: BarProp;
declare var self: Window & typeof globalThis;
declare var speechSynthesis: SpeechSynthesis;
/** @deprecated */
declare var status: string;
/** Returns true if the status bar is visible; otherwise, returns false. */
declare var statusbar: BarProp;
/** Returns true if the toolbar is visible; otherwise, returns false. */
declare var toolbar: BarProp;
declare var top: WindowProxy | null;
declare var visualViewport: VisualViewport | null;
declare var window: Window & typeof globalThis;
declare function alert(message?: any): void;
declare function blur(): void;
declare function cancelIdleCallback(handle: number): void;
/** @deprecated */
declare function captureEvents(): void;
/** Closes the window. */
declare function close(): void;
declare function confirm(message?: string): boolean;
/** Moves the focus to the window's browsing context, if any. */
declare function focus(): void;
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
declare function getSelection(): Selection | null;
declare function matchMedia(query: string): MediaQueryList;
declare function moveBy(x: number, y: number): void;
declare function moveTo(x: number, y: number): void;
declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* 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.
*
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* 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.
*
* 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 "*".
*
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
*/
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
declare function print(): void;
declare function prompt(message?: string, _default?: string): string | null;
/** @deprecated */
declare function releaseEvents(): void;
declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
declare function resizeBy(x: number, y: number): void;
declare function resizeTo(width: number, height: number): void;
declare function scroll(options?: ScrollToOptions): void;
declare function scroll(x: number, y: number): void;
declare function scrollBy(options?: ScrollToOptions): void;
declare function scrollBy(x: number, y: number): void;
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollTo(x: number, y: number): void;
/** Cancels the document load. */
declare function stop(): void;
declare function toString(): string;
/** 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. */
declare function dispatchEvent(event: Event): boolean;
declare function cancelAnimationFrame(handle: number): void;
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
/**
* Fires when the user aborts the download.
* @param ev The event.
*/
declare var onabort: ((this: Window, ev: UIEvent) => any) | null;
declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*/
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
declare var oncancel: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*/
declare var oncanplay: ((this: Window, ev: Event) => any) | null;
declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*/
declare var onchange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*/
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
declare var onclose: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*/
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
declare var oncuechange: ((this: Window, ev: Event) => any) | null;
declare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*/
declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*/
declare var ondrag: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user releases the mouse at the close of a drag operation.
* @param ev The event.
*/
declare var ondragend: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target element when the user drags the object to a valid drop target.
* @param ev The drag event.
*/
declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
*/
declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target element continuously while the user drags the object over a valid drop target.
* @param ev The event.
*/
declare var ondragover: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user starts to drag a text selection or selected object.
* @param ev The event.
*/
declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;
declare var ondrop: ((this: Window, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*/
declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*/
declare var onemptied: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*/
declare var onended: ((this: Window, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*/
declare var onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*/
declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
declare var oninput: ((this: Window, ev: Event) => any) | null;
declare var oninvalid: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*/
declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*/
declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*/
declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*/
declare var onload: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*/
declare var onloadeddata: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*/
declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*/
declare var onloadstart: ((this: Window, ev: Event) => any) | null;
declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*/
declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;
declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;
declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*/
declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*/
declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*/
declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*/
declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
declare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*/
declare var onpause: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*/
declare var onplay: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*/
declare var onplaying: ((this: Window, ev: Event) => any) | null;
declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*/
declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*/
declare var onratechange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*/
declare var onreset: ((this: Window, ev: Event) => any) | null;
declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*/
declare var onscroll: ((this: Window, ev: Event) => any) | null;
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*/
declare var onseeked: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*/
declare var onseeking: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*/
declare var onselect: ((this: Window, ev: Event) => any) | null;
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
declare var onslotchange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*/
declare var onstalled: ((this: Window, ev: Event) => any) | null;
declare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*/
declare var onsuspend: ((this: Window, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*/
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*/
declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*/
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationend\`. */
declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationiteration\`. */
declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationstart\`. */
declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`ontransitionend\`. */
declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
declare var onafterprint: ((this: Window, ev: Event) => any) | null;
declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
declare var onoffline: ((this: Window, ev: Event) => any) | null;
declare var ononline: ((this: Window, ev: Event) => any) | null;
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
declare var onunload: ((this: Window, ev: Event) => any) | null;
declare var localStorage: Storage;
/** Available only in secure contexts. */
declare var caches: CacheStorage;
declare var crossOriginIsolated: boolean;
declare var crypto: Crypto;
declare var indexedDB: IDBFactory;
declare var isSecureContext: boolean;
declare var origin: string;
declare var performance: Performance;
declare function atob(data: string): string;
declare function btoa(data: string): string;
declare function clearInterval(id: number | undefined): void;
declare function clearTimeout(id: number | undefined): void;
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
declare function queueMicrotask(callback: VoidFunction): void;
declare function reportError(e: any): void;
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
declare var sessionStorage: Storage;
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
type COSEAlgorithmIdentifier = number;
type CSSNumberish = number;
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
type ClipboardItemData = Promise<string | Blob>;
type ClipboardItems = ClipboardItem[];
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
type ConstrainDouble = number | ConstrainDoubleRange;
type ConstrainULong = number | ConstrainULongRange;
type DOMHighResTimeStamp = number;
type EpochTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type Float32List = Float32Array | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type Int32List = Int32Array | GLint[];
type LineAndPositionSetting = number | AutoKeyword;
type MediaProvider = MediaStream | MediaSource | Blob;
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
type MutationRecordType = "attributes" | "characterData" | "childList";
type NamedCurve = string;
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type PerformanceEntryList = PerformanceEntry[];
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;
type TimerHandler = string | Function;
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
type Uint32List = Uint32Array | GLuint[];
type VibratePattern = number | number[];
type WindowProxy = Window;
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlignSetting = "center" | "end" | "left" | "right" | "start";
type AnimationPlayState = "finished" | "idle" | "paused" | "running";
type AnimationReplaceState = "active" | "persisted" | "removed";
type AppendMode = "segments" | "sequence";
type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
type AudioContextState = "closed" | "running" | "suspended";
type AuthenticatorAttachment = "cross-platform" | "platform";
type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
type AutoKeyword = "auto";
type AutomationRate = "a-rate" | "k-rate";
type BinaryType = "arraybuffer" | "blob";
type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
type CanPlayTypeResult = "" | "maybe" | "probably";
type CanvasDirection = "inherit" | "ltr" | "rtl";
type CanvasFillRule = "evenodd" | "nonzero";
type CanvasFontKerning = "auto" | "none" | "normal";
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "bevel" | "miter" | "round";
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
type ChannelCountMode = "clamped-max" | "explicit" | "max";
type ChannelInterpretation = "discrete" | "speakers";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type CompositeOperation = "accumulate" | "add" | "replace";
type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
type CredentialMediationRequirement = "optional" | "required" | "silent";
type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
type DirectionSetting = "" | "lr" | "rl";
type DisplayCaptureSurfaceType = "browser" | "monitor" | "window";
type DistanceModelType = "exponential" | "inverse" | "linear";
type DocumentReadyState = "complete" | "interactive" | "loading";
type DocumentVisibilityState = "hidden" | "visible";
type EndOfStreamError = "decode" | "network";
type EndingType = "native" | "transparent";
type FileSystemHandleKind = "directory" | "file";
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FullscreenNavigationUI = "auto" | "hide" | "show";
type GamepadHapticActuatorType = "vibration";
type GamepadMappingType = "" | "standard" | "xr-standard";
type 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";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionDurability = "default" | "relaxed" | "strict";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "from-image";
type ImageSmoothingQuality = "high" | "low" | "medium";
type InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend";
type IterationCompositeOperation = "accumulate" | "replace";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type LineAlignSetting = "center" | "end" | "start";
type LockMode = "exclusive" | "shared";
type MIDIPortConnectionState = "closed" | "open" | "pending";
type MIDIPortDeviceState = "connected" | "disconnected";
type MIDIPortType = "input" | "output";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
type MediaEncodingType = "record" | "webrtc";
type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";
type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";
type MediaKeySessionType = "persistent-license" | "temporary";
type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";
type MediaKeysRequirement = "not-allowed" | "optional" | "required";
type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
type MediaSessionPlaybackState = "none" | "paused" | "playing";
type MediaStreamTrackState = "ended" | "live";
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
type OverSampleType = "2x" | "4x" | "none";
type PanningModelType = "HRTF" | "equalpower";
type PaymentComplete = "fail" | "success" | "unknown";
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
type PermissionState = "denied" | "granted" | "prompt";
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PresentationStyle = "attachment" | "inline" | "unspecified";
type PublicKeyCredentialType = "public-key";
type PushEncryptionKeyName = "auth" | "p256dh";
type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";
type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
type RTCIceComponent = "rtcp" | "rtp";
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCIceGathererState = "complete" | "gathering" | "new";
type RTCIceGatheringState = "complete" | "gathering" | "new";
type RTCIceProtocol = "tcp" | "udp";
type RTCIceTcpCandidateType = "active" | "passive" | "so";
type RTCIceTransportPolicy = "all" | "relay";
type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
type RTCPriorityType = "high" | "low" | "medium" | "very-low";
type RTCRtcpMuxPolicy = "require";
type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
type RTCSctpTransportState = "closed" | "connected" | "connecting";
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
type ReadableStreamReaderMode = "byob";
type ReadableStreamType = "bytes";
type ReadyState = "closed" | "ended" | "open";
type RecordingState = "inactive" | "paused" | "recording";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RemotePlaybackState = "connected" | "connecting" | "disconnected";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestRedirect = "error" | "follow" | "manual";
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type ScrollBehavior = "auto" | "smooth";
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
type ScrollRestoration = "auto" | "manual";
type ScrollSetting = "" | "up";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type SelectionMode = "end" | "preserve" | "select" | "start";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type ShadowRootMode = "closed" | "open";
type SlotAssignmentMode = "manual" | "named";
type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
type TextTrackMode = "disabled" | "hidden" | "showing";
type TouchType = "direct" | "stylus";
type TransferFunction = "hlg" | "pq" | "srgb";
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WorkerType = "classic" | "module";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`,ya["lib.dom.iterable.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window Iterable APIs
/////////////////////////////
interface AudioParam {
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
}
interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
}
interface BaseAudioContext {
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
}
interface CSSKeyframesRule {
[Symbol.iterator](): IterableIterator<CSSKeyframeRule>;
}
interface CSSRuleList {
[Symbol.iterator](): IterableIterator<CSSRule>;
}
interface CSSStyleDeclaration {
[Symbol.iterator](): IterableIterator<string>;
}
interface Cache {
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface CanvasPath {
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}
interface CanvasPathDrawingStyles {
setLineDash(segments: Iterable<number>): void;
}
interface DOMRectList {
[Symbol.iterator](): IterableIterator<DOMRect>;
}
interface DOMStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface DOMTokenList {
[Symbol.iterator](): IterableIterator<string>;
entries(): IterableIterator<[number, string]>;
keys(): IterableIterator<number>;
values(): IterableIterator<string>;
}
interface DataTransferItemList {
[Symbol.iterator](): IterableIterator<DataTransferItem>;
}
interface EventCounts extends ReadonlyMap<string, number> {
}
interface FileList {
[Symbol.iterator](): IterableIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormData {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[string, FormDataEntryValue]>;
/** Returns a list of keys in the list. */
keys(): IterableIterator<string>;
/** Returns a list of values in the list. */
values(): IterableIterator<FormDataEntryValue>;
}
interface HTMLAllCollection {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLCollectionBase {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLCollectionOf<T extends Element> {
[Symbol.iterator](): IterableIterator<T>;
}
interface HTMLFormElement {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLSelectElement {
[Symbol.iterator](): IterableIterator<HTMLOptionElement>;
}
interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
entries(): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
keys(): IterableIterator<string>;
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
values(): IterableIterator<string>;
}
interface IDBDatabase {
/** 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. */
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
}
interface IDBObjectStore {
/**
* 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.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
}
interface MIDIOutput {
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
}
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
}
interface MediaKeyStatusMap {
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
keys(): IterableIterator<BufferSource>;
values(): IterableIterator<MediaKeyStatus>;
}
interface MediaList {
[Symbol.iterator](): IterableIterator<string>;
}
interface MessageEvent<T = any> {
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface MimeTypeArray {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface NamedNodeMap {
[Symbol.iterator](): IterableIterator<Attr>;
}
interface Navigator {
/** Available only in secure contexts. */
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
vibrate(pattern: Iterable<number>): boolean;
}
interface NodeList {
[Symbol.iterator](): IterableIterator<Node>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[number, Node]>;
/** Returns an list of keys in the list. */
keys(): IterableIterator<number>;
/** Returns an list of values in the list. */
values(): IterableIterator<Node>;
}
interface NodeListOf<TNode extends Node> {
[Symbol.iterator](): IterableIterator<TNode>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[number, TNode]>;
/** Returns an list of keys in the list. */
keys(): IterableIterator<number>;
/** Returns an list of values in the list. */
values(): IterableIterator<TNode>;
}
interface Plugin {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface PluginArray {
[Symbol.iterator](): IterableIterator<Plugin>;
}
interface RTCRtpTransceiver {
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
}
interface RTCStatsReport extends ReadonlyMap<string, any> {
}
interface SVGLengthList {
[Symbol.iterator](): IterableIterator<SVGLength>;
}
interface SVGNumberList {
[Symbol.iterator](): IterableIterator<SVGNumber>;
}
interface SVGPointList {
[Symbol.iterator](): IterableIterator<DOMPoint>;
}
interface SVGStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface SVGTransformList {
[Symbol.iterator](): IterableIterator<SVGTransform>;
}
interface SourceBufferList {
[Symbol.iterator](): IterableIterator<SourceBuffer>;
}
interface SpeechRecognitionResult {
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
}
interface SpeechRecognitionResultList {
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
}
interface StyleSheetList {
[Symbol.iterator](): IterableIterator<CSSStyleSheet>;
}
interface SubtleCrypto {
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
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>;
}
interface TextTrackCueList {
[Symbol.iterator](): IterableIterator<TextTrackCue>;
}
interface TextTrackList {
[Symbol.iterator](): IterableIterator<TextTrack>;
}
interface TouchList {
[Symbol.iterator](): IterableIterator<Touch>;
}
interface URLSearchParams {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an array of key, value pairs for every entry in the search params. */
entries(): IterableIterator<[string, string]>;
/** Returns a list of keys in the search params. */
keys(): IterableIterator<string>;
/** Returns a list of values in the search params. */
values(): IterableIterator<string>;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WEBGL_multi_draw {
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
}
interface WebGL2RenderingContextBase {
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
drawBuffers(buffers: Iterable<GLenum>): void;
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`,ya["lib.es2015.collection.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Map<K, V> {
clear(): void;
/**
* @returns true if an element in the Map existed and has been removed, or false if the element does not exist.
*/
delete(key: K): boolean;
/**
* Executes a provided function once per each key/value pair in the Map, in insertion order.
*/
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
/**
* 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.
* @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
*/
get(key: K): V | undefined;
/**
* @returns boolean indicating whether an element with the specified key exists or not.
*/
has(key: K): boolean;
/**
* 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.
*/
set(key: K, value: V): this;
/**
* @returns the number of elements in the Map.
*/
readonly size: number;
}
interface MapConstructor {
new(): Map<any, any>;
new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
readonly prototype: Map<any, any>;
}
declare var Map: MapConstructor;
interface ReadonlyMap<K, V> {
forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
get(key: K): V | undefined;
has(key: K): boolean;
readonly size: number;
}
interface WeakMap<K extends object, V> {
/**
* Removes the specified element from the WeakMap.
* @returns true if the element was successfully removed, or false if it was not present.
*/
delete(key: K): boolean;
/**
* @returns a specified element.
*/
get(key: K): V | undefined;
/**
* @returns a boolean indicating whether an element with the specified key exists or not.
*/
has(key: K): boolean;
/**
* Adds a new element with a specified key and value.
* @param key Must be an object.
*/
set(key: K, value: V): this;
}
interface WeakMapConstructor {
new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
readonly prototype: WeakMap<object, any>;
}
declare var WeakMap: WeakMapConstructor;
interface Set<T> {
/**
* Appends a new element with a specified value to the end of the Set.
*/
add(value: T): this;
clear(): void;
/**
* Removes a specified value from the Set.
* @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
*/
delete(value: T): boolean;
/**
* Executes a provided function once per each value in the Set object, in insertion order.
*/
forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
/**
* @returns a boolean indicating whether an element with the specified value exists in the Set or not.
*/
has(value: T): boolean;
/**
* @returns the number of (unique) elements in Set.
*/
readonly size: number;
}
interface SetConstructor {
new <T = any>(values?: readonly T[] | null): Set<T>;
readonly prototype: Set<any>;
}
declare var Set: SetConstructor;
interface ReadonlySet<T> {
forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
has(value: T): boolean;
readonly size: number;
}
interface WeakSet<T extends object> {
/**
* Appends a new object to the end of the WeakSet.
*/
add(value: T): this;
/**
* Removes the specified element from the WeakSet.
* @returns Returns true if the element existed and has been removed, or false if the element does not exist.
*/
delete(value: T): boolean;
/**
* @returns a boolean indicating whether an object exists in the WeakSet or not.
*/
has(value: T): boolean;
}
interface WeakSetConstructor {
new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
readonly prototype: WeakSet<object>;
}
declare var WeakSet: WeakSetConstructor;
`,ya["lib.es2015.core.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: T, start?: number, end?: number): this;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
}
interface ArrayConstructor {
/**
* Creates an array from an array-like object.
* @param arrayLike An array-like object to convert to an array.
*/
from<T>(arrayLike: ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param arrayLike An array-like object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of<T>(...items: T[]): T[];
}
interface DateConstructor {
new (value: number | string | Date): Date;
}
interface Function {
/**
* Returns the name of the function. Function names are read-only and can not be changed.
*/
readonly name: string;
}
interface Math {
/**
* Returns the number of leading zero bits in the 32-bit binary representation of a number.
* @param x A numeric expression.
*/
clz32(x: number): number;
/**
* Returns the result of 32-bit multiplication of two numbers.
* @param x First number
* @param y Second number
*/
imul(x: number, y: number): number;
/**
* Returns the sign of the x, indicating whether x is positive, negative or zero.
* @param x The numeric expression to test
*/
sign(x: number): number;
/**
* Returns the base 10 logarithm of a number.
* @param x A numeric expression.
*/
log10(x: number): number;
/**
* Returns the base 2 logarithm of a number.
* @param x A numeric expression.
*/
log2(x: number): number;
/**
* Returns the natural logarithm of 1 + x.
* @param x A numeric expression.
*/
log1p(x: number): number;
/**
* Returns the result of (e^x - 1), which is an implementation-dependent approximation to
* subtracting 1 from the exponential function of x (e raised to the power of x, where e
* is the base of the natural logarithms).
* @param x A numeric expression.
*/
expm1(x: number): number;
/**
* Returns the hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cosh(x: number): number;
/**
* Returns the hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sinh(x: number): number;
/**
* Returns the hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tanh(x: number): number;
/**
* Returns the inverse hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
acosh(x: number): number;
/**
* Returns the inverse hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
asinh(x: number): number;
/**
* Returns the inverse hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
atanh(x: number): number;
/**
* Returns the square root of the sum of squares of its arguments.
* @param values Values to compute the square root for.
* If no arguments are passed, the result is +0.
* If there is only one argument, the result is the absolute value.
* If any argument is +Infinity or -Infinity, the result is +Infinity.
* If any argument is NaN, the result is NaN.
* If all arguments are either +0 or \u22120, the result is +0.
*/
hypot(...values: number[]): number;
/**
* Returns the integral part of the a numeric expression, x, removing any fractional digits.
* If x is already an integer, the result is x.
* @param x A numeric expression.
*/
trunc(x: number): number;
/**
* Returns the nearest single precision float representation of a number.
* @param x A numeric expression.
*/
fround(x: number): number;
/**
* Returns an implementation-dependent approximation to the cube root of number.
* @param x A numeric expression.
*/
cbrt(x: number): number;
}
interface NumberConstructor {
/**
* The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
* that is representable as a Number value, which is approximately:
* 2.2204460492503130808472633361816 x 10\u200D\u2212\u200D16.
*/
readonly EPSILON: number;
/**
* Returns true if passed value is finite.
* Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
* number. Only finite values of the type number, result in true.
* @param number A numeric value.
*/
isFinite(number: unknown): boolean;
/**
* Returns true if the value passed is an integer, false otherwise.
* @param number A numeric value.
*/
isInteger(number: unknown): boolean;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
* number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
* to a number. Only values of the type number, that are also NaN, result in true.
* @param number A numeric value.
*/
isNaN(number: unknown): boolean;
/**
* Returns true if the value passed is a safe integer.
* @param number A numeric value.
*/
isSafeInteger(number: unknown): boolean;
/**
* The value of the largest integer n such that n and n + 1 are both exactly representable as
* a Number value.
* The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 \u2212 1.
*/
readonly MAX_SAFE_INTEGER: number;
/**
* The value of the smallest integer n such that n and n \u2212 1 are both exactly representable as
* a Number value.
* The value of Number.MIN_SAFE_INTEGER is \u22129007199254740991 (\u2212(2^53 \u2212 1)).
*/
readonly MIN_SAFE_INTEGER: number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
parseFloat(string: string): number;
/**
* Converts A string to an integer.
* @param string A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
parseInt(string: string, radix?: number): number;
}
interface ObjectConstructor {
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source The source object from which to copy properties.
*/
assign<T extends {}, U>(target: T, source: U): T & U;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
*/
assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
* @param source3 The third source object from which to copy properties.
*/
assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param sources One or more source objects from which to copy properties
*/
assign(target: object, ...sources: any[]): any;
/**
* Returns an array of all symbol properties found directly on object o.
* @param o Object to retrieve the symbols from.
*/
getOwnPropertySymbols(o: any): symbol[];
/**
* Returns the names of the enumerable string properties and methods of an object.
* @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.
*/
keys(o: {}): string[];
/**
* Returns true if the values are the same value, false otherwise.
* @param value1 The first value.
* @param value2 The second value.
*/
is(value1: any, value2: any): boolean;
/**
* Sets the prototype of a specified object o to object proto or null. Returns the object o.
* @param o The object to change its prototype.
* @param proto The value of the new prototype or null.
*/
setPrototypeOf(o: any, proto: object | null): any;
}
interface ReadonlyArray<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
}
interface RegExp {
/**
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
* The characters in this string are sequenced and concatenated in the following order:
*
* - "g" for global
* - "i" for ignoreCase
* - "m" for multiline
* - "u" for unicode
* - "y" for sticky
*
* If no flags are set, the value is the empty string.
*/
readonly flags: string;
/**
* Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
* expression. Default is false. Read-only.
*/
readonly sticky: boolean;
/**
* Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
* expression. Default is false. Read-only.
*/
readonly unicode: boolean;
}
interface RegExpConstructor {
new (pattern: RegExp | string, flags?: string): RegExp;
(pattern: RegExp | string, flags?: string): RegExp;
}
interface String {
/**
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
* value of the UTF-16 encoded code point starting at the string element at position pos in
* the String resulting from converting this object to a String.
* If there is no element at that position, the result is undefined.
* If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
*/
codePointAt(pos: number): number | undefined;
/**
* Returns true if searchString appears as a substring of the result of converting this
* object to a String, at one or more positions that are
* greater than or equal to position; otherwise, returns false.
* @param searchString search string
* @param position If position is undefined, 0 is assumed, so as to search all of the String.
*/
includes(searchString: string, position?: number): boolean;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* endPosition \u2013 length(this). Otherwise returns false.
*/
endsWith(searchString: string, endPosition?: number): boolean;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form?: string): string;
/**
* Returns a String value that is made from count copies appended together. If count is 0,
* the empty string is returned.
* @param count number of copies to append
*/
repeat(count: number): string;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* position. Otherwise returns false.
*/
startsWith(searchString: string, position?: number): boolean;
/**
* Returns an \`<a>\` HTML anchor element and sets the name attribute to the text value
* @deprecated A legacy feature for browser compatibility
* @param name
*/
anchor(name: string): string;
/**
* Returns a \`<big>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
big(): string;
/**
* Returns a \`<blink>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
blink(): string;
/**
* Returns a \`<b>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
bold(): string;
/**
* Returns a \`<tt>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
fixed(): string;
/**
* Returns a \`<font>\` HTML element and sets the color attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontcolor(color: string): string;
/**
* Returns a \`<font>\` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: number): string;
/**
* Returns a \`<font>\` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: string): string;
/**
* Returns an \`<i>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
italics(): string;
/**
* Returns an \`<a>\` HTML element and sets the href attribute value
* @deprecated A legacy feature for browser compatibility
*/
link(url: string): string;
/**
* Returns a \`<small>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
small(): string;
/**
* Returns a \`<strike>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
strike(): string;
/**
* Returns a \`<sub>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sub(): string;
/**
* Returns a \`<sup>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sup(): string;
}
interface StringConstructor {
/**
* Return the String value whose elements are, in order, the elements in the List elements.
* If length is 0, the empty string is returned.
*/
fromCodePoint(...codePoints: number[]): string;
/**
* String.raw is usually used as a tag function of a Tagged Template String. When called as
* such, the first argument will be a well formed template call site object and the rest
* parameter will contain the substitution values. It can also be called directly, for example,
* to interleave strings and values from your own tag function, and in this case the only thing
* it needs from the first argument is the raw property.
* @param template A well-formed template string call site representation.
* @param substitutions A set of substitution values.
*/
raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;
}
`,ya["lib.es2015.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es5" />
/// <reference lib="es2015.core" />
/// <reference lib="es2015.collection" />
/// <reference lib="es2015.iterable" />
/// <reference lib="es2015.generator" />
/// <reference lib="es2015.promise" />
/// <reference lib="es2015.proxy" />
/// <reference lib="es2015.reflect" />
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.symbol.wellknown" />
`,ya["lib.es2015.generator.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
return(value: TReturn): IteratorResult<T, TReturn>;
throw(e: any): IteratorResult<T, TReturn>;
[Symbol.iterator](): Generator<T, TReturn, TNext>;
}
interface GeneratorFunction {
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
new (...args: any[]): Generator;
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
(...args: any[]): Generator;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: Generator;
}
interface GeneratorFunctionConstructor {
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): GeneratorFunction;
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
(...args: string[]): GeneratorFunction;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: GeneratorFunction;
}
`,ya["lib.es2015.iterable.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that returns the default iterator for an object. Called by the semantics of the
* for-of statement.
*/
readonly iterator: unique symbol;
}
interface IteratorYieldResult<TYield> {
done?: false;
value: TYield;
}
interface IteratorReturnResult<TReturn> {
done: true;
value: TReturn;
}
type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
interface Iterator<T, TReturn = any, TNext = undefined> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
return?(value?: TReturn): IteratorResult<T, TReturn>;
throw?(e?: any): IteratorResult<T, TReturn>;
}
interface Iterable<T> {
[Symbol.iterator](): Iterator<T>;
}
interface IterableIterator<T> extends Iterator<T> {
[Symbol.iterator](): IterableIterator<T>;
}
interface Array<T> {
/** Iterator */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): IterableIterator<T>;
}
interface ArrayConstructor {
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
*/
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
}
interface ReadonlyArray<T> {
/** Iterator of values in the array. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): IterableIterator<T>;
}
interface IArguments {
/** Iterator */
[Symbol.iterator](): IterableIterator<any>;
}
interface Map<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): IterableIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): IterableIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): IterableIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): IterableIterator<V>;
}
interface ReadonlyMap<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): IterableIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): IterableIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): IterableIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): IterableIterator<V>;
}
interface MapConstructor {
new(): Map<any, any>;
new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;
}
interface WeakMap<K extends object, V> { }
interface WeakMapConstructor {
new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
}
interface Set<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): IterableIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): IterableIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): IterableIterator<T>;
}
interface ReadonlySet<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): IterableIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): IterableIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): IterableIterator<T>;
}
interface SetConstructor {
new <T>(iterable?: Iterable<T> | null): Set<T>;
}
interface WeakSet<T extends object> { }
interface WeakSetConstructor {
new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;
}
interface Promise<T> { }
interface PromiseConstructor {
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
}
interface String {
/** Iterator */
[Symbol.iterator](): IterableIterator<string>;
}
interface Int8Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int8ArrayConstructor {
new (elements: Iterable<number>): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
}
interface Uint8Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint8ArrayConstructor {
new (elements: Iterable<number>): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
}
interface Uint8ClampedArray {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint8ClampedArrayConstructor {
new (elements: Iterable<number>): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
}
interface Int16Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int16ArrayConstructor {
new (elements: Iterable<number>): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
}
interface Uint16Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint16ArrayConstructor {
new (elements: Iterable<number>): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
}
interface Int32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int32ArrayConstructor {
new (elements: Iterable<number>): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
}
interface Uint32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint32ArrayConstructor {
new (elements: Iterable<number>): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
}
interface Float32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Float32ArrayConstructor {
new (elements: Iterable<number>): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
}
interface Float64Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Float64ArrayConstructor {
new (elements: Iterable<number>): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
}
`,ya["lib.es2015.promise.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseConstructor {
/**
* A reference to the prototype.
*/
readonly prototype: Promise<any>;
/**
* Creates a new Promise.
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
* a resolve callback used to resolve the promise with a value or the result of another promise,
* and a reject callback used to reject the promise with a provided reason or error.
*/
new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;
// see: lib.es2015.iterable.d.ts
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
// see: lib.es2015.iterable.d.ts
// race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
/**
* Creates a new rejected promise for the provided reason.
* @param reason The reason the promise was rejected.
* @returns A new rejected Promise.
*/
reject<T = never>(reason?: any): Promise<T>;
/**
* Creates a new resolved promise.
* @returns A resolved promise.
*/
resolve(): Promise<void>;
/**
* Creates a new resolved promise for the provided value.
* @param value A promise.
* @returns A promise whose internal state matches the provided promise.
*/
resolve<T>(value: T): Promise<Awaited<T>>;
/**
* Creates a new resolved promise for the provided value.
* @param value A promise.
* @returns A promise whose internal state matches the provided promise.
*/
resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;
}
declare var Promise: PromiseConstructor;
`,ya["lib.es2015.proxy.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ProxyHandler<T extends object> {
/**
* A trap method for a function call.
* @param target The original callable object which is being proxied.
*/
apply?(target: T, thisArg: any, argArray: any[]): any;
/**
* A trap for the \`new\` operator.
* @param target The original object which is being proxied.
* @param newTarget The constructor that was originally called.
*/
construct?(target: T, argArray: any[], newTarget: Function): object;
/**
* A trap for \`Object.defineProperty()\`.
* @param target The original object which is being proxied.
* @returns A \`Boolean\` indicating whether or not the property has been defined.
*/
defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean;
/**
* A trap for the \`delete\` operator.
* @param target The original object which is being proxied.
* @param p The name or \`Symbol\` of the property to delete.
* @returns A \`Boolean\` indicating whether or not the property was deleted.
*/
deleteProperty?(target: T, p: string | symbol): boolean;
/**
* A trap for getting a property value.
* @param target The original object which is being proxied.
* @param p The name or \`Symbol\` of the property to get.
* @param receiver The proxy or an object that inherits from the proxy.
*/
get?(target: T, p: string | symbol, receiver: any): any;
/**
* A trap for \`Object.getOwnPropertyDescriptor()\`.
* @param target The original object which is being proxied.
* @param p The name of the property whose description should be retrieved.
*/
getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;
/**
* A trap for the \`[[GetPrototypeOf]]\` internal method.
* @param target The original object which is being proxied.
*/
getPrototypeOf?(target: T): object | null;
/**
* A trap for the \`in\` operator.
* @param target The original object which is being proxied.
* @param p The name or \`Symbol\` of the property to check for existence.
*/
has?(target: T, p: string | symbol): boolean;
/**
* A trap for \`Object.isExtensible()\`.
* @param target The original object which is being proxied.
*/
isExtensible?(target: T): boolean;
/**
* A trap for \`Reflect.ownKeys()\`.
* @param target The original object which is being proxied.
*/
ownKeys?(target: T): ArrayLike<string | symbol>;
/**
* A trap for \`Object.preventExtensions()\`.
* @param target The original object which is being proxied.
*/
preventExtensions?(target: T): boolean;
/**
* A trap for setting a property value.
* @param target The original object which is being proxied.
* @param p The name or \`Symbol\` of the property to set.
* @param receiver The object to which the assignment was originally directed.
* @returns A \`Boolean\` indicating whether or not the property was set.
*/
set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;
/**
* A trap for \`Object.setPrototypeOf()\`.
* @param target The original object which is being proxied.
* @param newPrototype The object's new prototype or \`null\`.
*/
setPrototypeOf?(target: T, v: object | null): boolean;
}
interface ProxyConstructor {
/**
* Creates a revocable Proxy object.
* @param target A target object to wrap with Proxy.
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
*/
revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };
/**
* Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the
* original object, but which may redefine fundamental Object operations like getting, setting, and defining
* properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs.
* @param target A target object to wrap with Proxy.
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
*/
new <T extends object>(target: T, handler: ProxyHandler<T>): T;
}
declare var Proxy: ProxyConstructor;
`,ya["lib.es2015.reflect.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Reflect {
/**
* Calls the function with the specified object as the this value
* and the elements of specified array as the arguments.
* @param target The function to call.
* @param thisArgument The object to be used as the this object.
* @param argumentsList An array of argument values to be passed to the function.
*/
function apply<T, A extends readonly any[], R>(
target: (this: T, ...args: A) => R,
thisArgument: T,
argumentsList: Readonly<A>,
): R;
function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
/**
* Constructs the target with the elements of specified array as the arguments
* and the specified constructor as the \`new.target\` value.
* @param target The constructor to invoke.
* @param argumentsList An array of argument values to be passed to the constructor.
* @param newTarget The constructor to be used as the \`new.target\` object.
*/
function construct<A extends readonly any[], R>(
target: new (...args: A) => R,
argumentsList: Readonly<A>,
newTarget?: new (...args: any) => any,
): R;
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
* @param target 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.
* @param propertyKey The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;
/**
* Removes a property from an object, equivalent to \`delete target[propertyKey]\`,
* except it won't throw if \`target[propertyKey]\` is non-configurable.
* @param target Object from which to remove the own property.
* @param propertyKey The property name.
*/
function deleteProperty(target: object, propertyKey: PropertyKey): boolean;
/**
* Gets the property of target, equivalent to \`target[propertyKey]\` when \`receiver === target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey The property name.
* @param receiver The reference to use as the \`this\` value in the getter function,
* if \`target[propertyKey]\` is an accessor property.
*/
function get<T extends object, P extends PropertyKey>(
target: T,
propertyKey: P,
receiver?: unknown,
): P extends keyof T ? T[P] : any;
/**
* Gets the own property descriptor of the specified object.
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
* @param target Object that contains the property.
* @param propertyKey The property name.
*/
function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>(
target: T,
propertyKey: P,
): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined;
/**
* Returns the prototype of an object.
* @param target The object that references the prototype.
*/
function getPrototypeOf(target: object): object | null;
/**
* Equivalent to \`propertyKey in target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey Name of the property.
*/
function has(target: object, propertyKey: PropertyKey): boolean;
/**
* Returns a value that indicates whether new properties can be added to an object.
* @param target Object to test.
*/
function isExtensible(target: object): boolean;
/**
* Returns the string and symbol keys of the own properties of an object. The own properties of an object
* are those that are defined directly on that object, and are not inherited from the object's prototype.
* @param target Object that contains the own properties.
*/
function ownKeys(target: object): (string | symbol)[];
/**
* Prevents the addition of new properties to an object.
* @param target Object to make non-extensible.
* @return Whether the object has been made non-extensible.
*/
function preventExtensions(target: object): boolean;
/**
* Sets the property of target, equivalent to \`target[propertyKey] = value\` when \`receiver === target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey Name of the property.
* @param receiver The reference to use as the \`this\` value in the setter function,
* if \`target[propertyKey]\` is an accessor property.
*/
function set<T extends object, P extends PropertyKey>(
target: T,
propertyKey: P,
value: P extends keyof T ? T[P] : any,
receiver?: any,
): boolean;
function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
/**
* Sets the prototype of a specified object o to object proto or null.
* @param target The object to change its prototype.
* @param proto The value of the new prototype or null.
* @return Whether setting the prototype was successful.
*/
function setPrototypeOf(target: object, proto: object | null): boolean;
}
`,ya["lib.es2015.symbol.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface SymbolConstructor {
/**
* A reference to the prototype.
*/
readonly prototype: Symbol;
/**
* Returns a new unique Symbol value.
* @param description Description of the new Symbol object.
*/
(description?: string | number): symbol;
/**
* Returns a Symbol object from the global symbol registry matching the given key if found.
* Otherwise, returns a new symbol with this key.
* @param key key to search for.
*/
for(key: string): symbol;
/**
* Returns a key from the global symbol registry matching the given Symbol if found.
* Otherwise, returns a undefined.
* @param sym Symbol to find the key for.
*/
keyFor(sym: symbol): string | undefined;
}
declare var Symbol: SymbolConstructor;`,ya["lib.es2015.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that determines if a constructor object recognizes an object as one of the
* constructor\u2019s instances. Called by the semantics of the instanceof operator.
*/
readonly hasInstance: unique symbol;
/**
* A Boolean value that if true indicates that an object should flatten to its array elements
* by Array.prototype.concat.
*/
readonly isConcatSpreadable: unique symbol;
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.match method.
*/
readonly match: unique symbol;
/**
* A regular expression method that replaces matched substrings of a string. Called by the
* String.prototype.replace method.
*/
readonly replace: unique symbol;
/**
* A regular expression method that returns the index within a string that matches the
* regular expression. Called by the String.prototype.search method.
*/
readonly search: unique symbol;
/**
* A function valued property that is the constructor function that is used to create
* derived objects.
*/
readonly species: unique symbol;
/**
* A regular expression method that splits a string at the indices that match the regular
* expression. Called by the String.prototype.split method.
*/
readonly split: unique symbol;
/**
* A method that converts an object to a corresponding primitive value.
* Called by the ToPrimitive abstract operation.
*/
readonly toPrimitive: unique symbol;
/**
* A String value that is used in the creation of the default string description of an object.
* Called by the built-in method Object.prototype.toString.
*/
readonly toStringTag: unique symbol;
/**
* An Object whose truthy properties are properties that are excluded from the 'with'
* environment bindings of the associated objects.
*/
readonly unscopables: unique symbol;
}
interface Symbol {
/**
* Converts a Symbol object to a symbol.
*/
[Symbol.toPrimitive](hint: string): symbol;
readonly [Symbol.toStringTag]: string;
}
interface Array<T> {
/**
* Is an object whose properties have the value 'true'
* when they will be absent when used in a 'with' statement.
*/
readonly [Symbol.unscopables]: {
[K in keyof any[]]?: boolean;
};
}
interface ReadonlyArray<T> {
/**
* Is an object whose properties have the value 'true'
* when they will be absent when used in a 'with' statement.
*/
readonly [Symbol.unscopables]: {
[K in keyof readonly any[]]?: boolean;
};
}
interface Date {
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "default"): string;
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "string"): string;
/**
* Converts a Date object to a number.
*/
[Symbol.toPrimitive](hint: "number"): number;
/**
* Converts a Date object to a string or number.
*
* @param hint The strings "number", "string", or "default" to specify what primitive to return.
*
* @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
* @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
*/
[Symbol.toPrimitive](hint: string): string | number;
}
interface Map<K, V> {
readonly [Symbol.toStringTag]: string;
}
interface WeakMap<K extends object, V> {
readonly [Symbol.toStringTag]: string;
}
interface Set<T> {
readonly [Symbol.toStringTag]: string;
}
interface WeakSet<T extends object> {
readonly [Symbol.toStringTag]: string;
}
interface JSON {
readonly [Symbol.toStringTag]: string;
}
interface Function {
/**
* Determines whether the given value inherits from this function if this function was used
* as a constructor function.
*
* A constructor function can control which objects are recognized as its instances by
* 'instanceof' by overriding this method.
*/
[Symbol.hasInstance](value: any): boolean;
}
interface GeneratorFunction {
readonly [Symbol.toStringTag]: string;
}
interface Math {
readonly [Symbol.toStringTag]: string;
}
interface Promise<T> {
readonly [Symbol.toStringTag]: string;
}
interface PromiseConstructor {
readonly [Symbol.species]: PromiseConstructor;
}
interface RegExp {
/**
* Matches a string with this regular expression, and returns an array containing the results of
* that search.
* @param string A string to search within.
*/
[Symbol.match](string: string): RegExpMatchArray | null;
/**
* Replaces text in a string, using this regular expression.
* @param string A String object or string literal whose contents matching against
* this regular expression will be replaced
* @param replaceValue A String object or string literal containing the text to replace for every
* successful match of this regular expression.
*/
[Symbol.replace](string: string, replaceValue: string): string;
/**
* Replaces text in a string, using this regular expression.
* @param string A String object or string literal whose contents matching against
* this regular expression will be replaced
* @param replacer A function that returns the replacement text.
*/
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the position beginning first substring match in a regular expression search
* using this regular expression.
*
* @param string The string to search within.
*/
[Symbol.search](string: string): number;
/**
* Returns an array of substrings that were delimited by strings in the original input that
* match against this regular expression.
*
* If the regular expression contains capturing parentheses, then each time this
* regular expression matches, the results (including any undefined results) of the
* capturing parentheses are spliced.
*
* @param string string value to split
* @param limit if not undefined, the output array is truncated so that it contains no more
* than 'limit' elements.
*/
[Symbol.split](string: string, limit?: number): string[];
}
interface RegExpConstructor {
readonly [Symbol.species]: RegExpConstructor;
}
interface String {
/**
* Matches a string or an object that supports being matched against, and returns an array
* containing the results of that search, or null if no matches are found.
* @param matcher An object that supports being matched against.
*/
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
/**
* Passes a string and {@linkcode replaceValue} to the \`[Symbol.replace]\` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.
* @param searchValue An object that supports searching for and replacing matches within a string.
* @param replaceValue The replacement text.
*/
replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
/**
* Replaces text in a string, using an object that supports replacement within a string.
* @param searchValue A object can search for and replace matches within a string.
* @param replacer A function that returns the replacement text.
*/
replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param searcher An object which supports searching within a string.
*/
search(searcher: { [Symbol.search](string: string): number; }): number;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @param splitter An object that can split a string.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
}
interface ArrayBuffer {
readonly [Symbol.toStringTag]: string;
}
interface DataView {
readonly [Symbol.toStringTag]: string;
}
interface Int8Array {
readonly [Symbol.toStringTag]: "Int8Array";
}
interface Uint8Array {
readonly [Symbol.toStringTag]: "Uint8Array";
}
interface Uint8ClampedArray {
readonly [Symbol.toStringTag]: "Uint8ClampedArray";
}
interface Int16Array {
readonly [Symbol.toStringTag]: "Int16Array";
}
interface Uint16Array {
readonly [Symbol.toStringTag]: "Uint16Array";
}
interface Int32Array {
readonly [Symbol.toStringTag]: "Int32Array";
}
interface Uint32Array {
readonly [Symbol.toStringTag]: "Uint32Array";
}
interface Float32Array {
readonly [Symbol.toStringTag]: "Float32Array";
}
interface Float64Array {
readonly [Symbol.toStringTag]: "Float64Array";
}
interface ArrayConstructor {
readonly [Symbol.species]: ArrayConstructor;
}
interface MapConstructor {
readonly [Symbol.species]: MapConstructor;
}
interface SetConstructor {
readonly [Symbol.species]: SetConstructor;
}
interface ArrayBufferConstructor {
readonly [Symbol.species]: ArrayBufferConstructor;
}
`,ya["lib.es2016.array.include.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: T, fromIndex?: number): boolean;
}
interface ReadonlyArray<T> {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: T, fromIndex?: number): boolean;
}
interface Int8Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint8Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint8ClampedArray {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Int16Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint16Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Int32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Float32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Float64Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}`,ya["lib.es2016.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015" />
/// <reference lib="es2016.array.include" />`,ya["lib.es2016.full.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2016" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,ya["lib.es2017.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2016" />
/// <reference lib="es2017.object" />
/// <reference lib="es2017.sharedmemory" />
/// <reference lib="es2017.string" />
/// <reference lib="es2017.intl" />
/// <reference lib="es2017.typedarrays" />
`,ya["lib.es2017.full.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2017" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,ya["lib.es2017.intl.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface DateTimeFormatPartTypesRegistry {
day: any
dayPeriod: any
era: any
hour: any
literal: any
minute: any
month: any
second: any
timeZoneName: any
weekday: any
year: any
}
type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;
interface DateTimeFormatPart {
type: DateTimeFormatPartTypes;
value: string;
}
interface DateTimeFormat {
formatToParts(date?: Date | number): DateTimeFormatPart[];
}
}
`,ya["lib.es2017.object.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ObjectConstructor {
/**
* Returns an array of values of the enumerable properties of an object
* @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.
*/
values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
/**
* Returns an array of values of the enumerable properties of an object
* @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.
*/
values(o: {}): any[];
/**
* Returns an array of key/values of the enumerable properties of an object
* @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.
*/
entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];
/**
* Returns an array of key/values of the enumerable properties of an object
* @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.
*/
entries(o: {}): [string, any][];
/**
* Returns an object containing all own property descriptors of an object
* @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.
*/
getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };
}
`,ya["lib.es2017.sharedmemory.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.symbol.wellknown" />
interface SharedArrayBuffer {
/**
* Read-only. The length of the ArrayBuffer (in bytes).
*/
readonly byteLength: number;
/**
* Returns a section of an SharedArrayBuffer.
*/
slice(begin: number, end?: number): SharedArrayBuffer;
readonly [Symbol.species]: SharedArrayBuffer;
readonly [Symbol.toStringTag]: "SharedArrayBuffer";
}
interface SharedArrayBufferConstructor {
readonly prototype: SharedArrayBuffer;
new (byteLength: number): SharedArrayBuffer;
}
declare var SharedArrayBuffer: SharedArrayBufferConstructor;
interface ArrayBufferTypes {
SharedArrayBuffer: SharedArrayBuffer;
}
interface Atomics {
/**
* Adds a value to the value at the given position in the array, returning the original value.
* Until this atomic operation completes, any other read or write operation against the array
* will block.
*/
add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Stores the bitwise AND of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or
* write operation against the array will block.
*/
and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Replaces the value at the given position in the array if the original value equals the given
* expected value, returning the original value. Until this atomic operation completes, any
* other read or write operation against the array will block.
*/
compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;
/**
* Replaces the value at the given position in the array, returning the original value. Until
* this atomic operation completes, any other read or write operation against the array will
* block.
*/
exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Returns a value indicating whether high-performance algorithms can use atomic operations
* (\`true\`) or must use locks (\`false\`) for the given number of bytes-per-element of a typed
* array.
*/
isLockFree(size: number): boolean;
/**
* Returns the value at the given position in the array. Until this atomic operation completes,
* any other read or write operation against the array will block.
*/
load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;
/**
* Stores the bitwise OR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Stores a value at the given position in the array, returning the new value. Until this
* atomic operation completes, any other read or write operation against the array will block.
*/
store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Subtracts a value from the value at the given position in the array, returning the original
* value. Until this atomic operation completes, any other read or write operation against the
* array will block.
*/
sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* If the value at the given position in the array is equal to the provided value, the current
* agent is put to sleep causing execution to suspend until the timeout expires (returning
* \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
* \`"not-equal"\`.
*/
wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
/**
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
* number of agents that were awoken.
* @param typedArray A shared Int32Array.
* @param index The position in the typedArray to wake up on.
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
*/
notify(typedArray: Int32Array, index: number, count?: number): number;
/**
* Stores the bitwise XOR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
readonly [Symbol.toStringTag]: "Atomics";
}
declare var Atomics: Atomics;
`,ya["lib.es2017.string.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
* The padding is applied from the start (left) of the current string.
*
* @param maxLength The length of the resulting string once the current string has been padded.
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
*
* @param fillString The string to pad the current string with.
* If this string is too long, it will be truncated and the left-most part will be applied.
* The default value for this parameter is " " (U+0020).
*/
padStart(maxLength: number, fillString?: string): string;
/**
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
* The padding is applied from the end (right) of the current string.
*
* @param maxLength The length of the resulting string once the current string has been padded.
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
*
* @param fillString The string to pad the current string with.
* If this string is too long, it will be truncated and the left-most part will be applied.
* The default value for this parameter is " " (U+0020).
*/
padEnd(maxLength: number, fillString?: string): string;
}
`,ya["lib.es2017.typedarrays.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Int8ArrayConstructor {
new (): Int8Array;
}
interface Uint8ArrayConstructor {
new (): Uint8Array;
}
interface Uint8ClampedArrayConstructor {
new (): Uint8ClampedArray;
}
interface Int16ArrayConstructor {
new (): Int16Array;
}
interface Uint16ArrayConstructor {
new (): Uint16Array;
}
interface Int32ArrayConstructor {
new (): Int32Array;
}
interface Uint32ArrayConstructor {
new (): Uint32Array;
}
interface Float32ArrayConstructor {
new (): Float32Array;
}
interface Float64ArrayConstructor {
new (): Float64Array;
}
`,ya["lib.es2018.asyncgenerator.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018.asynciterable" />
interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw(e: any): Promise<IteratorResult<T, TReturn>>;
[Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
}
interface AsyncGeneratorFunction {
/**
* Creates a new AsyncGenerator object.
* @param args A list of arguments the function accepts.
*/
new (...args: any[]): AsyncGenerator;
/**
* Creates a new AsyncGenerator object.
* @param args A list of arguments the function accepts.
*/
(...args: any[]): AsyncGenerator;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: AsyncGenerator;
}
interface AsyncGeneratorFunctionConstructor {
/**
* Creates a new AsyncGenerator function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): AsyncGeneratorFunction;
/**
* Creates a new AsyncGenerator function.
* @param args A list of arguments the function accepts.
*/
(...args: string[]): AsyncGeneratorFunction;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: AsyncGeneratorFunction;
}
`,ya["lib.es2018.asynciterable.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.iterable" />
interface SymbolConstructor {
/**
* A method that returns the default async iterator for an object. Called by the semantics of
* the for-await-of statement.
*/
readonly asyncIterator: unique symbol;
}
interface AsyncIterator<T, TReturn = any, TNext = undefined> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
}
interface AsyncIterable<T> {
[Symbol.asyncIterator](): AsyncIterator<T>;
}
interface AsyncIterableIterator<T> extends AsyncIterator<T> {
[Symbol.asyncIterator](): AsyncIterableIterator<T>;
}`,ya["lib.es2018.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2017" />
/// <reference lib="es2018.asynciterable" />
/// <reference lib="es2018.asyncgenerator" />
/// <reference lib="es2018.promise" />
/// <reference lib="es2018.regexp" />
/// <reference lib="es2018.intl" />
`,ya["lib.es2018.full.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,ya["lib.es2018.intl.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
// http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
type PluralRuleType = "cardinal" | "ordinal";
interface PluralRulesOptions {
localeMatcher?: "lookup" | "best fit" | undefined;
type?: PluralRuleType | undefined;
minimumIntegerDigits?: number | undefined;
minimumFractionDigits?: number | undefined;
maximumFractionDigits?: number | undefined;
minimumSignificantDigits?: number | undefined;
maximumSignificantDigits?: number | undefined;
}
interface ResolvedPluralRulesOptions {
locale: string;
pluralCategories: LDMLPluralRule[];
type: PluralRuleType;
minimumIntegerDigits: number;
minimumFractionDigits: number;
maximumFractionDigits: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
}
interface PluralRules {
resolvedOptions(): ResolvedPluralRulesOptions;
select(n: number): LDMLPluralRule;
}
const PluralRules: {
new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
(locales?: string | string[], options?: PluralRulesOptions): PluralRules;
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[];
};
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
interface NumberFormatPart {
type: NumberFormatPartTypes;
value: string;
}
interface NumberFormat {
formatToParts(number?: number | bigint): NumberFormatPart[];
}
}
`,ya["lib.es2018.promise.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/**
* Represents the completion of an asynchronous operation
*/
interface Promise<T> {
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): Promise<T>
}
`,ya["lib.es2018.regexp.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface RegExpMatchArray {
groups?: {
[key: string]: string
}
}
interface RegExpExecArray {
groups?: {
[key: string]: string
}
}
interface RegExp {
/**
* Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
* Default is false. Read-only.
*/
readonly dotAll: boolean;
}`,ya["lib.es2019.array.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
type FlatArray<Arr, Depth extends number> = {
"done": Arr,
"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]>
: Arr
}[Depth extends -1 ? "done" : "recur"];
interface ReadonlyArray<T> {
/**
* Calls a defined callback function on each element of an array. Then, flattens the result into
* a new array.
* This is identical to a map followed by flat with depth 1.
*
* @param callback A function that accepts up to three arguments. The flatMap method calls the
* callback function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callback function. If
* thisArg is omitted, undefined is used as the this value.
*/
flatMap<U, This = undefined> (
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
thisArg?: This
): U[]
/**
* Returns a new array with all sub-array elements concatenated into it recursively up to the
* specified depth.
*
* @param depth The maximum recursion depth
*/
flat<A, D extends number = 1>(
this: A,
depth?: D
): FlatArray<A, D>[]
}
interface Array<T> {
/**
* Calls a defined callback function on each element of an array. Then, flattens the result into
* a new array.
* This is identical to a map followed by flat with depth 1.
*
* @param callback A function that accepts up to three arguments. The flatMap method calls the
* callback function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callback function. If
* thisArg is omitted, undefined is used as the this value.
*/
flatMap<U, This = undefined> (
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
thisArg?: This
): U[]
/**
* Returns a new array with all sub-array elements concatenated into it recursively up to the
* specified depth.
*
* @param depth The maximum recursion depth
*/
flat<A, D extends number = 1>(
this: A,
depth?: D
): FlatArray<A, D>[]
}
`,ya["lib.es2019.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018" />
/// <reference lib="es2019.array" />
/// <reference lib="es2019.object" />
/// <reference lib="es2019.string" />
/// <reference lib="es2019.symbol" />
/// <reference lib="es2019.intl" />
`,ya["lib.es2019.full.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2019" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,ya["lib.es2019.intl.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface DateTimeFormatPartTypesRegistry {
unknown: any
}
}
`,ya["lib.es2019.object.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface ObjectConstructor {
/**
* Returns an object created by key-value entries for properties and methods
* @param entries An iterable object that contains key-value entries for properties and methods.
*/
fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T };
/**
* Returns an object created by key-value entries for properties and methods
* @param entries An iterable object that contains key-value entries for properties and methods.
*/
fromEntries(entries: Iterable<readonly any[]>): any;
}
`,ya["lib.es2019.string.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/** Removes the trailing white space and line terminator characters from a string. */
trimEnd(): string;
/** Removes the leading white space and line terminator characters from a string. */
trimStart(): string;
/**
* Removes the leading white space and line terminator characters from a string.
* @deprecated A legacy feature for browser compatibility. Use \`trimStart\` instead
*/
trimLeft(): string;
/**
* Removes the trailing white space and line terminator characters from a string.
* @deprecated A legacy feature for browser compatibility. Use \`trimEnd\` instead
*/
trimRight(): string;
}
`,ya["lib.es2019.symbol.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Symbol {
/**
* Expose the [[Description]] internal slot of a symbol directly.
*/
readonly description: string | undefined;
}
`,ya["lib.es2020.bigint.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020.intl" />
interface BigIntToLocaleStringOptions {
/**
* 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}.
*/
localeMatcher?: string;
/**
* The formatting style to use , the default is "decimal".
*/
style?: string;
numberingSystem?: string;
/**
* 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.
*/
unit?: string;
/**
* The unit formatting style to use in unit formatting, the defaults is "short".
*/
unitDisplay?: string;
/**
* 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 \u2014 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".
*/
currency?: string;
/**
* How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".
*
* "symbol" to use a localized currency symbol such as \u20AC,
*
* "code" to use the ISO currency code,
*
* "name" to use a localized currency name such as "dollar"
*/
currencyDisplay?: string;
/**
* Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.
*/
useGrouping?: boolean;
/**
* The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* 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).
*/
minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* 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.
*/
maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
*/
maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The formatting that should be displayed for the number, the defaults is "standard"
*
* "standard" plain number formatting
*
* "scientific" return the order-of-magnitude for formatted number.
*
* "engineering" return the exponent of ten when divisible by three
*
* "compact" string representing exponent, defaults is using the "short" form
*/
notation?: string;
/**
* used only when notation is "compact"
*/
compactDisplay?: string;
}
interface BigInt {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings.
*/
toString(radix?: number): string;
/** Returns a string representation appropriate to the host environment's current locale. */
toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;
/** Returns the primitive value of the specified object. */
valueOf(): bigint;
readonly [Symbol.toStringTag]: "BigInt";
}
interface BigIntConstructor {
(value: bigint | boolean | number | string): bigint;
readonly prototype: BigInt;
/**
* Interprets the low bits of a BigInt as a 2's-complement signed integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asIntN(bits: number, int: bigint): bigint;
/**
* Interprets the low bits of a BigInt as an unsigned integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asUintN(bits: number, int: bigint): bigint;
}
declare var BigInt: BigIntConstructor;
/**
* A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigInt64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns false,
* or until the end of the array.
* @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.
*/
every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @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.
* @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.
*/
map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* 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.
* @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.
* @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.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* 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.
* @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.
* @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.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigInt64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls the
* predicate function for each element in the array until the predicate returns true, or until
* the end of the array.
* @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.
*/
some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigInt64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigInt64Array;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigInt64Array";
[index: number]: bigint;
}
interface BigInt64ArrayConstructor {
readonly prototype: BigInt64Array;
new(length?: number): BigInt64Array;
new(array: Iterable<bigint>): BigInt64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigInt64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigInt64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
}
declare var BigInt64Array: BigInt64ArrayConstructor;
/**
* A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigUint64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns false,
* or until the end of the array.
* @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.
*/
every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @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.
* @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.
*/
map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* 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.
* @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.
* @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.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* 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.
* @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.
* @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.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigUint64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls the
* predicate function for each element in the array until the predicate returns true, or until
* the end of the array.
* @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.
*/
some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigUint64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigUint64Array;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigUint64Array";
[index: number]: bigint;
}
interface BigUint64ArrayConstructor {
readonly prototype: BigUint64Array;
new(length?: number): BigUint64Array;
new(array: Iterable<bigint>): BigUint64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigUint64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigUint64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
}
declare var BigUint64Array: BigUint64ArrayConstructor;
interface DataView {
/**
* Gets the BigInt64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Gets the BigUint64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Stores a BigInt64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
/**
* Stores a BigUint64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
}
declare namespace Intl{
interface NumberFormat {
format(value: number | bigint): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
}
`,ya["lib.es2020.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2019" />
/// <reference lib="es2020.bigint" />
/// <reference lib="es2020.date" />
/// <reference lib="es2020.number" />
/// <reference lib="es2020.promise" />
/// <reference lib="es2020.sharedmemory" />
/// <reference lib="es2020.string" />
/// <reference lib="es2020.symbol.wellknown" />
/// <reference lib="es2020.intl" />
`,ya["lib.es2020.date.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020.intl" />
interface Date {
/**
* Converts a date and time to a string by using the current or specified locale.
* @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.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a date to a string by using the current or specified locale.
* @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.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleDateString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a time to a string by using the current or specified locale.
* @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.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
}`,ya["lib.es2020.full.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,ya["lib.es2020.intl.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018.intl" />
declare namespace Intl {
/**
* [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*/
type UnicodeBCP47LocaleIdentifier = string;
/**
* Unit to use in the relative time internationalized message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
*/
type RelativeTimeFormatUnit =
| "year"
| "years"
| "quarter"
| "quarters"
| "month"
| "months"
| "week"
| "weeks"
| "day"
| "days"
| "hour"
| "hours"
| "minute"
| "minutes"
| "second"
| "seconds";
/**
* Value of the \`unit\` property in objects returned by
* \`Intl.RelativeTimeFormat.prototype.formatToParts()\`. \`formatToParts\` and
* \`format\` methods accept either singular or plural unit names as input,
* but \`formatToParts\` only outputs singular (e.g. "day") not plural (e.g.
* "days").
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
*/
type RelativeTimeFormatUnitSingular =
| "year"
| "quarter"
| "month"
| "week"
| "day"
| "hour"
| "minute"
| "second";
/**
* The locale matching algorithm to use.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
*/
type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";
/**
* The format of output message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
type RelativeTimeFormatNumeric = "always" | "auto";
/**
* The length of the internationalized message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
type RelativeTimeFormatStyle = "long" | "short" | "narrow";
/**
* [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*/
type BCP47LanguageTag = string;
/**
* The locale(s) to use
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*/
type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;
/**
* An object with some or all of properties of \`options\` parameter
* of \`Intl.RelativeTimeFormat\` constructor.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
interface RelativeTimeFormatOptions {
/** 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). */
localeMatcher?: RelativeTimeFormatLocaleMatcher;
/** The format of output message. */
numeric?: RelativeTimeFormatNumeric;
/** The length of the internationalized message. */
style?: RelativeTimeFormatStyle;
}
/**
* An object with properties reflecting the locale
* and formatting options computed during initialization
* of the \`Intl.RelativeTimeFormat\` object
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
*/
interface ResolvedRelativeTimeFormatOptions {
locale: UnicodeBCP47LocaleIdentifier;
style: RelativeTimeFormatStyle;
numeric: RelativeTimeFormatNumeric;
numberingSystem: string;
}
/**
* An object representing the relative time format in parts
* that can be used for custom locale-aware formatting.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
*/
type RelativeTimeFormatPart =
| {
type: "literal";
value: string;
}
| {
type: Exclude<NumberFormatPartTypes, "literal">;
value: string;
unit: RelativeTimeFormatUnitSingular;
};
interface RelativeTimeFormat {
/**
* Formats a value and a unit according to the locale
* and formatting options of the given
* [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
* object.
*
* While this method automatically provides the correct plural forms,
* the grammatical form is otherwise as neutral as possible.
*
* It is the caller's responsibility to handle cut-off logic
* such as deciding between displaying "in 7 days" or "in 1 week".
* This API does not support relative dates involving compound units.
* e.g "in 5 days and 4 hours".
*
* @param value - Numeric value to use in the internationalized relative time message
*
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
*
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
*
* @returns {string} Internationalized relative time message as string
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
*/
format(value: number, unit: RelativeTimeFormatUnit): string;
/**
* Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
*
* @param value - Numeric value to use in the internationalized relative time message
*
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
*
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
*/
formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
/**
* Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
*/
resolvedOptions(): ResolvedRelativeTimeFormatOptions;
}
/**
* The [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
* object is a constructor for objects that enable language-sensitive relative time formatting.
*
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
*/
const RelativeTimeFormat: {
/**
* Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
* with some or all of options of \`RelativeTimeFormatOptions\`.
*
* @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
*/
new(
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
options?: RelativeTimeFormatOptions,
): RelativeTimeFormat;
/**
* Returns an array containing those of the provided locales
* that are supported in date and time formatting
* without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
* with some or all of options of the formatting.
*
* @returns An array containing those of the provided locales
* that are supported in date and time formatting
* without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
*/
supportedLocalesOf(
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
options?: RelativeTimeFormatOptions,
): UnicodeBCP47LocaleIdentifier[];
};
interface NumberFormatOptions {
compactDisplay?: "short" | "long" | undefined;
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
unit?: string | undefined;
unitDisplay?: "short" | "long" | "narrow" | undefined;
currencyDisplay?: string | undefined;
currencySign?: string | undefined;
}
interface ResolvedNumberFormatOptions {
compactDisplay?: "short" | "long";
notation?: "standard" | "scientific" | "engineering" | "compact";
signDisplay?: "auto" | "never" | "always" | "exceptZero";
unit?: string;
unitDisplay?: "short" | "long" | "narrow";
currencyDisplay?: string;
currencySign?: string;
}
interface DateTimeFormatOptions {
calendar?: string | undefined;
dayPeriod?: "narrow" | "short" | "long" | undefined;
numberingSystem?: string | undefined;
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
}
type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";
type LocaleCollationCaseFirst = "upper" | "lower" | "false";
interface LocaleOptions {
/** A string containing the language, and the script and region if available. */
baseName?: string;
/** The part of the Locale that indicates the locale's calendar era. */
calendar?: string;
/** Flag that defines whether case is taken into account for the locale's collation rules. */
caseFirst?: LocaleCollationCaseFirst;
/** The collation type used for sorting */
collation?: string;
/** The time keeping format convention used by the locale. */
hourCycle?: LocaleHourCycleKey;
/** The primary language subtag associated with the locale. */
language?: string;
/** The numeral system used by the locale. */
numberingSystem?: string;
/** Flag that defines whether the locale has special collation handling for numeric characters. */
numeric?: boolean;
/** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */
region?: string;
/** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */
script?: string;
}
interface Locale extends LocaleOptions {
/** A string containing the language, and the script and region if available. */
baseName: string;
/** The primary language subtag associated with the locale. */
language: string;
/** Gets the most likely values for the language, script, and region of the locale based on existing values. */
maximize(): Locale;
/** Attempts to remove information about the locale that would be added by calling \`Locale.maximize()\`. */
minimize(): Locale;
/** Returns the locale's full locale identifier string. */
toString(): BCP47LanguageTag;
}
/**
* Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
* objects
*
* @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @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.
*
* @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
*/
const Locale: {
new (tag: BCP47LanguageTag | Locale, options?: LocaleOptions): Locale;
};
type DisplayNamesFallback =
| "code"
| "none";
type DisplayNamesType =
| "language"
| "region"
| "script"
| "calendar"
| "dateTimeField"
| "currency";
type DisplayNamesLanguageDisplay =
| "dialect"
| "standard";
interface DisplayNamesOptions {
localeMatcher?: RelativeTimeFormatLocaleMatcher;
style?: RelativeTimeFormatStyle;
type: DisplayNamesType;
languageDisplay?: DisplayNamesLanguageDisplay;
fallback?: DisplayNamesFallback;
}
interface ResolvedDisplayNamesOptions {
locale: UnicodeBCP47LocaleIdentifier;
style: RelativeTimeFormatStyle;
type: DisplayNamesType;
fallback: DisplayNamesFallback;
languageDisplay?: DisplayNamesLanguageDisplay;
}
interface DisplayNames {
/**
* Receives a code and returns a string based on the locale and options provided when instantiating
* [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
*
* @param code The \`code\` to provide depends on the \`type\` passed to display name during creation:
* - 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),
* or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
* - If the type is \`"script"\`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
* - If the type is \`"language"\`, code should be a \`languageCode\` ["-" \`scriptCode\`] ["-" \`regionCode\` ] *("-" \`variant\` )
* 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).
* \`languageCode\` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
* - If the type is \`"currency"\`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
*/
of(code: string): string | undefined;
/**
* Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
* [\`Intl/DisplayNames\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
*/
resolvedOptions(): ResolvedDisplayNamesOptions;
}
/**
* The [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
* object enables the consistent translation of language, region and script display names.
*
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
*/
const DisplayNames: {
prototype: DisplayNames;
/**
* @param locales A string with a BCP 47 language tag, or an array of such strings.
* 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)
* page.
*
* @param options An object for setting up a display name.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
*/
new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;
/**
* 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.
*
* @param locales A string with a BCP 47 language tag, or an array of such strings.
* 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)
* page.
*
* @param options An object with a locale matcher.
*
* @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.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
*/
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher }): BCP47LanguageTag[];
};
}
`,ya["lib.es2020.number.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020.intl" />
interface Number {
/**
* Converts a number to a string by using the current or specified locale.
* @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.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
}
`,ya["lib.es2020.promise.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseFulfilledResult<T> {
status: "fulfilled";
value: T;
}
interface PromiseRejectedResult {
status: "rejected";
reason: any;
}
type PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;
interface PromiseConstructor {
/**
* Creates a Promise that is resolved with an array of results when all
* of the provided Promises resolve or reject.
* @param values An array of Promises.
* @returns A new Promise.
*/
allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>;
/**
* Creates a Promise that is resolved with an array of results when all
* of the provided Promises resolve or reject.
* @param values An array of Promises.
* @returns A new Promise.
*/
allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;
}
`,ya["lib.es2020.sharedmemory.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Atomics {
/**
* Adds a value to the value at the given position in the array, returning the original value.
* Until this atomic operation completes, any other read or write operation against the array
* will block.
*/
add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Stores the bitwise AND of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or
* write operation against the array will block.
*/
and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Replaces the value at the given position in the array if the original value equals the given
* expected value, returning the original value. Until this atomic operation completes, any
* other read or write operation against the array will block.
*/
compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;
/**
* Replaces the value at the given position in the array, returning the original value. Until
* this atomic operation completes, any other read or write operation against the array will
* block.
*/
exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Returns the value at the given position in the array. Until this atomic operation completes,
* any other read or write operation against the array will block.
*/
load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;
/**
* Stores the bitwise OR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Stores a value at the given position in the array, returning the new value. Until this
* atomic operation completes, any other read or write operation against the array will block.
*/
store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Subtracts a value from the value at the given position in the array, returning the original
* value. Until this atomic operation completes, any other read or write operation against the
* array will block.
*/
sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* If the value at the given position in the array is equal to the provided value, the current
* agent is put to sleep causing execution to suspend until the timeout expires (returning
* \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
* \`"not-equal"\`.
*/
wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
/**
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
* number of agents that were awoken.
* @param typedArray A shared BigInt64Array.
* @param index The position in the typedArray to wake up on.
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
*/
notify(typedArray: BigInt64Array, index: number, count?: number): number;
/**
* Stores the bitwise XOR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
}
`,ya["lib.es2020.string.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface String {
/**
* Matches a string with a regular expression, and returns an iterable of matches
* containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;
}
`,ya["lib.es2020.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.matchAll method.
*/
readonly matchAll: unique symbol;
}
interface RegExp {
/**
* Matches a string with this regular expression, and returns an iterable of matches
* containing the results of that search.
* @param string A string to search within.
*/
[Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;
}
`,ya["lib.es2021.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020" />
/// <reference lib="es2021.promise" />
/// <reference lib="es2021.string" />
/// <reference lib="es2021.weakref" />
/// <reference lib="es2021.intl" />
`,ya["lib.es2021.full.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2021" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,ya["lib.es2021.intl.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface DateTimeFormatPartTypesRegistry {
fractionalSecond: any
}
interface DateTimeFormatOptions {
formatMatcher?: "basic" | "best fit" | "best fit" | undefined;
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
dayPeriod?: "narrow" | "short" | "long" | undefined;
fractionalSecondDigits?: 1 | 2 | 3 | undefined;
}
interface DateTimeRangeFormatPart extends DateTimeFormatPart {
source: "startRange" | "endRange" | "shared"
}
interface DateTimeFormat {
formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;
formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];
}
interface ResolvedDateTimeFormatOptions {
formatMatcher?: "basic" | "best fit" | "best fit";
dateStyle?: "full" | "long" | "medium" | "short";
timeStyle?: "full" | "long" | "medium" | "short";
hourCycle?: "h11" | "h12" | "h23" | "h24";
dayPeriod?: "narrow" | "short" | "long";
fractionalSecondDigits?: 1 | 2 | 3;
}
/**
* The locale matching algorithm to use.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
type ListFormatLocaleMatcher = "lookup" | "best fit";
/**
* The format of output message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
type ListFormatType = "conjunction" | "disjunction" | "unit";
/**
* The length of the formatted message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
type ListFormatStyle = "long" | "short" | "narrow";
/**
* An object with some or all properties of the \`Intl.ListFormat\` constructor \`options\` parameter.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
interface ListFormatOptions {
/** 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). */
localeMatcher?: ListFormatLocaleMatcher | undefined;
/** The format of output message. */
type?: ListFormatType | undefined;
/** The length of the internationalized message. */
style?: ListFormatStyle | undefined;
}
interface ResolvedListFormatOptions {
locale: string;
style: ListFormatStyle;
type: ListFormatType;
}
interface ListFormat {
/**
* Returns a string with a language-specific representation of the list.
*
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).
*
* @throws \`TypeError\` if \`list\` includes something other than the possible values.
*
* @returns {string} A language-specific formatted string representing the elements of the list.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).
*/
format(list: Iterable<string>): string;
/**
* Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
*
* @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.
*
* @throws \`TypeError\` if \`list\` includes something other than the possible values.
*
* @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
*/
formatToParts(list: Iterable<string>): { type: "element" | "literal", value: string; }[];
/**
* Returns a new object with properties reflecting the locale and style
* formatting options computed during the construction of the current
* \`Intl.ListFormat\` object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).
*/
resolvedOptions(): ResolvedListFormatOptions;
}
const ListFormat: {
prototype: ListFormat;
/**
* Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that
* enable language-sensitive list formatting.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
* with some or all options of \`ListFormatOptions\`.
*
* @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
*/
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat;
/**
* Returns an array containing those of the provided locales that are
* supported in list formatting without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).
* with some or all possible options.
*
* @returns An array of strings representing a subset of the given locale tags that are supported in list
* formatting without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
*/
supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<ListFormatOptions, "localeMatcher">): BCP47LanguageTag[];
};
}
`,ya["lib.es2021.promise.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface AggregateError extends Error {
errors: any[]
}
interface AggregateErrorConstructor {
new(errors: Iterable<any>, message?: string): AggregateError;
(errors: Iterable<any>, message?: string): AggregateError;
readonly prototype: AggregateError;
}
declare var AggregateError: AggregateErrorConstructor;
/**
* Represents the completion of an asynchronous operation
*/
interface PromiseConstructor {
/**
* 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.
* @param values An array or iterable of Promises.
* @returns A new Promise.
*/
any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
/**
* 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.
* @param values An array or iterable of Promises.
* @returns A new Promise.
*/
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>
}
`,ya["lib.es2021.string.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
*/
replaceAll(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
}
`,ya["lib.es2021.weakref.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface WeakRef<T extends object> {
readonly [Symbol.toStringTag]: "WeakRef";
/**
* Returns the WeakRef instance's target object, or undefined if the target object has been
* reclaimed.
*/
deref(): T | undefined;
}
interface WeakRefConstructor {
readonly prototype: WeakRef<any>;
/**
* Creates a WeakRef instance for the given target object.
* @param target The target object for the WeakRef instance.
*/
new<T extends object>(target: T): WeakRef<T>;
}
declare var WeakRef: WeakRefConstructor;
interface FinalizationRegistry<T> {
readonly [Symbol.toStringTag]: "FinalizationRegistry";
/**
* Registers an object with the registry.
* @param target The target object to register.
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
* target object.
* @param unregisterToken The token to pass to the unregister method to unregister the target
* object. If provided (and not undefined), this must be an object. If not provided, the target
* cannot be unregistered.
*/
register(target: object, heldValue: T, unregisterToken?: object): void;
/**
* Unregisters an object from the registry.
* @param unregisterToken The token that was used as the unregisterToken argument when calling
* register to register the target object.
*/
unregister(unregisterToken: object): void;
}
interface FinalizationRegistryConstructor {
readonly prototype: FinalizationRegistry<any>;
/**
* Creates a finalization registry with an associated cleanup callback
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
*/
new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
}
declare var FinalizationRegistry: FinalizationRegistryConstructor;
`,ya["lib.es2022.array.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): T | undefined;
}
interface ReadonlyArray<T> {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): T | undefined;
}
interface Int8Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Uint8Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Uint8ClampedArray {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Int16Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Uint16Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Int32Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Uint32Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Float32Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Float64Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface BigInt64Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): bigint | undefined;
}
interface BigUint64Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): bigint | undefined;
}
`,ya["lib.es2022.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2021" />
/// <reference lib="es2022.array" />
/// <reference lib="es2022.error" />
/// <reference lib="es2022.intl" />
/// <reference lib="es2022.object" />
/// <reference lib="es2022.sharedmemory" />
/// <reference lib="es2022.string" />
/// <reference lib="es2022.regexp" />
`,ya["lib.es2022.error.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ErrorOptions {
cause?: unknown;
}
interface Error {
cause?: unknown;
}
interface ErrorConstructor {
new (message?: string, options?: ErrorOptions): Error;
(message?: string, options?: ErrorOptions): Error;
}
interface EvalErrorConstructor {
new (message?: string, options?: ErrorOptions): EvalError;
(message?: string, options?: ErrorOptions): EvalError;
}
interface RangeErrorConstructor {
new (message?: string, options?: ErrorOptions): RangeError;
(message?: string, options?: ErrorOptions): RangeError;
}
interface ReferenceErrorConstructor {
new (message?: string, options?: ErrorOptions): ReferenceError;
(message?: string, options?: ErrorOptions): ReferenceError;
}
interface SyntaxErrorConstructor {
new (message?: string, options?: ErrorOptions): SyntaxError;
(message?: string, options?: ErrorOptions): SyntaxError;
}
interface TypeErrorConstructor {
new (message?: string, options?: ErrorOptions): TypeError;
(message?: string, options?: ErrorOptions): TypeError;
}
interface URIErrorConstructor {
new (message?: string, options?: ErrorOptions): URIError;
(message?: string, options?: ErrorOptions): URIError;
}
interface AggregateErrorConstructor {
new (
errors: Iterable<any>,
message?: string,
options?: ErrorOptions
): AggregateError;
(
errors: Iterable<any>,
message?: string,
options?: ErrorOptions
): AggregateError;
}
`,ya["lib.es2022.full.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2022" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,ya["lib.es2022.intl.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
/**
* An object with some or all properties of the \`Intl.Segmenter\` constructor \`options\` parameter.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
*/
interface SegmenterOptions {
/** 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). */
localeMatcher?: "best fit" | "lookup" | undefined;
/** The type of input to be split */
granularity?: "grapheme" | "word" | "sentence" | undefined;
}
interface Segmenter {
/**
* Returns \`Segments\` object containing the segments of the input string, using the segmenter's locale and granularity.
*
* @param input - The text to be segmented as a \`string\`.
*
* @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
*/
segment(input: string): Segments;
resolvedOptions(): ResolvedSegmenterOptions;
}
interface ResolvedSegmenterOptions {
locale: string;
granularity: "grapheme" | "word" | "sentence";
}
interface Segments {
/**
* Returns an object describing the segment in the original string that includes the code unit at a specified index.
*
* @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\`.
*/
containing(codeUnitIndex?: number): SegmentData;
/** Returns an iterator to iterate over the segments. */
[Symbol.iterator](): IterableIterator<SegmentData>;
}
interface SegmentData {
/** A string containing the segment extracted from the original input string. */
segment: string;
/** The code unit index in the original input string at which the segment begins. */
index: number;
/** The complete input string that was segmented. */
input: string;
/**
* A boolean value only if granularity is "word"; otherwise, undefined.
* If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.
*/
isWordLike?: boolean;
}
const Segmenter: {
prototype: Segmenter;
/**
* Creates a new \`Intl.Segmenter\` object.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
* with some or all options of \`SegmenterOptions\`.
*
* @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
*/
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter;
/**
* Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
* with some or all possible options.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
*/
supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<SegmenterOptions, "localeMatcher">): BCP47LanguageTag[];
};
}
`,ya["lib.es2022.object.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ObjectConstructor {
/**
* Determines whether an object has a property with the specified name.
* @param o An object.
* @param v A property name.
*/
hasOwn(o: object, v: PropertyKey): boolean;
}
`,ya["lib.es2022.regexp.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface RegExpMatchArray {
indices?: RegExpIndicesArray;
}
interface RegExpExecArray {
indices?: RegExpIndicesArray;
}
interface RegExpIndicesArray extends Array<[number, number]> {
groups?: {
[key: string]: [number, number];
};
}
interface RegExp {
/**
* Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression.
* Default is false. Read-only.
*/
readonly hasIndices: boolean;
}
`,ya["lib.es2022.sharedmemory.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Atomics {
/**
* A non-blocking, asynchronous version of wait which is usable on the main thread.
* Waits asynchronously on a shared memory location and returns a Promise
* @param typedArray A shared Int32Array or BigInt64Array.
* @param index The position in the typedArray to wait on.
* @param value The expected value to test.
* @param [timeout] The expected value to test.
*/
waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> };
/**
* A non-blocking, asynchronous version of wait which is usable on the main thread.
* Waits asynchronously on a shared memory location and returns a Promise
* @param typedArray A shared Int32Array or BigInt64Array.
* @param index The position in the typedArray to wait on.
* @param value The expected value to test.
* @param [timeout] The expected value to test.
*/
waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> };
}
`,ya["lib.es2022.string.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Returns a new String consisting of the single UTF-16 code unit located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): string | undefined;
}
`,ya["lib.es2023.array.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;
}
interface ReadonlyArray<T> {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): number;
}
interface Int8Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Int8Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number;
}
interface Uint8Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Uint8Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number;
}
interface Uint8ClampedArray {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Uint8ClampedArray) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number;
}
interface Int16Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Int16Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number;
}
interface Uint16Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Uint16Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number;
}
interface Int32Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Int32Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number;
}
interface Uint32Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Uint32Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number;
}
interface Float32Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Float32Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number;
}
interface Float64Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(predicate: (value: number, index: number, array: Float64Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number;
}
interface BigInt64Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigInt64Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): bigint | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): number;
}
interface BigUint64Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigUint64Array) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): bigint | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): number;
}
`,ya["lib.es2023.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2022" />
/// <reference lib="es2023.array" />
`,ya["lib.es2023.full.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2023" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,ya["lib.es5.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="decorators" />
/// <reference lib="decorators.legacy" />
/////////////////////////////
/// ECMAScript APIs
/////////////////////////////
declare var NaN: number;
declare var Infinity: number;
/**
* Evaluates JavaScript code and executes it.
* @param x A String value that contains valid JavaScript code.
*/
declare function eval(x: string): any;
/**
* Converts a string to an integer.
* @param string A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
declare function parseInt(string: string, radix?: number): number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
declare function parseFloat(string: string): number;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
* @param number A numeric value.
*/
declare function isNaN(number: number): boolean;
/**
* Determines whether a supplied number is finite.
* @param number Any numeric value.
*/
declare function isFinite(number: number): boolean;
/**
* Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
* @param encodedURI A value representing an encoded URI.
*/
declare function decodeURI(encodedURI: string): string;
/**
* Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
* @param encodedURIComponent A value representing an encoded URI component.
*/
declare function decodeURIComponent(encodedURIComponent: string): string;
/**
* Encodes a text string as a valid Uniform Resource Identifier (URI)
* @param uri A value representing an unencoded URI.
*/
declare function encodeURI(uri: string): string;
/**
* Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
* @param uriComponent A value representing an unencoded URI component.
*/
declare function encodeURIComponent(uriComponent: string | number | boolean): string;
/**
* Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
* @deprecated A legacy feature for browser compatibility
* @param string A string value
*/
declare function escape(string: string): string;
/**
* Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
* @deprecated A legacy feature for browser compatibility
* @param string A string value
*/
declare function unescape(string: string): string;
interface Symbol {
/** Returns a string representation of an object. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): symbol;
}
declare type PropertyKey = string | number | symbol;
interface PropertyDescriptor {
configurable?: boolean;
enumerable?: boolean;
value?: any;
writable?: boolean;
get?(): any;
set?(v: any): void;
}
interface PropertyDescriptorMap {
[key: PropertyKey]: PropertyDescriptor;
}
interface Object {
/** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
constructor: Function;
/** Returns a string representation of an object. */
toString(): string;
/** Returns a date converted to a string using the current locale. */
toLocaleString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Object;
/**
* Determines whether an object has a property with the specified name.
* @param v A property name.
*/
hasOwnProperty(v: PropertyKey): boolean;
/**
* Determines whether an object exists in another object's prototype chain.
* @param v Another object whose prototype chain is to be checked.
*/
isPrototypeOf(v: Object): boolean;
/**
* Determines whether a specified property is enumerable.
* @param v A property name.
*/
propertyIsEnumerable(v: PropertyKey): boolean;
}
interface ObjectConstructor {
new(value?: any): Object;
(): any;
(value: any): any;
/** A reference to the prototype for a class of objects. */
readonly prototype: Object;
/**
* Returns the prototype of an object.
* @param o The object that references the prototype.
*/
getPrototypeOf(o: any): any;
/**
* Gets the own property descriptor of the specified object.
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
* @param o Object that contains the property.
* @param p Name of the property.
*/
getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
/**
* Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
* on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
* @param o Object that contains the own properties.
*/
getOwnPropertyNames(o: any): string[];
/**
* Creates an object that has the specified prototype or that has null prototype.
* @param o Object to use as a prototype. May be null.
*/
create(o: object | null): any;
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties.
* @param o Object to use as a prototype. May be null
* @param properties JavaScript object that contains one or more property descriptors.
*/
create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
* @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.
* @param p The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;
/**
* Adds one or more properties to an object, and/or modifies attributes of existing properties.
* @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
* @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
*/
defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;
/**
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
seal<T>(o: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param f Object on which to lock the attributes.
*/
freeze<T extends Function>(f: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze<T>(o: T): Readonly<T>;
/**
* Prevents the addition of new properties to an object.
* @param o Object to make non-extensible.
*/
preventExtensions<T>(o: T): T;
/**
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
* @param o Object to test.
*/
isSealed(o: any): boolean;
/**
* Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
* @param o Object to test.
*/
isFrozen(o: any): boolean;
/**
* Returns a value that indicates whether new properties can be added to an object.
* @param o Object to test.
*/
isExtensible(o: any): boolean;
/**
* Returns the names of the enumerable string properties and methods of an object.
* @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.
*/
keys(o: object): string[];
}
/**
* Provides functionality common to all JavaScript objects.
*/
declare var Object: ObjectConstructor;
/**
* Creates a new function.
*/
interface Function {
/**
* Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
* @param thisArg The object to be used as the this object.
* @param argArray A set of arguments to be passed to the function.
*/
apply(this: Function, thisArg: any, argArray?: any): any;
/**
* Calls a method of an object, substituting another object for the current object.
* @param thisArg The object to be used as the current object.
* @param argArray A list of arguments to be passed to the method.
*/
call(this: Function, thisArg: any, ...argArray: any[]): any;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg An object to which the this keyword can refer inside the new function.
* @param argArray A list of arguments to be passed to the new function.
*/
bind(this: Function, thisArg: any, ...argArray: any[]): any;
/** Returns a string representation of a function. */
toString(): string;
prototype: any;
readonly length: number;
// Non-standard extensions
arguments: any;
caller: Function;
}
interface FunctionConstructor {
/**
* Creates a new function.
* @param args A list of arguments the function accepts.
*/
new(...args: string[]): Function;
(...args: string[]): Function;
readonly prototype: Function;
}
declare var Function: FunctionConstructor;
/**
* Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
*/
type ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown;
/**
* Removes the 'this' parameter from a function type.
*/
type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
interface CallableFunction extends Function {
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
* @param args An array of argument values to be passed to the function.
*/
apply<T, R>(this: (this: T) => R, thisArg: T): R;
apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
/**
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
* @param thisArg The object to be used as the this object.
* @param args Argument values to be passed to the function.
*/
call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
* @param args Arguments to bind to the parameters of the function.
*/
bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;
bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;
bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;
bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;
bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;
}
interface NewableFunction extends Function {
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
* @param args An array of argument values to be passed to the function.
*/
apply<T>(this: new () => T, thisArg: T): void;
apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;
/**
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
* @param thisArg The object to be used as the this object.
* @param args Argument values to be passed to the function.
*/
call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
* @param args Arguments to bind to the parameters of the function.
*/
bind<T>(this: T, thisArg: any): T;
bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;
bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;
bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;
bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;
bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;
}
interface IArguments {
[index: number]: any;
length: number;
callee: Function;
}
interface String {
/** Returns a string representation of a string. */
toString(): string;
/**
* Returns the character at the specified index.
* @param pos The zero-based index of the desired character.
*/
charAt(pos: number): string;
/**
* Returns the Unicode value of the character at the specified location.
* @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
*/
charCodeAt(index: number): number;
/**
* Returns a string that contains the concatenation of two or more strings.
* @param strings The strings to append to the end of the string.
*/
concat(...strings: string[]): string;
/**
* Returns the position of the first occurrence of a substring.
* @param searchString The substring to search for in the string
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
*/
indexOf(searchString: string, position?: number): number;
/**
* Returns the last occurrence of a substring in the string.
* @param searchString The substring to search for.
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
*/
lastIndexOf(searchString: string, position?: number): number;
/**
* Determines whether two strings are equivalent in the current locale.
* @param that String to compare to target string
*/
localeCompare(that: string): number;
/**
* Matches a string with a regular expression, and returns an array containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
match(regexp: string | RegExp): RegExpMatchArray | null;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string or regular expression to search for.
* @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.
*/
replace(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param regexp The regular expression pattern and applicable flags.
*/
search(regexp: string | RegExp): number;
/**
* Returns a section of a string.
* @param start The index to the beginning of the specified portion of stringObj.
* @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.
* If this value is not specified, the substring continues to the end of stringObj.
*/
slice(start?: number, end?: number): string;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @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.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(separator: string | RegExp, limit?: number): string[];
/**
* Returns the substring at the specified location within a String object.
* @param start The zero-based index number indicating the beginning of the substring.
* @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.
* If end is omitted, the characters from start through the end of the original string are returned.
*/
substring(start: number, end?: number): string;
/** Converts all the alphabetic characters in a string to lowercase. */
toLowerCase(): string;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(locales?: string | string[]): string;
/** Converts all the alphabetic characters in a string to uppercase. */
toUpperCase(): string;
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
toLocaleUpperCase(locales?: string | string[]): string;
/** Removes the leading and trailing white space and line terminator characters from a string. */
trim(): string;
/** Returns the length of a String object. */
readonly length: number;
// IE extensions
/**
* Gets a substring beginning at the specified location and having the specified length.
* @deprecated A legacy feature for browser compatibility
* @param from The starting position of the desired substring. The index of the first character in the string is zero.
* @param length The number of characters to include in the returned substring.
*/
substr(from: number, length?: number): string;
/** Returns the primitive value of the specified object. */
valueOf(): string;
readonly [index: number]: string;
}
interface StringConstructor {
new(value?: any): String;
(value?: any): string;
readonly prototype: String;
fromCharCode(...codes: number[]): string;
}
/**
* Allows manipulation and formatting of text strings and determination and location of substrings within strings.
*/
declare var String: StringConstructor;
interface Boolean {
/** Returns the primitive value of the specified object. */
valueOf(): boolean;
}
interface BooleanConstructor {
new(value?: any): Boolean;
<T>(value?: T): boolean;
readonly prototype: Boolean;
}
declare var Boolean: BooleanConstructor;
interface Number {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
*/
toString(radix?: number): string;
/**
* Returns a string representing a number in fixed-point notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toFixed(fractionDigits?: number): string;
/**
* Returns a string containing a number represented in exponential notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toExponential(fractionDigits?: number): string;
/**
* Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
*/
toPrecision(precision?: number): string;
/** Returns the primitive value of the specified object. */
valueOf(): number;
}
interface NumberConstructor {
new(value?: any): Number;
(value?: any): number;
readonly prototype: Number;
/** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
readonly MAX_VALUE: number;
/** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
readonly MIN_VALUE: number;
/**
* A value that is not a number.
* In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
*/
readonly NaN: number;
/**
* A value that is less than the largest negative number that can be represented in JavaScript.
* JavaScript displays NEGATIVE_INFINITY values as -infinity.
*/
readonly NEGATIVE_INFINITY: number;
/**
* A value greater than the largest number that can be represented in JavaScript.
* JavaScript displays POSITIVE_INFINITY values as infinity.
*/
readonly POSITIVE_INFINITY: number;
}
/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
declare var Number: NumberConstructor;
interface TemplateStringsArray extends ReadonlyArray<string> {
readonly raw: readonly string[];
}
/**
* The type of \`import.meta\`.
*
* If you need to declare that a given property exists on \`import.meta\`,
* this type may be augmented via interface merging.
*/
interface ImportMeta {
}
/**
* The type for the optional second argument to \`import()\`.
*
* If your host environment supports additional options, this type may be
* augmented via interface merging.
*/
interface ImportCallOptions {
assert?: ImportAssertions;
}
/**
* The type for the \`assert\` property of the optional second argument to \`import()\`.
*/
interface ImportAssertions {
[key: string]: string;
}
interface Math {
/** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
readonly E: number;
/** The natural logarithm of 10. */
readonly LN10: number;
/** The natural logarithm of 2. */
readonly LN2: number;
/** The base-2 logarithm of e. */
readonly LOG2E: number;
/** The base-10 logarithm of e. */
readonly LOG10E: number;
/** Pi. This is the ratio of the circumference of a circle to its diameter. */
readonly PI: number;
/** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
readonly SQRT1_2: number;
/** The square root of 2. */
readonly SQRT2: number;
/**
* Returns the absolute value of a number (the value without regard to whether it is positive or negative).
* For example, the absolute value of -5 is the same as the absolute value of 5.
* @param x A numeric expression for which the absolute value is needed.
*/
abs(x: number): number;
/**
* Returns the arc cosine (or inverse cosine) of a number.
* @param x A numeric expression.
*/
acos(x: number): number;
/**
* Returns the arcsine of a number.
* @param x A numeric expression.
*/
asin(x: number): number;
/**
* Returns the arctangent of a number.
* @param x A numeric expression for which the arctangent is needed.
*/
atan(x: number): number;
/**
* Returns the angle (in radians) from the X axis to a point.
* @param y A numeric expression representing the cartesian y-coordinate.
* @param x A numeric expression representing the cartesian x-coordinate.
*/
atan2(y: number, x: number): number;
/**
* Returns the smallest integer greater than or equal to its numeric argument.
* @param x A numeric expression.
*/
ceil(x: number): number;
/**
* Returns the cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cos(x: number): number;
/**
* Returns e (the base of natural logarithms) raised to a power.
* @param x A numeric expression representing the power of e.
*/
exp(x: number): number;
/**
* Returns the greatest integer less than or equal to its numeric argument.
* @param x A numeric expression.
*/
floor(x: number): number;
/**
* Returns the natural logarithm (base e) of a number.
* @param x A numeric expression.
*/
log(x: number): number;
/**
* Returns the larger of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
max(...values: number[]): number;
/**
* Returns the smaller of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
min(...values: number[]): number;
/**
* Returns the value of a base expression taken to a specified power.
* @param x The base value of the expression.
* @param y The exponent value of the expression.
*/
pow(x: number, y: number): number;
/** Returns a pseudorandom number between 0 and 1. */
random(): number;
/**
* Returns a supplied numeric expression rounded to the nearest integer.
* @param x The value to be rounded to the nearest integer.
*/
round(x: number): number;
/**
* Returns the sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sin(x: number): number;
/**
* Returns the square root of a number.
* @param x A numeric expression.
*/
sqrt(x: number): number;
/**
* Returns the tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tan(x: number): number;
}
/** An intrinsic object that provides basic mathematics functionality and constants. */
declare var Math: Math;
/** Enables basic storage and retrieval of dates and times. */
interface Date {
/** Returns a string representation of a date. The format of the string depends on the locale. */
toString(): string;
/** Returns a date as a string value. */
toDateString(): string;
/** Returns a time as a string value. */
toTimeString(): string;
/** Returns a value as a string value appropriate to the host environment's current locale. */
toLocaleString(): string;
/** Returns a date as a string value appropriate to the host environment's current locale. */
toLocaleDateString(): string;
/** Returns a time as a string value appropriate to the host environment's current locale. */
toLocaleTimeString(): string;
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
valueOf(): number;
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
getTime(): number;
/** Gets the year, using local time. */
getFullYear(): number;
/** Gets the year using Universal Coordinated Time (UTC). */
getUTCFullYear(): number;
/** Gets the month, using local time. */
getMonth(): number;
/** Gets the month of a Date object using Universal Coordinated Time (UTC). */
getUTCMonth(): number;
/** Gets the day-of-the-month, using local time. */
getDate(): number;
/** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
getUTCDate(): number;
/** Gets the day of the week, using local time. */
getDay(): number;
/** Gets the day of the week using Universal Coordinated Time (UTC). */
getUTCDay(): number;
/** Gets the hours in a date, using local time. */
getHours(): number;
/** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
getUTCHours(): number;
/** Gets the minutes of a Date object, using local time. */
getMinutes(): number;
/** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
getUTCMinutes(): number;
/** Gets the seconds of a Date object, using local time. */
getSeconds(): number;
/** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
getUTCSeconds(): number;
/** Gets the milliseconds of a Date, using local time. */
getMilliseconds(): number;
/** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
getUTCMilliseconds(): number;
/** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
getTimezoneOffset(): number;
/**
* Sets the date and time value in the Date object.
* @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
*/
setTime(time: number): number;
/**
* Sets the milliseconds value in the Date object using local time.
* @param ms A numeric value equal to the millisecond value.
*/
setMilliseconds(ms: number): number;
/**
* Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
* @param ms A numeric value equal to the millisecond value.
*/
setUTCMilliseconds(ms: number): number;
/**
* Sets the seconds value in the Date object using local time.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setSeconds(sec: number, ms?: number): number;
/**
* Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCSeconds(sec: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using local time.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the hour value in the Date object using local time.
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the hours value in the Date object using Universal Coordinated Time (UTC).
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the numeric day-of-the-month value of the Date object using local time.
* @param date A numeric value equal to the day of the month.
*/
setDate(date: number): number;
/**
* Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
* @param date A numeric value equal to the day of the month.
*/
setUTCDate(date: number): number;
/**
* Sets the month value in the Date object using local time.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @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.
*/
setMonth(month: number, date?: number): number;
/**
* Sets the month value in the Date object using Universal Coordinated Time (UTC).
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @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.
*/
setUTCMonth(month: number, date?: number): number;
/**
* Sets the year of the Date object using local time.
* @param year A numeric value for the year.
* @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
* @param date A numeric value equal for the day of the month.
*/
setFullYear(year: number, month?: number, date?: number): number;
/**
* Sets the year value in the Date object using Universal Coordinated Time (UTC).
* @param year A numeric value equal to the year.
* @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.
* @param date A numeric value equal to the day of the month.
*/
setUTCFullYear(year: number, month?: number, date?: number): number;
/** Returns a date converted to a string using Universal Coordinated Time (UTC). */
toUTCString(): string;
/** Returns a date as a string value in ISO format. */
toISOString(): string;
/** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
toJSON(key?: any): string;
}
interface DateConstructor {
new(): Date;
new(value: number | string): Date;
/**
* Creates a new Date.
* @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.
* @param monthIndex The month as a number between 0 and 11 (January to December).
* @param date The date as a number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
* @param ms A number from 0 to 999 that specifies the milliseconds.
*/
new(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
(): string;
readonly prototype: Date;
/**
* Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
* @param s A date string
*/
parse(s: string): number;
/**
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
* @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.
* @param monthIndex The month as a number between 0 and 11 (January to December).
* @param date The date as a number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
* @param ms A number from 0 to 999 that specifies the milliseconds.
*/
UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
/** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */
now(): number;
}
declare var Date: DateConstructor;
interface RegExpMatchArray extends Array<string> {
/**
* The index of the search at which the result was found.
*/
index?: number;
/**
* A copy of the search string.
*/
input?: string;
/**
* The first match. This will always be present because \`null\` will be returned if there are no matches.
*/
0: string;
}
interface RegExpExecArray extends Array<string> {
/**
* The index of the search at which the result was found.
*/
index: number;
/**
* A copy of the search string.
*/
input: string;
/**
* The first match. This will always be present because \`null\` will be returned if there are no matches.
*/
0: string;
}
interface RegExp {
/**
* Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
* @param string The String object or string literal on which to perform the search.
*/
exec(string: string): RegExpExecArray | null;
/**
* Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
* @param string String on which to perform the search.
*/
test(string: string): boolean;
/** 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. */
readonly source: string;
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
readonly global: boolean;
/** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
readonly ignoreCase: boolean;
/** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
readonly multiline: boolean;
lastIndex: number;
// Non-standard extensions
/** @deprecated A legacy feature for browser compatibility */
compile(pattern: string, flags?: string): this;
}
interface RegExpConstructor {
new(pattern: RegExp | string): RegExp;
new(pattern: string, flags?: string): RegExp;
(pattern: RegExp | string): RegExp;
(pattern: string, flags?: string): RegExp;
readonly prototype: RegExp;
// Non-standard extensions
/** @deprecated A legacy feature for browser compatibility */
$1: string;
/** @deprecated A legacy feature for browser compatibility */
$2: string;
/** @deprecated A legacy feature for browser compatibility */
$3: string;
/** @deprecated A legacy feature for browser compatibility */
$4: string;
/** @deprecated A legacy feature for browser compatibility */
$5: string;
/** @deprecated A legacy feature for browser compatibility */
$6: string;
/** @deprecated A legacy feature for browser compatibility */
$7: string;
/** @deprecated A legacy feature for browser compatibility */
$8: string;
/** @deprecated A legacy feature for browser compatibility */
$9: string;
/** @deprecated A legacy feature for browser compatibility */
input: string;
/** @deprecated A legacy feature for browser compatibility */
$_: string;
/** @deprecated A legacy feature for browser compatibility */
lastMatch: string;
/** @deprecated A legacy feature for browser compatibility */
"$&": string;
/** @deprecated A legacy feature for browser compatibility */
lastParen: string;
/** @deprecated A legacy feature for browser compatibility */
"$+": string;
/** @deprecated A legacy feature for browser compatibility */
leftContext: string;
/** @deprecated A legacy feature for browser compatibility */
"$\`": string;
/** @deprecated A legacy feature for browser compatibility */
rightContext: string;
/** @deprecated A legacy feature for browser compatibility */
"$'": string;
}
declare var RegExp: RegExpConstructor;
interface Error {
name: string;
message: string;
stack?: string;
}
interface ErrorConstructor {
new(message?: string): Error;
(message?: string): Error;
readonly prototype: Error;
}
declare var Error: ErrorConstructor;
interface EvalError extends Error {
}
interface EvalErrorConstructor extends ErrorConstructor {
new(message?: string): EvalError;
(message?: string): EvalError;
readonly prototype: EvalError;
}
declare var EvalError: EvalErrorConstructor;
interface RangeError extends Error {
}
interface RangeErrorConstructor extends ErrorConstructor {
new(message?: string): RangeError;
(message?: string): RangeError;
readonly prototype: RangeError;
}
declare var RangeError: RangeErrorConstructor;
interface ReferenceError extends Error {
}
interface ReferenceErrorConstructor extends ErrorConstructor {
new(message?: string): ReferenceError;
(message?: string): ReferenceError;
readonly prototype: ReferenceError;
}
declare var ReferenceError: ReferenceErrorConstructor;
interface SyntaxError extends Error {
}
interface SyntaxErrorConstructor extends ErrorConstructor {
new(message?: string): SyntaxError;
(message?: string): SyntaxError;
readonly prototype: SyntaxError;
}
declare var SyntaxError: SyntaxErrorConstructor;
interface TypeError extends Error {
}
interface TypeErrorConstructor extends ErrorConstructor {
new(message?: string): TypeError;
(message?: string): TypeError;
readonly prototype: TypeError;
}
declare var TypeError: TypeErrorConstructor;
interface URIError extends Error {
}
interface URIErrorConstructor extends ErrorConstructor {
new(message?: string): URIError;
(message?: string): URIError;
readonly prototype: URIError;
}
declare var URIError: URIErrorConstructor;
interface JSON {
/**
* Converts a JavaScript Object Notation (JSON) string into an object.
* @param text A valid JSON string.
* @param reviver A function that transforms the results. This function is called for each member of the object.
* If a member contains nested objects, the nested objects are transformed before the parent object is.
*/
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer A function that transforms the results.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
}
/**
* An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
*/
declare var JSON: JSON;
/////////////////////////////
/// ECMAScript Array API (specially handled by compiler)
/////////////////////////////
interface ReadonlyArray<T> {
/**
* Gets the length of the array. This is a number one higher than the highest element defined in an array.
*/
readonly length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
/**
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: ConcatArray<T>[]): T[];
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: (T | ConcatArray<T>)[]): T[];
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): T[];
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array.
* @param searchElement The value to locate in the array.
* @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.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @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.
*/
every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @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.
*/
every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @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.
*/
some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @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.
* @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.
*/
map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
/**
* 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.
* @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.
* @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.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
/**
* 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.
* @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.
* @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.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
readonly [n: number]: T;
}
interface ConcatArray<T> {
readonly length: number;
readonly [n: number]: T;
join(separator?: string): string;
slice(start?: number, end?: number): T[];
}
interface Array<T> {
/**
* Gets or sets the length of the array. This is a number one higher than the highest index in the array.
*/
length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
/**
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
* Removes the last element from an array and returns it.
* If the array is empty, undefined is returned and the array is not modified.
*/
pop(): T | undefined;
/**
* Appends new elements to the end of an array, and returns the new length of the array.
* @param items New elements to add to the array.
*/
push(...items: T[]): number;
/**
* Combines two or more arrays.
* This method returns a new array without modifying any existing arrays.
* @param items Additional arrays and/or items to add to the end of the array.
*/
concat(...items: ConcatArray<T>[]): T[];
/**
* Combines two or more arrays.
* This method returns a new array without modifying any existing arrays.
* @param items Additional arrays and/or items to add to the end of the array.
*/
concat(...items: (T | ConcatArray<T>)[]): T[];
/**
* Adds all the elements of an array into a string, separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/**
* Reverses the elements in an array in place.
* This method mutates the array and returns a reference to the same array.
*/
reverse(): T[];
/**
* Removes the first element from an array and returns it.
* If the array is empty, undefined is returned and the array is not modified.
*/
shift(): T | undefined;
/**
* Returns a copy of a section of an array.
* For both start and end, a negative index can be used to indicate an offset from the end of the array.
* For example, -2 refers to the second to last element of the array.
* @param start The beginning index of the specified portion of the array.
* If start is undefined, then the slice begins at index 0.
* @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
* If end is undefined, then the slice extends to the end of the array.
*/
slice(start?: number, end?: number): T[];
/**
* Sorts an array in place.
* This method mutates the array and returns a reference to the same array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: T, b: T) => number): this;
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @returns An array containing the elements that were deleted.
*/
splice(start: number, deleteCount?: number): T[];
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @param items Elements to insert into the array in place of the deleted elements.
* @returns An array containing the elements that were deleted.
*/
splice(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Inserts new elements at the start of an array, and returns the new length of the array.
* @param items Elements to insert at the start of the array.
*/
unshift(...items: T[]): number;
/**
* Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
* @param searchElement The value to locate in the array.
* @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.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @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.
*/
every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @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.
*/
every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @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.
*/
some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @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.
* @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.
*/
map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* 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.
* @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.
* @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.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* 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.
* @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.
* @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.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
[n: number]: T;
}
interface ArrayConstructor {
new(arrayLength?: number): any[];
new <T>(arrayLength: number): T[];
new <T>(...items: T[]): T[];
(arrayLength?: number): any[];
<T>(arrayLength: number): T[];
<T>(...items: T[]): T[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
}
declare var Array: ArrayConstructor;
interface TypedPropertyDescriptor<T> {
enumerable?: boolean;
configurable?: boolean;
writable?: boolean;
value?: T;
get?: () => T;
set?: (value: T) => void;
}
declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
interface PromiseLike<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
}
/**
* Represents the completion of an asynchronous operation
*/
interface Promise<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
}
/**
* Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to \`never\`. This emulates the behavior of \`await\`.
*/
type Awaited<T> =
T extends null | undefined ? T : // special case for \`null | undefined\` when not in \`--strictNullChecks\` mode
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
F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to \`then\` is callable, extracts the first argument
Awaited<V> : // recursively unwrap the value
never : // the argument to \`then\` was not callable
T; // non-object or non-thenable
interface ArrayLike<T> {
readonly length: number;
readonly [n: number]: T;
}
/**
* Make all properties in T optional
*/
type Partial<T> = {
[P in keyof T]?: T[P];
};
/**
* Make all properties in T required
*/
type Required<T> = {
[P in keyof T]-?: T[P];
};
/**
* Make all properties in T readonly
*/
type Readonly<T> = {
readonly [P in keyof T]: T[P];
};
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
/**
* Construct a type with a set of properties K of type T
*/
type Record<K extends keyof any, T> = {
[P in K]: T;
};
/**
* Exclude from T those types that are assignable to U
*/
type Exclude<T, U> = T extends U ? never : T;
/**
* Extract from T those types that are assignable to U
*/
type Extract<T, U> = T extends U ? T : never;
/**
* Construct a type with the properties of T except for those in type K.
*/
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
/**
* Exclude null and undefined from T
*/
type NonNullable<T> = T & {};
/**
* Obtain the parameters of a function type in a tuple
*/
type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
/**
* Obtain the parameters of a constructor function type in a tuple
*/
type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;
/**
* Obtain the return type of a function type
*/
type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
/**
* Obtain the return type of a constructor function type
*/
type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;
/**
* Convert string literal type to uppercase
*/
type Uppercase<S extends string> = intrinsic;
/**
* Convert string literal type to lowercase
*/
type Lowercase<S extends string> = intrinsic;
/**
* Convert first character of string literal type to uppercase
*/
type Capitalize<S extends string> = intrinsic;
/**
* Convert first character of string literal type to lowercase
*/
type Uncapitalize<S extends string> = intrinsic;
/**
* Marker for contextual 'this' type
*/
interface ThisType<T> { }
/**
* Represents a raw buffer of binary data, which is used to store data for the
* different typed arrays. ArrayBuffers cannot be read from or written to directly,
* but can be passed to a typed array or DataView Object to interpret the raw
* buffer as needed.
*/
interface ArrayBuffer {
/**
* Read-only. The length of the ArrayBuffer (in bytes).
*/
readonly byteLength: number;
/**
* Returns a section of an ArrayBuffer.
*/
slice(begin: number, end?: number): ArrayBuffer;
}
/**
* Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
*/
interface ArrayBufferTypes {
ArrayBuffer: ArrayBuffer;
}
type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
interface ArrayBufferConstructor {
readonly prototype: ArrayBuffer;
new(byteLength: number): ArrayBuffer;
isView(arg: any): arg is ArrayBufferView;
}
declare var ArrayBuffer: ArrayBufferConstructor;
interface ArrayBufferView {
/**
* The ArrayBuffer instance referenced by the array.
*/
buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
byteLength: number;
/**
* The offset in bytes of the array.
*/
byteOffset: number;
}
interface DataView {
readonly buffer: ArrayBuffer;
readonly byteLength: number;
readonly byteOffset: number;
/**
* Gets the Float32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getFloat32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Float64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getFloat64(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Int8 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getInt8(byteOffset: number): number;
/**
* Gets the Int16 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getInt16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Int32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getInt32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint8 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getUint8(byteOffset: number): number;
/**
* Gets the Uint16 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getUint16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getUint32(byteOffset: number, littleEndian?: boolean): number;
/**
* Stores an Float32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Float64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Int8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setInt8(byteOffset: number, value: number): void;
/**
* Stores an Int16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Int32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setUint8(byteOffset: number, value: number): void;
/**
* Stores an Uint16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
}
interface DataViewConstructor {
readonly prototype: DataView;
new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
}
declare var DataView: DataViewConstructor;
/**
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
* number of bytes could not be allocated an exception is raised.
*/
interface Int8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @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.
*/
every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @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.
* @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.
*/
map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int8Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int8Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @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.
*/
some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int8Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int8Array;
[index: number]: number;
}
interface Int8ArrayConstructor {
readonly prototype: Int8Array;
new(length: number): Int8Array;
new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
}
declare var Int8Array: Int8ArrayConstructor;
/**
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @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.
*/
every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @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.
* @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.
*/
map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint8Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint8Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @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.
*/
some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint8Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint8Array;
[index: number]: number;
}
interface Uint8ArrayConstructor {
readonly prototype: Uint8Array;
new(length: number): Uint8Array;
new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
}
declare var Uint8Array: Uint8ArrayConstructor;
/**
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
* If the requested number of bytes could not be allocated an exception is raised.
*/
interface Uint8ClampedArray {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @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.
*/
every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @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.
* @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.
*/
map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint8ClampedArray;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint8ClampedArray;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @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.
*/
some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint8ClampedArray;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint8ClampedArray;
[index: number]: number;
}
interface Uint8ClampedArrayConstructor {
readonly prototype: Uint8ClampedArray;
new(length: number): Uint8ClampedArray;
new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
}
declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
/**
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Int16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @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.
*/
every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @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.
* @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.
*/
map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int16Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int16Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @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.
*/
some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int16Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int16Array;
[index: number]: number;
}
interface Int16ArrayConstructor {
readonly prototype: Int16Array;
new(length: number): Int16Array;
new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
}
declare var Int16Array: Int16ArrayConstructor;
/**
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @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.
*/
every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @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.
* @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.
*/
map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint16Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint16Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @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.
*/
some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint16Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint16Array;
[index: number]: number;
}
interface Uint16ArrayConstructor {
readonly prototype: Uint16Array;
new(length: number): Uint16Array;
new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
}
declare var Uint16Array: Uint16ArrayConstructor;
/**
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Int32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @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.
*/
every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @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.
* @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.
*/
map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @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.
*/
some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int32Array;
[index: number]: number;
}
interface Int32ArrayConstructor {
readonly prototype: Int32Array;
new(length: number): Int32Array;
new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
}
declare var Int32Array: Int32ArrayConstructor;
/**
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @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.
*/
every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @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.
* @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.
*/
map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @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.
*/
some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint32Array;
[index: number]: number;
}
interface Uint32ArrayConstructor {
readonly prototype: Uint32Array;
new(length: number): Uint32Array;
new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
}
declare var Uint32Array: Uint32ArrayConstructor;
/**
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
* of bytes could not be allocated an exception is raised.
*/
interface Float32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @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.
*/
every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @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.
* @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.
*/
map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Float32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Float32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @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.
*/
some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Float32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Float32Array;
[index: number]: number;
}
interface Float32ArrayConstructor {
readonly prototype: Float32Array;
new(length: number): Float32Array;
new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
}
declare var Float32Array: Float32ArrayConstructor;
/**
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
* number of bytes could not be allocated an exception is raised.
*/
interface Float64Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @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.
*/
every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @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.
* @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.
*/
map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* 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.
* @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.
* @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.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Float64Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Float64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @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.
*/
some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Float64Array;
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Float64Array;
[index: number]: number;
}
interface Float64ArrayConstructor {
readonly prototype: Float64Array;
new(length: number): Float64Array;
new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
}
declare var Float64Array: Float64ArrayConstructor;
/////////////////////////////
/// ECMAScript Internationalization API
/////////////////////////////
declare namespace Intl {
interface CollatorOptions {
usage?: string | undefined;
localeMatcher?: string | undefined;
numeric?: boolean | undefined;
caseFirst?: string | undefined;
sensitivity?: string | undefined;
ignorePunctuation?: boolean | undefined;
}
interface ResolvedCollatorOptions {
locale: string;
usage: string;
sensitivity: string;
ignorePunctuation: boolean;
collation: string;
caseFirst: string;
numeric: boolean;
}
interface Collator {
compare(x: string, y: string): number;
resolvedOptions(): ResolvedCollatorOptions;
}
var Collator: {
new(locales?: string | string[], options?: CollatorOptions): Collator;
(locales?: string | string[], options?: CollatorOptions): Collator;
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
};
interface NumberFormatOptions {
localeMatcher?: string | undefined;
style?: string | undefined;
currency?: string | undefined;
currencySign?: string | undefined;
useGrouping?: boolean | undefined;
minimumIntegerDigits?: number | undefined;
minimumFractionDigits?: number | undefined;
maximumFractionDigits?: number | undefined;
minimumSignificantDigits?: number | undefined;
maximumSignificantDigits?: number | undefined;
}
interface ResolvedNumberFormatOptions {
locale: string;
numberingSystem: string;
style: string;
currency?: string;
minimumIntegerDigits: number;
minimumFractionDigits: number;
maximumFractionDigits: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
useGrouping: boolean;
}
interface NumberFormat {
format(value: number): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
var NumberFormat: {
new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
readonly prototype: NumberFormat;
};
interface DateTimeFormatOptions {
localeMatcher?: "best fit" | "lookup" | undefined;
weekday?: "long" | "short" | "narrow" | undefined;
era?: "long" | "short" | "narrow" | undefined;
year?: "numeric" | "2-digit" | undefined;
month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
day?: "numeric" | "2-digit" | undefined;
hour?: "numeric" | "2-digit" | undefined;
minute?: "numeric" | "2-digit" | undefined;
second?: "numeric" | "2-digit" | undefined;
timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
formatMatcher?: "best fit" | "basic" | undefined;
hour12?: boolean | undefined;
timeZone?: string | undefined;
}
interface ResolvedDateTimeFormatOptions {
locale: string;
calendar: string;
numberingSystem: string;
timeZone: string;
hour12?: boolean;
weekday?: string;
era?: string;
year?: string;
month?: string;
day?: string;
hour?: string;
minute?: string;
second?: string;
timeZoneName?: string;
}
interface DateTimeFormat {
format(date?: Date | number): string;
resolvedOptions(): ResolvedDateTimeFormatOptions;
}
var DateTimeFormat: {
new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
readonly prototype: DateTimeFormat;
};
}
interface String {
/**
* Determines whether two strings are equivalent in the current or specified locale.
* @param that String to compare to target string
* @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.
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
*/
localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
}
interface Number {
/**
* Converts a number to a string by using the current or specified locale.
* @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.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Date {
/**
* Converts a date and time to a string by using the current or specified locale.
* @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.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a date to a string by using the current or specified locale.
* @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.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a time to a string by using the current or specified locale.
* @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.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
}
`,ya["lib.es6.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
`,ya["lib.esnext.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2023" />
/// <reference lib="esnext.intl" />
`,ya["lib.esnext.full.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="esnext" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,ya["lib.esnext.intl.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface NumberRangeFormatPart extends NumberFormatPart {
source: "startRange" | "endRange" | "shared"
}
interface NumberFormat {
formatRange(start: number | bigint, end: number | bigint): string;
formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
}
}
`,ya["lib.scripthost.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Windows Script Host APIS
/////////////////////////////
interface ActiveXObject {
new (s: string): any;
}
declare var ActiveXObject: ActiveXObject;
interface ITextWriter {
Write(s: string): void;
WriteLine(s: string): void;
Close(): void;
}
interface TextStreamBase {
/**
* The column number of the current character position in an input stream.
*/
Column: number;
/**
* The current line number in an input stream.
*/
Line: number;
/**
* Closes a text stream.
* It is not necessary to close standard streams; they close automatically when the process ends. If
* you close a standard stream, be aware that any other pointers to that standard stream become invalid.
*/
Close(): void;
}
interface TextStreamWriter extends TextStreamBase {
/**
* Sends a string to an output stream.
*/
Write(s: string): void;
/**
* Sends a specified number of blank lines (newline characters) to an output stream.
*/
WriteBlankLines(intLines: number): void;
/**
* Sends a string followed by a newline character to an output stream.
*/
WriteLine(s: string): void;
}
interface TextStreamReader extends TextStreamBase {
/**
* Returns a specified number of characters from an input stream, starting at the current pointer position.
* Does not return until the ENTER key is pressed.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
Read(characters: number): string;
/**
* Returns all characters from an input stream.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
ReadAll(): string;
/**
* Returns an entire line from an input stream.
* Although this method extracts the newline character, it does not add it to the returned string.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
ReadLine(): string;
/**
* Skips a specified number of characters when reading from an input text stream.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
* @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
*/
Skip(characters: number): void;
/**
* Skips the next line when reading from an input text stream.
* Can only be used on a stream in reading mode, not writing or appending mode.
*/
SkipLine(): void;
/**
* Indicates whether the stream pointer position is at the end of a line.
*/
AtEndOfLine: boolean;
/**
* Indicates whether the stream pointer position is at the end of a stream.
*/
AtEndOfStream: boolean;
}
declare var WScript: {
/**
* Outputs text to either a message box (under WScript.exe) or the command console window followed by
* a newline (under CScript.exe).
*/
Echo(s: any): void;
/**
* Exposes the write-only error output stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdErr: TextStreamWriter;
/**
* Exposes the write-only output stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdOut: TextStreamWriter;
Arguments: { length: number; Item(n: number): string; };
/**
* The full path of the currently running script.
*/
ScriptFullName: string;
/**
* Forces the script to stop immediately, with an optional exit code.
*/
Quit(exitCode?: number): number;
/**
* The Windows Script Host build version number.
*/
BuildVersion: number;
/**
* Fully qualified path of the host executable.
*/
FullName: string;
/**
* Gets/sets the script mode - interactive(true) or batch(false).
*/
Interactive: boolean;
/**
* The name of the host executable (WScript.exe or CScript.exe).
*/
Name: string;
/**
* Path of the directory containing the host executable.
*/
Path: string;
/**
* The filename of the currently running script.
*/
ScriptName: string;
/**
* Exposes the read-only input stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdIn: TextStreamReader;
/**
* Windows Script Host version
*/
Version: string;
/**
* Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
*/
ConnectObject(objEventSource: any, strPrefix: string): void;
/**
* Creates a COM object.
* @param strProgiID
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
*/
CreateObject(strProgID: string, strPrefix?: string): any;
/**
* Disconnects a COM object from its event sources.
*/
DisconnectObject(obj: any): void;
/**
* Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
* @param strPathname Fully qualified path to the file containing the object persisted to disk.
* For objects in memory, pass a zero-length string.
* @param strProgID
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
*/
GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;
/**
* Suspends script execution for a specified length of time, then continues execution.
* @param intTime Interval (in milliseconds) to suspend script execution.
*/
Sleep(intTime: number): void;
};
/**
* WSH is an alias for WScript under Windows Script Host
*/
declare var WSH: typeof WScript;
/**
* Represents an Automation SAFEARRAY
*/
declare class SafeArray<T = any> {
private constructor();
private SafeArray_typekey: SafeArray<T>;
}
/**
* Allows enumerating over a COM collection, which may not have indexed item access.
*/
interface Enumerator<T = any> {
/**
* Returns true if the current item is the last one in the collection, or the collection is empty,
* or the current item is undefined.
*/
atEnd(): boolean;
/**
* Returns the current item in the collection
*/
item(): T;
/**
* Resets the current item in the collection to the first item. If there are no items in the collection,
* the current item is set to undefined.
*/
moveFirst(): void;
/**
* Moves the current item to the next item in the collection. If the enumerator is at the end of
* the collection or the collection is empty, the current item is set to undefined.
*/
moveNext(): void;
}
interface EnumeratorConstructor {
new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;
new <T = any>(collection: any): Enumerator<T>;
}
declare var Enumerator: EnumeratorConstructor;
/**
* Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.
*/
interface VBArray<T = any> {
/**
* Returns the number of dimensions (1-based).
*/
dimensions(): number;
/**
* Takes an index for each dimension in the array, and returns the item at the corresponding location.
*/
getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;
/**
* Returns the smallest available index for a given dimension.
* @param dimension 1-based dimension (defaults to 1)
*/
lbound(dimension?: number): number;
/**
* Returns the largest available index for a given dimension.
* @param dimension 1-based dimension (defaults to 1)
*/
ubound(dimension?: number): number;
/**
* Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,
* each successive dimension is appended to the end of the array.
* Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]
*/
toArray(): T[];
}
interface VBArrayConstructor {
new <T = any>(safeArray: SafeArray<T>): VBArray<T>;
}
declare var VBArray: VBArrayConstructor;
/**
* Automation date (VT_DATE)
*/
declare class VarDate {
private constructor();
private VarDate_typekey: VarDate;
}
interface DateConstructor {
new (vd: VarDate): Date;
}
interface Date {
getVarDate: () => VarDate;
}
`,ya["lib.webworker.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker APIs
/////////////////////////////
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
signal?: AbortSignal;
}
interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
interface AesCtrParams extends Algorithm {
counter: BufferSource;
length: number;
}
interface AesDerivedKeyParams extends Algorithm {
length: number;
}
interface AesGcmParams extends Algorithm {
additionalData?: BufferSource;
iv: BufferSource;
tagLength?: number;
}
interface AesKeyAlgorithm extends KeyAlgorithm {
length: number;
}
interface AesKeyGenParams extends Algorithm {
length: number;
}
interface Algorithm {
name: string;
}
interface AudioConfiguration {
bitrate?: number;
channels?: string;
contentType: string;
samplerate?: number;
spatialRendering?: boolean;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
}
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}
interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
interface DOMMatrix2DInit {
a?: number;
b?: number;
c?: number;
d?: number;
e?: number;
f?: number;
m11?: number;
m12?: number;
m21?: number;
m22?: number;
m41?: number;
m42?: number;
}
interface DOMMatrixInit extends DOMMatrix2DInit {
is2D?: boolean;
m13?: number;
m14?: number;
m23?: number;
m24?: number;
m31?: number;
m32?: number;
m33?: number;
m34?: number;
m43?: number;
m44?: number;
}
interface DOMPointInit {
w?: number;
x?: number;
y?: number;
z?: number;
}
interface DOMQuadInit {
p1?: DOMPointInit;
p2?: DOMPointInit;
p3?: DOMPointInit;
p4?: DOMPointInit;
}
interface DOMRectInit {
height?: number;
width?: number;
x?: number;
y?: number;
}
interface EcKeyGenParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcKeyImportParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcdhKeyDeriveParams extends Algorithm {
public: CryptoKey;
}
interface EcdsaParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface ErrorEventInit extends EventInit {
colno?: number;
error?: any;
filename?: string;
lineno?: number;
message?: string;
}
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
}
interface EventSourceInit {
withCredentials?: boolean;
}
interface ExtendableEventInit extends EventInit {
}
interface ExtendableMessageEventInit extends ExtendableEventInit {
data?: any;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: Client | ServiceWorker | MessagePort | null;
}
interface FetchEventInit extends ExtendableEventInit {
clientId?: string;
handled?: Promise<undefined>;
preloadResponse?: Promise<any>;
replacesClientId?: string;
request: Request;
resultingClientId?: string;
}
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
interface FileSystemGetDirectoryOptions {
create?: boolean;
}
interface FileSystemGetFileOptions {
create?: boolean;
}
interface FileSystemReadWriteOptions {
at?: number;
}
interface FileSystemRemoveOptions {
recursive?: boolean;
}
interface FontFaceDescriptors {
ascentOverride?: string;
descentOverride?: string;
display?: FontDisplay;
featureSettings?: string;
lineGapOverride?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
variant?: string;
weight?: string;
}
interface FontFaceSetLoadEventInit extends EventInit {
fontfaces?: FontFace[];
}
interface GetNotificationOptions {
tag?: string;
}
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface HmacKeyGenParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface IDBDatabaseInfo {
name?: string;
version?: number;
}
interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
}
interface IDBObjectStoreParameters {
autoIncrement?: boolean;
keyPath?: string | string[] | null;
}
interface IDBTransactionOptions {
durability?: IDBTransactionDurability;
}
interface IDBVersionChangeEventInit extends EventInit {
newVersion?: number | null;
oldVersion?: number;
}
interface ImageBitmapOptions {
colorSpaceConversion?: ColorSpaceConversion;
imageOrientation?: ImageOrientation;
premultiplyAlpha?: PremultiplyAlpha;
resizeHeight?: number;
resizeQuality?: ResizeQuality;
resizeWidth?: number;
}
interface ImageBitmapRenderingContextSettings {
alpha?: boolean;
}
interface ImageDataSettings {
colorSpace?: PredefinedColorSpace;
}
interface ImageEncodeOptions {
quality?: number;
type?: string;
}
interface ImportMeta {
url: string;
}
interface JsonWebKey {
alg?: string;
crv?: string;
d?: string;
dp?: string;
dq?: string;
e?: string;
ext?: boolean;
k?: string;
key_ops?: string[];
kty?: string;
n?: string;
oth?: RsaOtherPrimesInfo[];
p?: string;
q?: string;
qi?: string;
use?: string;
x?: string;
y?: string;
}
interface KeyAlgorithm {
name: string;
}
interface LockInfo {
clientId?: string;
mode?: LockMode;
name?: string;
}
interface LockManagerSnapshot {
held?: LockInfo[];
pending?: LockInfo[];
}
interface LockOptions {
ifAvailable?: boolean;
mode?: LockMode;
signal?: AbortSignal;
steal?: boolean;
}
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaDecodingConfiguration;
}
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaEncodingConfiguration;
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
type: MediaDecodingType;
}
interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MessageEventInit<T = any> extends EventInit {
data?: T;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: MessageEventSource | null;
}
interface MultiCacheQueryOptions extends CacheQueryOptions {
cacheName?: string;
}
interface NavigationPreloadState {
enabled?: boolean;
headerValue?: string;
}
interface NotificationAction {
action: string;
icon?: string;
title: string;
}
interface NotificationEventInit extends ExtendableEventInit {
action?: string;
notification: Notification;
}
interface NotificationOptions {
actions?: NotificationAction[];
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
image?: string;
lang?: string;
renotify?: boolean;
requireInteraction?: boolean;
silent?: boolean;
tag?: string;
timestamp?: EpochTimeStamp;
vibrate?: VibratePattern;
}
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
salt: BufferSource;
}
interface PerformanceMarkOptions {
detail?: any;
startTime?: DOMHighResTimeStamp;
}
interface PerformanceMeasureOptions {
detail?: any;
duration?: DOMHighResTimeStamp;
end?: string | DOMHighResTimeStamp;
start?: string | DOMHighResTimeStamp;
}
interface PerformanceObserverInit {
buffered?: boolean;
entryTypes?: string[];
type?: string;
}
interface PermissionDescriptor {
name: PermissionName;
}
interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
total?: number;
}
interface PromiseRejectionEventInit extends EventInit {
promise: Promise<any>;
reason?: any;
}
interface PushEventInit extends ExtendableEventInit {
data?: PushMessageDataInit;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: EpochTimeStamp | null;
keys?: Record<string, string>;
}
interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySize<T>;
}
interface QueuingStrategyInit {
/**
* Creates a new ByteLengthQueuingStrategy with the provided high water mark.
*
* 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.
*/
highWaterMark: number;
}
interface RTCEncodedAudioFrameMetadata {
contributingSources?: number[];
synchronizationSource?: number;
}
interface RTCEncodedVideoFrameMetadata {
contributingSources?: number[];
dependencies?: number[];
frameId?: number;
height?: number;
spatialIndex?: number;
synchronizationSource?: number;
temporalIndex?: number;
width?: number;
}
interface ReadableStreamGetReaderOptions {
/**
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
*
* 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.
*/
mode?: ReadableStreamReaderMode;
}
interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
}
interface ReadableStreamReadValueResult<T> {
done: false;
value: T;
}
interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* 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.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*/
writable: WritableStream<W>;
}
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
updateViaCache?: ServiceWorkerUpdateViaCache;
}
interface RequestInit {
/** A BodyInit object or null to set request's body. */
body?: BodyInit | null;
/** A string indicating how the request will interact with the browser's cache to set request's cache. */
cache?: RequestCache;
/** 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. */
credentials?: RequestCredentials;
/** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
headers?: HeadersInit;
/** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
integrity?: string;
/** A boolean to set request's keepalive. */
keepalive?: boolean;
/** A string to set request's method. */
method?: string;
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
mode?: RequestMode;
/** 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. */
redirect?: RequestRedirect;
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
referrer?: string;
/** A referrer policy to set request's referrerPolicy. */
referrerPolicy?: ReferrerPolicy;
/** An AbortSignal to set request's signal. */
signal?: AbortSignal | null;
/** Can only be null. Used to disassociate request from any Window. */
window?: null;
}
interface ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
interface RsaKeyGenParams extends Algorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaOaepParams extends Algorithm {
label?: BufferSource;
}
interface RsaOtherPrimesInfo {
d?: string;
r?: string;
t?: string;
}
interface RsaPssParams extends Algorithm {
saltLength: number;
}
interface SecurityPolicyViolationEventInit extends EventInit {
blockedURI?: string;
columnNumber?: number;
disposition: SecurityPolicyViolationEventDisposition;
documentURI: string;
effectiveDirective: string;
lineNumber?: number;
originalPolicy: string;
referrer?: string;
sample?: string;
sourceFile?: string;
statusCode: number;
violatedDirective: string;
}
interface StorageEstimate {
quota?: number;
usage?: number;
}
interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
/**
* 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.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*
* Errors and closures of the source and destination streams propagate as follows:
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*/
preventClose?: boolean;
signal?: AbortSignal;
}
interface StructuredSerializeOptions {
transfer?: Transferable[];
}
interface TextDecodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
interface TextEncoderEncodeIntoResult {
read?: number;
written?: number;
}
interface Transformer<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
writableType?: undefined;
}
interface UnderlyingByteSource {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
start?: (controller: ReadableByteStreamController) => any;
type: "bytes";
}
interface UnderlyingDefaultSource<R = any> {
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
start?: (controller: ReadableStreamDefaultController<R>) => any;
type?: undefined;
}
interface UnderlyingSink<W = any> {
abort?: UnderlyingSinkAbortCallback;
close?: UnderlyingSinkCloseCallback;
start?: UnderlyingSinkStartCallback;
type?: undefined;
write?: UnderlyingSinkWriteCallback<W>;
}
interface UnderlyingSource<R = any> {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: UnderlyingSourcePullCallback<R>;
start?: UnderlyingSourceStartCallback<R>;
type?: ReadableStreamType;
}
interface VideoColorSpaceInit {
fullRange?: boolean | null;
matrix?: VideoMatrixCoefficients | null;
primaries?: VideoColorPrimaries | null;
transfer?: VideoTransferCharacteristics | null;
}
interface VideoConfiguration {
bitrate: number;
colorGamut?: ColorGamut;
contentType: string;
framerate: number;
hdrMetadataType?: HdrMetadataType;
height: number;
scalabilityMode?: string;
transferFunction?: TransferFunction;
width: number;
}
interface WebGLContextAttributes {
alpha?: boolean;
antialias?: boolean;
depth?: boolean;
desynchronized?: boolean;
failIfMajorPerformanceCaveat?: boolean;
powerPreference?: WebGLPowerPreference;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
stencil?: boolean;
}
interface WebGLContextEventInit extends EventInit {
statusMessage?: string;
}
interface WorkerOptions {
credentials?: RequestCredentials;
name?: string;
type?: WorkerType;
}
/** 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. */
interface ANGLE_instanced_arrays {
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
}
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
interface AbortController {
/** Returns the AbortSignal object associated with this object. */
readonly signal: AbortSignal;
/** 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. */
abort(reason?: any): void;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
interface AbortSignalEventMap {
"abort": Event;
}
/** 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. */
interface AbortSignal extends EventTarget {
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
readonly aborted: boolean;
onabort: ((this: AbortSignal, ev: Event) => any) | null;
readonly reason: any;
throwIfAborted(): void;
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AbortSignal: {
prototype: AbortSignal;
new(): AbortSignal;
abort(reason?: any): AbortSignal;
timeout(milliseconds: number): AbortSignal;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface AnimationFrameProvider {
cancelAnimationFrame(handle: number): void;
requestAnimationFrame(callback: FrameRequestCallback): number;
}
/** 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. */
interface Blob {
readonly size: number;
readonly type: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream<Uint8Array>;
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
interface Body {
readonly body: ReadableStream<Uint8Array> | null;
readonly bodyUsed: boolean;
arrayBuffer(): Promise<ArrayBuffer>;
blob(): Promise<Blob>;
formData(): Promise<FormData>;
json(): Promise<any>;
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
interface BroadcastChannel extends EventTarget {
/** Returns the channel name (as passed to the constructor). */
readonly name: string;
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/** Closes the BroadcastChannel object, opening it up to garbage collection. */
close(): void;
/** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */
postMessage(message: any): void;
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BroadcastChannel: {
prototype: BroadcastChannel;
new(name: string): BroadcastChannel;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
readonly highWaterMark: number;
readonly size: QueuingStrategySize<ArrayBufferView>;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};
/**
* 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.
* Available only in secure contexts.
*/
interface Cache {
add(request: RequestInfo | URL): Promise<void>;
addAll(requests: RequestInfo[]): Promise<void>;
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
put(request: RequestInfo | URL, response: Response): Promise<void>;
}
declare var Cache: {
prototype: Cache;
new(): Cache;
};
/**
* The storage for Cache objects.
* Available only in secure contexts.
*/
interface CacheStorage {
delete(cacheName: string): Promise<boolean>;
has(cacheName: string): Promise<boolean>;
keys(): Promise<string[]>;
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
interface CanvasCompositing {
globalAlpha: number;
globalCompositeOperation: GlobalCompositeOperation;
}
interface CanvasDrawImage {
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
}
interface CanvasDrawPath {
beginPath(): void;
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
stroke(): void;
stroke(path: Path2D): void;
}
interface CanvasFillStrokeStyles {
fillStyle: string | CanvasGradient | CanvasPattern;
strokeStyle: string | CanvasGradient | CanvasPattern;
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
interface CanvasFilters {
filter: string;
}
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
interface CanvasGradient {
/**
* 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.
*
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasImageData {
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
putImageData(imagedata: ImageData, dx: number, dy: number): void;
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}
interface CanvasImageSmoothing {
imageSmoothingEnabled: boolean;
imageSmoothingQuality: ImageSmoothingQuality;
}
interface CanvasPath {
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
closePath(): void;
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
lineTo(x: number, y: number): void;
moveTo(x: number, y: number): void;
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
rect(x: number, y: number, w: number, h: number): void;
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
}
interface CanvasPathDrawingStyles {
lineCap: CanvasLineCap;
lineDashOffset: number;
lineJoin: CanvasLineJoin;
lineWidth: number;
miterLimit: number;
getLineDash(): number[];
setLineDash(segments: number[]): void;
}
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
interface CanvasPattern {
/** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
interface CanvasRect {
clearRect(x: number, y: number, w: number, h: number): void;
fillRect(x: number, y: number, w: number, h: number): void;
strokeRect(x: number, y: number, w: number, h: number): void;
}
interface CanvasShadowStyles {
shadowBlur: number;
shadowColor: string;
shadowOffsetX: number;
shadowOffsetY: number;
}
interface CanvasState {
restore(): void;
save(): void;
}
interface CanvasText {
fillText(text: string, x: number, y: number, maxWidth?: number): void;
measureText(text: string): TextMetrics;
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
interface CanvasTextDrawingStyles {
direction: CanvasDirection;
font: string;
fontKerning: CanvasFontKerning;
textAlign: CanvasTextAlign;
textBaseline: CanvasTextBaseline;
}
interface CanvasTransform {
getTransform(): DOMMatrix;
resetTransform(): void;
rotate(angle: number): void;
scale(x: number, y: number): void;
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
setTransform(transform?: DOMMatrix2DInit): void;
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
translate(x: number, y: number): void;
}
/** The Client\xA0interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific\xA0WindowClient. You can get\xA0Client/WindowClient\xA0objects from methods such as Clients.matchAll() and\xA0Clients.get(). */
interface Client {
readonly frameType: FrameType;
readonly id: string;
readonly type: ClientTypes;
readonly url: string;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
}
declare var Client: {
prototype: Client;
new(): Client;
};
/** Provides access to\xA0Client\xA0objects. Access it\xA0via self.clients\xA0within a\xA0service worker. */
interface Clients {
claim(): Promise<void>;
get(id: string): Promise<Client | undefined>;
matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
openWindow(url: string | URL): Promise<WindowClient | null>;
}
declare var Clients: {
prototype: Clients;
new(): Clients;
};
/** 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. */
interface CloseEvent extends Event {
/** Returns the WebSocket connection close code provided by the server. */
readonly code: number;
/** Returns the WebSocket connection close reason provided by the server. */
readonly reason: string;
/** Returns true if the connection closed cleanly; false otherwise. */
readonly wasClean: boolean;
}
declare var CloseEvent: {
prototype: CloseEvent;
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface CountQueuingStrategy extends QueuingStrategy {
readonly highWaterMark: number;
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
interface Crypto {
/** Available only in secure contexts. */
readonly subtle: SubtleCrypto;
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
/** Available only in secure contexts. */
randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
}
declare var Crypto: {
prototype: Crypto;
new(): Crypto;
};
/**
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
* Available only in secure contexts.
*/
interface CryptoKey {
readonly algorithm: KeyAlgorithm;
readonly extractable: boolean;
readonly type: KeyType;
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
interface CustomEvent<T = any> extends Event {
/** Returns any custom data event was created with. Typically used for synthetic events. */
readonly detail: T;
/** @deprecated */
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
interface DOMException extends Error {
/** @deprecated */
readonly code: number;
readonly message: string;
readonly name: string;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
};
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
invertSelf(): DOMMatrix;
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
skewXSelf(sx?: number): DOMMatrix;
skewYSelf(sy?: number): DOMMatrix;
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrix: {
prototype: DOMMatrix;
new(init?: string | number[]): DOMMatrix;
fromFloat32Array(array32: Float32Array): DOMMatrix;
fromFloat64Array(array64: Float64Array): DOMMatrix;
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};
interface DOMMatrixReadOnly {
readonly a: number;
readonly b: number;
readonly c: number;
readonly d: number;
readonly e: number;
readonly f: number;
readonly is2D: boolean;
readonly isIdentity: boolean;
readonly m11: number;
readonly m12: number;
readonly m13: number;
readonly m14: number;
readonly m21: number;
readonly m22: number;
readonly m23: number;
readonly m24: number;
readonly m31: number;
readonly m32: number;
readonly m33: number;
readonly m34: number;
readonly m41: number;
readonly m42: number;
readonly m43: number;
readonly m44: number;
flipX(): DOMMatrix;
flipY(): DOMMatrix;
inverse(): DOMMatrix;
multiply(other?: DOMMatrixInit): DOMMatrix;
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVector(x?: number, y?: number): DOMMatrix;
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** @deprecated */
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
skewX(sx?: number): DOMMatrix;
skewY(sy?: number): DOMMatrix;
toFloat32Array(): Float32Array;
toFloat64Array(): Float64Array;
toJSON(): any;
transformPoint(point?: DOMPointInit): DOMPoint;
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrixReadOnly: {
prototype: DOMMatrixReadOnly;
new(init?: string | number[]): DOMMatrixReadOnly;
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};
interface DOMPoint extends DOMPointReadOnly {
w: number;
x: number;
y: number;
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
fromPoint(other?: DOMPointInit): DOMPoint;
};
interface DOMPointReadOnly {
readonly w: number;
readonly x: number;
readonly y: number;
readonly z: number;
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
interface DOMQuad {
readonly p1: DOMPoint;
readonly p2: DOMPoint;
readonly p3: DOMPoint;
readonly p4: DOMPoint;
getBounds(): DOMRect;
toJSON(): any;
}
declare var DOMQuad: {
prototype: DOMQuad;
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
fromQuad(other?: DOMQuadInit): DOMQuad;
fromRect(other?: DOMRectInit): DOMQuad;
};
interface DOMRect extends DOMRectReadOnly {
height: number;
width: number;
x: number;
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
};
interface DOMRectReadOnly {
readonly bottom: number;
readonly height: number;
readonly left: number;
readonly right: number;
readonly top: number;
readonly width: number;
readonly x: number;
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/** A type returned by some APIs which contains a list of DOMString (strings). */
interface DOMStringList {
/** Returns the number of strings in strings. */
readonly length: number;
/** Returns true if strings contains string, and false otherwise. */
contains(string: string): boolean;
/** Returns the string with index index from strings. */
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** (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. */
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
/** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
readonly name: string;
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** Aborts dedicatedWorkerGlobal. */
close(): void;
/** 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. */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var DedicatedWorkerGlobalScope: {
prototype: DedicatedWorkerGlobalScope;
new(): DedicatedWorkerGlobalScope;
};
interface EXT_blend_minmax {
readonly MIN_EXT: 0x8007;
readonly MAX_EXT: 0x8008;
}
interface EXT_color_buffer_float {
}
interface EXT_color_buffer_half_float {
readonly RGBA16F_EXT: 0x881A;
readonly RGB16F_EXT: 0x881B;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
interface EXT_float_blend {
}
/** 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. */
interface EXT_frag_depth {
}
interface EXT_sRGB {
readonly SRGB_EXT: 0x8C40;
readonly SRGB_ALPHA_EXT: 0x8C42;
readonly SRGB8_ALPHA8_EXT: 0x8C43;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
}
interface EXT_shader_texture_lod {
}
interface EXT_texture_compression_bptc {
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
}
interface EXT_texture_compression_rgtc {
readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
}
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
interface EXT_texture_filter_anisotropic {
readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
}
interface EXT_texture_norm16 {
readonly R16_EXT: 0x822A;
readonly RG16_EXT: 0x822C;
readonly RGB16_EXT: 0x8054;
readonly RGBA16_EXT: 0x805B;
readonly R16_SNORM_EXT: 0x8F98;
readonly RG16_SNORM_EXT: 0x8F99;
readonly RGB16_SNORM_EXT: 0x8F9A;
readonly RGBA16_SNORM_EXT: 0x8F9B;
}
/** Events providing information related to errors in scripts or in files. */
interface ErrorEvent extends Event {
readonly colno: number;
readonly error: any;
readonly filename: string;
readonly lineno: number;
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/** An event which takes place in the DOM. */
interface Event {
/** 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. */
readonly bubbles: boolean;
/** @deprecated */
cancelBubble: boolean;
/** 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. */
readonly cancelable: boolean;
/** 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. */
readonly composed: boolean;
/** Returns the object whose event listener's callback is currently being invoked. */
readonly currentTarget: EventTarget | null;
/** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
readonly defaultPrevented: boolean;
/** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
readonly eventPhase: number;
/** Returns true if event was dispatched by the user agent, and false otherwise. */
readonly isTrusted: boolean;
/** @deprecated */
returnValue: boolean;
/** @deprecated */
readonly srcElement: EventTarget | null;
/** Returns the object to which event is dispatched (its target). */
readonly target: EventTarget | null;
/** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
readonly timeStamp: DOMHighResTimeStamp;
/** Returns the type of event, e.g. "click", "hashchange", or "submit". */
readonly type: string;
/** 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. */
composedPath(): EventTarget[];
/** @deprecated */
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/** 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. */
preventDefault(): void;
/** 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. */
stopImmediatePropagation(): void;
/** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
stopPropagation(): void;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}
declare var Event: {
prototype: Event;
new(type: string, eventInitDict?: EventInit): Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
};
interface EventListener {
(evt: Event): void;
}
interface EventListenerObject {
handleEvent(object: Event): void;
}
interface EventSourceEventMap {
"error": Event;
"message": MessageEvent;
"open": Event;
}
interface EventSource extends EventTarget {
onerror: ((this: EventSource, ev: Event) => any) | null;
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
onopen: ((this: EventSource, ev: Event) => any) | null;
/** Returns the state of this EventSource object's connection. It can have the values described below. */
readonly readyState: number;
/** Returns the URL providing the event stream. */
readonly url: string;
/** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */
readonly withCredentials: boolean;
/** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
close(): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var EventSource: {
prototype: EventSource;
new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
};
/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
interface EventTarget {
/**
* 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.
*
* 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.
*
* 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.
*
* 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 \xA7 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
*
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/** 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. */
dispatchEvent(event: Event): boolean;
/** Removes the event listener in target's event listener list with the same type, callback, and options. */
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
};
/** 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. */
interface ExtendableEvent extends Event {
waitUntil(f: Promise<any>): void;
}
declare var ExtendableEvent: {
prototype: ExtendableEvent;
new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;
};
/** 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) \u2014 extends the lifetime of such events. */
interface ExtendableMessageEvent extends ExtendableEvent {
readonly data: any;
readonly lastEventId: string;
readonly origin: string;
readonly ports: ReadonlyArray<MessagePort>;
readonly source: Client | ServiceWorker | MessagePort | null;
}
declare var ExtendableMessageEvent: {
prototype: ExtendableMessageEvent;
new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;
};
/** This is the event type for fetch\xA0events dispatched on the\xA0service worker global scope. It contains information about the fetch, including the\xA0request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. */
interface FetchEvent extends ExtendableEvent {
readonly clientId: string;
readonly handled: Promise<undefined>;
readonly preloadResponse: Promise<any>;
readonly request: Request;
readonly resultingClientId: string;
respondWith(r: Response | PromiseLike<Response>): void;
}
declare var FetchEvent: {
prototype: FetchEvent;
new(type: string, eventInitDict: FetchEventInit): FetchEvent;
};
/** Provides information about files and allows JavaScript in a web page to access their content. */
interface File extends Blob {
readonly lastModified: number;
readonly name: string;
readonly webkitRelativePath: string;
}
declare var File: {
prototype: File;
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
/** 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. */
interface FileList {
readonly length: number;
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<FileReader>;
"error": ProgressEvent<FileReader>;
"load": ProgressEvent<FileReader>;
"loadend": ProgressEvent<FileReader>;
"loadstart": ProgressEvent<FileReader>;
"progress": ProgressEvent<FileReader>;
}
/** 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. */
interface FileReader extends EventTarget {
readonly error: DOMException | null;
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
readonly result: string | ArrayBuffer | null;
abort(): void;
readAsArrayBuffer(blob: Blob): void;
readAsBinaryString(blob: Blob): void;
readAsDataURL(blob: Blob): void;
readAsText(blob: Blob, encoding?: string): void;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FileReader: {
prototype: FileReader;
new(): FileReader;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
};
/** Allows to read File or Blob objects in a synchronous way. */
interface FileReaderSync {
readAsArrayBuffer(blob: Blob): ArrayBuffer;
/** @deprecated */
readAsBinaryString(blob: Blob): string;
readAsDataURL(blob: Blob): string;
readAsText(blob: Blob, encoding?: string): string;
}
declare var FileReaderSync: {
prototype: FileReaderSync;
new(): FileReaderSync;
};
/** Available only in secure contexts. */
interface FileSystemDirectoryHandle extends FileSystemHandle {
readonly kind: "directory";
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}
declare var FileSystemDirectoryHandle: {
prototype: FileSystemDirectoryHandle;
new(): FileSystemDirectoryHandle;
};
/** Available only in secure contexts. */
interface FileSystemFileHandle extends FileSystemHandle {
readonly kind: "file";
createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;
getFile(): Promise<File>;
}
declare var FileSystemFileHandle: {
prototype: FileSystemFileHandle;
new(): FileSystemFileHandle;
};
/** Available only in secure contexts. */
interface FileSystemHandle {
readonly kind: FileSystemHandleKind;
readonly name: string;
isSameEntry(other: FileSystemHandle): Promise<boolean>;
}
declare var FileSystemHandle: {
prototype: FileSystemHandle;
new(): FileSystemHandle;
};
/** Available only in secure contexts. */
interface FileSystemSyncAccessHandle {
close(): void;
flush(): void;
getSize(): number;
read(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;
truncate(newSize: number): void;
write(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;
}
declare var FileSystemSyncAccessHandle: {
prototype: FileSystemSyncAccessHandle;
new(): FileSystemSyncAccessHandle;
};
interface FontFace {
ascentOverride: string;
descentOverride: string;
display: FontDisplay;
family: string;
featureSettings: string;
lineGapOverride: string;
readonly loaded: Promise<FontFace>;
readonly status: FontFaceLoadStatus;
stretch: string;
style: string;
unicodeRange: string;
variant: string;
weight: string;
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
interface FontFaceSet extends EventTarget {
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
readonly ready: Promise<FontFaceSet>;
readonly status: FontFaceSetLoadStatus;
check(font: string, text?: string): boolean;
load(font: string, text?: string): Promise<FontFace[]>;
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FontFaceSet: {
prototype: FontFaceSet;
new(initialFaces: FontFace[]): FontFaceSet;
};
interface FontFaceSetLoadEvent extends Event {
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
readonly fonts: FontFaceSet;
}
/** 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". */
interface FormData {
append(name: string, value: string | Blob, fileName?: string): void;
delete(name: string): void;
get(name: string): FormDataEntryValue | null;
getAll(name: string): FormDataEntryValue[];
has(name: string): boolean;
set(name: string, value: string | Blob, fileName?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(): FormData;
};
interface GenericTransformStream {
readonly readable: ReadableStream;
readonly writable: WritableStream;
}
/** 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\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */
interface Headers {
append(name: string, value: string): void;
delete(name: string): void;
get(name: string): string | null;
has(name: string): boolean;
set(name: string, value: string): void;
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}
declare var Headers: {
prototype: Headers;
new(init?: HeadersInit): Headers;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
interface IDBCursor {
/** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
readonly direction: IDBCursorDirection;
/** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
readonly key: IDBValidKey;
/** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
readonly primaryKey: IDBValidKey;
readonly request: IDBRequest;
/** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
readonly source: IDBObjectStore | IDBIndex;
/** Advances the cursor through the next count records in range. */
advance(count: number): void;
/** Advances the cursor to the next record in range. */
continue(key?: IDBValidKey): void;
/** 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. */
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
*
* If successful, request's result will be undefined.
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
*
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
*
* If successful, request's result will be the record's key.
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/** 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. */
interface IDBCursorWithValue extends IDBCursor {
/** Returns the cursor's current value. */
readonly value: any;
}
declare var IDBCursorWithValue: {
prototype: IDBCursorWithValue;
new(): IDBCursorWithValue;
};
interface IDBDatabaseEventMap {
"abort": Event;
"close": Event;
"error": Event;
"versionchange": IDBVersionChangeEvent;
}
/** 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. */
interface IDBDatabase extends EventTarget {
/** Returns the name of the database. */
readonly name: string;
/** Returns a list of the names of object stores in the database. */
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/** Returns the version of the database. */
readonly version: number;
/** Closes the connection once all running transactions have finished. */
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteObjectStore(name: string): void;
/** 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. */
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBDatabase: {
prototype: IDBDatabase;
new(): IDBDatabase;
};
/** 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.) */
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*/
cmp(first: any, second: any): number;
databases(): Promise<IDBDatabaseInfo[]>;
/** 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. */
deleteDatabase(name: string): IDBOpenDBRequest;
/** 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. */
open(name: string, version?: number): IDBOpenDBRequest;
}
declare var IDBFactory: {
prototype: IDBFactory;
new(): IDBFactory;
};
/** 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. */
interface IDBIndex {
readonly keyPath: string | string[];
readonly multiEntry: boolean;
/** Returns the name of the index. */
name: string;
/** Returns the IDBObjectStore the index belongs to. */
readonly objectStore: IDBObjectStore;
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* 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.
*
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}
declare var IDBIndex: {
prototype: IDBIndex;
new(): IDBIndex;
};
/** 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: */
interface IDBKeyRange {
/** Returns lower bound, or undefined if none. */
readonly lower: any;
/** Returns true if the lower open flag is set, and false otherwise. */
readonly lowerOpen: boolean;
/** Returns upper bound, or undefined if none. */
readonly upper: any;
/** Returns true if the upper open flag is set, and false otherwise. */
readonly upperOpen: boolean;
/** Returns true if key is included in the range, and false otherwise. */
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/** 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. */
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/** Returns a new IDBKeyRange spanning only key. */
only(value: any): IDBKeyRange;
/** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.) */
interface IDBObjectStore {
/** Returns true if the store has a key generator, and false otherwise. */
readonly autoIncrement: boolean;
/** Returns a list of the names of indexes in the store. */
readonly indexNames: DOMStringList;
/** Returns the key path of the store, or null if none. */
readonly keyPath: string | string[];
/** Returns the name of the store. */
name: string;
/** Returns the associated transaction. */
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* 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.
*
* If successful, request's result will be the record's key.
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* 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.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
*
* If successful, request's result will be undefined.
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* 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.
*
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* 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.
*
* If successful, request's result will be the record's key.
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}
declare var IDBObjectStore: {
prototype: IDBObjectStore;
new(): IDBObjectStore;
};
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
"blocked": IDBVersionChangeEvent;
"upgradeneeded": IDBVersionChangeEvent;
}
/** Also inherits methods from its parents IDBRequest and EventTarget. */
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBOpenDBRequest: {
prototype: IDBOpenDBRequest;
new(): IDBOpenDBRequest;
};
interface IDBRequestEventMap {
"error": Event;
"success": Event;
}
/** 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. */
interface IDBRequest<T = any> extends EventTarget {
/** 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. */
readonly error: DOMException | null;
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/** Returns "pending" until a request is complete, then returns "done". */
readonly readyState: IDBRequestReadyState;
/** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
readonly result: T;
/** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/** 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. */
readonly transaction: IDBTransaction | null;
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBRequest: {
prototype: IDBRequest;
new(): IDBRequest;
};
interface IDBTransactionEventMap {
"abort": Event;
"complete": Event;
"error": Event;
}
interface IDBTransaction extends EventTarget {
/** Returns the transaction's connection. */
readonly db: IDBDatabase;
readonly durability: IDBTransactionDurability;
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
readonly error: DOMException | null;
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
readonly mode: IDBTransactionMode;
/** 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. */
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
/** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
abort(): void;
commit(): void;
/** Returns an IDBObjectStore in the transaction's scope. */
objectStore(name: string): IDBObjectStore;
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBTransaction: {
prototype: IDBTransaction;
new(): IDBTransaction;
};
/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
interface IDBVersionChangeEvent extends Event {
readonly newVersion: number | null;
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
interface ImageBitmap {
/** Returns the intrinsic height of the image, in CSS pixels. */
readonly height: number;
/** Returns the intrinsic width of the image, in CSS pixels. */
readonly width: number;
/** Releases imageBitmap's underlying bitmap data. */
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
interface ImageBitmapRenderingContext {
/** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/** 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(). */
interface ImageData {
readonly colorSpace: PredefinedColorSpace;
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
readonly data: Uint8ClampedArray;
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
readonly height: number;
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
readonly width: number;
}
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: 0x91B1;
}
/** Available only in secure contexts. */
interface Lock {
readonly mode: LockMode;
readonly name: string;
}
declare var Lock: {
prototype: Lock;
new(): Lock;
};
/** Available only in secure contexts. */
interface LockManager {
query(): Promise<LockManagerSnapshot>;
request(name: string, callback: LockGrantedCallback): Promise<any>;
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
}
declare var LockManager: {
prototype: LockManager;
new(): LockManager;
};
interface MediaCapabilities {
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
interface MessageChannel {
/** Returns the first MessagePort object. */
readonly port1: MessagePort;
/** Returns the second MessagePort object. */
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/** A message received by a target object. */
interface MessageEvent<T = any> extends Event {
/** Returns the data of the message. */
readonly data: T;
/** Returns the last event ID string, for server-sent events. */
readonly lastEventId: string;
/** Returns the origin of the message, for server-sent events and cross-document messaging. */
readonly origin: string;
/** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
readonly ports: ReadonlyArray<MessagePort>;
/** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
readonly source: MessageEventSource | null;
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** 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. */
interface MessagePort extends EventTarget {
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/** Disconnects the port, so that it is no longer active. */
close(): void;
/**
* 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.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/** Begins dispatching messages received on the port. */
start(): void;
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MessagePort: {
prototype: MessagePort;
new(): MessagePort;
};
/** Available only in secure contexts. */
interface NavigationPreloadManager {
disable(): Promise<void>;
enable(): Promise<void>;
getState(): Promise<NavigationPreloadState>;
setHeaderValue(value: string): Promise<void>;
}
declare var NavigationPreloadManager: {
prototype: NavigationPreloadManager;
new(): NavigationPreloadManager;
};
interface NavigatorConcurrentHardware {
readonly hardwareConcurrency: number;
}
interface NavigatorID {
/** @deprecated */
readonly appCodeName: string;
/** @deprecated */
readonly appName: string;
/** @deprecated */
readonly appVersion: string;
/** @deprecated */
readonly platform: string;
/** @deprecated */
readonly product: string;
readonly userAgent: string;
}
interface NavigatorLanguage {
readonly language: string;
readonly languages: ReadonlyArray<string>;
}
/** Available only in secure contexts. */
interface NavigatorLocks {
readonly locks: LockManager;
}
interface NavigatorOnLine {
readonly onLine: boolean;
}
/** Available only in secure contexts. */
interface NavigatorStorage {
readonly storage: StorageManager;
}
interface NotificationEventMap {
"click": Event;
"close": Event;
"error": Event;
"show": Event;
}
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
interface Notification extends EventTarget {
readonly body: string;
readonly data: any;
readonly dir: NotificationDirection;
readonly icon: string;
readonly lang: string;
onclick: ((this: Notification, ev: Event) => any) | null;
onclose: ((this: Notification, ev: Event) => any) | null;
onerror: ((this: Notification, ev: Event) => any) | null;
onshow: ((this: Notification, ev: Event) => any) | null;
readonly tag: string;
readonly title: string;
close(): void;
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Notification: {
prototype: Notification;
new(title: string, options?: NotificationOptions): Notification;
readonly permission: NotificationPermission;
};
/** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */
interface NotificationEvent extends ExtendableEvent {
readonly action: string;
readonly notification: Notification;
}
declare var NotificationEvent: {
prototype: NotificationEvent;
new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
};
interface OES_draw_buffers_indexed {
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
blendEquationiOES(buf: GLuint, mode: GLenum): void;
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
disableiOES(target: GLenum, index: GLuint): void;
enableiOES(target: GLenum, index: GLuint): void;
}
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
interface OES_element_index_uint {
}
interface OES_fbo_render_mipmap {
}
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
}
/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
interface OES_texture_float {
}
/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
interface OES_texture_float_linear {
}
/** 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. */
interface OES_texture_half_float {
readonly HALF_FLOAT_OES: 0x8D61;
}
/** 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. */
interface OES_texture_half_float_linear {
}
interface OES_vertex_array_object {
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
}
interface OVR_multiview2 {
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
readonly MAX_VIEWS_OVR: 0x9631;
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
}
interface OffscreenCanvasEventMap {
"contextlost": Event;
"contextrestored": Event;
}
interface OffscreenCanvas extends EventTarget {
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
height: number;
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
width: number;
/**
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
*
* 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.
*/
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
/**
* 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.
*
* 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]
*
* 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).
*/
getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
/** 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. */
transferToImageBitmap(): ImageBitmap;
addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OffscreenCanvas: {
prototype: OffscreenCanvas;
new(width: number, height: number): OffscreenCanvas;
};
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
commit(): void;
}
declare var OffscreenCanvasRenderingContext2D: {
prototype: OffscreenCanvasRenderingContext2D;
new(): OffscreenCanvasRenderingContext2D;
};
/** 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. */
interface Path2D extends CanvasPath {
/** Adds to the path the path given by the argument. */
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
/** 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. */
interface Performance extends EventTarget {
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
readonly timeOrigin: DOMHighResTimeStamp;
clearMarks(markName?: string): void;
clearMeasures(measureName?: string): void;
clearResourceTimings(): void;
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
now(): DOMHighResTimeStamp;
setResourceTimingBufferSize(maxSize: number): void;
toJSON(): any;
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Performance: {
prototype: Performance;
new(): Performance;
};
/** 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). */
interface PerformanceEntry {
readonly duration: DOMHighResTimeStamp;
readonly entryType: string;
readonly name: string;
readonly startTime: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
/** PerformanceMark\xA0is 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. */
interface PerformanceMark extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMark: {
prototype: PerformanceMark;
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};
/** 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. */
interface PerformanceMeasure extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
interface PerformanceObserver {
disconnect(): void;
observe(options?: PerformanceObserverInit): void;
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
readonly supportedEntryTypes: ReadonlyArray<string>;
};
interface PerformanceObserverEntryList {
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
/** 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. */
interface PerformanceResourceTiming extends PerformanceEntry {
readonly connectEnd: DOMHighResTimeStamp;
readonly connectStart: DOMHighResTimeStamp;
readonly decodedBodySize: number;
readonly domainLookupEnd: DOMHighResTimeStamp;
readonly domainLookupStart: DOMHighResTimeStamp;
readonly encodedBodySize: number;
readonly fetchStart: DOMHighResTimeStamp;
readonly initiatorType: string;
readonly nextHopProtocol: string;
readonly redirectEnd: DOMHighResTimeStamp;
readonly redirectStart: DOMHighResTimeStamp;
readonly requestStart: DOMHighResTimeStamp;
readonly responseEnd: DOMHighResTimeStamp;
readonly responseStart: DOMHighResTimeStamp;
readonly secureConnectionStart: DOMHighResTimeStamp;
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
readonly transferSize: number;
readonly workerStart: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
interface PerformanceServerTiming {
readonly description: string;
readonly duration: DOMHighResTimeStamp;
readonly name: string;
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
interface PermissionStatusEventMap {
"change": Event;
}
interface PermissionStatus extends EventTarget {
readonly name: string;
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
readonly state: PermissionState;
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PermissionStatus: {
prototype: PermissionStatus;
new(): PermissionStatus;
};
interface Permissions {
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
/** 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>). */
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
readonly lengthComputable: boolean;
readonly loaded: number;
readonly target: T | null;
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
interface PromiseRejectionEvent extends Event {
readonly promise: Promise<any>;
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
/**
* 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.
* Available only in secure contexts.
*/
interface PushEvent extends ExtendableEvent {
readonly data: PushMessageData | null;
}
declare var PushEvent: {
prototype: PushEvent;
new(type: string, eventInitDict?: PushEventInit): PushEvent;
};
/**
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
* Available only in secure contexts.
*/
interface PushManager {
getSubscription(): Promise<PushSubscription | null>;
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/**
* This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.
* Available only in secure contexts.
*/
interface PushMessageData {
arrayBuffer(): ArrayBuffer;
blob(): Blob;
json(): any;
text(): string;
}
declare var PushMessageData: {
prototype: PushMessageData;
new(): PushMessageData;
};
/**
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
* Available only in secure contexts.
*/
interface PushSubscription {
readonly endpoint: string;
readonly expirationTime: EpochTimeStamp | null;
readonly options: PushSubscriptionOptions;
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
toJSON(): PushSubscriptionJSON;
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
/** Available only in secure contexts. */
interface PushSubscriptionOptions {
readonly applicationServerKey: ArrayBuffer | null;
readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
interface RTCEncodedAudioFrame {
data: ArrayBuffer;
readonly timestamp: number;
getMetadata(): RTCEncodedAudioFrameMetadata;
}
declare var RTCEncodedAudioFrame: {
prototype: RTCEncodedAudioFrame;
new(): RTCEncodedAudioFrame;
};
interface RTCEncodedVideoFrame {
data: ArrayBuffer;
readonly timestamp: number;
readonly type: RTCEncodedVideoFrameType;
getMetadata(): RTCEncodedVideoFrameMetadata;
}
declare var RTCEncodedVideoFrame: {
prototype: RTCEncodedVideoFrame;
new(): RTCEncodedVideoFrame;
};
interface ReadableByteStreamController {
readonly byobRequest: ReadableStreamBYOBRequest | null;
readonly desiredSize: number | null;
close(): void;
enqueue(chunk: ArrayBufferView): void;
error(e?: any): void;
}
declare var ReadableByteStreamController: {
prototype: ReadableByteStreamController;
new(): ReadableByteStreamController;
};
/** 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. */
interface ReadableStream<R = any> {
readonly locked: boolean;
cancel(reason?: any): Promise<void>;
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
tee(): [ReadableStream<R>, ReadableStream<R>];
}
declare var ReadableStream: {
prototype: ReadableStream;
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream): ReadableStreamBYOBReader;
};
interface ReadableStreamBYOBRequest {
readonly view: ArrayBufferView | null;
respond(bytesWritten: number): void;
respondWithNewView(view: ArrayBufferView): void;
}
declare var ReadableStreamBYOBRequest: {
prototype: ReadableStreamBYOBRequest;
new(): ReadableStreamBYOBRequest;
};
interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
enqueue(chunk?: R): void;
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
read(): Promise<ReadableStreamReadResult<R>>;
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
readonly closed: Promise<undefined>;
cancel(reason?: any): Promise<void>;
}
/** This Fetch API interface represents a resource request. */
interface Request extends Body {
/** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
readonly cache: RequestCache;
/** 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. */
readonly credentials: RequestCredentials;
/** Returns the kind of resource requested by request, e.g., "document" or "script". */
readonly destination: RequestDestination;
/** 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. */
readonly headers: Headers;
/** 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] */
readonly integrity: string;
/** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
readonly keepalive: boolean;
/** Returns request's HTTP method, which is "GET" by default. */
readonly method: string;
/** 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. */
readonly mode: RequestMode;
/** 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. */
readonly redirect: RequestRedirect;
/** 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. */
readonly referrer: string;
/** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
readonly referrerPolicy: ReferrerPolicy;
/** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
readonly signal: AbortSignal;
/** Returns the URL of request as a string. */
readonly url: string;
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
};
/** This Fetch API interface represents the response to a request. */
interface Response extends Body {
readonly headers: Headers;
readonly ok: boolean;
readonly redirected: boolean;
readonly status: number;
readonly statusText: string;
readonly type: ResponseType;
readonly url: string;
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
error(): Response;
redirect(url: string | URL, status?: number): Response;
};
/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
interface SecurityPolicyViolationEvent extends Event {
readonly blockedURI: string;
readonly columnNumber: number;
readonly disposition: SecurityPolicyViolationEventDisposition;
readonly documentURI: string;
readonly effectiveDirective: string;
readonly lineNumber: number;
readonly originalPolicy: string;
readonly referrer: string;
readonly sample: string;
readonly sourceFile: string;
readonly statusCode: number;
readonly violatedDirective: string;
}
declare var SecurityPolicyViolationEvent: {
prototype: SecurityPolicyViolationEvent;
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/**
* 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.
* Available only in secure contexts.
*/
interface ServiceWorker extends EventTarget, AbstractWorker {
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
readonly scriptURL: string;
readonly state: ServiceWorkerState;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorker: {
prototype: ServiceWorker;
new(): ServiceWorker;
};
interface ServiceWorkerContainerEventMap {
"controllerchange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides 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.
* Available only in secure contexts.
*/
interface ServiceWorkerContainer extends EventTarget {
readonly controller: ServiceWorker | null;
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
readonly ready: Promise<ServiceWorkerRegistration>;
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
startMessages(): void;
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerContainer: {
prototype: ServiceWorkerContainer;
new(): ServiceWorkerContainer;
};
interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"activate": ExtendableEvent;
"fetch": FetchEvent;
"install": ExtendableEvent;
"message": ExtendableMessageEvent;
"messageerror": MessageEvent;
"notificationclick": NotificationEvent;
"notificationclose": NotificationEvent;
"push": PushEvent;
"pushsubscriptionchange": Event;
}
/** This ServiceWorker API interface represents the global execution context of a service worker. */
interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
readonly clients: Clients;
onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
readonly registration: ServiceWorkerRegistration;
readonly serviceWorker: ServiceWorker;
skipWaiting(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerGlobalScope: {
prototype: ServiceWorkerGlobalScope;
new(): ServiceWorkerGlobalScope;
};
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
/**
* 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.
* Available only in secure contexts.
*/
interface ServiceWorkerRegistration extends EventTarget {
readonly active: ServiceWorker | null;
readonly installing: ServiceWorker | null;
readonly navigationPreload: NavigationPreloadManager;
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
readonly pushManager: PushManager;
readonly scope: string;
readonly updateViaCache: ServiceWorkerUpdateViaCache;
readonly waiting: ServiceWorker | null;
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
showNotification(title: string, options?: NotificationOptions): Promise<void>;
unregister(): Promise<boolean>;
update(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerRegistration: {
prototype: ServiceWorkerRegistration;
new(): ServiceWorkerRegistration;
};
interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"connect": MessageEvent;
}
interface SharedWorkerGlobalScope extends WorkerGlobalScope {
/** 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. */
readonly name: string;
onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** Aborts sharedWorkerGlobal. */
close(): void;
addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SharedWorkerGlobalScope: {
prototype: SharedWorkerGlobalScope;
new(): SharedWorkerGlobalScope;
};
/** Available only in secure contexts. */
interface StorageManager {
estimate(): Promise<StorageEstimate>;
getDirectory(): Promise<FileSystemDirectoryHandle>;
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/**
* 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).
* Available only in secure contexts.
*/
interface SubtleCrypto {
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
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>;
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}
declare var SubtleCrypto: {
prototype: SubtleCrypto;
new(): SubtleCrypto;
};
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextDecoder extends TextDecoderCommon {
/**
* 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.
*
* \`\`\`
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
* string += decoder.decode(buffer, {stream:true});
* }
* string += decoder.decode(); // end-of-queue
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*/
decode(input?: BufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/** Returns encoding's name, lowercased. */
readonly encoding: string;
/** Returns true if error mode is "fatal", otherwise false. */
readonly fatal: boolean;
/** Returns the value of ignore BOM. */
readonly ignoreBOM: boolean;
}
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
readonly readable: ReadableStream<string>;
readonly writable: WritableStream<BufferSource>;
}
declare var TextDecoderStream: {
prototype: TextDecoderStream;
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextEncoder extends TextEncoderCommon {
/** Returns the result of running UTF-8's encoder. */
encode(input?: string): Uint8Array;
/** 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. */
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/** Returns "utf-8". */
readonly encoding: string;
}
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
interface TextMetrics {
/** Returns the measurement described below. */
readonly actualBoundingBoxAscent: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxDescent: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxLeft: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxRight: number;
/** Returns the measurement described below. */
readonly fontBoundingBoxAscent: number;
/** Returns the measurement described below. */
readonly fontBoundingBoxDescent: number;
/** Returns the measurement described below. */
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
interface TransformStream<I = any, O = any> {
readonly readable: ReadableStream<O>;
readonly writable: WritableStream<I>;
}
declare var TransformStream: {
prototype: TransformStream;
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};
interface TransformStreamDefaultController<O = any> {
readonly desiredSize: number | null;
enqueue(chunk?: O): void;
error(reason?: any): void;
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/** The URL\xA0interface represents an object providing static methods used for creating object URLs. */
interface URL {
hash: string;
host: string;
hostname: string;
href: string;
toString(): string;
readonly origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
readonly searchParams: URLSearchParams;
username: string;
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
createObjectURL(obj: Blob): string;
revokeObjectURL(url: string): void;
};
interface URLSearchParams {
/** Appends a specified key/value pair as a new search parameter. */
append(name: string, value: string): void;
/** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
delete(name: string): void;
/** Returns the first value associated to the given search parameter. */
get(name: string): string | null;
/** Returns all the values association with a given search parameter. */
getAll(name: string): string[];
/** Returns a Boolean indicating if such a search parameter exists. */
has(name: string): boolean;
/** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
set(name: string, value: string): void;
sort(): void;
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
toString(): string;
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}
declare var URLSearchParams: {
prototype: URLSearchParams;
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
toString(): string;
};
interface VideoColorSpace {
readonly fullRange: boolean | null;
readonly matrix: VideoMatrixCoefficients | null;
readonly primaries: VideoColorPrimaries | null;
readonly transfer: VideoTransferCharacteristics | null;
toJSON(): VideoColorSpaceInit;
}
declare var VideoColorSpace: {
prototype: VideoColorSpace;
new(init?: VideoColorSpaceInit): VideoColorSpace;
};
interface WEBGL_color_buffer_float {
readonly RGBA32F_EXT: 0x8814;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
interface WEBGL_compressed_texture_astc {
getSupportedProfiles(): string[];
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
}
interface WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: 0x9270;
readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
readonly COMPRESSED_RG11_EAC: 0x9272;
readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
readonly COMPRESSED_RGB8_ETC2: 0x9274;
readonly COMPRESSED_SRGB8_ETC2: 0x9275;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
}
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
}
interface WEBGL_compressed_texture_s3tc_srgb {
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
}
/** 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. */
interface WEBGL_debug_renderer_info {
readonly UNMASKED_VENDOR_WEBGL: 0x9245;
readonly UNMASKED_RENDERER_WEBGL: 0x9246;
}
interface WEBGL_debug_shaders {
getTranslatedShaderSource(shader: WebGLShader): string;
}
/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: GLenum[]): void;
readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
readonly DRAW_BUFFER0_WEBGL: 0x8825;
readonly DRAW_BUFFER1_WEBGL: 0x8826;
readonly DRAW_BUFFER2_WEBGL: 0x8827;
readonly DRAW_BUFFER3_WEBGL: 0x8828;
readonly DRAW_BUFFER4_WEBGL: 0x8829;
readonly DRAW_BUFFER5_WEBGL: 0x882A;
readonly DRAW_BUFFER6_WEBGL: 0x882B;
readonly DRAW_BUFFER7_WEBGL: 0x882C;
readonly DRAW_BUFFER8_WEBGL: 0x882D;
readonly DRAW_BUFFER9_WEBGL: 0x882E;
readonly DRAW_BUFFER10_WEBGL: 0x882F;
readonly DRAW_BUFFER11_WEBGL: 0x8830;
readonly DRAW_BUFFER12_WEBGL: 0x8831;
readonly DRAW_BUFFER13_WEBGL: 0x8832;
readonly DRAW_BUFFER14_WEBGL: 0x8833;
readonly DRAW_BUFFER15_WEBGL: 0x8834;
readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
}
interface WEBGL_lose_context {
loseContext(): void;
restoreContext(): void;
}
interface WEBGL_multi_draw {
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
}
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGBA8: 0x8058;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGL2RenderingContextBase {
beginQuery(target: GLenum, query: WebGLQuery): void;
beginTransformFeedback(primitiveMode: GLenum): void;
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
bindVertexArray(array: WebGLVertexArrayObject | null): void;
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createQuery(): WebGLQuery | null;
createSampler(): WebGLSampler | null;
createTransformFeedback(): WebGLTransformFeedback | null;
createVertexArray(): WebGLVertexArrayObject | null;
deleteQuery(query: WebGLQuery | null): void;
deleteSampler(sampler: WebGLSampler | null): void;
deleteSync(sync: WebGLSync | null): void;
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
drawBuffers(buffers: GLenum[]): void;
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
endQuery(target: GLenum): void;
endTransformFeedback(): void;
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
getFragDataLocation(program: WebGLProgram, name: string): GLint;
getIndexedParameter(target: GLenum, index: GLuint): any;
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
isQuery(query: WebGLQuery | null): GLboolean;
isSampler(sampler: WebGLSampler | null): GLboolean;
isSync(sync: WebGLSync | null): GLboolean;
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
pauseTransformFeedback(): void;
readBuffer(src: GLenum): void;
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
resumeTransformFeedback(): void;
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
vertexAttribI4iv(index: GLuint, values: Int32List): void;
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGBA8: 0x8058;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
}
interface WebGL2RenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
}
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
interface WebGLActiveInfo {
readonly name: string;
readonly size: GLint;
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
interface WebGLBuffer {
}
declare var WebGLBuffer: {
prototype: WebGLBuffer;
new(): WebGLBuffer;
};
/** 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. */
interface WebGLContextEvent extends Event {
readonly statusMessage: string;
}
declare var WebGLContextEvent: {
prototype: WebGLContextEvent;
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};
/** 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). */
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}
declare var WebGLRenderingContext: {
prototype: WebGLRenderingContext;
new(): WebGLRenderingContext;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGLRenderingContextBase {
readonly drawingBufferHeight: GLsizei;
readonly drawingBufferWidth: GLsizei;
activeTexture(texture: GLenum): void;
attachShader(program: WebGLProgram, shader: WebGLShader): void;
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
blendEquation(mode: GLenum): void;
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
checkFramebufferStatus(target: GLenum): GLenum;
clear(mask: GLbitfield): void;
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
clearDepth(depth: GLclampf): void;
clearStencil(s: GLint): void;
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
compileShader(shader: WebGLShader): void;
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createBuffer(): WebGLBuffer | null;
createFramebuffer(): WebGLFramebuffer | null;
createProgram(): WebGLProgram | null;
createRenderbuffer(): WebGLRenderbuffer | null;
createShader(type: GLenum): WebGLShader | null;
createTexture(): WebGLTexture | null;
cullFace(mode: GLenum): void;
deleteBuffer(buffer: WebGLBuffer | null): void;
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
deleteProgram(program: WebGLProgram | null): void;
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
deleteShader(shader: WebGLShader | null): void;
deleteTexture(texture: WebGLTexture | null): void;
depthFunc(func: GLenum): void;
depthMask(flag: GLboolean): void;
depthRange(zNear: GLclampf, zFar: GLclampf): void;
detachShader(program: WebGLProgram, shader: WebGLShader): void;
disable(cap: GLenum): void;
disableVertexAttribArray(index: GLuint): void;
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
enable(cap: GLenum): void;
enableVertexAttribArray(index: GLuint): void;
finish(): void;
flush(): void;
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
frontFace(mode: GLenum): void;
generateMipmap(target: GLenum): void;
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
getAttribLocation(program: WebGLProgram, name: string): GLint;
getBufferParameter(target: GLenum, pname: GLenum): any;
getContextAttributes(): WebGLContextAttributes | null;
getError(): GLenum;
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
getExtension(name: string): any;
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
getParameter(pname: GLenum): any;
getProgramInfoLog(program: WebGLProgram): string | null;
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
getShaderInfoLog(shader: WebGLShader): string | null;
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
getShaderSource(shader: WebGLShader): string | null;
getSupportedExtensions(): string[] | null;
getTexParameter(target: GLenum, pname: GLenum): any;
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
getVertexAttrib(index: GLuint, pname: GLenum): any;
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
hint(target: GLenum, mode: GLenum): void;
isBuffer(buffer: WebGLBuffer | null): GLboolean;
isContextLost(): boolean;
isEnabled(cap: GLenum): GLboolean;
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
isProgram(program: WebGLProgram | null): GLboolean;
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
isShader(shader: WebGLShader | null): GLboolean;
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
linkProgram(program: WebGLProgram): void;
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
polygonOffset(factor: GLfloat, units: GLfloat): void;
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
sampleCoverage(value: GLclampf, invert: GLboolean): void;
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
shaderSource(shader: WebGLShader, source: string): void;
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
stencilMask(mask: GLuint): void;
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
useProgram(program: WebGLProgram | null): void;
validateProgram(program: WebGLProgram): void;
vertexAttrib1f(index: GLuint, x: GLfloat): void;
vertexAttrib1fv(index: GLuint, values: Float32List): void;
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
vertexAttrib2fv(index: GLuint, values: Float32List): void;
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
vertexAttrib3fv(index: GLuint, values: Float32List): void;
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
vertexAttrib4fv(index: GLuint, values: Float32List): void;
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
}
interface WebGLRenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
interface WebGLSampler {
}
declare var WebGLSampler: {
prototype: WebGLSampler;
new(): WebGLSampler;
};
/** 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. */
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
interface WebGLShaderPrecisionFormat {
readonly precision: GLint;
readonly rangeMax: GLint;
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
*
* Can be set, to change how binary data is returned. The default is "blob".
*/
binaryType: BinaryType;
/**
* 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.
*
* 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.)
*/
readonly bufferedAmount: number;
/** Returns the extensions selected by the server, if any. */
readonly extensions: string;
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
onerror: ((this: WebSocket, ev: Event) => any) | null;
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
onopen: ((this: WebSocket, ev: Event) => any) | null;
/** 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. */
readonly protocol: string;
/** Returns the state of the WebSocket object's connection. It can have the values described below. */
readonly readyState: number;
/** Returns the URL that was used to establish the WebSocket connection. */
readonly url: string;
/** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
close(code?: number, reason?: string): void;
/** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WebSocket: {
prototype: WebSocket;
new(url: string | URL, protocols?: string | string[]): WebSocket;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
};
/** 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. */
interface WindowClient extends Client {
readonly focused: boolean;
readonly visibilityState: DocumentVisibilityState;
focus(): Promise<WindowClient>;
navigate(url: string | URL): Promise<WindowClient | null>;
}
declare var WindowClient: {
prototype: WindowClient;
new(): WindowClient;
};
interface WindowOrWorkerGlobalScope {
/** Available only in secure contexts. */
readonly caches: CacheStorage;
readonly crossOriginIsolated: boolean;
readonly crypto: Crypto;
readonly indexedDB: IDBFactory;
readonly isSecureContext: boolean;
readonly origin: string;
readonly performance: Performance;
atob(data: string): string;
btoa(data: string): string;
clearInterval(id: number | undefined): void;
clearTimeout(id: number | undefined): void;
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
queueMicrotask(callback: VoidFunction): void;
reportError(e: any): void;
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
structuredClone(value: any, options?: StructuredSerializeOptions): any;
}
interface WorkerEventMap extends AbstractWorkerEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** 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. */
interface Worker extends EventTarget, AbstractWorker {
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
/** 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. */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/** Aborts worker's associated global environment. */
terminate(): void;
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Worker: {
prototype: Worker;
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};
interface WorkerGlobalScopeEventMap {
"error": ErrorEvent;
"languagechange": Event;
"offline": Event;
"online": Event;
"rejectionhandled": PromiseRejectionEvent;
"unhandledrejection": PromiseRejectionEvent;
}
/** 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 \u2014 in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
/** Returns workerGlobal's WorkerLocation object. */
readonly location: WorkerLocation;
/** Returns workerGlobal's WorkerNavigator object. */
readonly navigator: WorkerNavigator;
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/** Returns workerGlobal. */
readonly self: WorkerGlobalScope & typeof globalThis;
/** 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). */
importScripts(...urls: (string | URL)[]): void;
addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WorkerGlobalScope: {
prototype: WorkerGlobalScope;
new(): WorkerGlobalScope;
};
/** 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. */
interface WorkerLocation {
readonly hash: string;
readonly host: string;
readonly hostname: string;
readonly href: string;
toString(): string;
readonly origin: string;
readonly pathname: string;
readonly port: string;
readonly protocol: string;
readonly search: string;
}
declare var WorkerLocation: {
prototype: WorkerLocation;
new(): WorkerLocation;
};
/** 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. */
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
readonly mediaCapabilities: MediaCapabilities;
}
declare var WorkerNavigator: {
prototype: WorkerNavigator;
new(): WorkerNavigator;
};
/** This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
interface WritableStream<W = any> {
readonly locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<W>;
}
declare var WritableStream: {
prototype: WritableStream;
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};
/** This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
interface WritableStreamDefaultController {
readonly signal: AbortSignal;
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/** 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. */
interface WritableStreamDefaultWriter<W = any> {
readonly closed: Promise<undefined>;
readonly desiredSize: number | null;
readonly ready: Promise<undefined>;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
releaseLock(): void;
write(chunk?: W): Promise<void>;
}
declare var WritableStreamDefaultWriter: {
prototype: WritableStreamDefaultWriter;
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
"readystatechange": Event;
}
/** 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. */
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/** Returns client's state. */
readonly readyState: number;
/** Returns the response body. */
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*/
readonly responseText: string;
/**
* Returns the response type.
*
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
*
* When set: setting to "document" is ignored if current global object is not a Window object.
*
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
responseType: XMLHttpRequestResponseType;
readonly responseURL: string;
readonly status: number;
readonly statusText: string;
/**
* 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).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
timeout: number;
/** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
readonly upload: XMLHttpRequestUpload;
/**
* 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.
*
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*/
withCredentials: boolean;
/** Cancels any network activity. */
abort(): void;
getAllResponseHeaders(): string;
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
*
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
*
* 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.
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*/
send(body?: XMLHttpRequestBodyInit | null): void;
/**
* Combines a header in author request headers.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*/
setRequestHeader(name: string, value: string): void;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequest: {
prototype: XMLHttpRequest;
new(): XMLHttpRequest;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
};
interface XMLHttpRequestEventTargetEventMap {
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
"error": ProgressEvent<XMLHttpRequestEventTarget>;
"load": ProgressEvent<XMLHttpRequestEventTarget>;
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}
interface XMLHttpRequestEventTarget extends EventTarget {
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestEventTarget: {
prototype: XMLHttpRequestEventTarget;
new(): XMLHttpRequestEventTarget;
};
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestUpload: {
prototype: XMLHttpRequestUpload;
new(): XMLHttpRequestUpload;
};
interface Console {
assert(condition?: boolean, ...data: any[]): void;
clear(): void;
count(label?: string): void;
countReset(label?: string): void;
debug(...data: any[]): void;
dir(item?: any, options?: any): void;
dirxml(...data: any[]): void;
error(...data: any[]): void;
group(...data: any[]): void;
groupCollapsed(...data: any[]): void;
groupEnd(): void;
info(...data: any[]): void;
log(...data: any[]): void;
table(tabularData?: any, properties?: string[]): void;
time(label?: string): void;
timeEnd(label?: string): void;
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
trace(...data: any[]): void;
warn(...data: any[]): void;
}
declare var console: Console;
declare namespace WebAssembly {
interface CompileError extends Error {
}
var CompileError: {
prototype: CompileError;
new(message?: string): CompileError;
(message?: string): CompileError;
};
interface Global {
value: any;
valueOf(): any;
}
var Global: {
prototype: Global;
new(descriptor: GlobalDescriptor, v?: any): Global;
};
interface Instance {
readonly exports: Exports;
}
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
interface LinkError extends Error {
}
var LinkError: {
prototype: LinkError;
new(message?: string): LinkError;
(message?: string): LinkError;
};
interface Memory {
readonly buffer: ArrayBuffer;
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
exports(moduleObject: Module): ModuleExportDescriptor[];
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(message?: string): RuntimeError;
(message?: string): RuntimeError;
};
interface Table {
readonly length: number;
get(index: number): any;
grow(delta: number, value?: any): number;
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor {
mutable?: boolean;
value: ValueType;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
shared?: boolean;
}
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type Imports = Record<string, ModuleImports>;
type ModuleImports = Record<string, ImportValue>;
function compile(bytes: BufferSource): Promise<Module>;
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function validate(bytes: BufferSource): boolean;
}
interface FrameRequestCallback {
(time: DOMHighResTimeStamp): void;
}
interface LockGrantedCallback {
(lock: Lock | null): any;
}
interface OnErrorEventHandlerNonNull {
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}
interface PerformanceObserverCallback {
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}
interface QueuingStrategySize<T = any> {
(chunk: T): number;
}
interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformerStartCallback<O> {
(controller: TransformStreamDefaultController<O>): any;
}
interface TransformerTransformCallback<I, O> {
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface UnderlyingSinkAbortCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSinkCloseCallback {
(): void | PromiseLike<void>;
}
interface UnderlyingSinkStartCallback {
(controller: WritableStreamDefaultController): any;
}
interface UnderlyingSinkWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface UnderlyingSourceCancelCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSourcePullCallback<R> {
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
}
interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}
interface VoidFunction {
(): void;
}
/** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
declare var name: string;
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** Aborts dedicatedWorkerGlobal. */
declare function close(): void;
/** 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. */
declare function postMessage(message: any, transfer: Transferable[]): void;
declare function postMessage(message: any, options?: StructuredSerializeOptions): void;
/** 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. */
declare function dispatchEvent(event: Event): boolean;
/** Returns workerGlobal's WorkerLocation object. */
declare var location: WorkerLocation;
/** Returns workerGlobal's WorkerNavigator object. */
declare var navigator: WorkerNavigator;
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/** Returns workerGlobal. */
declare var self: WorkerGlobalScope & typeof globalThis;
/** 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). */
declare function importScripts(...urls: (string | URL)[]): void;
/** 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. */
declare function dispatchEvent(event: Event): boolean;
declare var fonts: FontFaceSet;
/** Available only in secure contexts. */
declare var caches: CacheStorage;
declare var crossOriginIsolated: boolean;
declare var crypto: Crypto;
declare var indexedDB: IDBFactory;
declare var isSecureContext: boolean;
declare var origin: string;
declare var performance: Performance;
declare function atob(data: string): string;
declare function btoa(data: string): string;
declare function clearInterval(id: number | undefined): void;
declare function clearTimeout(id: number | undefined): void;
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
declare function queueMicrotask(callback: VoidFunction): void;
declare function reportError(e: any): void;
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
declare function cancelAnimationFrame(handle: number): void;
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
type CanvasImageSource = ImageBitmap | OffscreenCanvas;
type DOMHighResTimeStamp = number;
type EpochTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type Float32List = Float32Array | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type Int32List = Int32Array | GLint[];
type MessageEventSource = MessagePort | ServiceWorker;
type NamedCurve = string;
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type PerformanceEntryList = PerformanceEntry[];
type PushMessageDataInit = BufferSource | string;
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
type TimerHandler = string | Function;
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
type Uint32List = Uint32Array | GLuint[];
type VibratePattern = number | number[];
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type BinaryType = "arraybuffer" | "blob";
type CanvasDirection = "inherit" | "ltr" | "rtl";
type CanvasFillRule = "evenodd" | "nonzero";
type CanvasFontKerning = "auto" | "none" | "normal";
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "bevel" | "miter" | "round";
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type DocumentVisibilityState = "hidden" | "visible";
type EndingType = "native" | "transparent";
type FileSystemHandleKind = "directory" | "file";
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
type 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";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionDurability = "default" | "relaxed" | "strict";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "from-image";
type ImageSmoothingQuality = "high" | "low" | "medium";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type LockMode = "exclusive" | "shared";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaEncodingType = "record" | "webrtc";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
type PermissionState = "denied" | "granted" | "prompt";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PushEncryptionKeyName = "auth" | "p256dh";
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
type ReadableStreamReaderMode = "byob";
type ReadableStreamType = "bytes";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestRedirect = "error" | "follow" | "manual";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type TransferFunction = "hlg" | "pq" | "srgb";
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WorkerType = "classic" | "module";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`,ya["lib.webworker.importscripts.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// WorkerGlobalScope APIs
/////////////////////////////
// These are only available in a Web Worker
declare function importScripts(...urls: string[]): void;
`,ya["lib.webworker.iterable.d.ts"]=`/*! *****************************************************************************
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker Iterable APIs
/////////////////////////////
interface Cache {
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface CanvasPath {
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}
interface CanvasPathDrawingStyles {
setLineDash(segments: Iterable<number>): void;
}
interface DOMStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface FileList {
[Symbol.iterator](): IterableIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormData {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[string, FormDataEntryValue]>;
/** Returns a list of keys in the list. */
keys(): IterableIterator<string>;
/** Returns a list of values in the list. */
values(): IterableIterator<FormDataEntryValue>;
}
interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
entries(): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
keys(): IterableIterator<string>;
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
values(): IterableIterator<string>;
}
interface IDBDatabase {
/** 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. */
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
}
interface IDBObjectStore {
/**
* 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.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MessageEvent<T = any> {
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface SubtleCrypto {
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
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>;
}
interface URLSearchParams {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an array of key, value pairs for every entry in the search params. */
entries(): IterableIterator<[string, string]>;
/** Returns a list of keys in the search params. */
keys(): IterableIterator<string>;
/** Returns a list of values in the search params. */
values(): IterableIterator<string>;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WEBGL_multi_draw {
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
}
interface WebGL2RenderingContextBase {
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
drawBuffers(buffers: Iterable<GLenum>): void;
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`;function g_(f){return typeof f=="string"?/^file:\/\/\//.test(f)?!!ya[f.substr(8)]:!1:f.path.indexOf("/lib.")===0?!!ya[f.path.slice(1)]:!1}var OI=class{constructor(f,p){Sw(this,"_ctx");Sw(this,"_extraLibs",Object.create(null));Sw(this,"_languageService",Rue(this));Sw(this,"_compilerOptions");Sw(this,"_inlayHintsOptions");this._ctx=f,this._compilerOptions=p.compilerOptions,this._extraLibs=p.extraLibs,this._inlayHintsOptions=p.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(b=>b.uri).filter(b=>!g_(b)).map(b=>b.toString()).concat(Object.keys(this._extraLibs))}_getModel(f){let p=this._ctx.getMirrorModels();for(let b=0;b<p.length;b++){const D=p[b].uri;if(D.toString()===f||D.toString(!0)===f)return p[b]}return null}getScriptVersion(f){let p=this._getModel(f);return p?p.version.toString():this.isDefaultLibFileName(f)?"1":f in this._extraLibs?String(this._extraLibs[f].version):""}getScriptText(f){return lf(this,null,function*(){return this._getScriptText(f)})}_getScriptText(f){let p,b=this._getModel(f);const D="lib."+f+".d.ts";if(b)p=b.getValue();else if(f in ya)p=ya[f];else if(D in ya)p=ya[D];else if(f in this._extraLibs)p=this._extraLibs[f].content;else return;return p}getScriptSnapshot(f){const p=this._getScriptText(f);if(p!==void 0)return{getText:(b,D)=>p.substring(b,D),getLength:()=>p.length,getChangeRange:()=>{}}}getScriptKind(f){switch(f.substr(f.lastIndexOf(".")+1)){case"ts":return FA.TS;case"tsx":return FA.TSX;case"js":return FA.JS;case"jsx":return FA.JSX;default:return this.getCompilationSettings().allowJs?FA.JS:FA.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(f){switch(f.target){case 99:const p="lib.esnext.full.d.ts";if(p in ya||p in this._extraLibs)return p;case 7:case 6:case 5:case 4:case 3:case 2:default:const b=`lib.es${2013+(f.target||99)}.full.d.ts`;return b in ya||b in this._extraLibs?b:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(f){return f===this.getDefaultLibFileName(this._compilerOptions)}readFile(f){return this._getScriptText(f)}fileExists(f){return this._getScriptText(f)!==void 0}getLibFiles(){return lf(this,null,function*(){return ya})}static clearFiles(f){const p=[];for(const b of f){const D=Li({},b);if(D.file=D.file?{fileName:D.file.fileName}:void 0,b.relatedInformation){D.relatedInformation=[];for(const B of b.relatedInformation){const $=Li({},B);$.file=$.file?{fileName:$.file.fileName}:void 0,D.relatedInformation.push($)}}p.push(D)}return p}getSyntacticDiagnostics(f){return lf(this,null,function*(){if(g_(f))return[];const p=this._languageService.getSyntacticDiagnostics(f);return OI.clearFiles(p)})}getSemanticDiagnostics(f){return lf(this,null,function*(){if(g_(f))return[];const p=this._languageService.getSemanticDiagnostics(f);return OI.clearFiles(p)})}getSuggestionDiagnostics(f){return lf(this,null,function*(){if(g_(f))return[];const p=this._languageService.getSuggestionDiagnostics(f);return OI.clearFiles(p)})}getCompilerOptionsDiagnostics(f){return lf(this,null,function*(){if(g_(f))return[];const p=this._languageService.getCompilerOptionsDiagnostics();return OI.clearFiles(p)})}getCompletionsAtPosition(f,p){return lf(this,null,function*(){if(!g_(f))return this._languageService.getCompletionsAtPosition(f,p,void 0)})}getCompletionEntryDetails(f,p,b){return lf(this,null,function*(){return this._languageService.getCompletionEntryDetails(f,p,b,void 0,void 0,void 0,void 0)})}getSignatureHelpItems(f,p,b){return lf(this,null,function*(){if(!g_(f))return this._languageService.getSignatureHelpItems(f,p,b)})}getQuickInfoAtPosition(f,p){return lf(this,null,function*(){if(!g_(f))return this._languageService.getQuickInfoAtPosition(f,p)})}getDocumentHighlights(f,p,b){return lf(this,null,function*(){if(!g_(f))return this._languageService.getDocumentHighlights(f,p,b)})}getDefinitionAtPosition(f,p){return lf(this,null,function*(){if(!g_(f))return this._languageService.getDefinitionAtPosition(f,p)})}getReferencesAtPosition(f,p){return lf(this,null,function*(){if(!g_(f))return this._languageService.getReferencesAtPosition(f,p)})}getNavigationTree(f){return lf(this,null,function*(){if(!g_(f))return this._languageService.getNavigationTree(f)})}getFormattingEditsForDocument(f,p){return lf(this,null,function*(){return g_(f)?[]:this._languageService.getFormattingEditsForDocument(f,p)})}getFormattingEditsForRange(f,p,b,D){return lf(this,null,function*(){return g_(f)?[]:this._languageService.getFormattingEditsForRange(f,p,b,D)})}getFormattingEditsAfterKeystroke(f,p,b,D){return lf(this,null,function*(){return g_(f)?[]:this._languageService.getFormattingEditsAfterKeystroke(f,p,b,D)})}findRenameLocations(f,p,b,D,B){return lf(this,null,function*(){if(!g_(f))return this._languageService.findRenameLocations(f,p,b,D,B)})}getRenameInfo(f,p,b){return lf(this,null,function*(){return g_(f)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(f,p,b)})}getEmitOutput(f){return lf(this,null,function*(){return g_(f)?{outputFiles:[],emitSkipped:!0}:this._languageService.getEmitOutput(f)})}getCodeFixesAtPosition(f,p,b,D,B){return lf(this,null,function*(){if(g_(f))return[];const $={};try{return this._languageService.getCodeFixesAtPosition(f,p,b,D,B,$)}catch(pe){return[]}})}updateExtraLibs(f){return lf(this,null,function*(){this._extraLibs=f})}provideInlayHints(f,p,b){return lf(this,null,function*(){var $;if(g_(f))return[];const D=($=this._inlayHintsOptions)!=null?$:{},B={start:p,length:b-p};try{return this._languageService.provideInlayHints(f,B,D)}catch(pe){return[]}})}};function VOe(f,p){let b=OI;if(p.customWorkerPath)if(typeof importScripts=="undefined")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{self.importScripts(p.customWorkerPath);const D=self.customTSWorkerFactory;if(!D)throw new Error(`The script at ${p.customWorkerPath} does not add customTSWorkerFactory to self`);b=D(OI,Due,ya)}return new b(f,p)}globalThis.ts=Nue,self.onmessage=()=>{wue((f,p)=>VOe(f,p))};})();